Skip to content

Commit

Permalink
Merge pull request #16 from ccq1/simple
Browse files Browse the repository at this point in the history
  • Loading branch information
joeblackwaslike authored Oct 3, 2024
2 parents 1de1f7b + 78eadbe commit d08114d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ A Simple Example
app = Quart(__name__)
db = QuartSQLAlchemy(
config=SQLAlchemyConfig
config=SQLAlchemyConfig(
binds=dict(
default=dict(
engine=dict(
Expand All @@ -79,14 +79,14 @@ A Simple Example
)
)
),
app,
app=app,
)
class User(db.Model)
__tablename__ = "user"
id: Mapped[int] = mapped_column(sa.Identity(), primary_key=True, autoincrement=True)
name: Mapped[str] = mapped_column(default="default")
username: Mapped[str] = mapped_column(default="default")
db.create_all()
Expand Down

0 comments on commit d08114d

Please sign in to comment.