Skip to content

Commit

Permalink
Make parse_json connection parameter public (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmishchenko-ua authored Jan 21, 2025
1 parent 893d80d commit 900fd22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions singlestoredb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@
environ='SINGLESTOREDB_BUFFERED',
)

register_option(
'parse_json', 'bool', check_bool, True,
'Parse JSON values into Python objects?',
environ='SINGLESTOREDB_PARSE_JSON',
)

register_option(
'connect_timeout', 'int', check_int, 10,
'The timeout for connecting to the database in seconds. '
Expand Down
1 change: 1 addition & 0 deletions singlestoredb/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,7 @@ def connect(
track_env: Optional[bool] = None,
enable_extended_data_types: Optional[bool] = None,
vector_data_format: Optional[str] = None,
parse_json: Optional[bool] = None,
) -> Connection:
"""
Return a SingleStoreDB connection.
Expand Down

0 comments on commit 900fd22

Please sign in to comment.