NSNull (ext)
You’re viewing third-party extensions to NSNull, a class from the Swift standard library.
You can also read the documentation forNSNull itself.
extension NSNullYou’re viewing third-party extensions to NSNull, a class from the Swift standard library.
You can also read the documentation forNSNull itself.
extension NSNullclass NSNullimport GRDBA toolkit for SQLite databases, with a focus on application development
protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol DatabaseValueConvertible : SQLExpressible, StatementBindingA type that can convert itself into and out of a database value.
protocol Escapableprotocol SQLExpressibleA type that can be used as an SQL expression.
protocol StatementBindingA type that can bind a statement argument.
static func fromDatabaseValue(_ dbValue: DatabaseValue) -> Self? Returns nil.
var databaseValue: DatabaseValue { get }Returns the NULL database value.
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 fromMissingColumn() -> Self? Default implementation fails to decode a value from a missing column.
var sqlExpression: SQLExpression { get }func bind(to sqliteStatement: SQLiteStatement, at index: CInt) -> CInt