| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/psycopg2/__pycache__/ |
Upload File : |
�
��Wc� � � � 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 �0/usr/lib/python3/dist-packages/psycopg2/_json.py�__init__z
Json.__init__8 s"