文件名称:sqlalchemy-acl:SQLAlchemy ORM的Acces列表库
文件大小:1.51MB
文件格式:ZIP
更新时间:2024-03-04 15:34:17
Python
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
【文件预览】:
sqlalchemy-acl-master
----docs()
--------access-level-tree.drawio(1KB)
--------whole-class-diagram.png(316KB)
--------whole-class-diagram.drawio(6KB)
--------entity-diagram.png(210KB)
--------access-level-tree.png(146KB)
--------entity-diagram.drawio(4KB)
--------class-diagrams()
----Pipfile(318B)
----sqlalchemy_acl()
--------builders.py(1KB)
--------models.py(2KB)
--------events.py(3KB)
--------utils.py(1KB)
--------__init__.py(6KB)
--------collections.py(2KB)
--------base.py(93B)
--------exceptions.py(268B)
----tests()
--------existing_db()
--------external_db()
--------react-app()
--------utils()
--------flask_test()
--------legacy_test()
----LICENSE(1KB)
----Pipfile.lock(18KB)
----.gitignore(2KB)
----README.md(3KB)