mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
README.md: Fix sample code
This commit is contained in:
1 parent
dd6b98ce04
commit
f441341543
1 file changed
+1
-3
@@ -5743,9 +5743,7 @@ Open a read-only connection to your resource:
|
||||
// HOW TO open a read-only connection to a database resource
|
||||
|
||||
// Get the path to the database resource.
|
||||
if let dbPath = Bundle.main.path(forResource: "db", ofType: "sqlite")
|
||||
|
||||
if let dbPath {
|
||||
if let dbPath = Bundle.main.path(forResource: "db", ofType: "sqlite") {
|
||||
// If the resource exists, open a read-only connection.
|
||||
// Writes are disallowed because resources can not be modified.
|
||||
var config = Configuration()
|
||||
|
||||
Reference in new issue
Block a user