Patrick Servello
ab012273de
Added example for getHeaderInfo() ( #251 )
2020-01-01 20:22:40 +01:00
Sébastien Rombauts
e6288ee920
Update copyright notice
2020-01-01 08:08:59 +01:00
Sébastien Rombauts
fd7958b809
Release 2.5.0
2019-12-31 21:33:49 +01:00
Patrick Servello
b5c0a08d3d
Added SQLite header parsing functionality and associated tests ( #249 )
...
* Added SQLite header parsing functionality and associated tests
* Removed unused header file.
* Removed an accidental copy pasted remove() statement
* Replaced stdint with plain old C types for now. Will apply fixed with datatypes to cpp11 branch
* Added test scenarios to simulate blank file name, non existant file and a corrupt header
* Refactored exception flow to match latest tidying, brought casts out of function calls and cleared up invalid header exception message
2019-12-30 13:45:51 +01:00
Sébastien Rombauts
54c7a189af
Add a basic unit test to Database::loadExtension() (without a proper extension to test)
2019-12-29 23:49:32 +01:00
Sébastien Rombauts
53860b5ab7
Add SQLITE_HAS_CODEC to CMake options, with the mention of SQLCipher that implements required APIs
2019-12-29 23:33:37 +01:00
Sébastien Rombauts
f9cd39b278
Improve and complete unit tests of Exception
2019-12-29 23:33:37 +01:00
Sébastien Rombauts
ae01dfb895
Minor cleanup on throwing exception in Database
2019-12-29 22:24:07 +01:00
Sébastien Rombauts
dc3f1ac271
Add unit test for Database::createFunction()
...
using an example from
https://stackoverflow.com/a/8283265/1163698 How can I create a user-defined function in SQLite?
2019-12-29 22:22:10 +01:00
Sébastien Rombauts
41cf3c5035
Update SQLite3 from 3.29.0 to 3.30.1 (2019-10-10)
2019-12-29 14:28:42 +01:00
Sébastien Rombauts
c177d908fc
Merge pull request #235 from BioDataAnalysis/emmenlau_add_cmake_exports
...
Added support for cmake dependencies and version information
2019-12-29 14:17:41 +01:00
Sébastien Rombauts
11fab0f4b6
Merge pull request #229 from xvitaly/systemsqlite
...
Explicitly find and link against system sqlite library
2019-12-24 21:16:33 +01:00
Mario Emmenlauer
bd956b025e
Added support for cmake dependencies and version information
2019-12-14 14:06:02 +01:00
Sébastien Rombauts
8329e7a9e4
Merge pull request #231 from xvitaly/add-soversion
...
Added SOVERSION field for shared library
2019-11-25 21:44:17 +01:00
Sébastien Rombauts
ddcc042a10
Merge pull request #232 from xvitaly/system-gtest
...
Added support of packaged GTest for running unit tests
2019-11-25 21:43:00 +01:00
Sébastien Rombauts
f73256922e
Merge pull request #228 from BioDataAnalysis/emmenlau_cmake_add_transitive_compile_definitions
...
CMakeLists.txt: use transitive compile definitions via cmake
2019-11-25 13:37:35 +01:00
Sébastien Rombauts
69c35d0406
Merge pull request #230 from xvitaly/fix-installation
...
Fixed installation on other than Ubuntu GNU/Linux distributions
2019-11-25 13:01:35 +01:00
Vitaly Zaitsev
395c0478ef
Explicitly find and link against system sqlite library.
...
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 11:36:21 +01:00
Vitaly Zaitsev
2951ee6bed
Added support of packaged GTest for running unit tests.
...
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 11:19:58 +01:00
Vitaly Zaitsev
1a6d4c44b1
Added SOVERSION field for shared library.
...
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 10:54:41 +01:00
Vitaly Zaitsev
81f04d30a9
Fixed installation on other than Ubuntu GNU/Linux distributions.
...
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-11-25 10:28:18 +01:00
Mario Emmenlauer
24564cf9a9
.travis.yml: set the build to verbose in travis to have better control over build instructions in CI
2019-11-18 11:12:57 +01:00
Mario Emmenlauer
ff72393658
CMakeLists.txt: use transitive compile definitions via cmake target_compile_definitions()
2019-11-18 11:12:57 +01:00
Sébastien Rombauts
5b5ca1471b
Merge pull request #219 from zxey/patch-1
...
Disable cast-function-type warning when building internal sqlite
2019-11-18 09:59:41 +01:00
Richard Hozák
c9e5b080cb
Disable cast-function-type warning when building internal sqlite
...
Disables cast-function-type warning which is available in gcc 8.0 and greater.
2019-09-04 14:54:25 +02:00
jzt
629497ed60
fix set sqlite3 propertie ( #212 )
2019-08-26 07:27:51 +02:00
Sébastien Rombauts
9864f9efee
Update changelog for release 2.4.0
2019-08-25 22:13:34 +02:00
Sébastien Rombauts
8015952b93
Fix #216 Set PROJECT_VERSION to fix CMP0048 Policy warnings
2019-08-25 21:38:39 +02:00
Sébastien Rombauts
85c1bf348b
Update SQLite3 to 3.29.0 (2019-07-10) to fix #217
2019-08-25 21:17:30 +02:00
Richard Hozák
ce4eb187a4
Disable implicit fallthrough warning when building internal sqlite3 ( #215 )
...
-Wimplicit-fallthrough is available in gcc 7.0 and greater.
2019-08-14 08:02:15 +02:00
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
maxbachmann
3ba20a3519
Improve execute many and fix GCC 9 Build by explicitly scoping SQLiteCpp::bind()
...
Fix #206 #207
2019-06-27 21:44:03 +02:00
Sébastien Rombauts
a637d24764
Add GCC 8 and GCC 9 in the Travis CI build matrix
2019-06-24 22:16:05 +02:00
Sébastien Rombauts
49c1f6c08d
Rename Statement::getExpandedSQL() from #201 and fix #203 #205 memory leak
2019-06-24 22:01:54 +02:00
Sébastien Rombauts
a68397c7ac
Add address sanitizer as an option for GCC & Clang
...
Add corresponding option SQLITECPP_USE_ASAN
Also formalize previously existing SQLITECPP_USE_GCOV option
2019-06-24 22:01:54 +02:00
Sébastien Rombauts
9b00034b06
Merge pull request #201 from os12/master
...
Add Statement::getExtendedSQL()
2019-06-18 20:24:33 +02:00
Oleg Smolsky
7dba62bcf1
Added a minimal test for Statement::getExtendedSQL()
...
- there is nothing conditional here in the wrapper
2019-06-18 09:42:35 -07: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
08a73ce90b
Fix #156 Misleading error message in exception from Statement::exec
...
Fix #199
the problem is that tryExecuteStep returns SQLITE_MISUSE when it was not used properly. Since this is set manually this is not the error state of the statement, so when checking the error message of the statement there obviously is none, since there was no error.
fixes this problem by checking whether the error code is the same as the error state of the statement
2019-06-16 15:20:08 +02:00
maxbachmann
b38e88decb
add tuple_bind and execute_many ( #197 )
...
added the option to use a tuple with values to bind.
use this to implement executeMany as described in #24 , so it will be possible to pass multiple tuples
2019-06-16 10:46:21 +02:00
Oleg Smolsky
ce45099695
Add Statement::getExtendedSQL()
...
- it returns a UTF-8 string containing the SQL text of prepared statement with
bound parameters expanded
2019-06-15 10:27:30 -07:00
maxbachmann
7738989228
Update Statement.cpp
2019-05-21 17:51:56 +02:00
maxbachmann
81913790f2
Update VariadicBind.h for C++11 instead of C++14 ( #196 )
...
* Update VariadicBind.h
* replace c++14 by c++11
* activate tests for c++11
* replace string_literals for c++11 support
2019-05-16 08:41:29 +02:00
Sébastien Rombauts
bb8c0ef0f2
Update SQLite3 from 3.27.2 to 3.28.0 (2019-04-16)
...
https://www.sqlite.org/releaselog/3_28_0.html
2019-04-30 22:27:17 +02:00
Sébastien Rombauts
7db3077426
Merge pull request #194 from Linux13524/fix/msvc19
...
Fix problem with snprintf macro in MSVC 2019
2019-03-30 13:55:57 +01:00
Linus Klöckner
65ecffba01
Fix problem with MSVC 19
...
"error C2039: '_snprintf': is not a member of 'std'"
2019-03-30 11:14:39 +01:00
Sébastien Rombauts
50425142fe
Fix Statement destructor since addition of the move constructor
2019-03-05 07:15:06 +01:00
Sébastien Rombauts
f2b1017710
Add a Statement::Ptr move constructor to fix leak because of ref counter incremented on copy
2019-03-05 00:20:06 +01:00
KOLANICH
13c5d4f00c
Added .editorconfig
2019-03-04 20:57:31 +01:00