feat: add SSL to new DB parameters (#14673)

* feat: add SSL to new DB parameters

* Fix test

* Raise if cls.encryption_parameters is empty
This commit is contained in:
Beto Dealmeida
2021-05-17 21:27:43 -07:00
committed by GitHub
parent 2320bd44d4
commit 971f5883f0
4 changed files with 35 additions and 6 deletions

View File

@@ -163,6 +163,8 @@ class PostgresEngineSpec(PostgresBaseEngineSpec, BasicParametersMixin):
sqlalchemy_uri_placeholder = (
"postgresql+psycopg2://user:password@host:port/dbname[?key=value&key=value...]"
)
# https://www.postgresql.org/docs/9.1/libpq-ssl.html#LIBQ-SSL-CERTIFICATES
encryption_parameters = {"sslmode": "verify-ca"}
max_column_name_length = 63
try_remove_schema_from_table_name = False