mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
dc011d522f
commit
d3da0bf860
1 file changed
+2
@@ -435,6 +435,8 @@ try db.execute(
|
||||
|
||||
The `?` and colon-prefixed keys like `:name` in the SQL query are the **statements arguments**. You pass arguments with arrays or dictionaries, as in the example above. See [Values](#values) for more information on supported arguments types (Bool, Int, String, NSDate, Swift enums, etc.).
|
||||
|
||||
Never ever embed values directly in your SQL strings, and always use arguments instead. See [Avoiding SQL Injection](#avoiding-sql-injection) for more information.
|
||||
|
||||
**After an INSERT statement**, you can get the row ID of the inserted row:
|
||||
|
||||
```swift
|
||||
|
||||
Reference in new issue
Block a user