资源说明:SQLAlchemy访问清单
虚拟环境
要初始化虚拟环境,请在项目根目录中运行以下命令,需要pipenv
$ pipenv shell
测试ACL
测试的最简单方法是创建简单的脚本
from sqlalchemy import create_engine
from sqlalchemy . orm import sessionmaker
from sqlalchemy_acl import ACL
from models import Base , Wage
# creating engine and session, creating tables in db according to models
engine = create_engine ( 'sqlite:///db.sqlite' )
Session = sessionmaker ( bind = engine , que
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。