mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-11-30 17:07:36 +00:00
Added Statement::getColumnCount() and commented out the throw specifications (they are not usefull)
This commit is contained in:
@@ -11,6 +11,7 @@ int main (void)
|
||||
|
||||
// Compile a SQL query, containing one parameter (index 1)
|
||||
SQLite::Statement query(db, "SELECT * FROM test WHERE size>?");
|
||||
std::cout << "SQLite statement compiled (" << query.getColumnCount () << " collumns in the result)\n";
|
||||
// Bind an integer value "6" to the first parameter of the SQL query
|
||||
query.bind(1, 6);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user