mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
README.md
This commit is contained in:
1 parent
5dfca74327
commit
34111df889
1 file changed
+3
-3
@@ -920,9 +920,9 @@ components.day = 18
|
||||
|
||||
// Store "1973-09-18"
|
||||
let dbComponents = DatabaseDateComponents(components, format: .YMD)
|
||||
try db.execute("INSERT INTO persons (birthDate, ...) " +
|
||||
"VALUES (?, ...)",
|
||||
arguments: [dbComponents, ...])
|
||||
try db.execute(
|
||||
"INSERT INTO persons (birthDate, ...) VALUES (?, ...)",
|
||||
arguments: [dbComponents, ...])
|
||||
|
||||
// Read "1973-09-18"
|
||||
let row = Row.fetchOne(db, "SELECT birthDate ...")!
|
||||
|
||||
Reference in new issue
Block a user