Skip to content

Jedore/xgcondb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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标准接口开发指南