Skip to content

Instance Method

bindPlaceholder(at:)

A function which returns an expression to be used as the placeholder for the positionth bound parameter in a query.
func bindPlaceholder(at position: Int) -> any SQLExpression

Parameters

position

Indicates which bound parameter to create a placeholder for, where the first parameter has position 1. This value is guaranteed to be greater than zero.

Discussion

The function may ignore the value of position if the syntax doesn’t require or support it.

No default is provided.

See Also

Basics

  • name
    The name of the dialect.
  • identifierQuote
    An expression (usually an SQLRaw) giving the character(s) used to quote SQL identifiers, such as table and column names.
  • literalStringQuote
    An expression (usually an SQLRaw) giving the character(s) used to quote literal string values which appear in a query, such as enumerator names.
  • literalBoolean(_:)
    A function which returns an SQL expression (usually an SQLRaw) representing the given literal boolean value.
  • literalDefault
    An expression (usually an SQLRaw) giving the syntax used to express both “use this as the default value” in a column definition and “use the default value for this column” in a value list.