[backend]
name = "elixir-tds"
language = "elixir"
file_extension = "ex"
engine = "mssql"
description = "Elixir code generation targeting tds package with MSSQL"

[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 = "String.t()"
inet = "String.t()"

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

[naming]
struct_case = "PascalCase"
field_case = "snake_case"
fn_case = "snake_case"
enum_variant_case = "snake_case"
row_suffix = "Row"

[imports.rules]
