Current section
Files
Jump to
Current section
Files
lib/prql/native.ex
defmodule Prql.Native do
@moduledoc false
use Rustler, otp_app: :prql_rs, crate: "prql_native"
@doc false
@spec compile(String.t(), keyword()) :: {:ok, String.t()} | {:error, String.t()}
def compile(prql_query, options) when is_binary(prql_query) and is_list(options) do
compile_nif(prql_query, options)
end
defp compile_nif(_prql_query, _options) do
:erlang.nif_error(:nif_not_loaded)
end
end