init(_:)
Creates a StatementArguments
from a dictionary.
init?(_ dictionary: [AnyHashable : Any])
Parameters
- dictionary
A dictionary.
The result is nil unless all dictionary keys are strings, and values adopt DatabaseValueConvertible.
Creates a StatementArguments
from a dictionary.
init?(_ dictionary: [AnyHashable : Any])
s4GRDB18StatementArgumentsVyACSgSDys11AnyHashableVypGcfc
What are these?6OPP1
A dictionary.
The result is nil unless all dictionary keys are strings, and values adopt DatabaseValueConvertible.
import GRDB
A toolkit for SQLite databases, with a focus on application development
struct StatementArguments
An instance of StatementArguments
provides the values for argument placeholders in a prepared Statement
.
@frozen struct AnyHashable
A type-erased hashable value.
init()
Creates an empty StatementArguments
.
init(_ dictionary: [String : (any DatabaseValueConvertible)?])
Creates a StatementArguments
of named arguments from a dictionary.
init?(_ array: [Any])
Creates a StatementArguments
from an array.
init(_ values: some Sequence<some DatabaseValueConvertible>)
Creates a StatementArguments
from a sequence of values.
init(_ values: some Sequence<(any DatabaseValueConvertible)?>)
Creates a StatementArguments
from a sequence of values.
init(_ keysAndValues: some Sequence<(String, (any DatabaseValueConvertible)?)>)
Creates a StatementArguments
of named arguments from a sequence of (key, value) pairs.
init(arrayLiteral elements: (any DatabaseValueConvertible)?...)
Creates a StatementArguments
from an array literal.
init(dictionaryLiteral elements: (String, (any DatabaseValueConvertible)?)...)
Creates a StatementArguments
from a dictionary literal.
var description: String { get }
var isEmpty: Bool { get }
static func &+ (lhs: StatementArguments, rhs: StatementArguments) -> StatementArguments
Creates a new StatementArguments
by extending the left-hand size arguments with the right-hand side arguments.
static func + (lhs: StatementArguments, rhs: StatementArguments) -> StatementArguments
Creates a new StatementArguments
by extending the left-hand size arguments with the right-hand side arguments.
static func += (lhs: inout StatementArguments, rhs: StatementArguments)
Extends the left-hand size arguments with the right-hand side arguments.
mutating func append(contentsOf arguments: StatementArguments) -> [String : DatabaseValue]
Appends statement arguments.