No project description provided
Project description
Sqlalchemy-OceanBase
OceanBase mysql tenant use pymysql to connect to OceanBase database.
But the DDL of OceanBase is slightly different from MySQL, and user will get some warnings when reflecting metadata from OceanBase.
Alembic thus cannot work with OceanBase directly.
This package is a workaround to make Alembic work with OceanBase.
Installation
pip install sqlalchemy-oceanbase
Usage
from sqlalchemy import create_engine
engin = create_engine('msyql+oceanbase://user:password@host:port/dbname')
Async model
from sqlalchemy.ext.asyncio import create_async_engine
engin = create_async_engine('msyql+oceanbase://user:password@host:port/dbname')
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
Built Distribution
File details
Details for the file sqlalchemy_oceanbase-0.1.4.tar.gz
.
File metadata
- Download URL: sqlalchemy_oceanbase-0.1.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2bf2ab662f79082d3fa62dea8f1fc5f8b4990cc318f56de47e49aa79f8a7945 |
|
MD5 | 04a4a114684168786fce77987a606db7 |
|
BLAKE2b-256 | d4f40a5e303dbe75e22e7ad5e80b344a8aed8db5a3d8c57ef1f5cb1692897b92 |
File details
Details for the file sqlalchemy_oceanbase-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: sqlalchemy_oceanbase-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 675dabf8dba46610734912f8189b59d74ba0f4f749d61c0d569e1f257aa3509b |
|
MD5 | 9fca6df33c6426152833513715afd124 |
|
BLAKE2b-256 | 7c23a6c3a83ab95cb81efbff46a0ba6d4284916a3f3305c716c72058f2b3d205 |