1
0
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:
Khalyomede 2021-11-17 03:45:50 +01:00 committed by GitHub
parent 49a36515dc
commit 11ce26b3f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -14,7 +14,7 @@ $if windows {
#include "sqlite3.h"
const (
pub const (
sqlite_ok = 0
sqlite_error = 1
sqlite_row = 100

View File

@ -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
}