826 Commits

Author SHA1 Message Date
Jonathan Guzmán
bc8c8ffcc5
add example wrap
this wrap file is only for demonstrations purposes
once there is a proper wrap in wrapdb this should be deleted
if want to use bleeding edge or tag check the meson wrap manual
2022-12-16 22:54:29 -06:00
Jonathan Guzmán
2554472a6c
add meson samples 2022-12-16 22:44:34 -06:00
Jonathan Guzmán
841247f061
add meson usage guide 2022-12-16 21:13:54 -06:00
Sébastien Rombauts
fc92d9cf92 Reduce the number of images to test on AppVeyor, to speed up the build 2022-12-15 18:59:14 +01:00
Sébastien Rombauts
81a28af858 Fix Savepoint_test comments and file formatting 2022-12-15 18:57:21 +01:00
Sébastien Rombauts
7b61ad1095
Merge pull request #396 Rename Savepoint RollbackTo() and fix class comments and formatting from SRombauts/rename-savepoint-rollback-to 2022-12-15 18:42:33 +01:00
Sébastien Rombauts
ce9699decf Rename Savepoint::rollback() to Savepoint::rollbackTo() 2022-12-15 13:41:49 +01:00
Sébastien Rombauts
4a9cc0adce Fix Savepoint comments and file formatting
Improved Savepoint description, it was mostly copy-pasted from Transaction with missing bits of information
Conform to the SQLiteCpp code style, mainly braces have to be located on their own line
2022-12-15 13:30:19 +01:00
Sébastien Rombauts
343299a31d
Merge pull request #390 fix incorrect work of savepoint from spoyler/save_point
Fix #381
2022-12-15 13:12:10 +01:00
Sébastien Rombauts
6ebb328f0e
Merge pull request #391 meson project changes based on wrap submission review from ninjaoflight/meson-macos-fix 2022-12-15 11:18:49 +01:00
Sébastien Rombauts
66975600be
Merge pull request #394 check if SQLITE_OPEN_NOFOLLOW is defined from ninjaoflight/macos-11-fix 2022-12-15 11:16:36 +01:00
Jonathan Guzmán
f71633cc2d
set warning level to 3 2022-12-14 19:21:46 -06:00
Jonathan Guzmán
e8b812e1e1
meson code review
change version to 3.2.1
change file sources array to files()
comment default flags
check for sqlite3_load_extension support
change warning() to message('warning:
2022-12-13 21:02:32 -06:00
Jonathan Guzmán
d4ff61fd2e
check if SQLITE_OPEN_NOFOLLOW is defined
under MacOS 11 BigSur(macos-latest) the macro SQLITE_OPEN_NOFOLLOW
is not defined so it may cause compilation issues for those versions
2022-12-13 19:37:17 -06:00
Sébastien Rombauts
403839d910
Merge pull request #393 Fix preprocessor issues from jowr/fix_preprocessor_issues 2022-12-13 15:10:56 +01:00
Jorrit Wronski
f1f1748f65 Correct use of the __has_include preprocessor macro 2022-12-13 11:03:10 +01:00
Jorrit Wronski
a1510849f8 Do not compare the version number for external SQLite3 libraries 2022-12-13 11:01:56 +01:00
Sébastien Rombauts
bd5bf7996a Release 3.2.1
Bugfixes and cmake/meson build system fixes only
2022-12-12 18:14:25 +01:00
Сидоров Андрей Алексеевич
1a63044624 Add release for savepoint after rollabck in destructor for deleting it form sqlite transaction stack. 2022-12-12 12:35:34 +03:00
Sébastien Rombauts
833f007a0b Fix Github Actions subdir example to also triggers on pull requests
Also fix the introduced mixed endlines
2022-12-12 09:17:28 +01:00
Sébastien Rombauts
cd5f3ff085 Fix Github Actions to also triggers on pull requests
Not only on push from myself!
2022-12-12 09:12:28 +01:00
Sébastien Rombauts
a5c783db99
Merge pull request #389 [meson] add missing compile options from ninjaoflight/meson-fixes 2022-12-12 09:06:19 +01:00
Jonathan Guzmán
2d0d1aa69c
[meson] correct wrong option message 2022-12-11 20:06:42 -06:00
Jonathan Guzmán
c1b9420ba9
add missing compile options 2022-12-11 19:48:41 -06:00
Sébastien Rombauts
8e00fef2e5
Merge pull request #388 make std::filesystem optional from ninjaoflight/std-filesystem-optional 2022-12-11 22:46:39 +01:00
Jonathan Guzmán
8d36ab8304
make std::filesystem optional
Add a switch to disable std::filesystem so it can be optinally disabled
this should let users that older compilers versions to disable it
2022-12-11 14:39:49 -06:00
Sébastien Rombauts
55b30a2a3c
Merge pull request #386 [meson] Update SQLite from 3.39.3 to 3.40.0 from ninjaoflight/sqlite-meson-update 2022-12-11 21:37:34 +01:00
Sébastien Rombauts
2adcb24a09
Merge pull request #385 disable SQLITECPP_USE_STACK_PROTECTION when on MinGW from SRombauts/mingw-disable-stack-protection
Fix #382 #74
2022-12-11 21:36:37 +01:00
Sébastien Rombauts
c195cfed56
Merge pull request #387 Ensure that TEXT column is UTF-8 encoded before using sqlite3_column_blob() from dougnazar 2022-12-11 21:35:51 +01:00
Jonathan Guzmán
891e1cba5e
[meson] Update SQLite from 3.39.3 to 3.40.0 2022-12-11 14:19:14 -06:00
Sébastien Rombauts
0a365b952c
Merge pull request #383 Update SQLite from 3.39.3 to 3.40.0 (2022-11-16) from SRombauts/update-sqlite-340 2022-12-11 18:58:44 +01:00
Sébastien Rombauts
46ef117e1f Fix #382 #74 disable SQLITECPP_USE_STACK_PROTECTION when running on MinGW 2022-12-11 17:57:53 +01:00
Sébastien Rombauts
4ede25d867 Update SQLite from 3.39.3 to 3.40.0 (2022-11-16) 2022-12-11 16:53:21 +01:00
Sébastien Rombauts
4fc2eeecf0
Merge pull request #380 [Meson] fixes for meson project from ninjaoflight/windows-support 2022-12-09 09:11:03 +01:00
Jonathan Guzmán
bd2e1c6087
[Meson] build library as static on windows
as dynamic linking is not supported on windows we can give a warning
and compile the library as static itself
2022-12-08 22:17:17 -06:00
Jonathan Guzmán
b73d8446be
ignore cmakesettings.json 2022-12-08 22:03:58 -06:00
Jonathan Guzmán
57ebdb25fc
add missing trailing comma 2022-12-08 20:09:24 -06:00
Jonathan Guzmán
5cd0699302
add sample 2 demo executable 2022-12-08 18:55:08 -06:00
Jonathan Guzmán
47d9a31e4e
[meson] install headers by using install_subdir
use install_subdir instead of the install_headers in the meson config file
2022-12-08 12:40:51 -06:00
Jonathan Guzmán
ca985c30dc
install headers on proper subdir 2022-12-08 00:13:50 -06:00
Jonathan Guzmán
85eace84f2
[meson] add savepoint support 2022-12-08 00:05:27 -06:00
Jonathan Guzmán
2231923094
remove NON_AMBIGUOUS_OVERLOAD
this macro is no longer needed for the tests as part of the cleanup in
commit 091726aa65a059004dcbda16095c58fd7fc8781c
2022-12-07 21:50:57 -06:00
Jonathan Guzmán
70b15f9de8
[Meson] use gtest_main for fallback 2022-12-07 21:37:51 -06:00
Jonathan Guzmán
44d63d7485
[Meson] update gtest version to 1.12.1 2022-12-07 20:56:02 -06:00
Jonathan Guzmán
d639f6b86c
change meson version to 3.2.0 2022-12-07 20:45:40 -06:00
Jonathan Guzmán
02d43dc4f1
ignore clangd cache 2022-12-07 20:43:29 -06:00
Jonathan Guzmán
5e8cdbeb38
add explanations for samples in meson 2022-12-07 20:42:43 -06:00
Doug Nazar
77fc1f30b2 Ensure that TEXT column is UTF-8 encoded before using sqlite3_column_blob()
If the database is in a different format (ie. UTF-16) the memory that
sqlite3_column_blob() will point to by default will be the native (UTF-16)
encoding. Calling sqlite3_column_bytes() will basically be a noop for
a BLOB or a TEXT already in UTF-8. Otherwise it'll convert to TEXT w/UTF-8.

Run the 'basis' tests against both a UTF-8 and a UTF-16 database.
Reset & rerun query between tests blocks to reset column types.
Reorder a few getText()/getString() operations to ensure we test both ordering.
Don't try to convert random blob to TEXT. Will fail encoding conversion.
2022-12-02 14:03:03 -05:00
Sébastien Rombauts
a32e884e8c
Merge pull request #377 Some documentation fixes from cbielow/fix_doc 2022-11-25 12:04:34 +01:00
bielow
d416b40583 extend on reset() vs clearBindings() 2022-11-21 22:51:35 +01:00