funsies/query/runner

A super small module. This just makes it easier to run the queries from yummy

Functions

pub fn run(
  sql: String,
  db: Connection,
  decoder: fn(Dynamic) -> Result(a, List(DecodeError)),
) -> Result(Returned(a), QueryError)

The only function. Runs the query, given a sql query, a db connection, and a decoder

Search Document