bungibindies/bun/sqlite/param_array

Types

An implementation of javascript’s Array type, but unlike the gleam/javascript/array module, this one allows for the use of Any as a type parameter. This also means Gleam should not be touching this type, let Bun handle that.

pub type ParamArray =
  Array(Dynamic)

Values

pub fn list_to_paramarray(li: List(a)) -> Array(Dynamic)

Create a param array from a List.

pub fn new() -> Array(Dynamic)

Create a new ParamArray instance.

pub fn push(array: Array(Dynamic), value: a) -> Array(Dynamic)

Add a value to the end of the array.

Search Document