[backend]
name = "kotlin-jdbc"
language = "kotlin"
file_extension = "kt"
engine = "mariadb"
description = "Kotlin code generation targeting JDBC with MariaDB"

[types.scalars]
bool = "Boolean"
int16 = "Short"
int32 = "Int"
int64 = "Long"
float32 = "Float"
float64 = "Double"
string = "String"
bytes = "ByteArray"
uuid = "String"
decimal = "java.math.BigDecimal"
date = "java.time.LocalDate"
time = "java.time.LocalTime"
time_tz = "java.time.LocalTime"
datetime = "java.time.LocalDateTime"
datetime_tz = "java.time.LocalDateTime"
interval = "String"
json = "String"
inet = "String"

[types.containers]
array = "List<{T}>"
nullable = "{T}?"
json_typed = "{T}"

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

[imports.rules]
