Create
CREATE
is used to create a database or a table.
with
specifies the name of the table among with the columns names and types.
Sample
fun main() {
println(
create("Users") {
with {
"Id" to "int not null identity"
"Name" to "varchar(255) null"
}
}
)
}
Expected Result
CREATE TABLE Users (Id int not null identity, Name varchar(255) null)