SwiftclassIntelligencePlatformQuery

class IntelligencePlatformQuery.SQLConnection

Members 32

  1. funcstatic sqlError(db: OpaquePointer, resultCode: Int32, statement: OpaquePointer?, message: String?) -> IntelligencePlatformQuery.SQLConnection.Error
  2. funcstatic sqlErrorLite(resultCode: Int32, statement: OpaquePointer?, message: String?) -> IntelligencePlatformQuery.SQLConnection.Error
  3. funcstatic sqlite_result_string(context: OpaquePointer, string: String) -> ()
  4. varstatic var SQLITE_TRANSIENT: @convention(c) (UnsafeMutableRawPointer?) -> () { get set }
  5. deinitdeinit
  6. fieldlet account: BMAccount?
  7. fieldvar attachedDatabases: [String : Foundation.URL]
  8. fieldvar authorizerInstalled: Bool
  9. fieldlet handle: OpaquePointer+0x10
  10. fieldlet library: BiomeStreams.LibraryBase.Type
  11. fieldlet privileges: [BMSQLColumnAccessSet]?
  12. fieldvar streamModule: IntelligencePlatformQuery.VirtualTable.Stream.Module?
  13. fieldvar streamTombstoneModule: IntelligencePlatformQuery.VirtualTable.StreamTombstone.Module?
  14. fieldvar unicode61WrapperTokenizerDataReference: IntelligencePlatformQuery.Unicode61WrapperTokenizerDataReference?
  15. fieldlet useCase: BMUseCaseIdentifier
  16. fieldvar viewModule: IntelligencePlatformQuery.VirtualTable.View.Module?
  17. funcaddTokenizer<A>(apiHandler: (UnsafePointer<fts5_api>) throws -> A) -> A
  18. funcaddUnicodeWrapperTokenizer() -> ()
  19. funcattachDatabase(url: Foundation.URL, as: String, readwrite: Bool) throws -> ()
  20. funccreateVirtualTable(tableName: String, moduleName: String) throws -> ()
  21. funcdetachDatabase(String) throws -> ()
  22. funcexecute(query: String, block: (IntelligencePlatformQuery.ResultSetCursor) throws -> ()) throws -> ()
  23. funcexecute(query: String, against: IntelligencePlatformQuery.IncrementalIdentifier.PersistableGlobalBookmark, block: (IntelligencePlatformQuery.IncrementalResultSet) throws -> ()) throws -> IntelligencePlatformQuery.IncrementalIdentifier.PersistableGlobalBookmark
  24. funcexecute(query: String, bindings: [IntelligencePlatformQuery.SQLConnection.Bindable?], block: (IntelligencePlatformQuery.ResultSetCursor) throws -> ()) throws -> ()
  25. funcexecuteWithoutAuthorizer(_: String, block: (IntelligencePlatformQuery.ResultSetCursor) throws -> ()) throws -> ()
  26. funcexecuteWithoutAuthorizer(String) throws -> ()
  27. funcextendConnection(block: (OpaquePointer) throws -> ()) throws -> ()
  28. funcinstallEntityIdentifierFunction() -> ()
  29. funcregister(module: IntelligencePlatformQuery.VirtualTable.Module) throws -> ()
  30. initIntelligencePlatformQuery.SQLConnection.__allocating_init(streamIdentifiers: any Sequence<Self.Sequence.Element == String>, databaseIdentifiers: any Sequence<Self.Sequence.Element == String>, setIdentifiers: any Sequence<Self.Sequence.Element == String>, useCase: BMUseCaseIdentifier, library: BiomeStreams.LibraryBase.Type, privileges: [BMSQLColumnAccessSet]?, account: BMAccount?) throws -> IntelligencePlatformQuery.SQLConnection
  31. initIntelligencePlatformQuery.SQLConnection.__allocating_init(library: BiomeStreams.LibraryBase.Type, privileges: [BMSQLColumnAccessSet]?, useCase: BMUseCaseIdentifier, account: BMAccount?) throws -> IntelligencePlatformQuery.SQLConnection
  32. initIntelligencePlatformQuery.SQLConnection.__allocating_init(useCase: BMUseCaseIdentifier, account: BMAccount?) throws -> IntelligencePlatformQuery.SQLConnection
