fdb

Firebird connection on a local database impossible within a Python script

房东的猫 提交于 2020-07-22 06:08:29
问题 I can connect to my Firebird database using Firebird ISQL Tool (Firebird 3.0.4) with the following command: connect "C:\Documents\database.db" user 'USER' password 'PASSWORD'; When I want to do it in a Python script (Python v3.7.7 on a Windows10 64 bits), in a virtual environment including fdb v2.0.1 or even firebirdsql v1.1.3, I can't and I systematically get an error. import fdb con = fdb.connect(database="C:\Documents\database.db", user='USER' password='PASSWORD'') DatabaseError: ('Error

How do you “step into” with fdb.exe?

纵然是瞬间 提交于 2019-12-25 04:21:52
问题 exe now for debugging. The problem is I don't know how to do "step into" with that. There're two command for stepping, "step" and "next", but it all behaves similar to "step over" in a GUI debugger. So is there any good way? Maybe I need to set a break point in the beginning of the function i'm going to step into, continue the execution and finally remove the break point? 回答1: If you are on Windows (by the .exe I'm assuming so) then give FlashDevelop a whirl. It gives a GUI to FDB and has a

Need to import fdb data file into mysql database

夙愿已清 提交于 2019-12-11 11:36:32
问题 How can I import .fdb file into mysql database? 回答1: The only solution I could find useful was to use Exportizer Pro 5.5.4 It allows to export data to database, file, clipboard, or printer. Exportizer Pro works with databases via ADO, BDE, or Interbase/Firebird interfaces. It can open ODBC data sources, files of DB, DBF, MDB, ACCDB, XLS, XLSM, XLSB, GDB, IB, FDB, HTML, UDL, DBC, TXT, CSV types, and databases specified by ADO connection strings. Data can be exported to file formats like text,

Get list of column names from a Firebird database table

爱⌒轻易说出口 提交于 2019-12-09 04:44:54
问题 How do you get a list of the column names in an specific table? ie. Firebird table: | name | id | phone_number | get list like this: columnList = ['name', 'id', 'phone_number'] 回答1: if you want to get a list of column names in an specific table, this is the sql query you need: select rdb$field_name from rdb$relation_fields where rdb$relation_name='YOUR-TABLE_NAME'; I tried this in firebird 2.5 and it works. the single quotes around YOUR-TABLE-NAME are necessary btw 回答2: Get list of columns