Skip to content

Commit

Permalink
docs: add example queries to the README file
Browse files Browse the repository at this point in the history
Generated-by: aiautocommit
  • Loading branch information
iloveitaly committed Jan 9, 2025
1 parent 783a9fe commit f3e878c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ This package provides a thin wrapper around SQLModel that provides a more Active

## Usage

### Example Queries

* Conditional: `Scrape.select().where(Scrape.id < last_scraped.id).all()`
* Equality: `MenuItem.select().where(MenuItem.menu_id == menu.id).all()`
* `IN` example: `CanonicalMenuItem.select().where(col(CanonicalMenuItem.id).in_(canonized_ids)).all()`

### TypeID

```python
Expand Down

0 comments on commit f3e878c

Please sign in to comment.