The Battle for Wesnoth  1.15.3+dev
RollbackTest.h
Go to the documentation of this file.
1 //
2 // M A R I A D B + +
3 //
4 // Copyright The ViaDuck Project 2016 - 2018.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 
9 #ifndef MARIADBCLIENTPP_ROLLBACKTEST_H
10 #define MARIADBCLIENTPP_ROLLBACKTEST_H
11 
12 #include "SkeletonTest.h"
13 
14 class RollbackTest : public SkeletonTest {
15  protected:
16  virtual void CreateTestTable() override {
17  m_con->execute("CREATE TABLE " + m_table_name +
18  "(id INT PRIMARY KEY AUTO_INCREMENT, "
19  "data TINYBLOB NULL, "
20  "str VARCHAR(50) NULL, "
21  "dt DATETIME NULL, "
22  "t TIME NULL, "
23  "value INT NULL, "
24  "deci DECIMAL(8,4) DEFAULT 0.0);");
25  }
26 };
27 
28 #endif // MARIADBCLIENTPP_ROLLBACKTEST_H
connection_ref m_con
Definition: SkeletonTest.h:56
virtual void CreateTestTable() override
Definition: RollbackTest.h:16
std::string m_table_name
Definition: SkeletonTest.h:54