cake/query/fragment

Fragments are low level building blocks of queries which allow direct manipulation of the query string.

If you want to insert parameters, you are required to use prepared fragments, which will be validated against the number of parameters given and the parameters are automatically escaped by the RDBMS to prevent SQL injections.

Constants

pub const placeholder: String

This placeholder must be used when building fragments with parameters.

Functions

pub fn literal(string str: String) -> Fragment
pub fn prepared(
  string str: String,
  params prms: List(Param),
) -> Fragment
Search Document