Sébastien Rombauts
d535ccb09f
Adding an encapsulation to the statement ref counter : a shared pointer class
2013-03-07 09:00:37 +01:00
Sébastien Rombauts
c94fe1fb4b
This wrapper is not thread safe
2013-03-06 17:25:05 +01:00
Sébastien Rombauts
56aa208f62
copyright 2012-2013
2013-03-06 17:10:01 +01:00
Sébastien Rombauts
560bc958df
Adding a Statement::exec() method to execute a one-step query with no expected result
...
- similar to Database::exec(), but to be used with a SQLite prepared statement, for improved performances
2012-12-10 16:49:36 +01:00
Sébastien Rombauts
e5c6e8dcca
More comments ; exec functions throw exception in case of error
...
+ an example of SQL UPDATE using "exec()" shortcut
2012-12-10 15:14:05 +01:00
Sébastien Rombauts
8b67e71792
Added some more comments and cross references between Database::exec() and Statement::executeStep()
2012-12-10 14:51:37 +01:00
Sébastien Rombauts
5413e43dad
Added comments to the return values of executeStep() that has a not-so-simple behavior
...
- true (SQLITE_ROW) if there is another row ready : you can call getColumn(N) to get it
then you have to call executeStep() again to fetch more rows until the query is finished
- false (SQLITE_DONE) if the query has finished executing : there is no (more) row of result
(case of a query with no result, or after N rows fetched successfully)
2012-12-10 14:30:05 +01:00
Sébastien Rombauts
021f6cfd16
Additional warning on data lifetime
2012-12-06 17:30:02 +01:00
Sébastien Rombauts
0055fcc2db
Updated comments for the heap allocated (thread unsage) mpStmtRefCount ref counter shared between Statement and Column objects
2012-11-27 15:44:42 +01:00
Sébastien Rombauts
ab55e695af
Makefile was outdated
...
- Added Column.o and Transaction.o
- Added more gcc warnings in Makefile
- Fix for those warnings
- Added TODO for improvements
2012-10-26 11:22:13 +02:00
Sébastien Rombauts
cfe042dd41
Added the dealocation of the reference counter
...
- Suppressed the exception that can be thrown in those two destructors:
- Added documentation of those destructors
2012-04-17 10:26:23 +02:00
Sébastien Rombauts
d516ea72c5
Column is again an independant class
2012-04-16 14:59:51 +02:00
Sébastien Rombauts
9c2544ef16
Added a reference counter to the SQLite Statement Object handle
...
- manages its lifespan (tracks ownerchip) across the copy to a Column object
2012-04-16 14:39:51 +02:00
Sébastien Rombauts
17124b3025
Added bind by name methods to the Statement class
...
- v0.2.0
- Added a Changelog file
- Updated the TODO file
2012-04-11 22:37:47 +02:00
Sébastien Rombauts
da95147cfa
Removed the Statement registration list, adding unnecessary extra complexity
2012-04-09 11:30:46 +02:00
Sébastien Rombauts
dce8466f1e
Added a short description on the RAII design
2012-04-04 14:12:38 +02:00
Sébastien Rombauts
00a8e0a642
Moving Column to make it an inner class of Statement
...
- Column must not be used directly, only as a temporary Adapter of Statement::getColumn
- Adding an Object Oriented example in main.cpp
2012-04-02 19:02:45 +02:00
Sébastien Rombauts
4288cb511e
Moving all methods getColumnXxx() to an intermediate Column object
2012-04-02 09:43:36 +02:00
Sébastien Rombauts
39db797186
Database and Statement objects must not be copied
2012-04-02 09:10:18 +02:00
Sebastien Rombauts
9658ee7e16
Added a small private method Statement::check(ret)
...
- Throws a SQLite::Exception with the SQLite error message
2012-04-01 20:53:26 +02:00
Sebastien Rombauts
00d6be86bc
Added getColumnXxx() method to access the result
...
- the wrapper is starting to be usefull
2012-04-01 11:07:03 +02:00
Sebastien Rombauts
0a1520ced0
Added Statement::getColumnCount() and commented out the throw specifications (they are not usefull)
2012-03-31 17:45:40 +02:00
Sebastien Rombauts
abc1f7bfa3
Added binding function, and a simple example with an integer value
2012-03-31 17:33:27 +02:00
Sebastien Rombauts
047cbcf637
Added a SQLite::Exception class based on std::runtime_error
...
- Using SQLite::Exception instead of std::runtime_error
- Adding exception spec everywhere
- Simplifing the Database constructor parameters to simply use "flags"
2012-03-31 16:29:23 +02:00
Sebastien Rombauts
26f5b85c3a
Clenup : dispatching wrapper in Database.* and Statement.* files
2012-03-31 13:52:45 +02:00