You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
funwhere(name:String, age:Int) =
whereRecords<Foo>(mapOf("name" to name, "age" to age))
funcreate(name:String, age:Int) =
createRecord<Foo>(mapOf("name" to name, "age" to age))
The text was updated successfully, but these errors were encountered:
If the user provides the properties up front via command line, eg:
then we can generate the code for
where
andcreate
methods including the model params, eg:The text was updated successfully, but these errors were encountered: