Skip to content

The sample code for querying tables looks incorrect #6

Description

@ndchorley

In the readme, there is

object Citizens : TableDefinition() {
    val id = varchar("id", 10).primaryKey()
    val name = varchar("name", length = 50)
    val cityId = reference(Cities.id, "city_id").nullable()
}
...

val row = query(Citizens)
...

This won't compile - query takes an argument of type QueryObject and TableDefinition doesn't inherit from that.

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