966 Commits

Author SHA1 Message Date
Sergei Trofimovich
a534d50580 tests/Database_test.cpp: fix a warning around #endif
Without the change `gcc` detects unexpected tokens as:

    /build/source/tests/Database_test.cpp:566:9: warning: extra tokens at end of #endif directive [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wendif-labels-Wendif-labels8;;]
      566 | #endif  && !defined(__APPLE__)
          |         ^~
2024-09-07 14:35:10 +01:00
Sébastien Rombauts
52b24b9a37
Add logic to use different FindPackage for python if cmake is above 3.12 (#454)
find_package(PythonInterp) has been deprecated since cmake 3.5 and is
throwing a warning as of 3.27 (maybe earlier). Since the minimum
required version is 3.5 for this repo, added a branch to use the
appropriate find_package depending on the version.

Tested with 3.27 (above the split) and 3.10.x (below the split). Both
were successful for me (ubuntu:18.04 & 22.04).
2024-08-20 21:37:12 +02:00
Sébastien Rombauts
69771bf222
Test linking with builtin libsqlite3-dev package on Ubuntu (#485) 2024-08-19 08:58:20 +02:00
Sébastien Rombauts
0f8d9125d9 NOTE on macOS FindSQLite3 find an unrelated sqlite3.h from Mono.framework that doesn't match the actual package version! 2024-08-18 22:31:50 +02:00
Sébastien Rombauts
2644c311dd Test linking with builtin sqlite3 library on Ubuntu and macOS
Using -DSQLITECPP_INTERNAL_SQLITE=OFF -DSQLITE_OMIT_LOAD_EXTENSION=ON
2024-08-18 22:31:12 +02:00
Sébastien Rombauts
b1505883aa
Use explicit versions of Ubuntu images instead of latest (#484)
To test more versions of compilers
2024-08-18 22:25:50 +02:00
Sébastien Rombauts
58d9867f87
Replace all double-quoted string literals by single quotes in unit test (#483)
Fix #481 23 test fails under FreeBSD 14.1 builtin SQLite library 3.45.1

The SQLITE_DQS compile-time option activates or deactivates the legacy
double-quoted string literal misfeature.
Legacy behavior is that double-quoted string literals are allowed
anywhere.
2024-08-18 22:22:10 +02:00
Sébastien Rombauts
181e5faa8f Use explicit versions of Ubuntu images instead of latest
To test more versions
2024-08-18 00:00:08 +02:00
Sébastien Rombauts
553361b5c0 CMake: print the version of the system library if linking with it 2024-08-17 23:31:14 +02:00
Sébastien Rombauts
26d5e47fe6 Replace all double-quoted string literals by single quotes
Fix #481 23 test fails under FreeBSD 14.1 builtin SQLite library

The SQLITE_DQS compile-time option activates or deactivates the legacy double-quoted string literal misfeature.
Legacy behavior is that double-quoted string literals are allowed anywhere.
2024-08-17 23:16:14 +02:00
Sébastien Rombauts
00d9dbad5e
Bump actions/checkout from 3 to 4 (#482) 2024-08-17 14:20:43 +02:00
dependabot[bot]
feda773a42
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-17 06:18:21 +00:00
Sébastien Rombauts
be0d21f63b
Add a Github Dependabot config file (#480) 2024-08-17 08:17:59 +02:00
Sébastien Rombauts
b1e5131d3c Add dependabot and meson files to the Visual Studio filters 2024-08-16 22:10:04 +02:00
Sébastien Rombauts
4f7b667d02 Add a Github Dependabot config file
https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2024-08-16 22:01:18 +02:00
Sébastien Rombauts
08aa70a45e
Release 3.3.2 2024-08-16 21:43:55 +02:00
Sébastien Rombauts
31463a94b8 Update project version to 3.3.2 2024-08-16 20:50:35 +02:00
Sébastien Rombauts
cc9e062519 Update changelog for version 3.3.2 2024-08-16 20:47:20 +02:00
Sébastien Rombauts
1909a777d5 Update copyright notice to 2024 2024-08-16 20:46:14 +02:00
Sébastien Rombauts
73f788dddf
Update Googletest to v1.15.2 (#478)
Latest version from 2024 June 22
2024-08-16 20:27:07 +02:00
Sébastien Rombauts
230d9cd7ef Update Googletest to v1.15.2
Latest version from 2024 June 22
2024-08-16 19:38:29 +02:00
Sébastien Rombauts
0a49667902
Update SQLite from 3.45.3 to 3.46.1 (2024-08-13) (#477) 2024-08-15 23:31:43 +02:00
Sébastien Rombauts
3d50162353 Update SQLite from 3.45.3 to 3.46.1 (2024-08-13) 2024-08-15 21:23:04 +02:00
Sébastien Rombauts
c6032d8a7a
Explicitly =delete; Statement::bindNoCopy(..., std::string&&) (#469)
Rvalues are inherently unsuitable for no-copy binding, because their
lifetime cannot be guaranteed. Separately declare, and delete, all
overloads of bindNoCopy() that take a std::string rvalue.
2024-08-15 19:21:09 +02:00
Sébastien Rombauts
3d1cd5f8d6
Update SQLite from 3.43.0 to 3.45.3 (2024-04-15) (#461) 2024-08-15 19:19:18 +02:00
Sébastien Rombauts
b90f765b4c
Update meson dependencies [Meson only] (#475)
makes the following changes
- update meson wrap dependencies
  - update gtest 1.14.0 -> 1.15.0
  - update sqlite 3.42.0 -> 3.46.1
- removed redundant variables that pointed to the same sources in
example executables
2024-08-15 19:17:27 +02:00
Sébastien Rombauts
b737b3a202
Macos ci fix (#476)
fixes a CI issue in OSX due to
[PEP-668](https://peps.python.org/pep-0668/)
pip3 was used to install meson and ninja build, pipx is a drop in
replacement for this use case.
2024-08-15 14:51:00 +02:00
Jonathan Guzmán
7fa2536cf6
use pipx instead of pip3
pip3 have a warning regarding package breackage, as pip is used to install final applications pipx can be used as an drop-in replacement
2024-08-13 23:56:52 -06:00
Jonathan Guzmán
6d9a802098
fix unused variables in meson 2024-08-13 23:11:02 -06:00
Jonathan Guzmán
abffec28de
update meson wrap dependencies
- update gtest 1.14.0 -> 1.15.0
- update sqlite 3.42.0 -> 3.46.1
2024-08-13 23:10:39 -06:00
Marcel Ebmer
94c74ed931 Explicitly =delete; Statement::bindNoCopy(..., std::string&&)
Rvalues are inherently unsuitable for no-copy binding, because their lifetime cannot be guarnateed.
Separately declare, and delete, all overloads of bindNoCopy() that take a std::string rvalue.
2024-06-18 19:04:37 +02:00
Thomas Beutlich
0c009dfcb2 Update SQLite from 3.45.1 to 3.45.3 (2024-04-15) 2024-04-30 10:29:20 +02:00
Thomas Beutlich
5cab96d521 Update SQLite from 3.43.0 to 3.45.1 (2024-01-30) 2024-03-06 22:16:20 +01:00
John Torcivia
fab3ab2684 Add logic to use different FindPackage for python if cmake is above 3.12 2023-10-21 08:48:13 -04:00
Sébastien Rombauts
bcb4c78fed Update comments in appveyor.yml
AppVeyor is mostly being superseded by Github Actions
2023-08-30 13:45:42 +02:00
Sébastien Rombauts
1c2428e793
[Meson] update meson dependencies (#448)
this PR only affects meson, however a later change could be made for
CMake
updates the following depenencies:
 - GTests to 1.14.0
 - sqlite to 3.42.0
makes 
sets the recommended version to C++14 as Gtest now requires C++14,
additionally shows a warning and sets it to c++14 if
- C++11 is set and is on windows (this was #354 but now checks if is
C++11 and shows a warning instead of setting it to C++14 so it does not
revert when using a newer version)
- C++11 is set and uses [GTest
1.14.0](https://github.com/google/googletest/releases/tag/v1.14.0) or
greater, for more information check [Google's Foundational C++ Support
Policy](https://opensource.google/documentation/policies/cplusplus-support)
2023-08-30 13:39:57 +02:00
Sébastien Rombauts
5f22f8da01
Update Googletest to v1.14.0 (#451) 2023-08-30 12:50:17 +02:00
Sébastien Rombauts
428869a046 Add the latest XCode 14.2 - Apple clang 14.0.0 - macOS 12.6 to Travis CI 2023-08-30 11:42:03 +02:00
Sébastien Rombauts
14b476a465 Disable tests on the older macOS where CMake isn't compatible
CMake 3.13 or higher is required.  You are running version 3.9.4
2023-08-30 10:55:17 +02:00
Sébastien Rombauts
6fb08372d5 Update Googletest to v1.14.0 2023-08-29 20:26:03 +02:00
Sébastien Rombauts
f6960ee34d
Fix and update Travis CI workflow (#450) 2023-08-29 20:01:00 +02:00
Sébastien Rombauts
e933212f69 Fix inequality assertions for real numbers failing on Valgrind (2/2)
EXPECT_FLOAT_EQ
2023-08-29 19:23:35 +02:00
Sébastien Rombauts
d4d57b7f5b Fix inequality assertions for real numbers failing on Valgrind (1/2)
EXPECT_DOUBLE_EQ
2023-08-29 19:11:42 +02:00
Sébastien Rombauts
e4ca307460 Add a Travis CI config to BUILD_SHARED_LIBS 2023-08-29 18:32:47 +02:00
Sébastien Rombauts
f7ad43adb4 Add Ubuntu Focal 20.04 and Jammy 22.04 to Travis CI 2023-08-29 15:12:56 +02:00
Sébastien Rombauts
7088e44e2a Add a new TESTS envvar to .travis.yml to disable gtest on Ubuntu Trusty 14.04
Recent googletest doesn't compile on this old Ubunty
2023-08-29 15:12:30 +02:00
Sébastien Rombauts
bb051f92ff Replace in .travis.yml all instances of "true" by "ON"
To match the other "ON/OFF" flags used in the file, corresponding to CMake conventions
2023-08-29 14:11:50 +02:00
Sébastien Rombauts
aa76361203 Fix gcc compilation error
error: function ‘SQLite::Statement& SQLite::Statement::operator=(SQLite::Statement&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration
2023-08-29 10:24:30 +02:00
Sébastien Rombauts
b657c5f861 Fix valgrind run on Travis CI by updating path to executables
They are now produced in a bin/ subfolder
2023-08-29 10:22:12 +02:00
Jonathan Guzmán
8704db38b0
update Gtest to 1.14.0 2023-08-28 16:39:23 -06:00