To retrieve data from xBase:
import devart.xbase as xbase
connect() module method and obtain a connection object.
my_connection = xbase.connect(
Database="path_to_db"
)
cursor object using the cursor() connection method.
my_cursor = my_connection.cursor()
execute() cursor method.
my_cursor.execute("SELECT * FROM employees")
fetch*() cursor methods.
for row in my_cursor.fetchall():
print(row)