README.md

This commit is contained in:
Gwendal Roué committed 2016-04-22 04:44:13 +02:00
1 parent 5dfca74327
commit 34111df889
1 file changed
+3 -3
+3 -3
View File
@@ -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 ...")!