404 Commits

Author SHA1 Message Date
Jorrit Wronski
685ff293c5 moved the key handling to a new function, added a check for an encrypted database 2016-12-22 17:52:06 +01:00
Jorrit Wronski
611ab22458 Added ability to open encrypted databases. 2016-12-01 23:37:22 +01:00
Sébastien Rombauts
b6512c4c6f Merge pull request #102 from Nemo1369/master
Remove redundant const specifier
2016-09-09 13:44:36 +02:00
Mikhail Komarov
51885d7aa6 Redundant const specifier removed 2016-09-09 13:31:36 +03:00
Sébastien Rombauts
6d1806b2e4 Merge pull request #100 from Asriwi/master
Link libssp when targetted
2016-09-02 18:29:27 +02:00
Sébastien Rombauts
343a3ca907 Update README to mention the new "SQLiteCpp_Example" side repository 2016-09-02 18:21:51 +02:00
Sébastien Rombauts
c5bc2d80cc Fix broken build.sh (missing "fi") 2016-09-02 17:34:27 +02:00
Ashley Williams
acbad05257 Revert linking ssp in SQLiteCpp and link ssp in the example project for MSYS and MINGW 2016-08-30 20:06:05 +01:00
Ashley Williams
4b4bc3f17a Link libssp when targetted 2016-08-29 18:50:28 +01:00
Sébastien Rombauts
d04c8699d2 Apply code style 2016-08-05 07:56:20 +02:00
Sébastien Rombauts
bfd8bb2c63 Merge pull request #96 from couchbasedeps/master
Fixed link errors calling Exception::getErrorCode()
2016-08-05 07:50:31 +02:00
Jens Alfke
30e285ff89 Fixed link errors calling Exception::getErrorCode()
getErrorCode() and getExtendedErrorCode()'s implementations were
accidentally declared as inline in the .cpp file. This causes the
compiler to not generate any code for them, resulting in link errors
when a client calls them.

Fixed by moving the implementations into the header, where they need to
be if they're inline.
2016-08-04 16:36:09 -07:00
Sébastien Rombauts
9d1ea82313 Fix #95: rewrite old instruction about adding SQLiteCpp as a CMake subdirectory 2016-08-02 16:24:31 +02:00
Sébastien Rombauts
1470735e94 Switch googletest submodule to latest commit of github.com/google/googletest.git 2016-08-01 22:29:40 +02:00
Sébastien Rombauts
b99e8c62e9 Cleanup Travis CI configuration 2016-07-26 21:58:52 +02:00
Sébastien Rombauts
da725ed1cf Fix compiler warning (unused variable) 2016-07-26 17:44:24 +02:00
Sébastien Rombauts
2b384d1441 Fix #94 warning: "'extern' variable has an initializer" 2.0.0 2016-07-26 07:39:35 +02:00
Sébastien Rombauts
53c727c68d Update version to 2.0.0 2016-07-25 22:21:04 +02:00
Sébastien Rombauts
e893575a76 Add unit tests for getLibVersion() and getLibVersionNumber() 2016-07-25 22:20:19 +02:00
Sébastien Rombauts
648ffe01e8 Add Database::VERSION, getLibVersion() and getLibVersionNumber()
Usefull to get SQLite3 version without including sqlite3.h in application code
2016-07-25 21:53:47 +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
Sébastien Rombauts
93dd526341 Fix issue #92: force MSVC to use static runtime only if unit-tests are build
googletest recommend using this runtime
2016-07-19 08:30:01 +02:00
Sébastien Rombauts
2b36f52b6e Add an explicit CMake error message on missing googletest submodule
- build.bat now exit on error instead of trying to build or run tests
2016-07-18 18:20:40 +02:00
Sébastien Rombauts
223c14139b Minor comment style cleanups 2016-07-16 17:04:49 +02:00
Sébastien Rombauts
7983b81f75 Mutualize code between getColumn(name) and isColumnNull(name) with a getColumnIndex(name)
- mColumnNames is mutable so that getColumnIndex() and isColumnNull() can be const
2016-07-16 16:33:44 +02:00
Sébastien Rombauts
73c3417aa7 Try to clone googletest on AppVeyor again 2016-07-16 16:15:16 +02:00
Sébastien Rombauts
8b064a22a4 Doxygen now output warnings formated for MSVC by default
(and easy to comment back to GCC like warnings)
2016-07-16 16:14:43 +02:00
Sébastien Rombauts
5ee34521ba Merge pull request #91 from 4brunu/master
Add option to check if column is null by name
2016-07-15 18:24:45 +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
91abc3cb44 Remove unused Exception constructor 2016-07-13 18:32:44 +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
2fbdfa4d37 Merge pull request #90 from 4brunu/master
Automatically propagate public headers to other projects with CMake
2016-07-11 17:58:58 +02:00
Bruno Coelho
d78c4d5713 Automatically propagate public headers to other projects with CMake 2016-07-11 11:32:26 +01:00
Sébastien Rombauts
57d991b85e Complete unit tests for Database::errmsg() 2016-07-08 17:41:35 +02:00
Sébastien Rombauts
fb5508921a Move #include <sqlite3.h> from Database.h to the .cpp 2016-07-08 17:07:59 +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
8275c7fb29 Move #include <sqlite3.h> from Statement.h to the .cpp 2016-07-07 08:43:32 +02:00
Sébastien Rombauts
4dd7b84dc0 Update changelog with recent additions 2016-07-06 22:21:54 +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
2abcf45bb9 Remove Column::errmsg() method : use Database or Statement equivalents 2016-07-06 21:41:04 +02:00
Sébastien Rombauts
300f278281 Move #include <sqlite3.h> from Column.h to the .cpp 2016-07-06 21:20:19 +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
a2abbf1d96 Fix Doxygen comments 2016-07-05 08:02:23 +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
9fa00ea5ed Fix wrong version in Doxygen config file 2016-07-04 18:22:28 +02:00