SwiftclassPoirotSQLite
class PoirotSQLite.SQLiteDatabase
Members 22
- func
static openConnection(_: Foundation.URL, readOnly: Bool, requiresAuthentication: Bool) throws -> OpaquePointer - func
static openInMemoryConnection() throws -> OpaquePointer - deinit
deinit - field
var connection: OpaquePointer?+0x10 - func
close() -> () - func
detachConnection() -> OpaquePointer? - func
isOpen() -> Bool - func
logAndReturnSQLErrorMessage(String) -> String - func
makeCreateStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing) throws -> PoirotSQLite.SQLiteStatement - func
makeInsertStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing, values: [String : PoirotSQLite.SQLiteType], returningRowId: Bool, replacingIfNeeded: Bool) throws -> PoirotSQLite.SQLiteStatement - func
makeInsertStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing, values: [String : PoirotSQLite.SQLiteType]?, returningRowId: Bool, replacingIfNeeded: Bool) throws -> PoirotSQLite.SQLiteStatement - func
makeInsertStatementWithPositionalParameters(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing, orderedValues: [PoirotSQLite.SQLiteType]?, returningRowId: Bool, replacingIfNeeded: Bool) throws -> PoirotSQLite.SQLiteStatement - func
makeSelectStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing) throws -> PoirotSQLite.SQLiteStatement - func
registerMathFunctions() throws -> PoirotSQLite.SQLiteDatabase - func
sqlErrorMessage() throws -> String? - func
statement(with: String, verboseLog: Bool) throws -> PoirotSQLite.SQLiteStatement - func
statement(with: String, reusable: Bool, syntaxCheck: Bool, verboseLog: Bool) throws -> PoirotSQLite.SQLiteStatement - func
transaction(() throws -> ()) throws -> () - func
unsafeConnection() -> OpaquePointer? - init
PoirotSQLite.SQLiteDatabase.__allocating_init(connection: OpaquePointer?) throws -> PoirotSQLite.SQLiteDatabase - init
PoirotSQLite.SQLiteDatabase.__allocating_init() throws -> PoirotSQLite.SQLiteDatabase - init
PoirotSQLite.SQLiteDatabase.__allocating_init(_: Foundation.URL, readOnly: Bool, requiresAuthentication: Bool) throws -> PoirotSQLite.SQLiteDatabase
Header
class SQLiteDatabase { enum TransactionError { case fatal(Swift.String) case recoverable(Swift.String) } var connection: Swift.OpaquePointer? func unsafeConnection() -> Swift.OpaquePointer? init() throws init(_: Foundation.URL, readOnly: Swift.Bool, requiresAuthentication: Swift.Bool) throws init(connection: Swift.OpaquePointer?) throws func detachConnection() -> Swift.OpaquePointer? func close() func isOpen() -> Swift.Bool func statement(with: Swift.String, verboseLog: Swift.Bool) throws -> PoirotSQLite.SQLiteStatement func statement(with: Swift.String, reusable: Swift.Bool, syntaxCheck: Swift.Bool, verboseLog: Swift.Bool) throws -> PoirotSQLite.SQLiteStatement func transaction(_: () throws -> ()) throws func logAndReturnSQLErrorMessage(_: Swift.String) -> Swift.String func sqlErrorMessage() throws -> Swift.String? func registerMathFunctions() throws -> PoirotSQLite.SQLiteDatabase final func makeCreateStatement(for: Swift.String, in: Swift.String?, with: any PoirotSQLite.SQLiteSchemaDescribing) throws -> PoirotSQLite.SQLiteStatement final func makeInsertStatement(for: Swift.String, in: Swift.String?, with: any PoirotSQLite.SQLiteSchemaDescribing, values: [Swift.String : any PoirotSQLite.SQLiteType], returningRowId: Swift.Bool, replacingIfNeeded: Swift.Bool) throws -> PoirotSQLite.SQLiteStatement final func makeInsertStatement(for: Swift.String, in: Swift.String?, with: any PoirotSQLite.SQLiteSchemaDescribing, values: [Swift.String : any PoirotSQLite.SQLiteType]?, returningRowId: Swift.Bool, replacingIfNeeded: Swift.Bool) throws -> PoirotSQLite.SQLiteStatement final func makeSelectStatement(for: Swift.String, in: Swift.String?, with: any PoirotSQLite.SQLiteSchemaDescribing) throws -> PoirotSQLite.SQLiteStatement final func makeInsertStatementWithPositionalParameters(for: Swift.String, in: Swift.String?, with: any PoirotSQLite.SQLiteSchemaDescribing, orderedValues: [any PoirotSQLite.SQLiteType]?, returningRowId: Swift.Bool, replacingIfNeeded: Swift.Bool) throws -> PoirotSQLite.SQLiteStatement static func openConnection(_: Foundation.URL, readOnly: Swift.Bool, requiresAuthentication: Swift.Bool) throws -> Swift.OpaquePointer static func openInMemoryConnection() throws -> Swift.OpaquePointer deinit }