992 Commits

Author SHA1 Message Date
Filip Milosevic
91d60aa6bd
Update SQLiteCPP 2025-08-04 17:58:35 +02:00
Filip Milosevic
2ce092bfd1
Merge branch 'master' into temp-brnach 2025-08-04 17:06:37 +02:00
Sébastien Rombauts
0fef5b93ea
fix compilation with newer gtest (#514)
C++17 now.
2025-07-13 22:35:28 +02:00
Rosen Penev
da222465cc
fix compilation with newer gtest
C++17 now.
2025-06-09 20:31:41 -07:00
Sébastien Rombauts
1df768817e
fix: hide installation behind an option (#512)
Currently, every project pulling in SQLiteCpp automatically gets an
`make install` which installs SQLiteCpp into the system. This is often
not desired, since other projects only statically link. The solution is
to add another "SQLITECPP_INSTALL" option, which allows to turn on/off
this behavior.
2025-05-27 09:50:11 +02:00
Sébastien Rombauts
817f3310b5
fix: faulty undef (#509)
In some cases a non existing define is being undefined. This fixes this
case.
SQLITECPP_HAVE_EXPERIMENTAL_FILESYSTEM =>
SQLITECPP_HAVE_STD_EXPERIMENTAL_FILESYSTEM
2025-05-27 09:47:07 +02:00
Simon Gene Gottlieb
47909c4afb fix: hide installation behind an option
Currently, every project pulling in SQLiteCpp automatically gets an
`make install` which installs SQLiteCpp into the system.
This is often not desired, since other projects only statically link.
The solution is to add another "SQLITECPP_install" option, which allows
to turn on/off this behavior.
2025-05-23 20:35:40 +02:00
Simon Gene Gottlieb
65f39dcb97 fix: faulty undef
In some cases a non existing define is being undefined.
This fixes this case.
SQLITECPP_HAVE_EXPERIMENTAL_FILESYSTEM -> SQLITECPP_HAVE_STD_EXPERIMENTAL_FILESYSTEM
2025-05-23 20:32:03 +02:00
Sébastien Rombauts
59a047b8d3
Release 3.3.3 (#507)
## What's Changed
* Update SQLite from 3.46.1 to 3.49.2 (2025-05-07) by @SRombauts in
https://github.com/SRombauts/SQLiteCpp/pull/505
* Add a Github Dependabot config file by @SRombauts in
https://github.com/SRombauts/SQLiteCpp/pull/480
* Bump actions/checkout from 3 to 4 by @dependabot in
https://github.com/SRombauts/SQLiteCpp/pull/482
* Replace all double-quoted string literals by single quotes in unit
test by @SRombauts in https://github.com/SRombauts/SQLiteCpp/pull/483
* Use explicit versions of Ubuntu images instead of latest by @SRombauts
in https://github.com/SRombauts/SQLiteCpp/pull/484
* Test linking with builtin libsqlite3-dev package on Ubuntu by
@SRombauts in https://github.com/SRombauts/SQLiteCpp/pull/485
* Add logic to use different FindPackage for python if cmake is above
3.12 by @syntheticgio in https://github.com/SRombauts/SQLiteCpp/pull/454
* tests/Database_test.cpp: fix a warning around `#endif` by @trofi in
https://github.com/SRombauts/SQLiteCpp/pull/489
* SQLiteCpp/Statement.h: add missing `<cstdint>` include by @trofi in
https://github.com/SRombauts/SQLiteCpp/pull/488
* sqlite3: set SQLITE_OMIT_LOAD_EXTENSION by @brt-v in
https://github.com/SRombauts/SQLiteCpp/pull/496
* Update googletest to v1.16.0 by @SRombauts in
https://github.com/SRombauts/SQLiteCpp/pull/506
* update meson dependencies by @UnixY2K in
https://github.com/SRombauts/SQLiteCpp/pull/508

## New Contributors
* @syntheticgio made their first contribution in
https://github.com/SRombauts/SQLiteCpp/pull/454
* @trofi made their first contribution in
https://github.com/SRombauts/SQLiteCpp/pull/489
* @brt-v made their first contribution in
https://github.com/SRombauts/SQLiteCpp/pull/496

**Full Changelog**:
https://github.com/SRombauts/SQLiteCpp/compare/3.3.2...3.3.3
2025-05-20 22:42:37 +02:00
Sébastien Rombauts
28e8fbf92d Update project version to 3.3.3 2025-05-20 22:07:28 +02:00
Sébastien Rombauts
232c941252 Update changelog for version 3.3.3 2025-05-20 22:07:28 +02:00
Sébastien Rombauts
3fb735a750
update meson dependencies (#508)
- updates fallback gtest to 1.15.2
- updates fallback sqlite3 to 3.49.2
- adds additional checks of the default c++ standard version if GTest is
>= 1.17.0
- bumps the version to 3.3.3
2025-05-20 22:04:09 +02:00
Jonathan Guzman
24085d4467
update meson dependencies 2025-05-20 08:59:52 -06:00
Sébastien Rombauts
9470b7253f
Update SQLite from 3.46.1 to 3.49.2 (2025-05-07) (#505) 2025-05-20 07:14:23 +02:00
Sébastien Rombauts
8f2451a817
Update googletest to v1.16.0 (#506) 2025-05-20 07:14:09 +02:00
Sébastien Rombauts
65d00d8873 Update googletest to v1.16.0 2025-05-19 21:44:25 +02:00
Sébastien Rombauts
818f059edc Update SQLite from 3.46.1 to 3.49.2 (2025-05-07) 2025-05-19 21:32:55 +02:00
Sébastien Rombauts
77a69647c9 Remove Github build on Ubuntu 20.04
This is a scheduled Ubuntu 20.04 retirement. Ubuntu 20.04 LTS runner will be removed on 2025-04-15. For more details, see https://github.com/actions/runner-images/issues/11101
2025-05-19 21:32:55 +02:00
Sébastien Rombauts
a865d1c61a Update copyright notice to 2025 2025-05-19 21:20:36 +02:00
Sébastien Rombauts
211e642a30
sqlite3: set SQLITE_OMIT_LOAD_EXTENSION (#496)
Addresses #495.
2025-01-24 13:17:38 +01:00
Bart
e3ddbd9fb4 sqlite3/CMakeLists.txt: set SQLITE_OMIT_LOAD_EXTENSION for sqlite3 is the option is enabled 2024-12-14 19:15:13 +01:00
Sébastien Rombauts
643b153c61
SQLiteCpp/Statement.h: add missing <cstdint> include (#488)
Without the change the build fails on `gcc-15` as:

    [  5%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Backup.cpp.o
    In file included from /build/source/include/SQLiteCpp/Column.h:14,
                     from /build/source/include/SQLiteCpp/Database.h:14,
                     from /build/source/include/SQLiteCpp/Backup.h:15,
                     from /build/source/src/Backup.cpp:12:
/build/source/include/SQLiteCpp/Statement.h:132:39: error: 'uint32_t'
does not name a type
      132 |     void bind(const int aIndex, const uint32_t      aValue);
          |                                       ^~~~~~~~
/build/source/include/SQLiteCpp/Statement.h:20:1: note: 'uint32_t' is
defined in header '<cstdint>'; this is probably fixable by adding
'#include <cstdint>'
       19 | #include <memory>
      +++ |+#include <cstdint>
       20 |
2024-09-07 16:24:10 +02:00
Sébastien Rombauts
58c46e3ce7
tests/Database_test.cpp: fix a warning around #endif (#489)
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 16:23:13 +02:00
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
Sergei Trofimovich
a4287a72e1 SQLiteCpp/Statement.h: add missing <cstdint> include
Without the change the build fails on `gcc-15` as:

    [  5%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Backup.cpp.o
    In file included from /build/source/include/SQLiteCpp/Column.h:14,
                     from /build/source/include/SQLiteCpp/Database.h:14,
                     from /build/source/include/SQLiteCpp/Backup.h:15,
                     from /build/source/src/Backup.cpp:12:
    /build/source/include/SQLiteCpp/Statement.h:132:39: error: 'uint32_t' does not name a type
      132 |     void bind(const int aIndex, const uint32_t      aValue);
          |                                       ^~~~~~~~
    /build/source/include/SQLiteCpp/Statement.h:20:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
       19 | #include <memory>
      +++ |+#include <cstdint>
       20 |
2024-09-07 14:31:27 +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