
    2i                         d  Z d Zy)c                     t        | t              r| j                         } nt        | t              s| S t	        |       dk(  ry| j                  dd      } | j                  dd      } d|  dS )zo
    FalkorDB strings must be quoted,
    quote_string wraps given v with quotes incase
    v is a string.
        z""\z\\"z\")
isinstancebytesdecodestrlenreplace)vs    Z/mnt/e/genesis-system/.venvs/voice-bridge/lib/python3.12/site-packages/falkordb/helpers.pyquote_stringr      sc     !UHHJ3
1v{			$A			#uAqc8O    c                 :   t        | t              rt        |       S | yt        | t        t        f      r#ddj                  t        t        |              dS t        | t              r*ddj                  d | j                         D               dS t        |       S )a  
    turn a parameter value into a string suitable for the params header of
    a Cypher command
    you may pass any value that would be accepted by `json.dumps()`

    ways in which output differs from that of `str()`:
    * strings are quoted
    * None --> "null"
    * in dictionaries, keys are _not_ quoted

    :param value: the parameter value to be turned into a string
    :return: string
    null[,]{c              3   B   K   | ]  \  }}| d t        |         yw):N)stringify_param_value).0kr   s      r   	<genexpr>z(stringify_param_value.<locals>.<genexpr>-   s&     Y41as!$9!$<#=>Ys   })
r   r	   r   listtuplejoinmapr   dictitems)values    r   r   r      s     %E""}%$'388C 5u=>?qAA%CHHY5;;=YYZZ\]]u:r   N)r   r    r   r   <module>r%      s   &r   