Skip to main content

django-gbase8s

介绍

GBase 8s数据库的Django方言,支持GBase 8s V8.8_3.6.2版本及以上。

依赖

  • gbase8sdb
  • django

安装教程

pip install django-gbase8s

使用说明

  1. 方言使用python-gbase8sdb驱动连接数据库,安装django-gbase8s时会作为依赖进行安装,您也可以手动安装:
pip install gbase8sdb
  1. python-gbase8sdb驱动连接数据库依赖GSDK 1.1版本,所以您需要联系GBase 8s技术支持或通过官方渠道获取相应版本的GSDK,并安装到您的机器上, 并设置如下环境变量:
GSDK_PATH=/path/to/gsdk
export LD_LIBRARY_PATH=${GSDK_PATH}/lib:$LD_LIBRARY_PATH
export GBASEDBTDIR=${GSDK_PATH}/lib
  1. 在Django项目的settings.py文件中进行如下配置:
DATABASES = {
    "default": {
        "ENGINE": "django_gbase8s",
        'SERVER_NAME': 'ol_gbasedbt1210_1',     # 实例的名称
        'NAME': 'testdb',                     # 数据库的名称
        'HOST': '192.168.xxx.xxx',              # 数据库IP
        'PORT': 9088,                          # 实例端口号
        'DB_LOCALE': 'zh_CN.utf8',              # 数据库字符集
        'USER': 'gbasedbt',                     # 用户名
        'PASSWORD': 'xxxxxxx'                   # 密码
    }
}

Release files for django-gbase8s 3.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-gbase8s 3.2.2
File Interpreter ABI Platform
django_gbase8s-3.2.2-py3-none-any.whl Python 3 none any Details

Release files / django_gbase8s-3.2.2-py3-none-any.whl

Download URL django_gbase8s-3.2.2-py3-none-any.whl
Size 41.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ad3c1ee6751a5fcba8e448c5589d40714934c79689c1765cd557f6d7525aecb
BLAKE2b-256 checksum
How to use checksums
14d4da26d7c02eff74b92853025724e163f5de62e51480db45cafbd16dc9d198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.7

Release history Release notifications | RSS feed

4.0.1

1 release file

4.0.0

2 release files

This release

3.2.2 This release

1 release file

3.2.0

1 release file

2.2.0

1 release file

1.11.0

1 release file

1.8.5

1 release file

1.8.4

1 release file

1.8.3

1 release file

1.8.2

1 release file

1.8.1

1 release file

1.8.0

1 release file

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