809 Commits

Author SHA1 Message Date
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
Sébastien Rombauts
0903df8b4f Add a docs/ directory with a copy of the README.md for Github web page 2020-01-30 21:12:26 +01:00
Sébastien Rombauts
5fd6b9c9b3
Merge pull request #269 from BioDataAnalysis/emmenlau_add_simple_cpp11
CMakeLists.txt: Make c++11 optional unless building tests
2020-01-30 14:25:23 +01:00
Mario Emmenlauer
b5efb40ad7 CMakeLists.txt: Better handling of c++ standard. Set base level to c++11, but allow other versions 2020-01-30 13:03:43 +01:00
Sébastien Rombauts
adad71b1db Add an example2 based on SQLiteCpp_Example repository
Demonstrates how to use SQLiteCpp as a subdirectory (out of tree) of a CMake project.
2020-01-29 23:29:13 +01:00
Sébastien Rombauts
801ed9106d Remove duplicate target_include_directories() where /include is now public
Thanks to @emmenlau
2020-01-29 22:28:20 +01:00
Sébastien Rombauts
76bd3b2f54 Fix #267 'SQLiteCpp/SQLiteCpp.h' file not found
Issue introduced by Commit a166062c Significantly improved support for external sqlite3, and generalized thread and dl libs on Unix/Linux/Mac
2020-01-29 21:57:43 +01:00
Sébastien Rombauts
ffc1a3ef65 Fix the SQLITECPP_PURE_FUNC macro to actually use the correct "pure" attribute 2020-01-14 10:31:27 +01:00
Sébastien Rombauts
13759e15ef
Merge pull request #243 adding a pure attribute to getIndex() from KOLANICH/efficiency_2
Efficiency - adding a pure attribute to getIndex()
2020-01-14 09:43:13 +01:00
Sébastien Rombauts
91fe2d75f5
Merge pull request #234 support for external sqlite3 from BioDataAnalysis/emmenlau_support_external_sqlite
Added support for external sqlite3
2020-01-13 22:23:37 +01:00
Mario Emmenlauer
a166062c18 Significantly improved support for external sqlite3, and generalized thread and dl libs on Unix/Linux/Mac 2020-01-13 21:12:25 +01:00
KOLANICH
51bd6d66ea Added a pure method. Should improve efficiency 2020-01-13 12:56:14 +03:00
Sébastien Rombauts
8485bb7d29 Add comments and TODO in Travis CI build matrix 2020-01-12 22:12:10 +01:00