%PDF- %PDF-
| Direktori : /proc/thread-self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/ |
| Current File : //proc/thread-self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/sql.pyc |
�
�ac @ s� d Z d d l Z d d l m Z d d l m Z m Z e j � Z d e
f d � � YZ d e f d � � YZ d e f d
� � YZ
d e f d � � YZ d
e f d � � YZ d e f d � � YZ e
d � Z e
d � Z d S( s SQL composition utility module
i����N( t
extensions( t PY3t string_typest
Composablec B sM e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s6
Abstract base class for objects that can be used to compose an SQL string.
`!Composable` objects can be passed directly to `~cursor.execute()`,
`~cursor.executemany()`, `~cursor.copy_expert()` in place of the query
string.
`!Composable` objects can be joined using the ``+`` operator: the result
will be a `Composed` instance containing the objects joined. The operator
``*`` is also supported with an integer argument: the result is a
`!Composed` instance containing the left argument repeated as many times as
requested.
c C s
| | _ d S( N( t _wrapped( t selft wrapped( ( sC /opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/sql.pyt __init__1 s c C s d | j j | j f S( Ns %s(%r)( t __class__t __name__R ( R ( ( sC /opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/sql.pyt __repr__4 s c C s
t � d S( sj
Return the string value of the object.
:param context: the context to evaluate the string into.
:type context: `connection` or `cursor`
The method is automatically invoked by `~cursor.execute()`,
`~cursor.executemany()`, `~cursor.copy_expert()` if a `!Composable` is
passed instead of the query string.
N( t NotImplementedError( R t context( ( sC /opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/sql.pyt as_string7 s c C sQ t | t � r t | g � | St | t � rI t | g � t | g � St Sd S( N( t
isinstancet ComposedR t NotImplemented( R t other( ( sC /opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/sql.pyt __add__D s
c C s t | g | � S( N( R ( R t n( ( sC /opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/sql.pyt __mul__L s c C s( t | � t | � k o'