From 3554df2e34e63364eea3a7998e0dfb0e6be65ca4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 30 Mar 2018 09:59:48 -0400 Subject: Started migrating to hkutil (does not build) --- generator/database.h | 73 ---------------------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 generator/database.h (limited to 'generator/database.h') diff --git a/generator/database.h b/generator/database.h deleted file mode 100644 index 7906304..0000000 --- a/generator/database.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef DATABASE_H_0B0A47D2 -#define DATABASE_H_0B0A47D2 - -#include -#include -#include - -struct sqlite3; - -namespace verbly { - namespace generator { - - class field; - - class sqlite3_error : public std::exception { - public: - - sqlite3_error(const std::string& what, const std::string& db_err); - - const char* what() const noexcept override; - const char* db_err() const noexcept; - - private: - std::string what_; - std::string db_err_; - - }; - - class database { - public: - - // Constructor - - explicit database(std::string path); - - // Disable copying - - database(const database& other) = delete; - database& operator=(const database& other) = delete; - - // Move constructor and move assignment - - database(database&& other); - database& operator=(database&& other); - - // Swap - - friend void swap(database& first, database& second); - - // Destructor - - ~database(); - - // Actions - - void runQuery(std::string query); - - void insertIntoTable(std::string table, std::list fields); - - private: - - database() - { - } - - sqlite3* ppdb_ = nullptr; - - }; - - }; -}; - -#endif /* end of include guard: DATABASE_H_0B0A47D2 */ -- cgit 1.4.1