// Generated by HeaderLand from iOS 27.2.1 (24B156), /System/Library/PrivateFrameworks/SessionSQL.framework/SessionSQL.
// Recovered from the binary: no comments, no parameter names Swift does not keep, no availability.
class SQLDatabase {
struct Storage {
let path: Foundation.URL
let protectionClass: __C.BSSqliteDatabaseConnectionDataProtectionClass
init(path: Foundation.URL, protectionClass: __C.BSSqliteDatabaseConnectionDataProtectionClass)
}
let defaultCacheSize: Swift.Int
let lock: SessionSQL.UnfairLock
let database: __C.BSSqliteDatabaseConnection
var locked_transactionCount: Swift.Int
var locked_attemptingTransactionCount: Swift.Int
var locked_largeCacheAssertionCount: Swift.UInt
func close()
init(storage: SessionSQL.SQLDatabase.Storage, schema: SessionSQL.SQLSchemaBuilder?) throws
final func inTransaction(reason: Swift.String, _: () throws -> Swift.Bool) throws -> Swift.Bool
final func performSimple(_: SessionSQL.SQLStatement) throws -> Swift.Int64
final func isInTransaction() -> Swift.Bool
final func perform(_: SessionSQL.SQLStatement) throws -> [SessionSQL.SQLResult]
deinit
}
class UnfairLock {
let _lock: Swift.UnsafeMutablePointer<__C.os_unfair_lock_s>
}
enum SessionSQL.SQLResultError.Code {
case TypeMismatch
}
enum SQLValue {
case int(Swift.Int64)
case real(Swift.Double)
case text(Swift.String)
case blob(Foundation.Data)
case null
init?(_: Any)
init(_: any SessionSQL.SQLPrimitive)
func unboxedValue() -> any SessionSQL.SQLPrimitive
func unbox() -> A? where A: SessionSQL.SQLPrimitive
func contains(_: A) -> Swift.Bool where A: SessionSQL.SQLPrimitive, A: Swift.Equatable
}
enum SQLiteError {
case Success
case Failure
case OpenFailed
case InvalidSyntax
case ResultMismatch
}
extension Foundation.Data: SessionSQL.SQLPrimitive {}
extension __C.NSNull: SessionSQL.SQLPrimitive {}
extension SessionSQL.SQLResult: Swift.Collection {
typealias Element = SessionSQL.SQLValue
typealias Index = Swift.Int
typealias Iterator = Swift.IndexingIterator
typealias SubSequence = Swift.Slice
typealias Indices = Swift.DefaultIndices
}
extension SessionSQL.SQLResult: Swift.Sequence {
typealias Element = SessionSQL.SQLValue
typealias Iterator = Swift.IndexingIterator
}
extension SessionSQL.SQLResultError: Swift.Error {}
extension SessionSQL.SQLResultError.Code: Swift.Hashable {}
extension SessionSQL.SQLResultError.Code: Swift.Equatable {}
extension SessionSQL.SQLStatement: Swift.ExpressibleByStringInterpolation {
typealias StringInterpolation = SessionSQL.SQLStatement.StringInterpolation
}
extension SessionSQL.SQLStatement: Swift.ExpressibleByStringLiteral {
typealias StringLiteralType = Swift.String
}
extension SessionSQL.SQLStatement: Swift.ExpressibleByExtendedGraphemeClusterLiteral {
typealias ExtendedGraphemeClusterLiteralType = Swift.String
}
extension SessionSQL.SQLStatement: Swift.ExpressibleByUnicodeScalarLiteral {
typealias UnicodeScalarLiteralType = Swift.String
}
extension SessionSQL.SQLStatement.StringInterpolation: Swift.StringInterpolationProtocol {
typealias StringLiteralType = Swift.String
}
extension SessionSQL.SQLValue: Swift.Equatable {}
extension SessionSQL.SQLiteError: Swift.Equatable {}
extension SessionSQL.SQLiteError: Swift.Hashable {}
extension SessionSQL.SQLiteError: Swift.Error {}
extension Swift.Double: SessionSQL.SQLPrimitive {}
extension Swift.Int64: SessionSQL.SQLPrimitive {}
extension Swift.String: SessionSQL.SQLPrimitive {}
extension os.Logger {
static var database: os.Logger {
get
}
}
protocol SQLPrimitive {}
struct SessionSQL.SQLDatabase.Storage {
let path: Foundation.URL
let protectionClass: __C.BSSqliteDatabaseConnectionDataProtectionClass
init(path: Foundation.URL, protectionClass: __C.BSSqliteDatabaseConnectionDataProtectionClass)
}
struct SQLResult {
let resultArray: [(column: Swift.String, value: SessionSQL.SQLValue)]
var allColumns: [Swift.String] {
get
}
var allValues: [SessionSQL.SQLValue] {
get
}
var endIndex: Swift.Int {
get
}
var startIndex: Swift.Int {
get
}
func index(after: Swift.Int) -> Swift.Int
subscript(_: Swift.String) -> SessionSQL.SQLValue? {
get
}
subscript(_: Swift.StaticString) -> SessionSQL.SQLValue? {
get
}
subscript(_: Swift.Int) -> SessionSQL.SQLValue {
get
}
subscript(_: Swift.String) -> A? where A: SessionSQL.SQLPrimitive {
get
}
subscript(_: Swift.StaticString) -> A? where A: SessionSQL.SQLPrimitive {
get
}
}
struct SQLResultError {
enum Code {
case TypeMismatch
}
let code: SessionSQL.SQLResultError.Code
let localizedDescription: Swift.String
}
struct SQLSchemaBuilder {
let majorVersion: Swift.UInt16
let schemaRevisions: [(_: SessionSQL.SQLDatabase) throws -> ()]
init(majorVersion: Swift.UInt16, schemaRevisions: [(_: SessionSQL.SQLDatabase) throws -> ()])
}
struct SQLStatement {
struct StringInterpolation {
var value: Swift.String
var bindings: [Swift.String : SessionSQL.SQLValue]
init(literalCapacity: Swift.Int, interpolationCount: Swift.Int)
func appendInterpolation(bind: any SessionSQL.SQLPrimitive)
func appendInterpolation(trusted: Swift.String)
func appendInterpolation(_: SessionSQL.SQLValue)
func appendInterpolation(_: Swift.StaticString)
func appendLiteral(_: Swift.String)
}
let bindings: [Swift.String : SessionSQL.SQLValue]
let parameterizedStatement: Swift.String
init(stringLiteral: Swift.String)
init(stringInterpolation: SessionSQL.SQLStatement.StringInterpolation)
}
struct SessionSQL.SQLStatement.StringInterpolation {
var value: Swift.String
var bindings: [Swift.String : SessionSQL.SQLValue]
init(literalCapacity: Swift.Int, interpolationCount: Swift.Int)
func appendInterpolation(bind: any SessionSQL.SQLPrimitive)
func appendInterpolation(trusted: Swift.String)
func appendInterpolation(_: SessionSQL.SQLValue)
func appendInterpolation(_: Swift.StaticString)
func appendLiteral(_: Swift.String)
}