initial matador ng commit

This commit is contained in:
2025-02-02 20:37:12 +01:00
parent 19de5714f4
commit ded3daceb3
378 changed files with 14913 additions and 13431 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef MATADOR_QUERY_FIXTURE_HPP
#define MATADOR_QUERY_FIXTURE_HPP
#include "matador/sql/connection.hpp"
#include "matador/sql/schema.hpp"
#include "connection.hpp"
#include <stack>
namespace matador::test {
class QueryFixture {
public:
QueryFixture();
~QueryFixture();
void check_table_exists(const std::string &table_name) const;
void check_table_not_exists(const std::string &table_name) const;
protected:
sql::connection db;
sql::schema schema;
std::stack <std::string> tables_to_drop;
private:
void drop_table_if_exists(const std::string &table_name) const;
};
}
#endif //MATADOR_QUERY_FIXTURE_HPP