View Source SqlFmt.Helpers (SqlFmt v0.2.0)
This module contains the ~SQL
sigil implementation.
You can wrap your inline sql queries with the ~SQL
sigil and the formatter
will format them using the SqlFmt.format_query/2
function.
Sigil Caveats
Sigils with capitalized letters do not interpolate strings. So your
~SQL
queries must be complete queries without any#{...}
entries as those will not be expanded. Take a look at the Elixir Docs for more information.
Summary
Functions
Indicates that a string is an SQL query.
Functions
Indicates that a string is an SQL query.
This is currently used only by the SqlFmt.MixFormatter
mix format
plugin
for formatting inling SQL
in your elixir code.