39 Commits

Author SHA1 Message Date
Sébastien Rombauts
c1ab7075f4 Fix compilation of new enum Database::BackupType for C++98 2019-07-09 09:37:05 +02:00
Oleg Smolsky
514d7d6846 Implement Database::backup() (#211)
Easily backup/restore a live DB via the sqlite3_backup_init() API
 - https://www.sqlite.org/backup.html
 - https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupinit

Use the reference implementation from the documentation
2019-07-09 09:35:31 +02:00
Sébastien Rombauts
1eda5c751c Minor cleanup of the codebase, mostly putting braces on their own line in unit tests 2019-06-16 15:48:57 +02:00
Sébastien Rombauts
af8e2cea9e Unit test using a Builder function to showcase the Database move contructor 2019-03-04 08:36:19 +01:00
Sébastien Rombauts
678562e727 Implement Database move constructors for MSVC #190
Added checks to proper _MSC_VER 1600 (VS2010)
2019-03-03 22:02:58 +01:00
Sébastien Rombauts
804879d27d Revert OLD cmake policy & tested commented out 2019-03-02 23:46:59 +01:00
Sébastien Rombauts
2cb3cb2fef Update copyright notice 2019-03-02 15:46:53 +01:00
Jorrit Wronski
890155363c CMake compatibility (#170)
* Added compatibility with older and newer CMake versions, fixed an issue with the SQLite SEE tests
* Fixed include directory handling
* Add comments
2019-02-13 08:32:53 +01:00
Sébastien Rombauts
d020c5f694 Update copyright notices to 2018 2018-01-24 11:26:38 +01: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
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
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
Sébastien Rombauts
c53d885393 Update copyright notice to 2016 2016-02-10 10:27:47 +01: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
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
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
d69045f3fc Unit test for Database SQLite::Exception 2014-03-15 21:30:28 +01:00
Sébastien Rombauts
f3e9a779a1 Added a test for Database::execAndGet() 2014-03-14 20:44:00 +01:00
Sébastien Rombauts
f3023c0b62 Fixed Travis test for SQLite < 3.7.11
- Ubuntu 12.04 LTS uses SQLite 3.7.9
2014-03-13 23:01:15 +01:00
Sébastien Rombauts
268b111817 Added a Database::getTotalChanges() method and unit test 2014-03-13 21:59:06 +01:00
Sébastien Rombauts
3af95da230 Added comments and test arround Database::exec() method 2014-03-13 21:44:07 +01:00
Sébastien Rombauts
8d87e80b75 Added a first test of insertion 2014-03-12 19:46:14 +01:00
Sébastien Rombauts
d9aa889898 Fixed a GCC warning on Unit Test 2014-03-10 15:25:24 +01:00
Sébastien Rombauts
b25b71bdd8 Test Database exec : CREATE/DROP/EXIST table 2014-03-09 11:05:50 +01:00
Sébastien Rombauts
24bca5a215 Clenup after Database test
- Close the DB before trying to remove it
 - Removed a few line in TODO.txt
2014-03-09 08:58:10 +01:00
Sébastien Rombauts
64b35bbd4e Add a basic Database unit test 2014-03-06 20:04:00 +01:00
Sébastien Rombauts
9a17223ede Add a basic Database unit test 2014-03-05 21:15:14 +01:00
Sébastien Rombauts
7bfaafecba Moved include files out of the src/ dir, to an include/ dir
+ started a void test file
2014-03-04 23:04:38 +01:00