|
Python Connector for InterBase Connecting to InterBase - Python Connector for InterBase |
|
To connect to an InterBase database, import the connector and use the connect() method with your connection parameters.
First, import the InterBase connector module:
import devart.interbase as interbase
Call the connect() method and obtain a connection object.
my_connection = interbase.connect(
Server="your_server",
Database="your_database",
UserId="your_username",
Password="your_password",
ClientLibrary="your_client_library"
)
Replace the example values with your actual connection values.
For more information, see Connection parameters.