Skip to content

Commit d08114d

Browse files
Merge pull request #16 from ccq1/simple
2 parents 1de1f7b + 78eadbe commit d08114d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ A Simple Example
6565
app = Quart(__name__)
6666
6767
db = QuartSQLAlchemy(
68-
config=SQLAlchemyConfig
68+
config=SQLAlchemyConfig(
6969
binds=dict(
7070
default=dict(
7171
engine=dict(
@@ -79,14 +79,14 @@ A Simple Example
7979
)
8080
)
8181
),
82-
app,
82+
app=app,
8383
)
8484
8585
class User(db.Model)
8686
__tablename__ = "user"
8787
8888
id: Mapped[int] = mapped_column(sa.Identity(), primary_key=True, autoincrement=True)
89-
name: Mapped[str] = mapped_column(default="default")
89+
username: Mapped[str] = mapped_column(default="default")
9090
9191
db.create_all()
9292

0 commit comments

Comments
 (0)