clj / kom2

Interface KiCad database libraries with non-ODBC systems using magic
MIT License
5 stars 1 forks source link

Option for filtering tables #12

Open SchrodingersGat opened 1 year ago

SchrodingersGat commented 1 year ago

If possible within the kicad_dbl file format, it would be very handy to be able to add a "filters" attribute to each library entry.

For example, only return parts in the "Resistors" category which have the "KiCadFootprint" parameter defined

clj commented 1 year ago

The driver doesn't get any information from the .kicad_dbl file, other than the connection string. So we could put something there, which is also what I intended to do for the very similar feature for IPNs: https://github.com/clj/kom2/issues/5

SchrodingersGat commented 1 year ago

Ah, that makes sense.

clj commented 1 year ago

Is there a query argument that I can use to make the API do this kind of filtering? I had a quick look and I couldn't see anything obvious.

SchrodingersGat commented 1 year ago

@clj a filter to test for the existence of a particular parameter? No, this would have to be added in, I don't think this is possible with the current API