Instance Method
serialize(_:)
Serialize an arbitrary
SQLExpression using the database’s dialect.func serialize(_ expression: any SQLExpression) -> (sql: String, binds: [any Encodable & Sendable])
Discussion
The expression need not represent a complete query. Serialization transforms the expression into:
A string containing raw SQL text rendered in the database’s dialect, and,
A potentially empty array of values for any bound parameters referenced by the query.
See Also
Raw queries
raw(_:)Create a newSQLRawBuilder.