refactor(sqlite): Used distinct types for Db and Stmt pointers.

This commit is contained in:
2026-06-20 19:01:10 -04:00
parent 9683216efe
commit 30da10d3af
4 changed files with 58 additions and 55 deletions

View File

@@ -165,7 +165,7 @@ test_decrypt_then_deserialize_sqlite :: proc(t: ^testing.T) {
}
defer delete(plaintext)
mem_db: ^rawptr
mem_db: ^sqlite.Db
rc := sqlite.open(":memory:", &mem_db)
testing.expectf(t, rc == sqlite.OK, "failed to open in-memory db")
if rc != sqlite.OK {
@@ -194,7 +194,7 @@ test_decrypt_then_deserialize_sqlite :: proc(t: ^testing.T) {
}
sql: cstring = "SELECT path FROM envr_env_files"
stmt: ^rawptr
stmt: ^sqlite.Stmt
rc = sqlite.prepare_v2(mem_db, sql, -1, &stmt, nil)
testing.expect(t, rc == sqlite.OK, "prepare failed")
if rc != sqlite.OK {