The Battle for Wesnoth  1.15.3+dev
GeneralTest.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_GENERALTEST_H
10 #define MARIADBCLIENTPP_GENERALTEST_H
11 
12 #include "SkeletonTest.h"
13 
14 class GeneralTest : public SkeletonTest {
15  protected:
16  virtual void CreateTestTable() override {
17  m_con->execute("CREATE TABLE " + m_table_name + " (id INT AUTO_INCREMENT, str VARCHAR(50) NULL, PRIMARY KEY(id));");
18  }
19 };
20 
21 #endif // MARIADBCLIENTPP_GENERALTEST_H
connection_ref m_con
Definition: SkeletonTest.h:56
std::string m_table_name
Definition: SkeletonTest.h:54
virtual void CreateTestTable() override
Definition: GeneralTest.h:16