ID
The identifier of an SQLite function.
struct ID
SQLite identifies functions by their name and argument count.
The identifier of an SQLite function.
struct ID
SQLite identifies functions by their name and argument count.
import GRDB
A toolkit for SQLite databases, with a focus on application development
final class DatabaseFunction
A custom SQL function or aggregate.
init<Aggregate>(_ name: String, argumentCount: Int? = nil, pure: Bool = false, aggregate: Aggregate.Type) where Aggregate : DatabaseAggregate
Creates an SQL aggregate function.
init(_ name: String, argumentCount: Int? = nil, pure: Bool = false, function: @escaping ([DatabaseValue]) throws -> (any DatabaseValueConvertible)?)
Creates an SQL function.
static let capitalize: DatabaseFunction
An SQL function that calls the Foundation String.capitalized
property.
static let localizedCapitalize: DatabaseFunction
An SQL function that calls the Foundation String.localizedCapitalized
property.
static let localizedLowercase: DatabaseFunction
An SQL function that calls the Foundation String.localizedLowercase
property.
static let localizedUppercase: DatabaseFunction
An SQL function that calls the Foundation String.localizedUppercase
property.
static let lowercase: DatabaseFunction
An SQL function that calls the Swift String.lowercased()
method.
static let uppercase: DatabaseFunction
An SQL function that calls the Swift String.uppercased()
method.
let id: ID
The identifier of the SQL function.
var name: String { get }
The name of the SQL function.
func callAsFunction(_ arguments: any SQLExpressible...) -> SQLExpression
Returns an SQL expression that applies the function.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.