XuGu Database Python Driver


Keywords
DB, XuGu, xgcondb
License
Apache-2.0
Install
pip install xgcondb==601043.558.741

Documentation

xgcondb

XuGu Database Python Driver

虚谷数据库Python接口驱动

安装

pip install xgcondb -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=pypi.tuna.tsinghua.edu.cn

使用

import xgcondb as xg


def connect():
    try:
        conn = xg.connect(host='127.0.0.1',
                          port=5138,
                          database='SYSTEM',
                          user='SYSDBA',
                          password='SYSDBA')
        conn.close()
        print('Succeeded!')
    except Exception as e:
        print('Failed!', e)


if __name__ == '__main__':
    connect()

具体使用参考链接 Python标准接口开发指南