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

Uploaded Python 3

File details

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

File metadata

  • Download URL: SQLAlchemy_wrap-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4224c642c01c5dd346a477a562204ba4f8f69e9053d1693f87db8921a9b08983
MD5 3fd52efbed166eaedeaa453845b976a5
BLAKE2b-256 a747ef0caa92db0049d1ef3f2c5a508841c0def5c59773f9926c7e0c62e41ca2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SQLAlchemy_wrap-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 585ffd6a652575f7d7294dfaecf7df8890517db99ea893f0699bb6e5b6c585fb
MD5 b5d514b390eff35d2353c9f0541ace7b
BLAKE2b-256 432dd618ea40f18f03d530bf840f329f3cd0cca16f975e082b643f2d0e8875a8

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