Skip to content

Commit

Permalink
Minor doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Dec 29, 2023
1 parent ee1b204 commit 3681bee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ SQLAlchemy core, but fancier.

```python
import sqlalchemy as sa

from sqla_fancy_core import TableFactory

tf = TableFactory()
Expand Down Expand Up @@ -68,6 +67,11 @@ with engine.connect() as conn:
### With Pydantic Validation

```python
from pydantic import BaseModel, Field
from sqla_fancy_core import TableFactory

tf = TableFactory()

def field(col, default=...):
return col.info["field"](default)

Expand Down

0 comments on commit 3681bee

Please sign in to comment.