Django backend for GBase 8s database
Project description
django-gbase8s
介绍
GBase 8s数据库的Django方言,支持GBase 8s V8.8_3.6.2版本及以上。
依赖
- gbase8sdb-python2
- django~=1.8.0
安装教程
pip install django-gbase8s
使用说明
- 方言使用python-gbase8sdb驱动连接数据库,安装django-gbase8s时会作为依赖进行安装,您也可以手动安装:
pip install gbase8sdb-python2
- 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
- 在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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_gbase8s-1.8.3-py2-none-any.whl.
File metadata
- Download URL: django_gbase8s-1.8.3-py2-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b621ea326983ddb8f6d27f220d09bddff6ffa52fcd04df10e45734295e477e5
|
|
| MD5 |
1013a9529db3250c5d103a980941b54c
|
|
| BLAKE2b-256 |
b2f3598faa8fb52ce9d531f8e6626602c4728cd6ca7a011a1346424f8bff8da2
|