aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/sqliteteststatement.h
blob: 08376ba75aaa868895218b721d74a51e99aa7998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <sqlitebasestatement.h>
template<int ResultCount, int BindParameterCount = 0>
class SqliteTestStatement
    : public Sqlite::StatementImplementation<Sqlite::BaseStatement, ResultCount, BindParameterCount>
{
    using Base = Sqlite::StatementImplementation<Sqlite::BaseStatement, ResultCount, BindParameterCount>;

public:
    explicit SqliteTestStatement(Utils::SmallStringView sqlStatement, Sqlite::Database &database)
        : Base(sqlStatement, database)
    {}
};