cake/param

A Param is a value that can be used in a query.

Params (e.g. parameters) are wrapped (boxed) literal values, that can be used in SQL queries.

Types

pub type Param {
  BoolParam(Bool)
  FloatParam(Float)
  IntParam(Int)
  StringParam(String)
  NullParam
}

Constructors

  • BoolParam(Bool)
  • FloatParam(Float)
  • IntParam(Int)
  • StringParam(String)
  • NullParam

Functions

pub fn bool(value: Bool) -> Param
pub fn float(value: Float) -> Param
pub fn int(value: Int) -> Param
pub fn string(value: String) -> Param
Search Document