-
Undocumented
Declaration
Swift
public let db: sqlite3 -
Undocumented
Declaration
Swift
public init(_ path: String) throws
-
Undocumented
Declaration
Swift
public func escapeIdentifier(_ id: String) -> String
-
Undocumented
Declaration
Swift
public func createRelation(_ name: String, scheme: Scheme) -> Result<SQLiteTableRelation, RelationError> -
Undocumented
Declaration
Swift
public func getOrCreateRelation(_ name: String, scheme: Scheme) -> Result<SQLiteTableRelation, RelationError> -
Undocumented
Declaration
Swift
public func storedRelation(forName name: String) -> StoredRelation? -
Undocumented
Declaration
Swift
public subscript(name: String) -> SQLiteTableRelation? { get }
-
Undocumented
Declaration
Swift
public func executeQuery(_ sql: String, _ parameters: [RelationValue] = [], bindBlobsRaw: Bool = false) -> Result<AnyIterator<Result<Row, RelationError>>, RelationError> -
Undocumented
Declaration
Swift
public func executeQueryWithEmptyResults(_ sql: String, _ parameters: [RelationValue] = [], bindBlobsRaw: Bool = false) -> Result<Void, RelationError> -
Undocumented
Declaration
Swift
public func lastInsertRowID() -> Int64
-
Undocumented
Declaration
Swift
public func transaction<Return>(_ transactionFunction: () -> (Return, TransactionResult)) -> Result<Return, RelationError> -
Undocumented
Declaration
Swift
public func transaction(_ transactionFunction: () -> TransactionResult) -> Result<Void, RelationError> -
Undocumented
Declaration
Swift
public func resultNeedsRetry<T>(_ result: Result<T, RelationError>) -> Bool
SQLiteDatabase Class Reference