Skip to main content

Django backend for GBase 8s database

Project description

django-gbase8s

介绍

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

依赖

  • gbase8sdb
  • django>=4.0.0

安装教程

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'                   # 密码
    }
}

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

django_gbase8s-4.0.0.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_gbase8s-4.0.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file django_gbase8s-4.0.0.tar.gz.

File metadata

  • Download URL: django_gbase8s-4.0.0.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.7

File hashes

Hashes for django_gbase8s-4.0.0.tar.gz
Algorithm Hash digest
SHA256 7bd1c6f708028dee84a5619740d81de62e7d300b90a818ecb4522f9b55f08224
MD5 4b56dbdf378f113943457af3bfe13cdc
BLAKE2b-256 4d4c9b4b4802e4fcb1ec49a8b494ada8496ae62ce32ec1e994920cc2bc9b259d

See more details on using hashes here.

File details

Details for the file django_gbase8s-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_gbase8s-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.7

File hashes

Hashes for django_gbase8s-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc92ec4f22af417b3ef9407e8d02d2bd3a71476e1afd275fd2c4e50a4ceaa8e
MD5 58465b2c64d84659b4f6d620f1e0c8f5
BLAKE2b-256 f57e78d72f0494b3210ef003146658460f6da3a8cb0a7f162a1137af0b8a547a

See more details on using hashes here.

Supported by

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