corrosion/statement

Types

pub type Parameter {
  Null
  Bool(Bool)
  Integer(Int)
  Real(Float)
  Text(String)
  Blob(BitArray)
}

Constructors

  • Null
  • Bool(Bool)
  • Integer(Int)
  • Real(Float)
  • Text(String)
  • Blob(BitArray)
pub type Statement {
  Verbose(
    query: String,
    params: option.Option(List(Parameter)),
    named_params: option.Option(dict.Dict(String, Parameter)),
  )
  Simple(String)
  WithParams(String, List(Parameter))
  WithNamedParams(String, dict.Dict(String, Parameter))
}

Constructors

Values

pub fn blob(value: BitArray) -> Parameter
pub fn bool(value: Bool) -> Parameter
pub fn integer(value: Int) -> Parameter
pub fn null() -> Parameter
pub fn real(value: Float) -> Parameter
pub fn simple_statement(query: String) -> Statement
pub fn text(value: String) -> Parameter
pub fn verbose_statement(
  query: String,
  params: option.Option(List(Parameter)),
  named_params: option.Option(dict.Dict(String, Parameter)),
) -> Statement
pub fn with_named_params(
  query: String,
  named_params: dict.Dict(String, Parameter),
) -> Statement
pub fn with_params(
  query: String,
  params: List(Parameter),
) -> Statement
Search Document