PostgreSQL¶
Installation¶
Connection URL¶
Connect to PostgreSQL by passing a connection URL to the Database
constructor:
Connection Parameters¶
Alternatively, connect using the Database.from_postgresql()
method with parameters:
PARAMETER | DESCRIPTION |
---|---|
host
|
Hostname.
TYPE:
|
user
|
Username.
TYPE:
|
password
|
Password.
TYPE:
|
port
|
Port number. Default is 5432.
TYPE:
|
database
|
Database to connect to.
TYPE:
|
schema
|
PostgreSQL schema to use. If None, use the default search_path.
TYPE:
|
autocommit
|
Whether or not to autocommit. Default is True.
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 to pass to the backend client connection.
TYPE:
|