element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) How about ODBC support for parts?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 10 replies
  • Subscribers 180 subscribers
  • Views 767 views
  • Users 0 members are here
Related

How about ODBC support for parts?

craigarno
craigarno over 9 years ago

I miss being able to connect to my MySQL parts database when I use Eagle.

 

OrCAD CIS and Altium Designer have this feature, and I find it a time

saver to be able to access parts and vendors I've already qualified for

prior designs. This does imply a simple relational database to relate

parts database entries to vendor database entries.

 

Windows installations require an ODBC database connection to my server's

MySQL database. Linux uses the native MySQL interface.

 

I use LibreOffice "Database/Base" to maintain the MySQL parts database

when the user interface in CAD tool I'm using is making a change

difficult. It's as easy as using Excel or Access, and a lot more flexible.

 

  • Sign in to reply
  • Cancel
Parents
  • rachaelp
    rachaelp over 9 years ago

    Hi Craig,

     

    ODBC support has been requested several times previously by a number of people, myself included. I agree it would be a nice addition.

     

    I have worked around this issue by writing a php interface to my back end database (in this case sqlite but the principle is the same for MySQL) running on nginx (or you could use apache or whatever) and then using ULP's network functions to interact with the database via this web interface. It actually works reasonably well although I still need to iron out a few wrinkles in my implementation and rewrite some of my code to be more elegant.

     

    Best Regards,

     

    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • craigarno
    craigarno over 9 years ago in reply to rachaelp

    On 05/22/2016 11:15 AM, rachaelp wrote:

     

    I have worked around this issue by writing a php interface to my back

    end database

     

    Would you be willing to share your PHP and ULP code?

     

    Thanks,

    Craig

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 9 years ago in reply to craigarno

    Craig Arno wrote on Tue, 24 May 2016 15:52

    On 05/22/2016 11:15 AM, rachaelp wrote:

     

    I have worked around this issue by writing a php interface to my

    back

    end database

     

    Would you be willing to share your PHP and ULP code?

     

    Thanks,

    Craig

     

     

    Hi Craig,

     

    I will share the essence of the code once it's tidied up and not quite so

    "hacky"! It's very tied to how my database works for me so probably not

    useful to share it in its entirety and also at the moment it's not elegant

    as components are matched based upon building a description string in ULP

    from the attributes of a part and then doing a lookup in the database on

    that description. My end goal is to have it look up on all the parameters

    individually and if there is more than one match it would pop up a window

    with the choices for me to select or if a match could not be found at all

    it would pop up a list of all the database parts in the category for me to

    do a manual search or add a new entry. This is the long term goal but I

    have other work to do in the mean time though!

     

    If I get a chance to pull together some sanitized code snippets based on

    where I am currently I will pop them on here in the interim until I can get

    something better to share.

     

    Best Regards,

     

    Rachael

     

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 9 years ago in reply to craigarno

    Craig Arno wrote on Tue, 24 May 2016 15:52

    On 05/22/2016 11:15 AM, rachaelp wrote:

     

    I have worked around this issue by writing a php interface to my

    back

    end database

     

    Would you be willing to share your PHP and ULP code?

     

    Thanks,

    Craig

     

     

    Hi Craig,

     

    I will share the essence of the code once it's tidied up and not quite so

    "hacky"! It's very tied to how my database works for me so probably not

    useful to share it in its entirety and also at the moment it's not elegant

    as components are matched based upon building a description string in ULP

    from the attributes of a part and then doing a lookup in the database on

    that description. My end goal is to have it look up on all the parameters

    individually and if there is more than one match it would pop up a window

    with the choices for me to select or if a match could not be found at all

    it would pop up a list of all the database parts in the category for me to

    do a manual search or add a new entry. This is the long term goal but I

    have other work to do in the mean time though!

     

    If I get a chance to pull together some sanitized code snippets based on

    where I am currently I will pop them on here in the interim until I can get

    something better to share.

     

    Best Regards,

     

    Rachael

     

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • rachaelp
    rachaelp over 9 years ago in reply to craigarno

    Craig Arno wrote on Tue, 24 May 2016 15:52

    On 05/22/2016 11:15 AM, rachaelp wrote:

     

    I have worked around this issue by writing a php interface to my

    back

    end database

     

    Would you be willing to share your PHP and ULP code?

     

    Thanks,

    Craig

     

     

    Hi Craig,

     

    I will share the essence of the code once it's tidied up and not quite so

    "hacky"! It's very tied to how my database works for me so probably not

    useful to share it in its entirety and also at the moment it's not elegant

    as components are matched based upon building a description string in ULP

    from the attributes of a part and then doing a lookup in the database on

    that description. My end goal is to have it look up on all the parameters

    individually and if there is more than one match it would pop up a window

    with the choices for me to select or if a match could not be found at all

    it would pop up a list of all the database parts in the category for me to

    do a manual search or add a new entry. This is the long term goal but I

    have other work to do in the mean time though!

     

    If I get a chance to pull together some sanitized code snippets based on

    where I am currently I will pop them on here in the interim until I can get

    something better to share.

     

    Best Regards,

     

    Rachael

     

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube