Philip O'Toole
c5e67a548c
Even more records during db test
4 years ago
Philip O'Toole
665d9913bb
Add top-level Deserialize() to db layer
4 years ago
Philip O'Toole
b83b2b241d
Merge branch 'master' into no-disk-during-restore
4 years ago
Philip O'Toole
18a4f38701
Add Copy() method to db layer
4 years ago
Philip O'Toole
ce7a3a6912
Merge branch 'master' into no-disk-during-restore
4 years ago
Philip O'Toole
535d690d7c
Tigthen up Store-level locking
...
Previous locking didn't look quite correct, and with the advent of the
Serialize functionality, it needs to be more precise.
4 years ago
Philip O'Toole
7900adbf53
Add Deserialize to DB layer
4 years ago
Philip O'Toole
9210297413
Unit test DB serialize
4 years ago
Philip O'Toole
93a78f09a0
Add call to Serialize function
4 years ago
Philip O'Toole
488a9554ea
Switch to rqlite fork of go-sqlite3
4 years ago
Philip O'Toole
011bc00784
Add SQLite database page-centric size to status output
4 years ago
Philip O'Toole
6575de779d
Use Protobuf for encoding Raft Log commands
...
This PR changes Raft Log Entry encoding from JSON to Protobuf. Furthermore, larger Raft commands (which can result from batching SQL statements, or individually long SQL statements) are compressed before encoding.
This primary reason for this change is to reduce IO load since that is one of the largest performance bottlenecks. It will also reduce internode traffic.
Legacy JSON-encoded commands are still handled by this code, so this change is backwards-compatible with previous releases in the v5 series.
4 years ago
Philip O'Toole
b4867713e4
Better variable name, Query -> SQL
4 years ago
Philip O'Toole
ee9f929735
ABL
4 years ago
Philip O'Toole
f961bb4e44
Fix typos and comments
4 years ago
Philip O'Toole
69ab554b58
Unit test parameterized statements
4 years ago
Philip O'Toole
1075315a11
DB Query now accepts complex Statements
4 years ago
Philip O'Toole
db992d1dce
DB Execute now accepts complex Statements
4 years ago
Philip O'Toole
3cfb0c3910
JSON types are also text
5 years ago
Philip O'Toole
b283ecc86d
Ensure backup is correctly closed
...
Also catch any error that occurs during close.
5 years ago
Philip O'Toole
0e69be3949
Store layer supports generating SQL format backups
...
Port PR453.
5 years ago
Philip O'Toole
43ea24fb82
DB layer supports generating SQL format backups
...
Port of PR451.
5 years ago
Philip O'Toole
0471877f26
Abort transaction if load operation fails
5 years ago
Philip O'Toole
6d5d4b3d81
Fix unit tests due to SQLite master table changes
7 years ago
Philip O Toole
6bbdc88c1d
ABL
...
Always be linting.
7 years ago
Philip O'Toole
bca0e43218
Unit test JOIN at the database level
7 years ago
Philip O'Toole
20f0eb505c
Add test showing OK PRAGMA table_info
8 years ago
Philip O'Toole
86a59adc57
Unit test query of SQLite master table
8 years ago
Philip O Toole
ffffd99f33
Test Common Table Expressions at database layer
8 years ago
Philip O Toole
b0e7432dc3
Check for nil row from Execer
8 years ago
Philip O'Toole
9a7ff4c979
Handle "" types
...
Add unit test for concatenated queries. This deals with issue #240 but
this may be a hack. I need to dig into this issue more.
8 years ago
Philip O'Toole
75417f6d1e
Start handling the various SQLite TEXT types
...
This is the start of a code change to handle this comprehensively.
8 years ago
Philip O'Toole
d140b1e8c7
More database-level stats
8 years ago
Philip O'Toole
48f7bb2c50
Add low-level DB expvar stats
8 years ago
Philip O Toole
efc49511a5
Test multiline statements at DB level
8 years ago
Philip O Toole
6815f09873
Database can return FK constraint state
8 years ago
Philip O'Toole
1de7848362
Clean up and simplify DB tests
8 years ago
Philip O'Toole
6b3704a9fa
Add db test helper functions
8 years ago
Philip O'Toole
60443bee0b
Reduce test cyclo complexity
8 years ago
Philip O'Toole
cb12dc17bf
Reduce cyclo complexity of query code
8 years ago
Philip O'Toole
9fce85b059
Add UNIQUE constraint test
8 years ago
Philip O'Toole
acb592aa0b
Tighten logic for FK constraint control
8 years ago
Philip O'Toole
c40fff4d46
Support controlling FK constraints at startup
...
This was possible previously, but would need to be set everytime on
startup via the API. This change allows it to set at startup AND enables
foreign constraint checking by default.
8 years ago
Philip O'Toole
56778f1764
'go lint' fixes
8 years ago
Philip O'Toole
b248b0f4e1
Trivial formatting changes
8 years ago
Benjamen Keroack
3f064afc31
db: only convert row value to string if the column type is text
8 years ago
Philip O Toole
bf2047b45b
'go lint' fixes
8 years ago
Philip O'Toole
6fde29ff62
Fix typos
9 years ago
Philip O'Toole
6405dc01a8
Add function for loading in-memory db from file
9 years ago
Philip O'Toole
31cda32a38
'go fmt' fixes
9 years ago