0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-25 09:50:37 +00:00
Commit Graph

176 Commits

Author SHA1 Message Date
529dcf60e4 libsql-ffi: Fix file copying on Windows 2025-03-20 13:21:53 +02:00
a383b03d82 Add libsql-ffi to workspace depedencies 2025-03-20 12:45:56 +02:00
d1c95e227c Revert "Add libsql-ffi to workspace depedencies"
This reverts commit e736e13742.
2025-03-20 12:45:24 +02:00
e736e13742 Add libsql-ffi to workspace depedencies 2025-03-20 12:32:21 +02:00
50b7f69b6f libsql-ffi: Update bundled SQLite 2025-03-19 09:32:39 +02:00
4702da10ad Merge pull request from bengsparks/cmake-patch
cmake(libsql-ffi): don't use `-msse4.2` `-maes` when compiling for ARM hosts
2025-03-18 16:38:23 +00:00
3ad67a8ecf fix: only write to OUT_DIR 2025-03-17 09:11:08 -03:00
da54c1bf97 fix: try fixing copy, again 2025-03-17 09:11:08 -03:00
5e20bd300c fix: use copy_with_cp everywhere 2025-03-17 09:11:08 -03:00
7a941c6746 fix: add --no-preserve for nix on macos 2025-03-17 09:11:08 -03:00
8408283b37 feat: add support for windows cross-compilation 2025-03-17 09:11:08 -03:00
c74c8eef99 refactor+fix: trying to fix sqlite3mc cross compilation 2025-03-17 09:11:08 -03:00
d09ed8230d fix: cross compilation from aarch64 to x86_64 MacOS 2025-03-17 09:11:08 -03:00
56ddeb2de8 cmake(libsql-ffi): don't use -msse4.2 -maes when compiling for ARM hosts 2025-03-14 11:06:01 +01:00
6d43d459ab build bundles 2025-02-27 13:09:40 +04:00
e14762daf5 add libsql-disable-checkpoint-downgrade cargo feature in libsql-ffi crate 2025-02-27 13:08:34 +04:00
2a8507dd5e libsql-ffi: Update bundled SQLite 2025-02-21 10:23:58 +02:00
4ed932daaa libsql-ffi: Update bundled SQLite 2025-02-21 08:36:49 +02:00
90f0751ff8 wal.c: do not ignore the result code of xCb in walCheckpoint
libsql exposes a WAL checkpoint callback that is called once for each
frame and right when checkpointing is about to finish.

before this change, the result code returned by the checkpoint callback
was ignored on the 'finish' invocation, which resulted in the checkpoint
completing successfully despite the callback returning an error.

this commit propagates the callback's error code and thus prevents the
wal_checkpoint() routine from returning SQLITE_OK in cases where the
callback failed.
2025-02-13 23:48:34 +02:00
a8c11db984 fix: add sqlite3 includes 2025-01-28 13:01:16 -03:00
09715e4821 Merge pull request from tursodatabase/revert-checkpoint-gen-api
Remove libsql_wal_checkpoint_seq_count() API
2025-01-23 11:18:59 +00:00
b272026b90 Revert "libsql-ffi: Update bundled SQLite"
This reverts commit e9e0405a7a.
2025-01-23 13:01:25 +02:00
d3a156caf5 bundle SQLean extensions
A common complain with libSQL is how to run extensions. The main
mechanism, with a .so, has a lot of issues around how those .so are
distributed.

The most common extensions are the ones in the sqlean package. We can
improve this experience by bundling them in our sqlite build.

Not all SQLean extensions are kosher: some of them, like fileio, use
the vfs. Others, are deemed too complex.

