921 Commits

Author SHA1 Message Date
Sébastien Rombauts
9b6c0cf6ea
Merge pull request #295 Compile internal SQLite library with -ffunction-sections from smichaku/smichaku/sqlite-function-sections 2021-01-06 10:53:43 +01:00
Sébastien Rombauts
79b5d0dfe9
Update SQLite3 from 3.33.0 to 3.34.0 (2020-12-01) 2021-01-06 10:45:46 +01:00
Sébastien Rombauts
93580bda24 Fix the compilation of example2 on latest MSVC 2021-01-06 10:41:20 +01:00
Sébastien Rombauts
c101d4490f Updated SQLite3 from 3.33.0 to 3.34.0 (2020-12-01) 2021-01-06 10:02:45 +01:00
Patrick Servello
81e5a1f910
Add Database constructor for filesystem::path #296 (#314)
* Add Database constructor for filesystem::path #296

* Fixed incorrect MSVC version value for C++17

* Updated another incorrect version string

* Updated MSVC compiler check again. The <filesystem> header wasn't transitioned from std::experimental until MSVC 15.7

* Changed version check to look at c++ version no MSVC version
2021-01-06 08:41:32 +01:00
Sébastien Rombauts
080bfbda57
Merge pull request #313 [CMake] Add SQLITECPP_INCLUDE_SCRIPT option from past-due/master 2021-01-04 09:04:49 +01:00
past-due
113d43f561 [CMake] Add SQLITECPP_INCLUDE_SCRIPT option 2020-12-11 18:41:43 -05:00
Sébastien Rombauts
3fcb352c3a Update changelog 2020-11-27 18:40:52 +01:00
Sébastien Rombauts
845f315ab3
Merge pull request #311 Add Database::tryExec() from kcowolf/master 2020-11-25 17:25:30 +01:00
Sébastien Rombauts
721b245045
Merge pull request #308 Fix build warning due to string truncation from stauffer-garmin/master 2020-11-18 08:36:34 +01:00
Sébastien Rombauts
3e354046e1
Merge pull request #236 Disable explicit setting of MSVC runtime from BioDataAnalysis/emmenlau_remove_msvc_runtime_setting 2020-11-18 08:27:50 +01:00
Benjamin Stauffer
1d0d8fe446 Add Database::tryExec()
Similar to Statement::tryExecuteStep(), allows calls to sqlite3_exec()
with the caller assuming responsibility for checking and handling the
returned status.
2020-11-12 02:05:05 -06:00
Ben Stauffer
0ae04a60d9 Fix build warning due to string truncation
strncpy gives an "output may be truncated" warning in newer versions of
GCC due to *pBuf being larger (100) than *pHeaderStr (16).  Use memcpy
and explicitly null-terminate the target string.
2020-11-09 17:13:50 -06:00
Luke Pitt
503afc396c Add other constants that work with sqlite3_open_v2 2020-10-08 12:48:42 +01:00
Sébastien Rombauts
adb7e7c489
Merge pull request #300 Update SQLite3 from 3.32.3 to 3.33.0 (2020-08-14) from catalogm/update_sqlite3 2020-09-12 21:06:44 +02:00
Kelvin Hammond
61bdad3aae Added test for Savepoint, calling rollback after release or commit 2020-09-10 19:03:00 -04:00
Kelvin Hammond
ee6762c0d9 Added: Savepoint support 2020-09-10 18:59:08 -04:00
Kelvin Hammond
9875a7591a Updated SQLite3 from 3.32.3 to 3.33.0 (2020-08-14) 2020-09-10 18:54:32 -04:00
Micha Kalfon
6f9075d511 Compile internal SQLite library with -ffunction-sections
When building with SQLITECPP_INTERNAL_SQLITE=ON the SQLite amalgamation
source is used for generating the library. Using one big source file
means all the library code will be put in a single section. When
building statically linked executables the entire section will be
linked even if a small portion of the library is actually used.

This commit addresses this issue by setting the -ffunction-sections
compiler option when building the library. As each function is placed in
a section of its own the linker, when passed the --gc-sections, will
throw away unused sections (functions) and reduce the executable size.
2020-08-23 13:05:25 +03:00
Sébastien Rombauts
4e3d36af2d Release 3.1.1 2020-08-19 18:02:41 +02:00
Sébastien Rombauts
a6bb7bcc8f
Merge pull request #293 Remove FindSQLiteCpp.cmake from sum01/fix_283 2020-08-19 14:24:04 +02:00
sum01
72c4983056
Remove FindSQLiteCpp.cmake
It's not needed since the automatically generated file
SQLiteCppConfig.cmake already exists.

Added a small section to the README to explain how it can be used when
this library is installed to the system.

