SqliteModernCpp / sqlite_modern_cpp

The C++14 wrapper around sqlite library
MIT License
896 stars 155 forks source link

ability to change database name #206

Open Syn9673 opened 4 years ago

Syn9673 commented 4 years ago

Hello, i was wondering is it possible to change the database name? Since i am using this for a javascript module, Basically what i wanted to do is just maybe allow a default constructor with no arguments passed for sqlite::database so i can change it. Basically like this:

sqlite::database db;

void use_db(string name) {
  db = sqlite::database(name);
}
codethinki commented 10 months ago

idk where you define a database name? you give the wrapper the path to your database there is no name. At least as far as i know