Basic async CRUD of SQLAlChemy2
Project description
sqlalchemy-crudx
基于 SQLAlChemy2 模型的异步 CRUD 操作
下载
pip install sqlalchemy-crudx
TODO
- ...
Use
以下仅为简易示例
from sqlalchemy.orm import declarative_base
from crudx import AsyncCRUD
Base = declarative_base()
class User(Base):
# your sqlalchemy model
pass
class CRUDUser(AsyncCRUD[User]):
# your controller service
pass
# singleton
user_dao = CRUDUser(User)
互动
赞助
如果此项目能够帮助到你,你可以赞助作者一些咖啡豆表示鼓励::coffee: Sponsor :coffee:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlalchemy_crudx-0.1.0.tar.gz
(10.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlalchemy_crudx-0.1.0.tar.gz.
File metadata
- Download URL: sqlalchemy_crudx-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-113-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ef2521e552e4b4a1772c186e737ae77a6ca54e4b2befa9c50d757ff43860d72
|
|
| MD5 |
8301fffdf4b0b7b381e2a0dcc88eaa5c
|
|
| BLAKE2b-256 |
dd0aa644e9a8400a0a8aa0d5808201673a8f7d0f723fdab63c9088905ca1fd42
|
File details
Details for the file sqlalchemy_crudx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_crudx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-113-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbd64cda2097dacfa3fa6b2a4d6c49aa575f9109f104f81da5a01e3881c8232e
|
|
| MD5 |
32e9f86aa9cea83807e1ba6877aaee4e
|
|
| BLAKE2b-256 |
90a26bd2aea5a57443acc4efc308bbd45829f28a05a5358eedb17ff31461ef8d
|