棉花糖-sqlalchemy
主页: :
与(反)序列化库的集成。
声明你的模型
import sqlalchemy as sa
from sqlalchemy . ext . declarative import declarative_base
from sqlalchemy . orm import scoped_session , sessionmaker , relationship , backref
engine = sa . create_engine ( "sqlite:///:memory:" )
session = scoped_session ( sessionmaker ( bind = engine ))
Base = declarative_base ()
class Author ( Base ):
__tablename__ = "aut
评论0
最新资源