KiCad PCB EDA Suite
|
#include <boost/locale.hpp>
#include <fmt/core.h>
#include <nanodbc/nanodbc.h>
#include <sql.h>
#include <wx/log.h>
#include <database/database_connection.h>
#include <database/database_cache.h>
#include <core/profile.h>
Go to the source code of this file.
Macros | |
#define | INT64 int64_t |
#define | UINT64 uint64_t |
Functions | |
nanodbc::string | fromUTF8 (const std::string &aString) |
When Unicode support is enabled in nanodbc, string formats are used matching the appropriate character set of the platform. | |
std::string | toUTF8 (const nanodbc::string &aString) |
Converts a string from nanodbc-native to KiCad-native. | |
Variables | |
const char *const | traceDatabase = "KICAD_DATABASE" |
#define INT64 int64_t |
Definition at line 27 of file database_connection.cpp.
#define UINT64 uint64_t |
Definition at line 28 of file database_connection.cpp.
nanodbc::string fromUTF8 | ( | const std::string & | aString | ) |
When Unicode support is enabled in nanodbc, string formats are used matching the appropriate character set of the platform.
KiCad uses UTF-8 encoded strings internally, but different platforms use different encodings for SQL strings. Unicode mode must be enabled for compilation on Windows, since Visual Studio forces the use of Unicode SQL headers if any part of the project has Unicode enabled. Converts a string from KiCad-native to nanodbc-native
aString | is a UTF-8 encoded string |
Definition at line 65 of file database_connection.cpp.
Referenced by DATABASE_CONNECTION::CacheTableInfo(), DATABASE_CONNECTION::Connect(), DATABASE_CONNECTION::selectAllAndCache(), and DATABASE_CONNECTION::SelectOne().
std::string toUTF8 | ( | const nanodbc::string & | aString | ) |
Converts a string from nanodbc-native to KiCad-native.
aString | is a string encoded in nanodbc's platform-specific way |
Definition at line 76 of file database_connection.cpp.
Referenced by DATABASE_CONNECTION::CacheTableInfo(), DATABASE_CONNECTION::getQuoteChar(), DATABASE_CONNECTION::selectAllAndCache(), and DATABASE_CONNECTION::SelectOne().
const char* const traceDatabase = "KICAD_DATABASE" |
Definition at line 50 of file database_connection.cpp.
Referenced by DATABASE_CONNECTION::CacheTableInfo(), DATABASE_CONNECTION::columnsFor(), DATABASE_CONNECTION::Connect(), DATABASE_CONNECTION::Disconnect(), SCH_IO_DATABASE::ensureSettings(), DATABASE_CONNECTION::getQuoteChar(), SCH_IO_DATABASE::LoadSymbol(), SCH_IO_DATABASE::loadSymbolFromRow(), DATABASE_CONNECTION::SelectAll(), DATABASE_CONNECTION::selectAllAndCache(), and DATABASE_CONNECTION::SelectOne().