442 Commits

Author SHA1 Message Date
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
Sébastien Rombauts
e4e8d9c1d7 Merge #86 from branch 'origin/add-bind-no-copy-pull-request-86' 2016-07-04 18:20:41 +02:00
Sébastien Rombauts
9c03f4e86b Add bindNoCopy() for C-style null-terminated text strings 2016-07-03 16:55:27 +02:00
Sébastien Rombauts
e7384b30a8 Remove unfinished Statement move constructor from PR #86
- see comments in code: needs a move constructor on Statement::Ptr
2016-07-02 14:14:08 +02:00
Sébastien Rombauts
bcdbea2cf8 Style cleanup on top of PR #86 2016-07-02 14:11:02 +02:00
Douglas Heriot
9a07f3918d Fix build on Linux, including cpplint warnings. 2016-07-02 14:05:14 +02:00
Douglas Heriot
a84c04aada Add bindNoCopy methods to allow binding std::string with SQLITE_STATIC.
Should be safe, as long as you can guarantee the std::string exists while executing the query.

Added an accessor to Column that returns a std::string, that can handle BLOB or TEXT values that contain null-bytes.

Also more binding & Column cast support for uint32_t - fixes ambiguous overload errors when using unsigned-integer types.
Note that I didn't use uint64_t, because unsigned 64-bit integers doesn't fit into SQLite (except for using int64_t and dealing with overflow with custom functions).

Added a C++11 move constructor to Statement, to allow storing it inside STL containers (eg. vector).
2016-07-02 14:05:14 +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
a28283f1b8 Update cpplint for int32_t C/C++ types 2016-06-30 21:49:52 +02:00
Sébastien Rombauts
0cdb40d614 Use the new SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION from SQLite 3.13 for security reason 2016-06-30 21:48:40 +02:00
Sébastien Rombauts
94c658d828 Update sqlite3 from 3.12.2 to 3.132 (2016-05-18) 2016-06-30 21:48:08 +02:00
Sébastien Rombauts
c5ca1db62c Print cppcheck version at CMake generation 2016-06-30 21:29:04 +02:00
Sébastien Rombauts
390efbd301 Cleanup unit test for Variadic bind() 2016-06-30 21:28:20 +02:00