__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
�
Z��gx � �: � d Z ddlZddlZddlmZ G d� de� Zy)zImplementation of the DbDoc.� N� )�STRING_TYPESc �. � e Zd ZdZd� Zd� Zd� Zd� Zd� Zy)�DbDocz�Represents a generic document in JSON format.
Args:
value (object): The value can be a JSON string or a dict.
Raises:
ValueError: If ``value`` type is not a basestring or dict.
c �� � t |t � r|| _ y t |t � rt j
|� | _ y t
dj t |� � � �)NzUnable to handle type: {0}) �
isinstance�dict�__dict__r �json�loads�
ValueError�format�type)�self�values �c/opt/hc_python/lib64/python3.12/site-packages/../../../lib/python3.12/site-packages/mysqlx/dbdoc.py�__init__zDbDoc.__init__) sH � ��e�T�"�!�D�M�
��|�
,� �J�J�u�-�D�M��9�@�@��e��M�N�N� c � � | j | S �N)r
)r �indexs r �__getitem__zDbDoc.__getitem__2 s � ��}�}�U�#�#r c �6 � | j j � S r )r
�keys�r s r r z
DbDoc.keys5 s � ��}�}�!�!�#�#r c � � d| j vr+t j � j | j d<