Pudu programming language
Menu
API reference

Std.Db.Query.withValue

1 declaration

fn

withValue: &Std.Db.Query.Statement -> Str -> Std.Db.Driver.Value -> Std.Db.Query.Statement

This is a callable function.

What it does

A statement with one more piece of text and one more value.

The only way a value enters a statement. The placeholder is written here

rather than by the caller, so a caller cannot write one that does not

correspond to a value they supplied.

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