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
Sébastien Rombauts
a7d9456f05
Re-enable Coverity static analysis
...
Manual execution of travisci_build_coverity_scan.sh as a workaround for not building on every job of the build matrix
2020-01-05 12:04:26 +01:00
Sébastien Rombauts
852d66d631
Travis CI build status ?branch=master
2020-01-04 22:31:56 +01:00
Sébastien Rombauts
3757998c16
Improve test coverage of Database: improve tests & remove a variant of createFunction()
2020-01-04 22:28:55 +01:00
Sébastien Rombauts
0fd0746863
Merge pull request #253 Keep inline functions for GCov code coverage
...
Keep inline functions for GCov code coverage
2020-01-04 22:18:57 +01:00
Sébastien Rombauts
a879fbbe9f
Add -fkeep-inline-functions COMPILE_FLAGS to SQLiteCpp
...
Prevent the compiler from removing the unused inline functions so that they get tracked as "non-covered"
This will reduce the current coverage from (incorrect) 100% to realistic 9%"
2020-01-04 22:18:10 +01:00
Sébastien Rombauts
dcc623d745
Remove some redundant inline keywords
2020-01-04 20:46:11 +01:00
Sébastien Rombauts
d4bafc0e68
Merge pull request #252 Run Valgrind memcheck on Travis CI from SRombauts/travis-valgrind
...
Run Valgrind memcheck on Travis CI
2020-01-04 19:20:40 +01:00
Sébastien Rombauts
4f4d833868
Add a new non static variant for getHeaderInfo() (TODO: need unit tests)
2020-01-04 19:11:24 +01:00
Sébastien Rombauts
ddb4929ddb
Fix and improve read-header unit tests, as well as backup tests
2020-01-04 19:10:32 +01:00
Sébastien Rombauts
55de873f66
Fix Database::getHeaderInfo() for case where the file is not even 100 bytes long
2020-01-04 18:54:27 +01:00
Sébastien Rombauts
5a1fa743e5
Add Valgrind to Travis CI, and improve the build Matrix with more variables
...
Should detect the slight bug we currently have in our test of Database read header
2020-01-04 18:07:29 +01:00
Sébastien Rombauts
c06db7f48b
editorconfig: only 2 space indentation for YAML CI configuration files
2020-01-04 17:38:16 +01:00
Sébastien Rombauts
9ea0cffc15
Replace Database::backup() "C" implementation by calling the Backup class
2020-01-03 22:58:42 +01:00
Sébastien Rombauts
92ff87be60
Conversion of sqlite3* Database::mpSQLite to a std::unique_ptr with a custom Deleter
...
I might switch to a std::shared_ptr to share it with Statement objects if more appropriate
2020-01-03 22:56:13 +01:00
Sébastien Rombauts
da4d692c13
Start a new 3.x branch requiring C++11 and CMake 3.1
...
- Remove support for Visual Studio < 2015
- Remove Statement::isOk() deprecated in 2.2.0 and renamed to Statement::hasRow()
2020-01-02 00:04:06 +01:00
Sébastien Rombauts
8e0bd6b3fe
Add a simple Github Actions workflow build script
2020-01-02 00:04:06 +01:00
Sébastien Rombauts
3c60b8ce3c
Travis CI: reworking the whole compiler matrix from scratch
2020-01-02 00:04:06 +01:00
Sébastien Rombauts
8dbdbcac77
editorconfig: 2 space indentation for CI configuration
2020-01-02 00:04:06 +01:00
Sébastien Rombauts
a8a1a2ee44
Update Googletest to Release 1.10
...
Drop support for Visual Studio 2013
2020-01-02 00:04:06 +01:00
Sébastien Rombauts
5a4bc77b39
Add Visual Studio 2019 to AppVeyor configuration matrix
2020-01-02 00:04:06 +01:00
Sébastien Rombauts
f298ee2e0d
Fix logs of char fields of header on example for getHeaderInfo() ( #251 )
...
Need cast to int to not be displayed as a character
2020-01-01 20:43:59 +01:00
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