int sqlite3_open_v2(
const char *filename, /* Database filename (UTF-8) */
sqlite3 **ppDb, /* OUT: SQLite db handle */
int flags, /* Flags */
const char *zVfs /* Name of VFS module to use */
);
In my Windows 7 box, using MinGW I am trying to use sqlite in my c++ program,
but the parameters used in "int sqlite3_open_v2()" are not totally clear to me
and I hope you are able to help me.
Here is an example of what I would like to do,
void mydb(){
std::string db_name("test");
std::string my_name("Programmer");
int my_age = MAX_INT;
.....
rc = sqlite3_open_v2(db_name.c_str(), *??1*, &db, SQLITE_OPEN_READWRITE |
SQLITE_OPEN_CREATE, *??2*);
if(rc != SQLITE_OK){
std::cout << "error one" << std::endl;
exit(-1);
}
else{ std::cout << "it's working! It's working" << std::endl;}
....
sqlite3_close(db);
cout << "Good bye!" << endl;
return 0;
}
What do I input as *??1* and *??2* ? and do I need to grab ??1 to later use
it?
Thanks folks!
Please note, that I am trying to learn SQL as I learn how to apply this
knowledge in c++, what you see above is pretty much all my knowledge of SQL,
so, go easy on me, OK?
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users