Added getLastInsertId() and detBusyTimout()

- corrected the VS2008 project
- updated the TODO file
This commit is contained in:
Sebastien Rombauts 2012-04-09 21:17:45 +02:00
parent cc08116ccb
commit 49f91bae6f
3 changed files with 31 additions and 2 deletions

View File

@ -2,8 +2,6 @@ Add a comparison of others C++ wrappers (code style, C++ design, in code documen
Missing features :
- Bind(Name)
- LastInsertId
- SetBusyTimout
- getColumnByName ? std::map getRow() ?
- operator<< binding ?
- execScalar() easy wrapper like CppSqlite
@ -13,6 +11,9 @@ Missing features :
- Function ?
- Agregate ?
- ATTACH Database ? can already be done by "ATTACH" Statement
- :memory: ? can already be done by Database constructor with ":memory:" filename
Add a full test suite
Add optionnal usage of experimental sqlite3_trace() function to enable statistics

View File

@ -205,6 +205,14 @@
RelativePath=".\src\SQLiteC++\Statement.h"
>
</File>
<File
RelativePath=".\src\SQLiteC++\Transaction.cpp"
>
</File>
<File
RelativePath=".\src\SQLiteC++\Transaction.h"
>
</File>
</Filter>
<Filter
Name="example1"

View File

@ -68,6 +68,26 @@ public:
*/
int exec(const char* apQueries); // throw(SQLite::Exception);
/**
* @brief Set a busy handler that sleeps for a specified amount of time when a table is locked.
*
* @param[in] aTimeoutMs Amount of milliseconds to wait before returning SQLITE_BUSY
*/
inline int Database::setBusyTimeout(int aTimeoutMs) // throw(); nothrow
{
return sqlite3_busy_timeout(mpSQLite, aTimeoutMs);
}
/**
* @brief Get the rowid of the most recent successful INSERT into the database from the current connection.
*
* @return Rowid of the most recent successful INSERT into the database, or 0 if there was none.
*/
inline sqlite3_int64 Database::getLastInsertRowid(void) const // throw(); nothrow
{
return sqlite3_last_insert_rowid(mpSQLite);
}
/**
* @brief Filename used to open the database
*/