Trino¶
Installation¶
Connection URL¶
Connect to Trino by passing a connection URL to the Database
constructor:
Connection Parameters¶
Alternatively, connect using the Database.from_trino()
method with parameters:
PARAMETER | DESCRIPTION |
---|---|
user
|
Username to connect with. Default is 'user'.
TYPE:
|
password
|
Password to connect with. Mutually exclusive with auth.
TYPE:
|
host
|
Hostname of the Trino server. Default is 'localhost'.
TYPE:
|
port
|
Port of the Trino server. Default is 8080.
TYPE:
|
database
|
Catalog to use on the Trino server.
TYPE:
|
schema
|
Schema to use on the Trino server.
TYPE:
|
source
|
Application name passed to Trino.
TYPE:
|
timezone
|
Timezone to use for the connection. Default is 'UTC'.
TYPE:
|
auth
|
Authentication method to use for the connection. Mutually exclusive with password.
TYPE:
|
match_schema
|
Regex pattern to filter schemas. Mutually exclusive with match_tables.
TYPE:
|
match_tables
|
Regex pattern to filter tables. Mutually exclusive with match_schema.
TYPE:
|
**kwargs
|
Additional keyword arguments passed directly to the trino.dbapi.connect API.
TYPE:
|