Skip to content

Initializer

init(unsafeSQL:binds:)

Creates a query from a SQL string and its binds.
init(unsafeSQL sql: String, binds: PostgresBindings = PostgresBindings())

Discussion

Warning

sql is recorded on spans as db.query.text, see recordsQueryText. Pass values as binds instead of interpolating them into sql, or they will end up in your traces.