summaryrefslogtreecommitdiffstats
path: root/Plugins/DbSqlite2/dbsqlite2instance.h
blob: 08ea3689aa5d3f4289d759610686ef003b1e1716 (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
#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);

        QString getEncoding();
};

#endif // DBSQLITE2INSTANCE_H