fekir
94ebe5ced6
Add default copy constructor to exception class
...
The throw statement may copy the exception, since exception are thrown by value
Having const members disables the assignment operator
2017-08-19 08:53:01 +02:00
dend
f01a644dc0
Added convenience functions for constructing objects from a row
2017-02-12 22:10:29 -05:00
Jorrit Wronski
dbd31fb56b
Fixed some compiler warnings
2016-12-23 14:57:09 +01:00
Jorrit Wronski
d26bd2cb8a
Added tests for the encrypted database
2016-12-23 14:54:02 +01:00
Sébastien Rombauts
e893575a76
Add unit tests for getLibVersion() and getLibVersionNumber()
2016-07-25 22:20:19 +02:00
Sébastien Rombauts
f77b707206
Revert recent switch from uint32_t/int64_t to use int/unsigned/long/long long and fix #93
2016-07-19 10:56:08 +02:00
Bruno Coelho
f022c6af60
Add option to check if column is null by name
2016-07-15 16:15:34 +01:00
Sébastien Rombauts
401b7361ed
Renamed errmsg() and getErrStr() methods to getErrorMsg() and getErrorStr()
2016-07-13 18:37:22 +02:00
Sébastien Rombauts
fd8f50bdd9
Remove last #include <sqlite3.h> from a header : add a few public constants
...
- Move #include <sqlite3.h> from Exception.h to a new corresponding .cpp
- Add SQLite::OPEN_READONLY...
2016-07-13 17:16:41 +02:00
Sébastien Rombauts
57d991b85e
Complete unit tests for Database::errmsg()
2016-07-08 17:41:35 +02:00
Sébastien Rombauts
67a88298df
Add last missing unit test for Statement: bindNoCopy() by name
2016-07-08 09:05:28 +02:00
Sébastien Rombauts
fe5a615a0d
Add unit tests for Statement bindByName uint32_t and error getters
2016-07-07 23:12:20 +02:00
Sébastien Rombauts
ed052a36bd
Add unit test for bindNoCopy()
2016-07-07 21:53:45 +02:00
Sébastien Rombauts
5056c29f9e
Add unit test for bind() of an uint32_t value
2016-07-07 08:50:49 +02:00
Sébastien Rombauts
d9bc842b66
Add unit test of getString() for blob with null character
2016-07-06 22:18:06 +02:00
Sébastien Rombauts
b033abb3fd
Add unit tests for the new Column getter and cast operator
2016-07-06 21:20:19 +02:00
Sébastien Rombauts
646d25ca95
Switch from sqlite3_int64 to int64_t
2016-07-05 11:05:16 +02:00
Sébastien Rombauts
db7aefb271
Renamed Backup accessors and use a forward declaration to sqlite3_backup
2016-07-05 07:49:38 +02:00
Sébastien Rombauts
4e7c12f629
Add VariadicBind.h from PR #85 to CMake for Visual Studio
...
+ fix style issues (cpplint)
2016-07-02 14:04:39 +02:00
Sébastien Rombauts
390efbd301
Cleanup unit test for Variadic bind()
2016-06-30 21:28:20 +02:00
Sébastien Rombauts
3e56274e69
Add last missing unit-tests to Statement and Transaction
2016-06-30 18:06:51 +02:00
Sébastien Rombauts
c0b2d81db9
Add a unit test for error in exec()
2016-06-30 17:41:23 +02:00
Sébastien Rombauts
249639ca70
Add unit tests for binding parameters by name
2016-06-30 13:19:46 +02:00
Sébastien Rombauts
0c43747065
Add unit tests for statement bindings + removed an assert() for ~Transaction()
2016-06-30 11:35:28 +02:00
Sébastien Rombauts
b913932be2
Add a unit test for transactions
...
+ a few small minor new assert in other tests
2016-06-28 13:17:33 +02:00
Sébastien Rombauts
cda4b89f50
A few more unit tests for backups, statement and database
...
- should get us to 100% on Backup
2016-06-27 17:09:33 +02:00
Sébastien Rombauts
69d9b0805c
Minor new unit tests for backups and database busy timeout
2016-06-27 13:10:09 +02:00
Paul Dreik
808a9c894e
add unit test for variadic bind
2016-06-15 20:39:20 +02:00
Sébastien Rombauts
c53d885393
Update copyright notice to 2016
2016-02-10 10:27:47 +01:00
hongshibao
df995f71a6
Add executeStepException testcase
2015-10-29 00:27:22 +08:00
hongshibao
e8f956be22
Add Backup test
2015-10-28 03:04:13 +08:00
Sébastien Rombauts
09db07ccc7
Updated version to 1.0.0 changelog and copyright date
2015-05-03 23:32:57 +02:00
Sébastien Rombauts
e537195625
Fix #47 setBusyTimeout in constructor
...
- add corresponding Unit Test
2015-05-03 23:32:50 +02:00
Sébastien Rombauts
b9322fb0ab
Example now print SQLite version
2015-05-03 23:32:31 +02:00
Sébastien Rombauts
8797f16d12
Add Statement::getColumnName(aIndex)
...
- enable getting names befor gettings rows of result
2015-05-03 23:32:05 +02:00
Sébastien Rombauts
078365febc
Fix part of issue #34 about 64 bits long with GCC on AMD64
2015-05-03 23:31:02 +02:00
Sébastien Rombauts
f407e4e469
Add unit test for Column names
...
- improve other Column unit test
2015-05-03 23:30:16 +02:00
Sébastien Rombauts
1ed18ce273
Add unit test about Column operators
2015-05-03 23:30:03 +02:00
Sébastien Rombauts
abebb231c6
Add a new test to show persistence in file (on contrary to in memory databases)
2015-05-03 23:29:51 +02:00
Sébastien Rombauts
59ceff2ec2
Deactivate unit test for setBusyTimeout() not supported before SQLite 3.7.15
...
- sqlite3 3.7.9-2ubuntu1 of Ubuntu 12.04 used by Travis CI
2015-05-03 23:29:43 +02:00
Sébastien Rombauts
acaed41465
setBusyTimeout() now uses check() and throw in case of error
...
- add unit test for setBusyTimeout()
- add unit test for in memory databases
2015-05-03 23:29:31 +02:00
Sébastien Rombauts
18620457b1
Add some more Unit Tests
2015-05-03 23:29:22 +02:00
Sébastien Rombauts
7fbfc29677
Fix #23 optimized Statement::getColumn() by name
...
- fix Statement::getColumn(apName) provided by #45 but was not working
instead of using #46 that conflicts with current master
- rework it by using a map of columns name as
a cache populated the first time the method is called
- add corresponding Unit Test
2015-05-03 23:28:41 +02:00
Sébastien Rombauts
b84721aed3
Update copyright date in recently modified files
2015-03-08 22:53:33 +01:00
Sébastien Rombauts
bfdf288d3d
Fix #37 Last error code cannot be accessed
...
+ added corresponding basic unit tests
2015-03-08 15:05:03 +01:00
Sébastien Rombauts
b9a3aeb62f
Fixed unit test warnings under Linux GCC/Clang
2014-03-28 16:27:43 +01:00
Sébastien Rombauts
60b6593998
Completing the first unit test for Statement
2014-03-24 20:29:23 +01:00
Sébastien Rombauts
8fcd6febe8
Fixed unit tests for Statement
2014-03-23 21:40:06 +01:00
Sébastien Rombauts
384fab402a
Some more unit tests for Statement
2014-03-23 21:11:47 +01:00
Sébastien Rombauts
acc894c1d2
Started a unit test for Statement
2014-03-20 22:13:15 +01:00