Selecto.Livebook (Selecto v0.3.16)

Convenience helpers for interactive notebooks and demos.

Link to this section Summary

Functions

Print generated SQL and parameters.

Print SQL and execute query with preview information.

Print SQL and execute shaped query with preview information.

Link to this section Types

Link to this type

run_result()

@type run_result() :: {:ok, term()} | {:error, term()}

Link to this section Functions

Link to this function

explain(label, selecto, opts \\ [])

@spec explain(String.t(), Selecto.t(), keyword()) :: {String.t(), list()}

Print generated SQL and parameters.

Link to this function

run(label, selecto, opts \\ [])

@spec run(String.t(), Selecto.t(), keyword()) :: run_result()

Print SQL and execute query with preview information.

Link to this function

run_shape(label, selecto, opts \\ [])

@spec run_shape(String.t(), Selecto.t(), keyword()) :: run_result()

Print SQL and execute shaped query with preview information.