Skip to main content

Python wrapper for the CircleCI API

Project description

# SQLAlchemy_wrap
对SQLAlchemy的简单封装,支持查找指定文件夹中的类(目前是一个表对应一个类).
* 对[SQLAlchemy](https://docs.sqlalchemy.org/en/latest/)的封装,支持查找指定文件夹中的数据库操作类(暂时只考虑单表操作)
* 使用自定义基类直接操作数据库,基类包含基础的增删查改的方法
* 可以直接使用已有库,也可以在继承类中使用建库语法进行建库并对应操作
* 个人喜欢搭配工厂模式去使用,很舒服
* 可以使用建表语句去建立新表,也可以使用原有的表
# example
见 `example` 目录下的demo.

这里说下指定文件夹的想法.
```
--database
|__db1
| |___ table1.py
| |___ table2.py
|___db2
|___ table3.py
......
```
比如我们数据库(sqlite)下有 `db1` 和 `db2` 两个库, `db1` 有 `table1`,`table2` 两个表, `db2` 有 `table3` 表, 这样我们就可以指定`table1.py`去对应
`db1.table1` 的表操作了.

# 关于SQLAlchemy
* 在基类`BaseTable`中保留了两个指针 `self.engine` 对应 `SqlAlchemy.create_engine`对象, 以及 `self.table` 对应 `SqlAlchemy.table` 对象. 你可以使用这两个中的一个去进行各种orm操作


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SQLAlchemy_wrap-2.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SQLAlchemy_wrap-2.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file SQLAlchemy_wrap-2.1.0.tar.gz.

File metadata

  • Download URL: SQLAlchemy_wrap-2.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for SQLAlchemy_wrap-2.1.0.tar.gz
Algorithm Hash digest
SHA256 e7014610fca75329cadcca24a539406d12147d33c7e1bf60c1786372fbff58de
MD5 292a9c7fbde2f1615728fc670cfd46da
BLAKE2b-256 a26cf010b9c54abcc268494ccfc66bdaad89be77aa0cea61a25dee8b4ab1af3b

See more details on using hashes here.

File details

Details for the file SQLAlchemy_wrap-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: SQLAlchemy_wrap-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for SQLAlchemy_wrap-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab98b5ce0e753a81f34e974bc598654fc694b4895fed77c6118edb620112a8b7
MD5 9603cb0267fe9aeb3f39c64fdeb9961b
BLAKE2b-256 1e82279175eb6fee50e774b6f8bbe89519faffcb83a3ea86ec93e922bf5d43b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page