We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a3651 commit 11ce26bCopy full SHA for 11ce26b
vlib/sqlite/sqlite.v
@@ -14,7 +14,7 @@ $if windows {
14
15
#include "sqlite3.h"
16
17
-const (
+pub const (
18
sqlite_ok = 0
19
sqlite_error = 1
20
sqlite_row = 100
vlib/sqlite/sqlite_test.v
@@ -29,3 +29,10 @@ fn test_sqlite() {
29
db.close() or { panic(err) }
30
assert !db.is_open
31
}
32
+
33
+fn test_can_access_sqlite_result_consts() {
34
+ assert sqlite.sqlite_ok == 0
35
+ assert sqlite.sqlite_error == 1
36
+ assert sqlite.sqlite_row == 100
37
+ assert sqlite.sqlite_done == 101
38
+}
0 commit comments