Skip to content
Myr

Merge pull request #869 from christophersu/doc-fix-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add missing import on SQLAlchemy documentation page

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 7f5b6c6, 9cecf0d · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/patterns/sqlalchemy.rst+2 added
183 unmodified lines
184185Then you can either declare the tables in your code like in the examples186above, or automatically load them::187188 from sqlalchemy import Table189 190 users = Table('users', metadata, autoload=True)191192To insert data you can use the `insert` method. We have to get a193connection first so that we can use a transaction:
25 unmodified lines