Pekka Enberg
f2ecebc357
Rename RowResult to StepResult
...
The name "row result" is confusing because it really *is* a result from
a step() call. The only difference is how a row is represented as we
return from VDBE or from a statement.
Therefore, rename RowResult to StepResult.
2024-12-27 10:20:41 +02:00
Pere Diaz Bou
aed14117c9
core: transaction support
2024-12-24 18:04:30 +01:00
Pekka Enberg
e93ac38e55
Add statement interruption support
...
This adds an interrupt() method to Statement that allows apps to
interrupt a running statement. Please note that this is different from
`sqlite3_interrupt()` which interrupts all ongoing operations in a
database. Although we want to support that too, per statement interrupt
is much more useful to apps.
2024-12-19 12:30:32 +02:00
Pere Diaz Bou
37005a23d2
fix checkpoint
2024-12-15 18:55:23 +00:00
Pekka Enberg
617f95c7b6
Update clap to 4.5
...
The Github dependabot complains about anstream, which comes through `clap`:
https://github.com/tursodatabase/limbo/security/dependabot/8
2024-12-11 14:39:27 +02:00
krishvishal
1e89b17462
Ran cargo fmt
2024-12-11 14:08:33 +05:30
krishvishal
b23df24703
Added tests for last_insert_rowid()
2024-12-11 14:01:04 +05:30
Lauri Virtanen
a7100d8e9b
Autofix clippy issues with cargo fix --clippy
2024-11-24 20:24:47 +02:00
Pere Diaz Bou
f5a1f7c800
various fixes in btree
...
* read_u8 now takes self.offset into account
* shift cell pointers left on balance_root with offset > 0
* fix wrong writes to page in degragment_page
2024-11-19 17:15:19 +01:00
Pere Diaz Bou
23923e4175
ignore wal checkpoint test
2024-11-13 14:09:38 +00:00
Pere Diaz Bou
9d7a3e8e60
ignore sequential test
2024-11-13 14:04:28 +00:00
Pere Diaz Bou
dfdd8083e2
remove ignore from wal tests
2024-11-13 13:58:05 +00:00
Pere Diaz Bou
13a95b583f
debug logs
2024-11-13 11:03:38 +00:00
Pere Diaz Bou
48f0e72e14
checkpoint on drop connection
2024-11-12 17:03:30 +01:00
Pere Diaz Bou
cd2b61d838
btree: cursor with lineal stack structure
...
Removed MemPage from the code in favor of an array to encode the stack
of the cursor. This is both simpler and better in terms of memory
access.
2024-11-12 10:21:22 +01:00
Pere Diaz Bou
8d9f68ce4e
ignore test wal checkpoint
...
these is flaky now, need to look at it in another time
2024-11-06 18:05:46 +01:00
Pere Diaz Bou
df45f17486
fix fmt
2024-11-06 17:47:41 +01:00
Pere Diaz Bou
eb8c462c5f
fix io submission on cacheflush
2024-11-06 16:25:42 +00:00
Pere Diaz Bou
c2453a084d
test wal checkpoint
2024-11-05 15:29:54 +01:00
Pere Diaz Bou
c0e51c4ca6
wip wal
2024-11-05 15:29:53 +01:00
김선우
9e2756fabc
Nit
2024-09-16 23:07:50 +09:00
김선우
905b34c9a8
Nit
2024-09-16 22:03:53 +09:00
김선우
7f5d9dbb90
Apply fmt
2024-09-16 22:00:36 +09:00
김선우
b68efa32d9
Merge branch 'main' into feature/fix-clippy
2024-09-16 21:58:07 +09:00
Pekka Enberg
2760049a89
test: Ignore failing tests...
2024-09-16 14:43:43 +03:00
Pekka Enberg
f3ce6a91ba
test: Switch to bundled SQLite for rusqlite
...
We're seeing build errors on Windows so let's see if this fixes it.
2024-09-16 14:29:13 +03:00
김선우
f592ed15c1
Add test to verify root and leaf splitting
2024-09-16 16:50:30 +09:00
김선우
2086d0e264
Revert max_iterations
2024-09-16 03:25:49 +09:00
김선우
ff1c38e0bb
Rewrite test to use temp dir
2024-09-15 17:31:55 +09:00
김선우
28884181be
Fix clippy
2024-09-15 16:23:27 +09:00
jussisaurio
b6e88ca883
cargo clippy --fix --allow-dirty && cargo fmt
2024-09-15 09:35:39 +03:00
Pere Diaz Bou
c7270dfb58
env_logger try_init
2024-09-14 08:58:20 +02:00
Pere Diaz Bou
c69e7db3eb
test sequential writes with overflow pages
2024-09-13 21:34:30 +02:00
Pere Diaz Bou
54615d752d
improve debuggabily of string comparisons
2024-09-13 20:32:02 +02:00
Pere Diaz Bou
dd6285560c
test adding a page that will overflow
2024-09-13 11:39:18 +02:00
Pere Diaz Bou
270193b953
use rustqlite
2024-09-13 09:15:55 +02:00
Pere Diaz Bou
77be4a1757
rename core_tester -> test
2024-09-13 07:55:07 +02:00