Philip O'Toole
9b4867ecb1
Use require instead of modified imports
2025-07-24 14:30:18 -04:00
Philip O'Toole
2dd2e1dfcd
Consolidate utilities into internal module
2025-07-07 11:04:43 -04:00
Philip O'Toole
e4cfe85ea3
Consolidate source code
2025-07-07 10:22:05 -04:00
Philip O'Toole
f8bd839ce9
Add initial CDC Service skeleton
2025-06-26 20:55:19 -04:00
Philip O'Toole
939936dffc
Minor improve of PRAGMA optimization unit testing
2025-06-11 11:19:48 -04:00
Philip O'Toole
a4fbdc3e0d
Add CDC streamer to database module
2025-06-10 10:06:33 -04:00
Philip O'Toole
9e7b3370f5
Replace interface{} with any ( #2077 )
2025-04-28 08:12:18 -04:00
Philip O'Toole
eec3ef2d18
Support Commit Hook registration ( #2062 )
2025-04-08 22:20:14 -04:00
Philip O'Toole
568030f17f
Support registering Update Hooks at the database level ( #2061 )
2025-04-03 22:21:41 -04:00
Philip O'Toole
668e4ec445
Add another preupdate hook unit test
2025-04-03 13:17:58 -04:00
Philip O'Toole
8010ed86ff
Add multi-delete CDC unit test
2025-04-03 08:15:23 -04:00
Philip O'Toole
10581db4f9
Add transaction status to DB stats ( #2058 )
2025-03-31 10:13:19 -04:00
Oleksandr Redko
3fc7262cc5
Simplify random package with math/rand/v2 ( #2044 )
2025-02-08 17:56:31 -05:00
Artur Melanchyk
97ff0651f1
specify capacity ( #2035 )
...
Signed-off-by: Artur Melanchyk <arturmelanchyk@imail.name >
2025-01-25 08:53:56 -05:00
Philip O'Toole
78beb03b57
Preupdate hook complex data testing ( #2033 )
2025-01-23 09:01:00 -05:00
Philip O'Toole
490e22654f
Support preupdate hook for row ID values only ( #2032 )
2025-01-23 00:36:12 -05:00
Philip O'Toole
a2215cfaf6
Further improvements to preupdate hook code ( #2031 )
2025-01-23 00:10:14 -05:00
Philip O'Toole
954b89b7ee
Improve preupdate hook stats and error handling ( #2030 )
2025-01-22 23:39:40 -05:00
Philip O'Toole
abd78d762b
Basic preupdate hook support at DB level
2025-01-22 22:57:14 -05:00
Philip O'Toole
63b2c9c3e3
Better name for DB helper function
2025-01-22 21:34:15 -05:00
Oleksandr Redko
c7df4cec86
Fix Windows tests
2025-01-17 17:34:06 +02:00
Oleksandr Redko
25ede0269d
Simplify tests by using t.TempDir instead of os.MkdirTemp
2025-01-17 10:37:53 +02:00
Philip O'Toole
07eebf2927
Unit test SwappableDB and driver ( #2016 )
2025-01-09 00:09:18 -05:00
Philip O'Toole
f615108f2e
Use existing driver when swapping databases ( #2014 )
2025-01-08 23:21:33 -05:00
Philip O'Toole
238a74bd40
Refactor Swappable database and extensions ( #2012 )
2025-01-08 22:12:03 -05:00
Artur Melanchyk
df7130f142
Reduce memory allocations in queryStmtWithConn ( #2000 )
...
reduce memory allocations in queryStmtWithConn
Signed-off-by: Artur Melanchyk <artur.melanchyk@gmail.com >
2024-12-26 10:35:45 -05:00
Philip O'Toole
68f9e4cdc6
Minor DB improvements ( #1982 )
2024-11-15 09:00:43 -05:00
Philip O'Toole
51bdb39695
AutoVac should just VACUUM, not VACUUM INTO
2024-09-28 00:08:50 -04:00
Philip O'Toole
3bbda0c612
Add full cycle Writer test
2024-09-27 09:37:31 -04:00
Philip O'Toole
f24147c77a
Add a "full cycle" compacting WAL scanner test
2024-09-27 09:33:05 -04:00
Philip O'Toole
2d9a416067
Move VACUUM-related testing to its own files
2024-09-27 07:38:16 -04:00
Philip O'Toole
8c02c0e07f
Trigger full snapshot if database file is modified
2024-09-27 00:43:49 -04:00
Philip O'Toole
1dfd87e257
Add ParseHex function to db module
2024-09-24 08:27:45 -04:00
Philip O'Toole
282baaba8b
Check the WAL size, not log indexes
2024-09-21 10:39:21 -04:00
Philip O'Toole
19359101ab
Miscellaneous improvements to code ( #1891 )
...
Miscellaneous improvements to code
2024-09-16 08:32:59 -04:00
Philip O'Toole
37fa5fdc82
Miscellaneous improvements to testing
2024-09-13 07:35:00 -04:00
Philip O'Toole
daa9471f1a
Refactor code to further use common utilities
2024-09-10 08:07:15 -04:00
Philip O'Toole
f962658a23
Test Geopoly
2024-09-09 22:59:22 -04:00
Philip O'Toole
352838b4d8
Test that existing SQLite database is unmodified
2024-09-09 08:23:01 -04:00
Philip O'Toole
884313e4d2
Truncate any created WAL file
2024-09-09 08:18:58 -04:00
Philip O'Toole
36b4884ee4
No checkpoint on close ( #1877 )
...
As part of the 9.0 design, rqlite must not checkpoint any database when it's closed, as that would put the primary SQLite database in an invalid state -- WAL files would be checkpointed even though a Snapshot had not occurred. This gets this change into master, reducing the changes that will arrive due to other 9.0 changes.
2024-09-06 20:08:23 -04:00
Philip O'Toole
fb17cbd7f3
Improve DB mode checks ( #1880 )
...
Improve database mode-check functions
2024-09-06 08:42:12 -04:00
Philip O'Toole
5848975555
Support automatic PRAGMA optimize ( #1879 )
...
Support automatic PRAGMA optimize
2024-09-05 08:54:38 -04:00
Philip O'Toole
80048a959e
Add UPSERT unit test
2024-09-01 16:44:49 -04:00
Philip O'Toole
ab3e6b07df
Add missing source file
2024-08-19 10:00:01 -04:00
Philip O'Toole
c17efbf0d4
Sort names for niceness
2024-08-09 14:56:04 -04:00
Philip O'Toole
64b53edf24
More logging and stats
2024-08-09 13:48:56 -04:00
lencap
0a6d95febb
chore: fix comment
...
Signed-off-by: lencap <techgeek@189.cn >
2024-08-09 17:31:35 +08:00
Philip O'Toole
00f9171c16
Fix Extension validation
2024-08-08 18:04:07 -04:00
Philip O'Toole
1c31f3c7b6
Validate Extensions before loading
2024-08-08 17:45:33 -04:00