aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/DbSqlite2/dbsqlite2instance.h
blob: 83c54d34142f9f1319d6d4c23bd597e0ac063a17 (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
#ifndef DBSQLITE2INSTANCE_H
#define DBSQLITE2INSTANCE_H

#include "db/abstractdb2.h"
#include "common/global.h"
#include <sqlite.h>

struct Sqlite2
{
    static_char* label = "SQLite 2";
};

class DbSqlite2Instance : public AbstractDb2<Sqlite2>
{
    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 AbstractDb2 constructor.
         */
        DbSqlite2Instance(const QString& name, const QString& path, const QHash<QString, QVariant>& connOptions);
};

#endif // DBSQLITE2INSTANCE_H