scythe-codegen 0.20.2

Polyglot code generation backends for scythe
Documentation
[backend]
name = "elixir-ecto"
language = "elixir"
file_extension = "ex"
engine = "postgresql"
description = "Elixir code generation targeting Ecto with Ecto.Adapters.SQL"

[types.scalars]
bool = "boolean()"
int16 = "integer()"
int32 = "integer()"
int64 = "integer()"
float32 = "float()"
float64 = "float()"
string = "String.t()"
bytes = "binary()"
uuid = "String.t()"
decimal = "Decimal.t()"
date = "Date.t()"
time = "Time.t()"
time_tz = "Time.t()"
datetime = "NaiveDateTime.t()"
datetime_tz = "DateTime.t()"
interval = "String.t()"
json = "map()"
json_array = "list(map())"
inet = "String.t()"

[types.containers]
array = "list({T})"
nullable = "{T} | nil"
range = "Postgrex.Range.t()"
json_typed = "{T}"

[naming]
struct_case = "PascalCase"
fn_case = "snake_case"
enum_variant_case = "snake_case"
row_suffix = "Row"
sanitize_field_names = true
reserved = [
  "after",
  "and",
  "catch",
  "do",
  "else",
  "end",
  "false",
  "fn",
  "in",
  "nil",
  "not",
  "or",
  "rescue",
  "true",
  "when",
]

[imports.rules]