650 Commits

Author SHA1 Message Date
Tiger Wang
b1f67393fd It's the sqlite3 library that needs threads 2021-06-24 20:52:28 +01:00
Peter Bell
a25ffb56ab Fix sqlite3 target includes for build interface 2020-09-28 23:29:48 +01: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
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
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
Sébastien Rombauts
a0f72c7797 Hide logs of goto in windows build.bat script 2020-01-12 22:11:38 +01:00
Sébastien Rombauts
9108bbb60f Add CMake messages about Googletest link / compilation 2020-01-12 22:07:23 +01:00
Sébastien Rombauts
eadd166d75 Fix a warning testing return of strncmp 2020-01-12 22:05:53 +01:00
Sébastien Rombauts
a99d48d3c0
Merge pull request #257 from SRombauts/statement-unit-tests
Improve Statement unit tests coverage (bind by name with a std::string)
2020-01-09 15:01:36 +01:00
Sébastien Rombauts
cb421a8518
Merge pull request #242 from KOLANICH/efficiency_1
- Added a `getIndex` method and used it.
- Improved code reuse.
- Moved some functions from sources into headers.
2020-01-09 14:09:39 +01:00
Sébastien Rombauts
f70374262d Improve Statement unit tests coverage (bind by name with a std::string) 2020-01-09 14:00:58 +01:00
Sébastien Rombauts
97b2a070ed Update the changelog with recent improvements 2020-01-07 23:17:38 +01:00
Sébastien Rombauts
ab8ff7376c Fix linking with system library (libsqlite3)
Add FindSQLite3 from CMake v3.14 in cmake subdir custom CMake modules like FindSQLiteCpp
Add this cmake subdir to CMAKE_MODULE_PATH
Add a Travis CI build configuration using the libsqlite3-dev packagee from the Linux/Ubuntu distribution
2020-01-07 22:09:29 +01:00