The extensions included here are a subset that we deem important enough,
and low risk enough, to just be a part of the main bundle.
2025-01-16 22:25:16 -05:00
b8f5e89661 Merge pull request from tursodatabase/wal-checkpoint-seq-api
Add libsql_wal_checkpoint_seq_count() API
2024-12-17 17:49:53 +00:00
aabea5f779 sqlite3: fix missing pager causing SQLITE_MISUSE
This fixes a missing pager that `libsql_pager_codec` expects to not be
null. All this does is add the pager when we call `sqlite3PagerWalInsert`
to the wal frame we want to insert.

Fixes 
2024-12-12 21:16:05 -05:00
e9e0405a7a libsql-ffi: Update bundled SQLite 2024-12-11 10:29:48 +02:00
13385969d1 libsql-ffi: Fix build on macOS
The `cp` command does not support `--no-preserve` on macOS.
2024-12-04 17:44:43 +02:00
38cfab7d5d Revert "Revert "Merge pull request from awakecoding/libsql-ffi-build-cp-fix""
This reverts commit 9499c3c40a. The real
problem is not Windows, but build on macOS. Let's revert this revert and
fix macOS instead.
2024-12-04 17:44:22 +02:00
adb5eeb03f libsql-ffi: Update bundled SQLite code 2024-11-28 16:43:07 +02:00
98a5345794 libsql-sqlite3: Fix libsql_wal_frame_count() for empty databases
If a database is empty, the pagerUseWal() returns false. In that case,
make libsql_wal_frame_count() return zero instead of a logic error.
2024-11-26 15:24:54 +02:00
e2e3a6e85b libsql-ffi: Update bundled SQLite code 2024-11-26 12:22:40 +02:00
644a91e5b2 fix comment in code 2024-11-24 18:07:31 +04:00
b11c0c5294 build bundles 2024-11-13 00:40:11 +04:00
246667c7fd Merge pull request from tursodatabase/wal-api
libSQL WAL API
2024-11-11 12:00:39 +00:00
126e582cc0 libsql-ffi: Update bundled SQLite code 2024-11-11 12:44:54 +02:00
28cf3d8529 build bundles 2024-10-29 17:46:14 +04:00
61558b2a9e libsql-{sqlite3,ffi}: Add xReadFrameRaw() to the virtual WAL API
This adds a new xReadFrameRaw() function to the virtual WAL API, which
upper layers can use to fetch the full frame, including the page number,
that is useful for appending frames to a WAL.
2024-10-29 13:30:27 +02:00
3ac4aa1689 libsql-{sqlite3,ffi}: Add xFrameCount() to the virtual WAL API 2024-10-29 13:30:27 +02:00
f3db0bc827 build bundles 2024-10-29 13:16:23 +04:00
80a10f9202 build bundles 2024-09-29 15:17:47 +04:00
1de0aaa4d5 libsql: prepare v0.6.0 release 2024-09-20 15:36:46 -04:00
3c68620017 ffi: release v0.4.1 2024-09-10 08:42:08 -04:00
e83b13b1d2 libsql: fix musl builds failing due to fcntl64
This fixes a build issue with musl based systems that do not have
fcntl64 in their libc. This is done by setting `FILE_OFFSET_BITS=32`
only for musl targets. This forces the compiler to not convert `fcntl`
to `fcntl64`.
2024-09-09 13:40:44 -04:00
bd3e0d6904 Merge pull request from tursodatabase/vector-search-fix-integrity-check
vector search: fix integrity check
2024-08-23 11:21:53 +00:00
2f15a0e060 Merge pull request from tursodatabase/hide-vector-index-for-sqlite-planner
vector search: hide vector index for sqlite planner
2024-08-23 08:45:12 +00:00
2d75b23571 build bundles 2024-08-22 14:58:14 +04:00
eff638e23d build bundles 2024-08-22 12:15:03 +04:00
6ed738ecdf build bundles 2024-08-22 00:48:30 +04:00
18e09dd88b build bundles 2024-08-19 20:26:57 +04:00
f2271b04a8 Merge pull request from tursodatabase/vector-search-int8
vector search: int8 support
2024-08-16 09:11:04 +00:00