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.0.2.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.0.2-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: SQLAlchemy_wrap-2.0.2.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.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for SQLAlchemy_wrap-2.0.2.tar.gz
Algorithm Hash digest
SHA256 36632c294559d2c5b60f3c2c2ccf624b7d3901186727c5e25f802ab97b0fda8e
MD5 f420d8f0782a2f7904a1dd89e423c16a
BLAKE2b-256 165a014f96327ceb6a8cdbb170f057d6f7a3f7911467b03b1836e3dd6e6aba15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SQLAlchemy_wrap-2.0.2-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.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for SQLAlchemy_wrap-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d2eb5aac3106868c1880f8a9e7d9f1593130f7c238ac64b3972770797c3acdb
MD5 a9a09b67283fb38281f5bb597df244ce
BLAKE2b-256 e191abebcc17160fdb7c801adba3e825263a6c51c453cef8f97310a101a773e8

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