summaryrefslogtreecommitdiff
path: root/examples/18-database/src/data.hob
blob: a1688210a74fceb3fe1a28d7a426490d485a7bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct Author {
    field id: Int32;
    field name: String;
}

databaseSchema Data {
    table authors {
        row Author;
        primaryKey id;
    }
//
//    query fetchAllStructs() {
//        select(structs)
//    }
//
//    query fetchStructsByA(a: Int32) {
//        select(structs)
//            .where(structs.a = a)
//    }
}