Skip to content

Commit

Permalink
change examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljesus committed Feb 23, 2018
1 parent aeaacd1 commit 522ab48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Here is an example of how the config file should look like:
created_at = "desc"
```

In this configuration klepto will dump the lastest 10 created active users

After you have created the file just run:

Postgres:
Expand Down
2 changes: 2 additions & 0 deletions examples/user-orders.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# SELECT orders.* FROM orders
# JOIN users ON users.id = orders.user_id
# WHERE users.status = 'active'
# ORDER BY created_at DESC
# GROUP BY order_items.id
[[Tables.Relationships]]
Table = "orders"
Expand All @@ -40,6 +41,7 @@
# JOIN orders ON orders.id = order_items.order_id
# JOIN users ON users.id = orders.user_id
# WHERE users.status = 'active'
# ORDER BY created_at DESC
# GROUP BY order_items.id
[[Tables.Relationships]]
Table = "order_items"
Expand Down

0 comments on commit 522ab48

Please sign in to comment.