Skip to content

Commit

Permalink
fix: BI-0 Add missing SSL fields to MySQL connection storage schema (#…
Browse files Browse the repository at this point in the history
…765)

* Add missing SSL fields to MySQL connection storage schema

* Set ssl_enable default US dump value to True
  • Loading branch information
khamitovdr authored Dec 24, 2024
1 parent b2b4215 commit 3a901b9
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
from marshmallow import fields as ma_fields

from dl_core.us_manager.storage_schemas.connection import ConnectionSQLDataStorageSchema

from dl_connector_mysql.core.us_connection import ConnectionMySQL


class ConnectionMySQLDataStorageSchema(ConnectionSQLDataStorageSchema[ConnectionMySQL.DataModel]):
TARGET_CLS = ConnectionMySQL.DataModel

ssl_enable = ma_fields.Boolean(
required=False,
allow_none=False,
dump_default=True,
load_default=False,
)
ssl_ca = ma_fields.String(
required=False,
allow_none=True,
dump_default=None,
load_default=None,
)

0 comments on commit 3a901b9

Please sign in to comment.