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')
Metadata
Release files for sqlalchemy-oceanbase 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqlalchemy_oceanbase-0.1.6.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqlalchemy_oceanbase-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / sqlalchemy_oceanbase-0.1.6.tar.gz
| Download URL | sqlalchemy_oceanbase-0.1.6.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf15c01ca8b471b2b258640352922f21ae15deca24ca31aebeb42c23658a23a9
|
|
BLAKE2b-256 checksum How to use checksums |
19a920efd83976422bbc5c8ca46c09236b1ab55da88b572d26da904fb8073bd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / sqlalchemy_oceanbase-0.1.6-py3-none-any.whl
| Download URL | sqlalchemy_oceanbase-0.1.6-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a951ed64300c1533c721bac45d4501db8faec71324cdb80e188aab4aeaa4b2f2
|
|
BLAKE2b-256 checksum How to use checksums |
687bc66495328f6b3d59770e1f07f7f30e1750929007170373b5fce3f20771e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|