Pudu programming language
Menu
API reference

Std.Db.Protocol.bind

1 declaration

fn

bind: Str -> Str -> &Array[Option[Str]] -> Bytes

This is a callable function.

What it does

Values supplied for a planned statement's holes.

Every value is sent as text and every result asked for as text. That is the

slower of the two formats and the one whose meaning does not depend on the

server's word size or byte order, which is the right trade for a client

that must be correct against a server it did not build.

A value that is absent is sent as a length of minus one rather than as

empty, because the protocol distinguishes them and a column that is empty

is not a column that has nothing.

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.
  • Names inside [ ] are type arguments, such as the item type held by a collection.
  • Option holds Some(value) or None when no value is available.

Back to Std.Db.ProtocolSearch related declarations