Skip to main content

Sqlalchemy-OceanBase

PyPI - License Python Version

OceanBase mysql tenant use pymysql to connect to OceanBase database.

See OceanBase Document

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)

Source distribution for sqlalchemy-oceanbase 0.1.6
File Size Uploaded
sqlalchemy_oceanbase-0.1.6.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqlalchemy-oceanbase 0.1.6
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.4

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page