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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for sqlalchemy_oceanbase-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e2bf2ab662f79082d3fa62dea8f1fc5f8b4990cc318f56de47e49aa79f8a7945
MD5 04a4a114684168786fce77987a606db7
BLAKE2b-256 d4f40a5e303dbe75e22e7ad5e80b344a8aed8db5a3d8c57ef1f5cb1692897b92

See more details on using hashes here.

File details

Details for the file sqlalchemy_oceanbase-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_oceanbase-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 675dabf8dba46610734912f8189b59d74ba0f4f749d61c0d569e1f257aa3509b
MD5 9fca6df33c6426152833513715afd124
BLAKE2b-256 7c23a6c3a83ab95cb81efbff46a0ba6d4284916a3f3305c716c72058f2b3d205

See more details on using hashes here.

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