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
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -39,15 +39,15 @@ type Conn C.sqlite3
39
39
40
40
const (
41
41
SQLITE_OPEN_NONEOpenFlags=0
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.
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.
44
-
SQLITE_OPEN_CREATEOpenFlags=C.SQLITE_OPEN_CREATE|C.SQLITE_OPEN_READWRITE// The database is created if it does not already exist
45
-
SQLITE_OPEN_URIOpenFlags=C.SQLITE_OPEN_URI// The filename can be interpreted as a URI if this flag is set.
46
-
SQLITE_OPEN_MEMORYOpenFlags=C.SQLITE_OPEN_MEMORY// The database will be opened as an in-memory database. The database is named by the "filename" argument for the purposes of cache-sharing, if shared cache mode is enabled, but the "filename" is otherwise ignored.
47
-
SQLITE_OPEN_NOMUTEXOpenFlags=C.SQLITE_OPEN_NOMUTEX// The new database connection will use the "multi-thread" threading mode. This means that separate threads are allowed to use SQLite at the same time, as long as each thread is using a different database connection.
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.)
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().
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().
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.
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.
44
+
SQLITE_OPEN_CREATEOpenFlags=C.SQLITE_OPEN_CREATE// The database is created if it does not already exist
45
+
SQLITE_OPEN_URIOpenFlags=C.SQLITE_OPEN_URI// The filename can be interpreted as a URI if this flag is set.
46
+
SQLITE_OPEN_MEMORYOpenFlags=C.SQLITE_OPEN_MEMORY// The database will be opened as an in-memory database. The database is named by the "filename" argument for the purposes of cache-sharing, if shared cache mode is enabled, but the "filename" is otherwise ignored.
47
+
SQLITE_OPEN_NOMUTEXOpenFlags=C.SQLITE_OPEN_NOMUTEX// The new database connection will use the "multi-thread" threading mode. This means that separate threads are allowed to use SQLite at the same time, as long as each thread is using a different database connection.
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.)
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().
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().
51
51
// SQLITE_OPEN_NOFOLLOW OpenFlags = C.SQLITE_OPEN_NOFOLLOW // The database filename is not allowed to be a symbolic link
0 commit comments