Selecto.Livebook (Selecto v0.4.5)

Copy Markdown

Convenience helpers for interactive notebooks and demos.

Summary

Functions

Print generated SQL and parameters.

Print SQL and execute query with preview information.

Print SQL and execute shaped query with preview information.

Types

run_result()

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

Functions

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

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

Print generated SQL and parameters.

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

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

Print SQL and execute query with preview information.

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

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

Print SQL and execute shaped query with preview information.