-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing SSL fields to MySQL connection storage schema
- Loading branch information
1 parent
413bacc
commit 492d743
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
lib/dl_connector_mysql/dl_connector_mysql/core/storage_schemas/connection.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=False, | ||
load_default=False, | ||
) | ||
ssl_ca = ma_fields.String( | ||
required=False, | ||
allow_none=True, | ||
dump_default=None, | ||
load_default=None, | ||
) |