SwiftprotocolFindMyStorage

protocol FindMyStorage.Database

Members 31

  1. func_test_raw_scalar_sql_query(String) throws -> Int64
  2. funcawait(state: FindMyStorage.DatabaseState) async throws -> ()
  3. funccheckpoint(mode: FindMyStorage.DatabaseCheckpointMode) throws -> ()
  4. funccolumnNames(connection: SwiftSQLite.Connection, tableName: String) throws -> [String]
  5. funcmethod descriptor for createIfNecessary() throws -> ()
  6. funccreateIfNecessary() throws -> ()
  7. funcmethod descriptor for databaseAvailable() -> ()
  8. funcmethod descriptor for encryptionKey() throws -> Foundation.Data?
  9. funcestablishConnection(baseContainerURL: Foundation.URL, temporary: Bool) throws -> FindMyStorage.ConnectionPair
  10. funcexcludeFromBackup() throws -> ()
  11. funcincrementalVacuum() throws -> ()
  12. funcmethod descriptor for migrate(from: Int32, to: Int32, writeConnection: SwiftSQLite.Connection) throws -> ()
  13. funcoptimize() throws -> ()
  14. funcmethod descriptor for purge() throws -> ()
  15. funcpurge() throws -> ()
  16. funcmethod descriptor for reset() throws -> ()
  17. funcreset() throws -> ()
  18. funcmethod descriptor for startup() throws -> ()
  19. funcstartup() throws -> ()
  20. functableNames(connection: SwiftSQLite.Connection) throws -> [String]
  21. funcmethod descriptor for underlyingFileURLs(baseContainerURL: Foundation.URL) throws -> (base: Foundation.URL, shmem: Foundation.URL, wal: Foundation.URL)
  22. varvar baseContainerURL: Foundation.URL { get }
  23. varvar connectionPair: FindMyStorage.ConnectionPair? { get set modify }
  24. varvar currentVersion: Int32 { get }
  25. varvar description: String { get }
  26. varvar isolatedDescription: String { get }
  27. varvar readConnection: SwiftSQLite.Connection? { get }
  28. varvar state: FindMyStorage.DatabaseState { get }
  29. varvar stateStream: AsyncStream<(FindMyBase.Transaction, FindMyStorage.DatabaseState)> { get }
  30. varvar temporary: Bool { get }
  31. varvar writeConnection: SwiftSQLite.Connection? { get }
protocol Database: FindMyBase.IsolatedCustomStringConvertible, Swift.CustomStringConvertible {
    var baseContainerURL: Foundation.URL {
        get
    }
    var connectionPair: FindMyStorage.ConnectionPair? {
        get
        set
    }
    var currentVersion: Swift.Int32 {
        get
    }
    var state: FindMyStorage.DatabaseState {
        get
    }
    var stateStream: Swift.AsyncStream<(FindMyBase.Transaction, FindMyStorage.DatabaseState)> {
        get
    }
    var temporary: Swift.Bool {
        get
    }

    func encryptionKey() throws -> Foundation.Data?
    func underlyingFileURLs(baseContainerURL: Foundation.URL) throws -> (base: Foundation.URL, shmem: Foundation.URL, wal: Foundation.URL)
    func startup() throws
    func databaseAvailable()
    func migrate(from: Swift.Int32, to: Swift.Int32, writeConnection: SwiftSQLite.Connection) throws
    func purge() throws
    func reset() throws
    func createIfNecessary() throws
}
extension FindMyStorage.Database {
    var description: Swift.String {
        get
    }
    var isolatedDescription: Swift.String {
        get
    }
    var readConnection: SwiftSQLite.Connection? {
        get
    }
    var writeConnection: SwiftSQLite.Connection? {
        get
    }

    func checkpoint(mode: FindMyStorage.DatabaseCheckpointMode) throws
    func tableNames(connection: SwiftSQLite.Connection) throws -> [Swift.String]
    func columnNames(connection: SwiftSQLite.Connection, tableName: Swift.String) throws -> [Swift.String]
    func createIfNecessary() throws
    func excludeFromBackup() throws
    func incrementalVacuum() throws
    func establishConnection(baseContainerURL: Foundation.URL, temporary: Swift.Bool) throws -> FindMyStorage.ConnectionPair
    func _test_raw_scalar_sql_query(_: Swift.String) throws -> Swift.Int64
    func await(state: FindMyStorage.DatabaseState) async throws
    func purge() throws
    func reset() throws
    func startup() throws
    func optimize() throws
}