Current section
Files
Jump to
Current section
Files
src/corrosion@statement.erl
-module(corrosion@statement).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/corrosion/statement.gleam").
-export([null/0, bool/1, integer/1, real/1, text/1, blob/1, verbose_statement/3, simple_statement/1, with_params/2, with_named_params/2]).
-export_type([parameter/0, statement/0]).
-type parameter() :: null |
{bool, boolean()} |
{integer, integer()} |
{real, float()} |
{text, binary()} |
{blob, bitstring()}.
-type statement() :: {verbose,
binary(),
gleam@option:option(list(parameter())),
gleam@option:option(gleam@dict:dict(binary(), parameter()))} |
{simple, binary()} |
{with_params, binary(), list(parameter())} |
{with_named_params, binary(), gleam@dict:dict(binary(), parameter())}.
-file("src/corrosion/statement.gleam", 13).
-spec null() -> parameter().
null() ->
null.
-file("src/corrosion/statement.gleam", 17).
-spec bool(boolean()) -> parameter().
bool(Value) ->
{bool, Value}.
-file("src/corrosion/statement.gleam", 21).
-spec integer(integer()) -> parameter().
integer(Value) ->
{integer, Value}.
-file("src/corrosion/statement.gleam", 25).
-spec real(float()) -> parameter().
real(Value) ->
{real, Value}.
-file("src/corrosion/statement.gleam", 29).
-spec text(binary()) -> parameter().
text(Value) ->
{text, Value}.
-file("src/corrosion/statement.gleam", 33).
-spec blob(bitstring()) -> parameter().
blob(Value) ->
{blob, Value}.
-file("src/corrosion/statement.gleam", 48).
-spec verbose_statement(
binary(),
gleam@option:option(list(parameter())),
gleam@option:option(gleam@dict:dict(binary(), parameter()))
) -> statement().
verbose_statement(Query, Params, Named_params) ->
{verbose, Query, Params, Named_params}.
-file("src/corrosion/statement.gleam", 56).
-spec simple_statement(binary()) -> statement().
simple_statement(Query) ->
{simple, Query}.
-file("src/corrosion/statement.gleam", 60).
-spec with_params(binary(), list(parameter())) -> statement().
with_params(Query, Params) ->
{with_params, Query, Params}.
-file("src/corrosion/statement.gleam", 64).
-spec with_named_params(binary(), gleam@dict:dict(binary(), parameter())) -> statement().
with_named_params(Query, Named_params) ->
{with_named_params, Query, Named_params}.