URL (ext)
You’re viewing third-party extensions to URL
, a struct from the Swift standard library.
You can also read the documentation forURL
itself.
extension URL
You’re viewing third-party extensions to URL
, a struct from the Swift standard library.
You can also read the documentation forURL
itself.
extension URL
struct URL
A URL is a type that can potentially contain the location of a resource on a remote server, the path of a local file on disk, or even an arbitrary piece of encoded data.
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.
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(_ 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 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 -> 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 -> 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(_ 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 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(_ 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.
var databaseValue: DatabaseValue { get }
var sqlExpression: SQLExpression { get }
func bind(to sqliteStatement: SQLiteStatement, at index: CInt) -> CInt