Fixes #283
2020-08-18 15:15:53 -04:00
Sébastien Rombauts
cc2e488d1a
Merge pull request #291 Add OPEN_FULLMUTEX flag into Database.h file from rwrx/fullmutex-flag 2020-08-12 00:03:55 +02:00
Sébastien Rombauts
b93de0a42e
Merge pull request #292 Fix compilation if using SQLITE_HAS_CODEC from sum01/fix_sqlcipher_compile 2020-08-11 22:00:09 +02:00
sum01
15b307a099
Fix compilation if using SQLITE_HAS_CODEC
It was failing to compile since it wasn't linking against the sqlcipher
library if using the system libraries. This fix simply links the library
& includes the header path.

PkgConf is optional in this process, and it will fall back to regular
search for header & lib if it's not installed.
2020-08-11 15:20:45 -04:00
Tomas Vajda
27f2cd2a7b Add OPEN_FULLMUTEX flag into Database.h file 2020-08-11 18:40:08 +02:00
Sébastien Rombauts
80b58170a8 Release 3.1.0 2020-08-11 17:05:57 +02:00
Sébastien Rombauts
c88a0adafd Update SQLite3 from 3.32.1 to 3.32.3 (2020-06-18) 2020-08-11 16:59:37 +02:00
Sébastien Rombauts
d2be4c84bf
Merge pull request #287 Fixed installation on other than Ubuntu distributions from xvitaly/fix-installation 2020-08-03 16:07:32 +02:00
Sébastien Rombauts
36cf2cb57b
Merge pull request #288 Allow building of sqlite JSON1 extension when building internal sqlite library from zxey/feature-json1-extension 2020-08-03 16:06:20 +02:00
zxey
0d2294e36f Allow building of sqlite JSON1 extension when building internal sqlite library 2020-07-29 14:38:26 +02:00
Vitaly Zaitsev
f9caf62ac8
Fixed installation on other than Ubuntu distributions.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2020-07-21 11:44:02 +02:00
Sébastien Rombauts
9106e8da0a
Add CMake option to toggle stack protection #286 from chrisdalke/master
Add CMake option to toggle stack protection
2020-07-12 09:28:17 +02:00
Chris Dalke
1aa82864ce Add CMake option to toggle stack protection hardening 2020-07-11 23:09:38 -04:00
Sébastien Rombauts
f757b640b1
Merge pull request #284 Add SQLITE_OPEN_FULLMUTEX flag from rwrx/fullmutex-flag 2020-06-05 22:48:53 +02:00
Tomas
8ecadfd629 Add SQLITE_OPEN_FULLMUTEX flag 2020-06-04 14:45:47 +02:00
Sébastien Rombauts
6a5a24f9a9 Fix FindSQLiteCpp for find_package(SQLiteCpp) to work without any requested version 2020-06-01 16:23:22 +02:00
Sébastien Rombauts
7edd337591 Update SQLite3 from 3.30.1 to 3.32.1 (2020-05-25) 2020-06-01 13:25:50 +02:00
Peter Bell
afa11d94e0 Link SQLite3 publicly 2020-06-01 11:50:06 +01:00
Sébastien Rombauts
f0cd9e3586
Merge pull request #278 from sum01/fix_cmake_config
Add missing Threads dependency to Config.cmake.in
2020-05-14 21:02:59 +02:00
sum01
42f476d918
Add missing Threads dependency to Config.cmake.in
Without this, systems that linked against Threads::Threads (namely
Linux) don't "just work" with find_package(SQLiteCpp), but instead
require you to find & link against Threads manually.

So this fixes that by finiding it for you, if it was used.
2020-05-14 13:50:31 -04:00
Peter Bell
fd569f58a6 Make SQLite includes private 2020-05-08 12:54:40 +01:00
Peter Bell
7cfe26ee9f Fix include scoping issues with sqlite3 2020-05-08 12:35:01 +01:00
Sébastien Rombauts
a5e1c70883
Merge pull request #275 Add a method on Statement to get the declared type of a column. from daniel-schmidt/master 2020-03-27 08:09:20 +01:00
Daniel Schmidt
0c9d4a3f36 Improved name of new function, documentation and tests. 2020-03-26 09:19:27 +01:00
Daniel Schmidt
9dee407ff0 Added unit tests for new function on statements. 2020-03-25 16:20:10 +01:00
Daniel Schmidt
98aff92081 Implemented getDeclaredType with documentation. 2020-03-16 15:26:30 +01:00
Sébastien Rombauts
01cf6f2d2a
Merge pull request #274 Install both cmake files into same lib directory from tcraigtyler/master
Install cmake files into same directory
2020-02-11 07:46:00 +01:00
Craig Tyler
9ef6dd5391
Install cmake files into same directory 2020-02-10 17:03:38 -08:00
Sébastien Rombauts
be1a8eeace Release 3.0.0 2020-01-31 09:43:28 +01:00