mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Added getLastInsertId() and detBusyTimout()
- corrected the VS2008 project - updated the TODO file
This commit is contained in:
parent
cc08116ccb
commit
49f91bae6f
5
TODO.txt
5
TODO.txt
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user