用于python的firebird rdbms绑定。
firebirdsql的Python项目详细描述
firebirdsql包是一组firebird rdbms(http://firebirdsql.org/)python绑定(用纯python编写:不需要c编译器或fbclient库)
它在python 2.6+和3.3+上工作。
见https://pyfirebirdsql.readthedocs.io/en/latest/
示例
import firebirdsql conn = firebirdsql.connect( host='localhost', database='/foo/bar.fdb', port=3050, user='alice', password='secret' ) cur = conn.cursor() cur.execute("select * from baz") for c in cur.fetchall(): print(c) conn.close()
用Firebird3进行测试
你可以用firebird3进行单元测试。
像这样设置firebird.conf
AuthServer = Srp, Legacy_Auth WireCrypt = Enabled
并执行以下命令:
$ python setup.py test
另一方面,您可以将其与Firebird3 Wire协议13一起使用 (SRP身份验证和有线加密)使用默认firebird.conf