Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Model generator should auto generate parameters for where and create #37

@felipecsl

Description

@felipecsl

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions