In my GUI application the user enters a information that will go in a SQLite
database table, so statements like:

string dbdata = "INSERT INTO friend (name, address, age) VALUES ('Caramba',
'490 New Bridge', '49')";

 

are not very useful in a real life C++ GUI  application. I would assume that
SQLite has functions to submit information in the form of string object  to
a table i.e.:

--snip--

std::string name;

int age;

sqlite3_submit_data_text(db, table, name, ..);

sqlite3_submit_data_int(db, table, age, ..);

 

What is the C++ API for entering data to a table?

 

Thanks!!

 

Freedom of speech does not translate to freedom of insulting

 

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to