save it.
This commit is contained in:
parent
7b0cf2dc4c
commit
7661992424
1 changed files with 9 additions and 0 deletions
|
|
@ -46,6 +46,15 @@ QString DatabaseFactory::getDatabasePath() {
|
||||||
return m_databasePath;
|
return m_databasePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: :memory: database je rychllejsi, overit
|
||||||
|
// na windows, a udelat to takto:
|
||||||
|
// vsechny connectiony v aplikaci budou defaultní (bez connection_name)
|
||||||
|
// a budou používat :memory: databazi (problem s vlakny?)
|
||||||
|
// na zacatku aplikace se kompletni souborova
|
||||||
|
// databaze presype do :memory: databaze
|
||||||
|
// a pri vypinani se zase :memory: presype do
|
||||||
|
// souborove databaze
|
||||||
|
|
||||||
QSqlDatabase DatabaseFactory::initialize(const QString &connection_name) {
|
QSqlDatabase DatabaseFactory::initialize(const QString &connection_name) {
|
||||||
// Prepare file paths.
|
// Prepare file paths.
|
||||||
QDir db_path(getDatabasePath());
|
QDir db_path(getDatabasePath());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue