24 #ifndef __GNC_DBIPROVIDER_HPP__ 25 #define __GNC_DBIPROVIDER_HPP__ 36 using ColVec = std::vector<GncSqlColumnInfo>;
37 using StrVec = std::vector<std::string>;
42 virtual StrVec get_table_list(dbi_conn conn,
const std::string&
table) = 0;
43 virtual void append_col_def(std::string& ddl,
45 virtual StrVec get_index_list (dbi_conn conn) = 0;
46 virtual void drop_index(dbi_conn conn,
const std::string& index) = 0;
49 using GncDbiProviderPtr = std::unique_ptr<GncDbiProvider>;
51 #endif //__GNC_DBIPROVIDER_HPP__ information required to create a column in a table.
Encapsulate the connection to the database.