mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sqlite: make constants public (#12485)
This commit is contained in:
parent
49a36515dc
commit
11ce26b3f6
@ -14,7 +14,7 @@ $if windows {
|
||||
|
||||
#include "sqlite3.h"
|
||||
|
||||
const (
|
||||
pub const (
|
||||
sqlite_ok = 0
|
||||
sqlite_error = 1
|
||||
sqlite_row = 100
|
||||
|
@ -29,3 +29,10 @@ fn test_sqlite() {
|
||||
db.close() or { panic(err) }
|
||||
assert !db.is_open
|
||||
}
|
||||
|
||||
fn test_can_access_sqlite_result_consts() {
|
||||
assert sqlite.sqlite_ok == 0
|
||||
assert sqlite.sqlite_error == 1
|
||||
assert sqlite.sqlite_row == 100
|
||||
assert sqlite.sqlite_done == 101
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user