1.5.16. fejezet, Firebird

sudo pip3 install fdb
#!/usr/bin/python3
import fdb
 
con = fdb.connect(dsn='alias', user='sysdba', password='password')
cur = con.cursor()
cur.execute("select * from posts")
print(cur.fetchall())