String
extension String: DatabaseValueConvertible, StatementColumnConvertible
String adopts DatabaseValueConvertible and StatementColumnConvertible.
-
Returns a value initialized from a raw SQLite statement pointer.
Declaration
Swift
@inlinable public init(sqliteStatement: SQLiteStatement, index: Int32)
Parameters
sqliteStatement
A pointer to an SQLite statement.
index
The column index.
-
Returns a value that can be stored in the database.
Declaration
Swift
public var databaseValue: DatabaseValue { get }
-
Returns a String initialized from dbValue, if possible.
Declaration
Swift
public static func fromDatabaseValue(_ dbValue: DatabaseValue) -> String?
-
Returns the receiver, quoted for safe insertion as an identifier in an SQL query.
db.execute(sql: "SELECT * FROM \(tableName.quotedDatabaseIdentifier)")
Declaration
Swift
@inlinable public var quotedDatabaseIdentifier: String { get }