aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp
blob: 9f61d2d3c5b4c6fd917db86d3cf86f891b742770 (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
#include "dbattachermock.h"

bool DbAttacherMock::attachDatabases(const QString&)
{
    return true;
}

bool DbAttacherMock::attachDatabases(const QList<SqliteQueryPtr>&)
{
    return true;
}

bool DbAttacherMock::attachDatabases(SqliteQueryPtr)
{
    return true;
}

void DbAttacherMock::detachDatabases()
{
}

BiStrHash DbAttacherMock::getDbNameToAttach() const
{
    return BiStrHash();
}

QString DbAttacherMock::getQuery() const
{
    return QString();
}

DbAttacher* DbAttacherFactoryMock::create(Db*)
{
    return new DbAttacherMock();
}