SwiftclassPoirotSQLite

class PoirotSQLite.SQLiteDatabase

Members 22

  1. funcstatic openConnection(_: Foundation.URL, readOnly: Bool, requiresAuthentication: Bool) throws -> OpaquePointer
  2. funcstatic openInMemoryConnection() throws -> OpaquePointer
  3. deinitdeinit
  4. fieldvar connection: OpaquePointer?+0x10
  5. funcclose() -> ()
  6. funcdetachConnection() -> OpaquePointer?
  7. funcisOpen() -> Bool
  8. funclogAndReturnSQLErrorMessage(String) -> String
  9. funcmakeCreateStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing) throws -> PoirotSQLite.SQLiteStatement
  10. funcmakeInsertStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing, values: [String : PoirotSQLite.SQLiteType], returningRowId: Bool, replacingIfNeeded: Bool) throws -> PoirotSQLite.SQLiteStatement
  11. funcmakeInsertStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing, values: [String : PoirotSQLite.SQLiteType]?, returningRowId: Bool, replacingIfNeeded: Bool) throws -> PoirotSQLite.SQLiteStatement
  12. funcmakeInsertStatementWithPositionalParameters(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing, orderedValues: [PoirotSQLite.SQLiteType]?, returningRowId: Bool, replacingIfNeeded: Bool) throws -> PoirotSQLite.SQLiteStatement
  13. funcmakeSelectStatement(for: String, in: String?, with: PoirotSQLite.SQLiteSchemaDescribing) throws -> PoirotSQLite.SQLiteStatement
  14. funcregisterMathFunctions() throws -> PoirotSQLite.SQLiteDatabase
  15. funcsqlErrorMessage() throws -> String?
  16. funcstatement(with: String, verboseLog: Bool) throws -> PoirotSQLite.SQLiteStatement
  17. funcstatement(with: String, reusable: Bool, syntaxCheck: Bool, verboseLog: Bool) throws -> PoirotSQLite.SQLiteStatement
  18. functransaction(() throws -> ()) throws -> ()
  19. funcunsafeConnection() -> OpaquePointer?
  20. initPoirotSQLite.SQLiteDatabase.__allocating_init(connection: OpaquePointer?) throws -> PoirotSQLite.SQLiteDatabase
  21. initPoirotSQLite.SQLiteDatabase.__allocating_init() throws -> PoirotSQLite.SQLiteDatabase
  22. initPoirotSQLite.SQLiteDatabase.__allocating_init(_: Foundation.URL, readOnly: Bool, requiresAuthentication: Bool) throws -> PoirotSQLite.SQLiteDatabase
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
}