You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sys/sqlite3/conn.go
+45-1Lines changed: 45 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ import "C"
18
18
19
19
import (
20
20
"fmt"
21
+
"strings"
21
22
"unsafe"
22
23
23
24
// Modules
@@ -37,6 +38,7 @@ type Conn C.sqlite3
37
38
// GLOBALS
38
39
39
40
const (
41
+
SQLITE_OPEN_NONEOpenFlags=0
40
42
SQLITE_OPEN_READONLYOpenFlags=C.SQLITE_OPEN_READONLY// The database is opened in read-only mode. If the database does not already exist, an error is returned.
41
43
SQLITE_OPEN_READWRITEOpenFlags=C.SQLITE_OPEN_READWRITE// The database is opened for reading and writing if possible, or reading only if the file is write protected by the operating system. In either case the database must already exist, otherwise an error is returned.
42
44
SQLITE_OPEN_CREATEOpenFlags=C.SQLITE_OPEN_CREATE|C.SQLITE_OPEN_READWRITE// The database is created if it does not already exist
@@ -46,7 +48,9 @@ const (
46
48
SQLITE_OPEN_FULLMUTEXOpenFlags=C.SQLITE_OPEN_FULLMUTEX// The new database connection will use the "serialized" threading mode. This means the multiple threads can safely attempt to use the same database connection at the same time. (Mutexes will block any actual concurrency, but in this mode there is no harm in trying.)
47
49
SQLITE_OPEN_SHAREDCACHEOpenFlags=C.SQLITE_OPEN_SHAREDCACHE// The database is opened shared cache enabled, overriding the default shared cache setting provided by sqlite3_enable_shared_cache().
48
50
SQLITE_OPEN_PRIVATECACHEOpenFlags=C.SQLITE_OPEN_PRIVATECACHE// The database is opened shared cache disabled, overriding the default shared cache setting provided by sqlite3_enable_shared_cache().
49
-
// SQLITE_OPEN_NOFOLLOW OpenFlags = C.SQLITE_OPEN_NOFOLLOW // The database filename is not allowed to be a symbolic link
51
+
SQLITE_OPEN_NOFOLLOWOpenFlags=C.SQLITE_OPEN_NOFOLLOW// The database filename is not allowed to be a symbolic link
0 commit comments