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
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
KOLANICH
b98eabbe9f
Moved some functions from sources into headers.
2019-12-26 11:54:23 +03:00
KOLANICH
55d39591ac
Improved code reuse.
2019-12-26 11:54:18 +03:00
KOLANICH
5ff189a69c
Added a getIndex
method and used it.
2019-12-26 11:53:51 +03: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