1
0
Fork 0

180 Commits (75481a5dbd1916d1777aac08dff7a934d33b689b)

Author SHA1 Message Date
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
Philip O'Toole 51bb54488b Explicitly handle column type nil (null) 3 years ago
Philip O'Toole c639f21cde Return time types in RFC3339 format 3 years ago
Philip O'Toole 28063bfa0d Support timestamp field 3 years ago
Philip O'Toole 53e4b9ae3d ABL 3 years ago
Philip O'Toole 437d76bc1c
Update db.go 3 years ago
Philip O'Toole bed9dc2a49
Update db_test.go 3 years ago
Philip O'Toole 393a1c67a0 Fix unit tests 3 years ago
Philip O'Toole 3ed0909746 Read-only statements in query endpoint 3 years ago
Philip O'Toole 519a91e635 Actual recovery node test passes on Linux 3 years ago
Philip O'Toole 2bf7638a8d Fix debug code in test 3 years ago
Philip O'Toole 01895e501f Serialize on-disk databases by simply reading file
This is safe according to https://sqlite.org/howtocorrupt.html and
avoids any sqlite3_serialize() limitations.
3 years ago
Philip O'Toole c0b22b0d03 Update CHANGELOG 3 years ago
Philip O'Toole 08eb74493d Add unit test for >1GiB in-memory databases
>2GiB in-memory are still not supported.
3 years ago
Philip O'Toole 44e47686ee Tests that demonstrate current isolation behavior 3 years ago
Philip O'Toole a4c4374daf Update CHANGELOG 3 years ago
Philip O'Toole 3907132761 Add detailed SQLite memstats to status/ 3 years ago
Philip O'Toole aa8df67592 DB-level unit tests pass 3 years ago
Philip O'Toole 161abb094d Add db-level FK constraints unit test 3 years ago
Philip O'Toole deb4dabf2e Thread through foreign key constraint controls 3 years ago
Philip O'Toole 2cad491f40 Better creation of SQLite DSNs 3 years ago
Philip O'Toole f7b390ab28 Adding JSON1 unit test 3 years ago
Philip O'Toole 96f9e85ee3 More concurrent query testing 3 years ago
Philip O'Toole 3cee11de6f Count number of query errors 3 years ago
Philip O'Toole 6c69e8a9b5 Upgrade to new compile options 3 years ago