Model generator should auto generate parameters for where and create
Opened this issue · 0 comments
felipecsl commented
If the user provides the properties up front via command line, eg:
kales g model Foo name:String age:Int
then we can generate the code for where
and create
methods including the model params, eg:
fun where(name: String, age: Int) =
whereRecords<Foo>(mapOf("name" to name, "age" to age))
fun create(name: String, age: Int) =
createRecord<Foo>(mapOf("name" to name, "age" to age))