File: dbsqlitecipherinstance.h

package info (click to toggle)
sqlitestudio 3.4.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 61,476 kB
  • sloc: ansic: 406,208; cpp: 123,881; yacc: 2,692; java: 992; tcl: 497; sh: 462; xml: 426; makefile: 19
file content (33 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (2)
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
#ifndef DBSQLITECIPHERINSTANCE_H
#define DBSQLITECIPHERINSTANCE_H

#include "db/abstractdb3.h"

#ifdef SQLCIPHER_SYSTEM_LIB
#  include "sqlcipher_unmodified.h"
#else
#  include "sqlcipher.h"
#endif

#include "db/stdsqlite3driver.h"

#ifdef SQLCIPHER_SYSTEM_LIB
STD_SQLITE3_DRIVER(SqlCipher, "SQLCipher",,)
#else
STD_SQLITE3_DRIVER(SqlCipher, "SQLCipher", sqlcipher_,)
#endif

class DbSqliteCipherInstance : public AbstractDb3<SqlCipher>
{
    public:
        DbSqliteCipherInstance(const QString& name, const QString& path, const QHash<QString, QVariant>& connOptions);

        Db* clone() const;
        QString getTypeClassName() const;

    protected:
        void initAfterOpen();
        QString getAttachSql(Db* otherDb, const QString& generatedAttachName);
};

#endif // DBSQLITECIPHERINSTANCE_H