Prql.Options (prql_rs v0.1.0)

View Source

Summary

Functions

Normalizes and validates compilation options.

Types

dialect()

@type dialect() ::
  :ansi
  | :big_query
  | :click_house
  | :duck_db
  | :generic
  | :glare_db
  | :ms_sql
  | :my_sql
  | :postgres
  | :sqlite
  | :snowflake

display_option()

@type display_option() :: :plain | :ansi_color

option()

@type option() ::
  {:format, boolean()}
  | {:target, dialect() | nil}
  | {:signature_comment, boolean()}
  | {:color, boolean()}
  | {:display, display_option()}

options()

@type options() :: [option()]

Functions

normalize(options)

@spec normalize(options()) :: {:ok, options()} | {:error, String.t()}

Normalizes and validates compilation options.

Returns {:ok, normalized_options} on success, or {:error, reason} on failure.