UUID (ext)
You’re viewing third-party extensions to UUID
, a struct from the Swift standard library.
You can also read the documentation forUUID
itself.
extension UUID
You’re viewing third-party extensions to UUID
, a struct from the Swift standard library.
You can also read the documentation forUUID
itself.
extension UUID
struct UUID
Represents UUID strings, which can be used to uniquely identify types, interfaces, and other items.
import GRDB
A toolkit for SQLite databases, with a focus on application development
protocol DatabaseValueConvertible : SQLExpressible, StatementBinding
A type that can convert itself into and out of a database value.
protocol SQLExpressible
A type that can be used as an SQL expression.
protocol StatementBinding
A type that can bind a statement argument.
protocol StatementColumnConvertible
A type that can decode itself from the low-level C interface to SQLite results.
init?(sqliteStatement: SQLiteStatement, index: CInt)
static func fromDatabaseValue(_ dbValue: DatabaseValue) -> UUID?
Returns a UUID
from the specified database value.
var databaseValue: DatabaseValue { get }
Returns a BLOB database value containing the uuid bytes.
static func databaseJSONDecoder() -> JSONDecoder
Returns the JSONDecoder
that decodes the value.
static func databaseJSONEncoder() -> JSONEncoder
Returns the JSONEncoder
that encodes the value.
static func fetchAll(_ db: Database, _ request: some FetchRequest) throws -> [Self]
Returns an array of values fetched from a fetch request.
static func fetchAll(_ db: Database, _ request: some FetchRequest) throws -> [Self]
Returns an array of values fetched from a fetch request.
static func fetchAll(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> [Self]
Returns an array of values fetched from a prepared statement.
static func fetchAll(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> [Self]
Returns an array of values fetched from a prepared statement.
static func fetchAll(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> [Self]
Returns an array of values fetched from an SQL query.
static func fetchAll(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> [Self]
Returns an array of values fetched from an SQL query.
static func fetchCursor(_ db: Database, _ request: some FetchRequest) throws -> FastDatabaseValueCursor<Self>
Returns a cursor over values fetched from a fetch request.
static func fetchCursor(_ db: Database, _ request: some FetchRequest) throws -> DatabaseValueCursor<Self>
Returns a cursor over values fetched from a fetch request.
static func fetchCursor(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> FastDatabaseValueCursor<Self>
Returns a cursor over values fetched from a prepared statement.
static func fetchCursor(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> DatabaseValueCursor<Self>
Returns a cursor over values fetched from a prepared statement.
static func fetchCursor(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> FastDatabaseValueCursor<Self>
Returns a cursor over values fetched from an SQL query.
static func fetchCursor(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> DatabaseValueCursor<Self>
Returns a cursor over values fetched from an SQL query.
static func fetchOne(_ db: Database, _ request: some FetchRequest) throws -> Self?
Returns a single value fetched from a fetch request.
static func fetchOne(_ db: Database, _ request: some FetchRequest) throws -> Self?
Returns a single value fetched from a fetch request.
static func fetchOne(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> Self?
Returns a single value fetched from a prepared statement.
static func fetchOne(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> Self?
Returns a single value fetched from a prepared statement.
static func fetchOne(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> Self?
Returns a single value fetched from an SQL query.
static func fetchOne(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> Self?
Returns a single value fetched from an SQL query.
static func fetchSet(_ db: Database, _ request: some FetchRequest) throws -> Set<Self>
Returns a set of values fetched from a fetch request.
static func fetchSet(_ db: Database, _ request: some FetchRequest) throws -> Set<Self>
Returns a set of values fetched from a fetch request.
static func fetchSet(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> Set<Self>
Returns a set of values fetched from a prepared statement.
static func fetchSet(_ statement: Statement, arguments: StatementArguments? = nil, adapter: (any RowAdapter)? = nil) throws -> Set<Self>
Returns a set of values fetched from a prepared statement.
static func fetchSet(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> Set<Self>
Returns a set of values fetched from an SQL query.
static func fetchSet(_ db: Database, sql: String, arguments: StatementArguments = StatementArguments(), adapter: (any RowAdapter)? = nil) throws -> Set<Self>
Returns a set of values fetched from an SQL query.
static func fromDatabaseValue(_ databaseValue: DatabaseValue) -> Self?
static func fromMissingColumn() -> Self?
Default implementation fails to decode a value from a missing column.
static func fromStatement(_ sqliteStatement: SQLiteStatement, atUncheckedIndex index: CInt) -> Self?
Default implementation fails on decoding NULL.
var sqlExpression: SQLExpression { get }
func bind(to sqliteStatement: SQLiteStatement, at index: CInt) -> CInt