Packages
SQL provides state-of-the-art, high-performance SQL integration for Elixir, built to handle extreme concurrency with unmatched expressiveness and ergonomic query composition. Write safe, composable, parameterized queries directly, without translating to Ecto or any ORM.
Current section
Files
Jump to
Current section
Files
lib/formatter.ex
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2025 DBVisor
defmodule SQL.MixFormatter do
@moduledoc false
@behaviour Mix.Tasks.Format
@impl Mix.Tasks.Format
def features(opts), do: [sigils: [:SQL], extensions: get_in(opts, [:sql, :extensions])]
@impl Mix.Tasks.Format
def format(source, _opts), do: SQL.parse(source)
end