Author Topic: DBLib clarity  (Read 5940 times)

0 Members and 1 Guest are viewing this topic.

Offline PlainNameTopic starter

  • Super Contributor
  • ***
  • Posts: 7203
  • Country: va
Re: DBLib clarity
« Reply #25 on: February 10, 2021, 06:59:33 pm »
Oh, well thanks for pointing me in the right direction  :-+
 

Offline plazma

  • Frequent Contributor
  • **
  • Posts: 474
  • Country: fi
    • Homepage
Re: DBLib clarity
« Reply #26 on: February 14, 2021, 11:49:23 am »
I built a component database library to my workplace. The unique identifier is a company internal code received from the purchase department. Each manufacturer part number got its own internal code. In practice I could have used the manufacturer part number as the unique identifier.

I'm building my hobby database library on exel. There is not so many codes so excel sheet works fine. For this database library I use the manufacturer part number as the unique identifier.

Each component can have multiple footprints. Most have three: IPC Least, Nominal and Most. Some have a fourth footprint which is usually manufacturer specified.

So for example a part with QFN and SOIC footprints appears twice in the library. That's because the QFN and SOIC parts have their own manufacturer part numbers. And both of them can have multiple footprints. Like QFN can have IPC L, N and M. Also the SOIC got the different IPC densities.
 

Offline PlainNameTopic starter

  • Super Contributor
  • ***
  • Posts: 7203
  • Country: va
Re: DBLib clarity
« Reply #27 on: February 14, 2021, 12:15:34 pm »
Quote
I could have used the manufacturer part number as the unique identifier

Seems to something of a favorite, but I wonder how appropriate it is. A major issue is that there is no guarantee that manufacturers will have unique numbers between them, but another is that the format varies wildly.

Instead, why not use a guaranteed unique to you number? The formatting will be consistent and appropriate (if you wanted, you could ensure no 0 or 1, so you don't confuse them with O and l), so you know they will fit in the space provided, and you won't end up with 40-character-wide columns showing 6-character numbers.
 

Offline Pseudobyte

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: us
  • Embedded Systems Engineer / PCB Designer
Re: DBLib clarity
« Reply #28 on: February 15, 2021, 03:57:35 pm »
Most people use an incrementing index for the unique identifier...I think?

Would anyone be interested in seeing how to setup an AWS RDS (postgresql) deployment for Altium DBlib? If that is valuable even to a few people I can write up a post.
“They Don’t Think It Be Like It Is, But It Do”
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf