2 #include "sqlite3x_settings_db.hpp"
31 return 0 != this->m_db;
67 static std::string SettingsDb_Set_SQL =
"insert into settings values(?,?)";
89 st.
bind( 2, val ? 1 : 0 );
113 st.
bind( 2, val ? val :
"" );
117 void settings_db::init()
119 this->m_db->
executenonquery(
"create table if not exists settings(key PRIMARY KEY ON CONFLICT REPLACE,value)" );
124 static std::string SettingsDb_Get_SQL =
"select value from settings where key = ?";