mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md
This commit is contained in:
1 parent
0fb1eec3cd
commit
2bdeae0ddb
1 file changed
+1
-1
@@ -1336,7 +1336,7 @@ GRDB provides four high-level methods as well:
|
||||
```swift
|
||||
db.tableExists("persons") // Bool, true if the table exists
|
||||
db.indexes(on: "persons") // [IndexInfo], the indexes defined on the table
|
||||
try db.table("persons", hasUniqueKey: ["id"]) // Bool, true if column(s) is a unique key
|
||||
try db.table("persons", hasUniqueKey: ["email"]) // Bool, true if column(s) is a unique key
|
||||
try db.primaryKey("persons") // PrimaryKey?
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user