Skip to content

Commit 30222de

Browse files
committed
Update binaries to latest Actions
1 parent 1f4ccf9 commit 30222de

File tree

12 files changed

+11
-1
lines changed

12 files changed

+11
-1
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1008 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/gdsqlite.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ bool SQLite::open_db()
104104
// }
105105
}
106106

107+
/* NOTE: Memory allocated by the alloc_c_string()-method needs to be freed manually! */
107108
const char *char_path = path.alloc_c_string();
108109
/* Try to open the database */
109110
if (read_only)
@@ -123,7 +124,16 @@ bool SQLite::open_db()
123124
else
124125
{
125126
rc = sqlite3_open_v2(char_path, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_URI, NULL);
126-
/* Identical to: `rc = sqlite3_open(char_path, &db);`*/
127+
/* The first two flags are default flags with behaviour that is identical to: `rc = sqlite3_open(char_path, &db);`*/
128+
/* The SQLITE_OPEN_URI flag is solely useful when using shared in-memory databases (shared cache), but it is safe to include in most situations */
129+
/* As found in the SQLite documentation: (https://www.sqlite.org/uri.html)*/
130+
131+
/* Since SQLite always interprets any filename that does not begin with "file:" as an ordinary filename regardless of the URI */
132+
/* setting, and because it is very unusual to have an actual file begin with "file:", it is safe for most applications to enable URI */
133+
/* processing even if URI filenames are not currently being used. */
134+
135+
/* In-memory databases with shard cache can be opened by setting the path-variable to `file::memory:?cache=shared` */
136+
/* More information can be found here: https://www.sqlite.org/inmemorydb.html */
127137
}
128138

129139
if (rc != SQLITE_OK)

0 commit comments

Comments
 (0)