Philip O'Toole
1a24557c19
Merge remote-tracking branch 'origin' into wal-snapshot-store-v3
1 year ago
Philip O'Toole
208fc20659
Fix more uses of random
1 year ago
Philip O'Toole
54713b63f4
Merge remote-tracking branch 'origin' into wal-snapshot-store-v3
1 year ago
Philip O'Toole
c1a8b4a13a
Use global, sync'ed random source
...
Almost unbelievably it appears tests on AppVeyor get the same value when
seeding the random generator. See https://ci.appveyor.com/project/otoolep/rqlite/builds/47853399
1 year ago
Philip O'Toole
c44d020c11
Only attempt to checkpoint once
1 year ago
Philip O'Toole
0589233362
More Windows-triggered fixes
1 year ago
Philip O'Toole
eed11dee8c
Comment
1 year ago
Philip O'Toole
d4aab33163
More testing of DB checkpointing
1 year ago
Philip O'Toole
8d6d31649f
ABL
1 year ago
Philip O'Toole
cacc03199e
Add DB WAL Path and test
1 year ago
Philip O'Toole
b85e431972
Upgrade SQLite so that we pull in FTS5
1 year ago
Philip O'Toole
85eb2cca84
Unit test creation of FTS3, FTS4, and FTS5 tables
1 year ago
Philip O'Toole
1b14eaf6df
Fix error checking
...
https://github.com/rqlite/rqlite/pull/1317#discussion_r1286866112
1 year ago
Philip O'Toole
b95442d0fe
Remove empty files
1 year ago
Philip O'Toole
13fce2fac2
Remove in-memory support from DB layer
1 year ago
Philip O'Toole
c7b00f039c
Make operation of checkpoint clearer
1 year ago
Philip O'Toole
b57011336f
DB can run an integrity check
1 year ago
Bjorn Pagen
166f0d92a9
Update old comments with correct function name
1 year ago
Philip O'Toole
1107690c52
Migrate HTTP layer to chunked loading
1 year ago
Philip O'Toole
8edb5c9967
Add DB-level tests of using "COLLATE"
1 year ago
Philip O'Toole
370688730f
Better name for test
1 year ago
Philip O'Toole
722c40f77f
Test use of NUMERIC type
1 year ago
Philip O'Toole
f22dff319b
Ensure invalid expression is handled
1 year ago
Philip O'Toole
61b2e10b2e
Fix db-level unit tests
1 year ago
Philip O'Toole
70a3c38b82
Only do a one-shot empty types check
1 year ago
Philip O'Toole
316ee52b4c
Fill in empty types using actual queried data
1 year ago
Philip O'Toole
36fa7f2afd
Detect DB stats error and log
1 year ago
Philip O'Toole
c552dba575
Record how long checkpointing takes
1 year ago
Philip O'Toole
b64efbdee1
Better testing
1 year ago
Philip O'Toole
539e578227
Add WAL-validity checking functions
1 year ago
Philip O'Toole
d940779045
More unit testing of WAL-replay
1 year ago
Philip O'Toole
50fbdc73fd
Tigther code
1 year ago
Philip O'Toole
a9796eeb36
Better testing
1 year ago
Philip O'Toole
6cd8d30749
Fix Store-level database-backup test
1 year ago
Philip O'Toole
ca67ee4cff
Remove debug statement
1 year ago
Philip O'Toole
68fc185c76
More WAL DB open testing
1 year ago
Philip O'Toole
19d83ff1ca
More enforcement of DELETE mode in-and-out
1 year ago
Philip O'Toole
0463a92fde
Fix Serialize() to work with WAL mode
...
This function is even more resource (disk, RAM) intensive, but it's goal
is to be correct, not efficient.
1 year ago
Philip O'Toole
4e639d4f17
Add more detail to comments
...
Serialize() is problematic with WAL mode databases. It needs close study
and may have to be retired before enabling WAL mode. For example
Serialize() is called by Snapshotting. Snapshotting would need to move
to Backup, at for on-disk mode.
1 year ago
Philip O'Toole
33b56af639
Fix Backup for WAL mode
1 year ago
Philip O'Toole
3f462eecfa
Remove all on-disk SQLite files on startup
1 year ago
Philip O'Toole
26ad4913c9
Correct comment
1 year ago
Philip O'Toole
6b32b7f4d2
Add function which returns size of WAL
1 year ago
Philip O'Toole
7e1b8d12d7
Add full WAL support to DB layer
1 year ago
Philip O'Toole
df33a4aa42
DB layer supports enabling WAL mode
1 year ago
Philip O'Toole
da11903312
Correct test failure error
1 year ago
Philip O'Toole
67941699b6
Add some WAL-related control code
...
Not actually called yet.
1 year ago
Philip O'Toole
5e37ff9c55
Fix typo in variable name
1 year ago
Philip O'Toole
f58bd0cf7b
Add some important PRAGMA state to DB stats
1 year ago
Philip O'Toole
dd9b3f2695
PRAGMA synchronous=OFF for on-disk databases
1 year ago
Philip O'Toole
4a7ac2850f
rqlite doesn't (yet) support WAL mode SQLite data
1 year ago
Philip O'Toole
98a356504e
Fix import cycle
1 year ago
Philip O'Toole
ca12df38ce
Test cleanup
1 year ago
Philip O'Toole
2fd62f3f64
Isolation testing only applies to on-disk
1 year ago
Philip O'Toole
d8f3a72365
Common DB-layer tests
1 year ago
Philip O'Toole
ca6f071fb5
Split up DB-level unit testing
1 year ago
Philip O'Toole
5ff28d354f
Set Error on correct field
1 year ago
Philip O'Toole
9924fe75f5
Some small improvements
1 year ago
Philip O'Toole
3058d3e9fc
Fix transaction handling in db.Request()
1 year ago
Philip O'Toole
59786e818b
Initial unit tests for db.Requests()
...
Seems to work well.
1 year ago
Philip O'Toole
4cbb541e9b
DB Request code-complete except for transactions
1 year ago
Philip O'Toole
fe176a9752
Merge branch 'query-exec-stmt-with-conn' into unified-endpoint
1 year ago
Philip O'Toole
497c6b3340
Elevate queryer type
1 year ago
Philip O'Toole
3d652d929e
More factoring of DB query layer
1 year ago
Philip O'Toole
de70664bf1
More code in db.Request()
1 year ago
Philip O'Toole
6fcf85ef40
Flag major issue
1 year ago
Philip O'Toole
1987f9b07b
Flesh out db.Request
...
Needs full unit testing.
1 year ago
Philip O'Toole
b2b0b188e9
Factor out functions
1 year ago
Philip O'Toole
014559bb06
Another DB read-only test
1 year ago
Philip O'Toole
f84b258f99
Better variable name
1 year ago
Philip O'Toole
c3e7044945
Final read-only test
1 year ago
Philip O'Toole
2af5fc26aa
Move comment
1 year ago
Philip O'Toole
8f45c4c8c9
Factor out read-only check
1 year ago
Philip O'Toole
bb868595c1
Start prepping DB layer
1 year ago
Philip O'Toole
92a604c4ec
Move SQLite validity checks to db module
1 year ago
Philip O'Toole
fb1e5e3903
Use correct errors (thanks GPT!)
1 year ago
Philip O'Toole
95a689b3cf
Some improvements thanks to ChatGPT 4
2 years ago
Philip O'Toole
c1ba9157c2
More unit test of nil parameters
2 years ago
Philip O'Toole
41bf265b02
Fix more handling of nil named values
2 years ago
Philip O'Toole
053bde0ed6
Upgrade to latest SQLite driver
2 years ago
Philip O'Toole
3d555a73cb
Add unit test showing malformed database issue
...
https://github.com/rqlite/rqlite/issues/1103
2 years ago
Philip O'Toole
0702e39ace
Add ResetStats
2 years ago
Philip O'Toole
e3cc4eb5d0
go mod updates ( #1120 )
...
* go mod updates
* CHANGELOG
2 years ago
Philip O'Toole
e74bfc182a
Use new Encoder everywhere
2 years ago
Philip O'Toole
0071867e34
Don't call t.Fatal() from goroutine
...
It wouldn't abort the test anyway, so just log.
2 years ago
Eng Zer Jun
5141eff5fc
test: use `T.TempDir` to create temporary test directory
...
This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using `ioutil.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but `t.TempDir` handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2 years ago
Philip O'Toole
54aec1ca33
Tighten up backup code
2 years ago
Philip O'Toole
221907f8a9
Support nil as paramterized values
2 years ago
Philip O'Toole
c8b9fd72da
Sanity check supplied SQLite data
2 years ago
Philip O'Toole
c91ca45ba4
Expose more DB attributes
2 years ago
Philip O'Toole
a6a3567a4d
DB layer returns in-memory status
2 years ago
Philip O'Toole
d84fb85f01
Don't HTML escape JSON output
3 years ago
Philip O'Toole
869f3547b7
Update to SQLite 3.38
3 years ago
Philip O'Toole
ebb2ff32c2
Send rand() once in DB layer
3 years ago
Philip O'Toole
24a5dc8c4b
Much better random file names
3 years ago
chermehdi
3bfcbffc37
Fix typos and Grammar issues
3 years ago
Philip O'Toole
7038b86dcb
One final named params unit test
3 years ago
Philip O'Toole
01849e77d5
Add db-level support for named paremeters
3 years ago
Philip O'Toole
239cdc04b5
Don't run heavy memory tests in parallel
...
Let's see if this helps these tests run faster, especially with -race,
and prevent CircleCI timeouts.
3 years ago
Philip O'Toole
eab9183acd
Better comment in DB code
3 years ago