sqlite_modern_cpp icon indicating copy to clipboard operation
sqlite_modern_cpp copied to clipboard

ability to change database name

Open Syn9673 opened this issue 4 years ago • 1 comments

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);
}

Syn9673 avatar Jun 07 '20 09:06 Syn9673

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

codethinki avatar Dec 15 '23 18:12 codethinki