You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
276 B
Python
11 lines
276 B
Python
2 years ago
|
from sqlalchemy import Table, Column, Integer, String, MetaData
|
||
|
|
||
|
metadata = MetaData()
|
||
|
|
||
|
articles = Table (
|
||
|
'article', metadata,
|
||
|
Column('id', Integer, primary_key = True),
|
||
|
Column('content', String, nullable = False),
|
||
|
Column('title', String, nullable = False)
|
||
|
)
|