diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/18-database/output/sqlite3/scripts/data/authorsByFixedId.sql | 8 | ||||
| -rw-r--r-- | examples/18-database/src/data.hob | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/examples/18-database/output/sqlite3/scripts/data/authorsByFixedId.sql b/examples/18-database/output/sqlite3/scripts/data/authorsByFixedId.sql new file mode 100644 index 0000000..2f10c59 --- /dev/null +++ b/examples/18-database/output/sqlite3/scripts/data/authorsByFixedId.sql @@ -0,0 +1,8 @@ +-- Generated by hobgoblin. + +SELECT + id AS id, + name AS name +FROM authors +WHERE authors.id == 42 +ORDER BY id; diff --git a/examples/18-database/src/data.hob b/examples/18-database/src/data.hob index 927f4f1..adec174 100644 --- a/examples/18-database/src/data.hob +++ b/examples/18-database/src/data.hob @@ -14,9 +14,9 @@ query allAuthors() { return Data.authors; } -//query authorsByFixedId() { -// return Data.authors.where($(author) => author.id == 42); -//} +query authorsByFixedId() { + return Data.authors.where($(author) => author.id == 42); +} //query authorsByName(name: String) { // return Data.authors |
