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

Uploaded Python 3

File details

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

File metadata

  • Download URL: SQLAlchemy_wrap-2.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 651aee2d8a1c6e82e0c30b970f2ddcdf2b0f35e6566ce59a63b17173088c1280
MD5 101207cab16997ba92f474d5932a87e6
BLAKE2b-256 c8a3a5452f66fc56098c73ccd2c3fd2a2d8b841fcf6d2c15f5a8f0a1c2c70250

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SQLAlchemy_wrap-2.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 25ab0c839ef22a6ecb0e2e4d1eb5d2601c9c0e313fe18ddd650ca09f589cc305
MD5 2dd29bd708104dedf449bf6ef29f1052
BLAKE2b-256 8e3dd467d94e3f4229c25cab2dd2f471e7b16420a70b0024b9eeb1b05ae0374d

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