evadb.connect#
- evadb.connect(eva_dir: str = 'evadb_data', sql_backend: Optional[str] = None) EVADBConnection [source]#
Connects to the EVA server and returns a connection object.
- Parameters:
eva_dir (str) – The directory used by EVA to store database-related content. Default is “eva_db”.
sql_backend (str) – Custom database URI to be used. We follow the SQLAlchemy database URL format. Default is SQLite in the EVA directory. See https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls.
- Returns:
A connection object representing the connection to the EVA database.
- Return type:
EVADBConnection