From a0fddfe7ec14113280a80c44aec30a2bcc8463ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 7 Dec 2019 13:47:00 +0100 Subject: [PATCH] Documentation --- GRDB/Core/Configuration.swift | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/GRDB/Core/Configuration.swift b/GRDB/Core/Configuration.swift index faf3b60cc..e9d3c985c 100644 --- a/GRDB/Core/Configuration.swift +++ b/GRDB/Core/Configuration.swift @@ -76,16 +76,26 @@ public struct Configuration { public var trace: TraceFunction? /// If false, SQLite from version 3.29.0 will not interpret a double-quoted - /// string as a string literal if it does not match any valid identifier: + /// string as a string literal if it does not match any valid identifier. /// - /// // no such column: naame + /// For example: + /// + /// // Error: no such column: foo /// let name = try String.fetchOne(db, sql: """ - /// SELECT "naame" FROM "player" + /// SELECT "foo" FROM "player" /// """) /// - /// See https://sqlite.org/quirks.html#dblquote for more information. + /// When true, or before version 3.29.0, such strings are interpreted as + /// string literals, as in the example below. This is a well known SQLite + /// [misfeature](https://sqlite.org/quirks.html#dblquote). /// - /// Default: false + /// // Success: "foo" + /// let name = try String.fetchOne(db, sql: """ + /// SELECT "foo" FROM "player" + /// """) + /// + /// - Recommended value: false + /// - Default value: false public var acceptsDoubleQuotedStringLiterals = false // MARK: - Encryption