Skip to content

Commit 20ddf69

Browse files
Make parse_json connection parameter public
1 parent 893d80d commit 20ddf69

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

singlestoredb/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@
201201
environ='SINGLESTOREDB_BUFFERED',
202202
)
203203

204+
register_option(
205+
'parse_json', 'bool', check_bool, True,
206+
'Parse JSON values into Python objects?',
207+
environ='SINGLESTOREDB_PARSE_JSON',
208+
)
209+
204210
register_option(
205211
'connect_timeout', 'int', check_int, 10,
206212
'The timeout for connecting to the database in seconds. '

singlestoredb/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,7 @@ def connect(
13171317
track_env: Optional[bool] = None,
13181318
enable_extended_data_types: Optional[bool] = None,
13191319
vector_data_format: Optional[str] = None,
1320+
parse_json: Optional[bool] = None,
13201321
) -> Connection:
13211322
"""
13221323
Return a SingleStoreDB connection.

0 commit comments

Comments
 (0)