Marek Roszko
e32b26ebeb
Move JSON_SETTINGS and PARAMS to kicommon
2 years ago
Mark Roszko
72d83cd5de
Revert "Move JSON_SETTINGS and PARAMS to kicommon"
This reverts commit 81855aaaa6
2 years ago
Marek Roszko
81855aaaa6
Move JSON_SETTINGS and PARAMS to kicommon
2 years ago
Alex Shvartzkop
cb25c8620e
Performance optimizations for database libraries.
(cherry picked from commit e68df8e1d1 )
2 years ago
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Jon Evans
44374c661f
Database: handle more possible datatype exceptions
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16090
2 years ago
Jon Evans
6f9af10912
DbLib: support columns with numeric data
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15662
2 years ago
Marek Roszko
7505fd0f37
Profile can live in core
2 years ago
Jon Evans
e0d4cf2d5b
DbLib: Provide more useful feedback when table is misconfigured
(cherry picked from commit 8f57fd82a0 )
2 years ago
Jon Evans
0e617774dd
DbLib: Remove slashes from table display names
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15074
3 years ago
Jon Evans
39a5929f33
Database libraries performance improvements
Rework caching system and optimize queries
3 years ago
Wayne Stambaugh
789bf6455a
Coverity fixes and code cleaning.
3 years ago
Jon Evans
66799b60f8
DbLib: Reconnect if connection is lost
3 years ago
Jon Evans
d9d3ccd6eb
DbLib: Allow inheriting field properties from source symbol
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12856
3 years ago
Jon Evans
dbd498f451
Re-add keyword mapping
3 years ago
Jon Evans
c07477b94c
Move to explicit symbol properties mapping
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12845
3 years ago
Jon Evans
201b45b41a
Remove call that crashes MySQL connector sometimes
It no longer is necessary anyway
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12471
3 years ago
Marek Roszko
63295cfb9e
Remove unused vars
3 years ago
Jon Evans
a5246a6df7
DbLib: Support showing field names
3 years ago
Jon Evans
b0aba0fdf3
Cache works better with unique keys
3 years ago
Jon Evans
60f6bb8c77
DbLib: Fixes for MySQL ODBC driver
SQLSetConnectAttr crashes for this driver, and SQLSetStmtAttr is the ODBC3 way anyway.
3 years ago
Jon Evans
ae879c8f02
DbLib: Add single-row query cache
Since single-row queries are performed rapid-fire during certain actions like
stepping through the symbol browser, there is high value in caching them for
a small amount of time. The default cache parameters will keep results for
10 seconds, which errs on the side of getting fresh data from the database
on most user interactions.
3 years ago
Jon Evans
d22fc24d9e
Attempt to fix MSVC build
3 years ago
jean-pierre charras
5c7f1083c7
database_connection.cpp: Fix compil issues on msys2. these issues are
due to "old" (or not existing) types used in sql.h
3 years ago
Jon Evans
ae6a2a6443
ADDED: Database libraries MVP
Allows placing parts from an external database that reference symbols from another loaded library.
Includes:
- nanodbc wrapper
- database schematic library plugin
- basic tests
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7436
4 years ago