Selecto.SQL.Formatter (Selecto v0.3.16)
Lightweight SQL formatting and highlighting helpers.
This module is intentionally conservative: it improves readability for generated Selecto SQL without attempting to be a full SQL parser.
Link to this section Summary
Link to this section Functions
Link to this function
format(sql, opts \\ [])
Format SQL for readability.
Options:
:indentstring used for indentation (default: two spaces):where_multilineboolean to splitAND/ORconditions across lines (default: true)
Link to this function
highlight(sql, arg2)
Apply lightweight SQL highlighting.
Supported styles:
:ansi- terminal ANSI colors:markdown- markdown emphasis for keywords