Skip to content

Commit

Permalink
docs: add example
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Fiedler <[email protected]>
  • Loading branch information
miketheman committed Sep 3, 2023
1 parent 37afd96 commit d1c278f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ class Users(Base):
name = Column(String, comment="User name: first, middle, last")
```

Also applies to `mapped_column`:

```python
class Users(Base):
__tablename__ = "users"

id = Column(Integer, primary_key=True, comment="User ID from Auth Service")
name = mapped_column("name", String, comment="User name: first, middle, last")
```

## License

This project is licensed under the terms of the MIT license.
Expand Down

0 comments on commit d1c278f

Please sign in to comment.