| Server IP : 185.143.233.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/psycopg2/__pycache__/ |
Upload File : |
�
0�[���:� � � d Z ddlZddlmZmZ ddlmZmZmZ dZdZ dZ
dZ G d � d
� � Z dd
�Z
dd�Zdd�Zdd�Zdd�ZdS )z�Implementation of the JSON adaptation objects
This module exists to avoid a circular import problem: pyscopg2.extras depends
on psycopg2.extension, so I can't create the default JSON typecasters in
extensions importing register_json from extras.
� N)� ISQLQuote�QuotedString)�new_type�new_array_type�
register_type�r �� i� i� c �8 � e Zd ZdZd d�Zd� Zd� Zd� Zd� Zd� Z dS )
�Jsona
An `~psycopg2.extensions.ISQLQuote` wrapper to adapt a Python object to
:sql:`json` data type.
`!Json` can be used to wrap any object supported by the provided *dumps*
function. If none is provided, the standard :py:func:`json.dumps()` is
used.
Nc �H � || _ d | _ |pt j | _ d S �N)�adapted�_conn�json�dumps�_dumps)�selfr r s �a/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib64/python3.11/site-packages/psycopg2/_json.py�__init__z
Json.__init__8 s"