Skip to content

Commit 96b014d

Browse files
committed
Always enable URI filenames
https://sqlite.org/uri.html
1 parent 44383df commit 96b014d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/SQLite/Core/Connection.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ public final class Connection {
105105
/// - Returns: A new database connection.
106106
public init(_ location: Location = .inMemory, readonly: Bool = false) throws {
107107
let flags = readonly ? SQLITE_OPEN_READONLY : SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE
108-
try check(sqlite3_open_v2(location.description, &_handle, flags | SQLITE_OPEN_FULLMUTEX, nil))
108+
try check(sqlite3_open_v2(location.description,
109+
&_handle,
110+
flags | SQLITE_OPEN_FULLMUTEX | SQLITE_OPEN_URI,
111+
nil))
109112
queue.setSpecific(key: Connection.queueKey, value: queueContext)
110113
}
111114

0 commit comments

Comments
 (0)