prqlc/bindings/elixir/README.md
PRQL bindings for Elixir.
def deps do
[
{:prql, "~> 0.1.0"}
]
end
iex> PRQL.compile("from customers", signature_comment: false)
{:ok, "SELECT\n *\nFROM\n customers\n"}
iex> PRQL.compile("from customers\ntake 10", target: :mssql, signature_comment: false)
{:ok, "SELECT\n *\nFROM\n customers\nORDER BY\n (\n SELECT\n NULL\n ) OFFSET 0 ROWS\nFETCH FIRST\n 10 ROWS ONLY\n"}
We are in the early stages of developing Elixir bindings.
We're using Rustler to provide Rust bindings for prqlc.
Currently using the bindings in an Elixir project requires compiling the Rust crate from this repo:
mix deps.getmix compilemix testFuture work includes publishing pre-compiled artifacts, so Elixir projects can run PRQL without needing a Rust toolchain.