Skip to main content

No project description provided

Project description

Sqlalchemy-OceanBase

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')

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_oceanbase-0.1.4.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

sqlalchemy_oceanbase-0.1.4-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page