blob: 1e7f6e233f2644f300f8cbf9e2d887d08e379a89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef DBSQLITE3_H
#define DBSQLITE3_H
#include "abstractdb3.h"
#include "common/global.h"
#include "stdsqlite3driver.h"
#include "db/sqlite3.h"
STD_SQLITE3_DRIVER(Sqlite3, "SQLite 3",,)
class API_EXPORT DbSqlite3 : public AbstractDb3<Sqlite3>
{
public:
/**
* @brief Creates SQLite database object.
* @param name Name for the database.
* @param path File path of the database.
* @param connOptions Connection options. See AbstractDb for details.
*
* All values from this constructor are just passed to AbstractDb3 constructor.
*/
DbSqlite3(const QString& name, const QString& path, const QHash<QString, QVariant>& connOptions);
/**
* @brief Creates SQLite database object.
* @param name Name for the database.
* @param path File path of the database.
* @overload
*/
DbSqlite3(const QString& name, const QString& path);
static bool complete(const QString& sql);
};
#endif // DBSQLITE3_H
|