Skip to content

Commit

Permalink
Merge pull request #1 from dan1elt0m/fix-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
dan1elt0m authored Aug 1, 2024
2 parents 7fd2b24 + 16390da commit 4d23d5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: eifinger/setup-rye@v3
- run: rye pin $ # pin Python version
- run: rye pin ${{ matrix.python-version }} # pin Python version
- run: | # abort if the lockfile changes
rye sync
[[ -n $(git diff --stat requirements.lock) ]] && exit 1
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Sadel

Sadel simplifies upserting records to your database
by extending [SQLModel](https://sqlmodel.tiangolo.com/). It adds a single line of code to upsert records to your database.
by extending [SQLModel](https://sqlmodel.tiangolo.com/). You'll only need a single line of code to upsert records to your database.
It also supports batch upserting records. In addition, it automatically adds and manages `created_on` and `modified_on`
columns to your table for auditing purposes and validates the record before upserting.
columns to your model and table and validates the record before upserting using pydantic validation.


### Features
- (Batch) upsert records with a single line of code.
- Asyncio support
- For auditing, automatically adds and manages `created_on` and `modified_on` columns to your table
- Validates your data before upserting using Pydantic validate_model method (not supported in SQLModel)
- Asyncio support

#### Example upsert
```python
Expand Down

0 comments on commit 4d23d5a

Please sign in to comment.