Pudu programming language
Menu
API reference

Std.Db.Query.textIn

1 declaration

fn

textIn: &Std.Db.Query.Statement -> &Std.Db.Driver.Placeholders -> Str

This is a callable function.

What it does

The same statement, spelled the way one backend writes a placeholder.

PostgreSQL takes $1, SQLite takes ? as well as $1, and a backend that

takes only ? refuses the first. Which one a driver takes is already

declared on it, so a caller with a driver in hand can ask here rather than

writing a spelling by hand and finding out from the database which backends

it happened to suit.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.Db.QuerySearch related declarations