class SQLConnection {
    enum Error {
        case unexpected(Swift.String)
        case missingParameter(parameter: Swift.String, context: Swift.String)
        case usage(Swift.String)
        case sql(resultCode: Swift.Int32, errorCode: Swift.Int32, extendedErrCode: Swift.Int32, errorString: Swift.String, errorMessage: Swift.String, errorOffset: Swift.Int32, sqlString: Swift.String?, message: Swift.String?)
        case sqlLite(resultCode: Swift.Int32, errorString: Swift.String, sqlString: Swift.String?, message: Swift.String?)
        case memory

        var description: Swift.String {
            get
        }
    }
    protocol DatabaseType {
        init(value: Swift.OpaquePointer) throws

        func bindTo(_: Swift.OpaquePointer, index: Swift.Int32) throws

        static var sqlite3Type: BiomeStreams.LibraryArtifact.SQLDataType {
            get
        }
    }
    protocol Bindable {
        func bind(stmt: Swift.OpaquePointer, idx: Swift.Int32) -> Swift.Int32
    }
    let handle: Swift.OpaquePointer
    let library: any BiomeStreams.LibraryBase.Type
    let privileges: [__C.BMSQLColumnAccessSet]?
    let useCase: __C.BMUseCaseIdentifier
    let account: __C.BMAccount?
    var streamModule: IntelligencePlatformQuery.VirtualTable.Stream.Module?
    var streamTombstoneModule: IntelligencePlatformQuery.VirtualTable.StreamTombstone.Module?
    var viewModule: IntelligencePlatformQuery.VirtualTable.View.Module?
    var attachedDatabases: [Swift.String : Foundation.URL]
    var authorizerInstalled: Swift.Bool
    var unicode61WrapperTokenizerDataReference: IntelligencePlatformQuery.Unicode61WrapperTokenizerDataReference?

    init(library: any BiomeStreams.LibraryBase.Type, privileges: [__C.BMSQLColumnAccessSet]?, useCase: __C.BMUseCaseIdentifier, account: __C.BMAccount?) throws

    init(streamIdentifiers: any Swift.Sequence<Swift.String>, databaseIdentifiers: any Swift.Sequence<Swift.String>, setIdentifiers: any Swift.Sequence<Swift.String>, useCase: __C.BMUseCaseIdentifier, library: any BiomeStreams.LibraryBase.Type, privileges: [__C.BMSQLColumnAccessSet]?, account: __C.BMAccount?) throws
    init(useCase: __C.BMUseCaseIdentifier, account: __C.BMAccount?) throws

    final func addTokenizer<A>(apiHandler: (_: Swift.UnsafePointer<__C.fts5_api>) throws -> A) -> A
    final func attachDatabase(url: Foundation.URL, as: Swift.String, readwrite: Swift.Bool) throws
    final func detachDatabase(_: Swift.String) throws
    final func extendConnection(block: (_: Swift.OpaquePointer) throws -> ()) throws
    final func createVirtualTable(tableName: Swift.String, moduleName: Swift.String) throws
    final func executeWithoutAuthorizer(_: Swift.String, block: (_: IntelligencePlatformQuery.ResultSetCursor) throws -> ()) throws
    final func executeWithoutAuthorizer(_: Swift.String) throws
    final func addUnicodeWrapperTokenizer()
    final func installEntityIdentifierFunction()
    final func execute(query: Swift.String, block: (_: IntelligencePlatformQuery.ResultSetCursor) throws -> ()) throws
    final func execute(query: Swift.String, against: IntelligencePlatformQuery.IncrementalIdentifier.PersistableGlobalBookmark, block: (_: IntelligencePlatformQuery.IncrementalResultSet) throws -> ()) throws -> IntelligencePlatformQuery.IncrementalIdentifier.PersistableGlobalBookmark
    final func execute(query: Swift.String, bindings: [(any IntelligencePlatformQuery.SQLConnection.Bindable)?], block: (_: IntelligencePlatformQuery.ResultSetCursor) throws -> ()) throws
    final func register(module: any IntelligencePlatformQuery.VirtualTable.Module) throws

    static var SQLITE_TRANSIENT: @convention(c) (_: Swift.UnsafeMutableRawPointer?) -> () {
        get
        set
    }

    static func sqlErrorLite(resultCode: Swift.Int32, statement: Swift.OpaquePointer?, message: Swift.String?) -> IntelligencePlatformQuery.SQLConnection.Error
    static func sqlite_result_string(context: Swift.OpaquePointer, string: Swift.String)
    static func sqlError(db: Swift.OpaquePointer, resultCode: Swift.Int32, statement: Swift.OpaquePointer?, message: Swift.String?) -> IntelligencePlatformQuery.SQLConnection.Error

    deinit
}