I want to get a database library working in KiCad 7.
I’m using KiCad 7.05-7.05~ubuntu22.04.1, release build
I get no errors connecting to the database when I use Preferences->Manage Symbol Libraries. But it could be failing silently as it take a couple of seconds to connect.
There was a prior post which seemed to describe a similar issue. That post was not able to determine what the problem was and it seemed to resolve itself. The post is located here: Problem with Database Connection - SOLVED
Using isql, I’m seeing it properly connect to the database:
srodgers@steverod ~ $ !isql
isql kicad-symbol-database
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> ^C
Here is a screenshot of what’s in the database:
The main issue is that the spinner is missing when using the chooser from the schematic editor , and therefore I can’t access any of the parts in my database.
Here is the contents of the dp_parts.kicad_dbl file:
{
"meta": {
"version": 0
},
"name": "KiCad Database Library",
"description": "Component Database",
"source": {
"type": "odbc",
"dsn": "kicad-symbol-database",
"username": "",
"password": "",
"timeout_seconds": 2,
"connection_string": ""
},
"libraries": [
{
"name": "Resistors",
"table": "Resistors",
"key": "PartNumber",
"symbols": "Symbol",
"footprints": "Footprint",
"fields": [
{
"column": "Part Number",
"name": "PartNumber",
"visible_on_add": false,
"visible_in_chooser": true,
"show_name": true,
"inherit_properties": true
},
{
"column": "Resistance",
"name": "Resistance",
"visible_on_add": true,
"visible_in_chooser": true,
"show_name": false
},
{
"column": "Case Size",
"name": "Case Size",
"visible_on_add": false,
"visible_in_chooser": true,
"show_name": false
},
{
"column": "Tolerance",
"name": "Tolerance",
"visible_on_add": false,
"visible_in_chooser": true,
"show_name": false
},
{
"column": "Power",
"name": "Power",
"visible_on_add": false,
"visible_in_chooser": true,
"show_name": false
},
{
"column": "TempCo",
"name": "TempCo",
"visible_on_add": false,
"visible_in_chooser": true,
"show_name": false
}
],
"properties": {
"description": "Description",
"footprint_filters": "Footprint Filters",
"keywords": "Keywords",
"exclude_from_bom": "No BOM",
"exclude_from_board": "Schematic Only"
}
}
]
}