§
    öÛg®Ž  ã                   óð  — d Z ddlZddlZddlmZ g d¢Z G d„ de¦  «        Z G d„ d	e¦  «        Z G d
„ deej        ej	        ¦  «        Z
 G d„ deej        ej	        ¦  «        Z G d„ dej        ¬¦  «        Z G d„ deej        ej	        ¦  «        Ze                     e¦  «         eZ G d„ deej        ¦  «        Z G d„ de¦  «        Z G d„ deej        ¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ d e¦  «        Z G d!„ d"e¦  «        Z G d#„ d$e¦  «        Z G d%„ d&e¦  «        Z G d'„ d(e¦  «        Z G d)„ d*e¦  «        Zd+Z e!d,k    r e"e#d-z   ¦  «         dS dS ).a‰  
Application Programmer Interfaces for PostgreSQL.

``postgresql.api`` is a collection of Python APIs for the PostgreSQL DBMS. It
is designed to take full advantage of PostgreSQL's features to provide the
Python programmer with substantial convenience.

This module is used to define "PG-API". It creates a set of ABCs
that makes up the basic interfaces used to work with a PostgreSQL server.
é    Né   )ÚElement)ÚMessageÚ	StatementÚChunksÚCursorÚ	ConnectorÚCategoryÚDatabaseÚTypeIOÚ
ConnectionÚTransactionÚSettingsÚStoredProcedureÚDriverÚInstallationÚClusterc                   ó  — e Zd ZdZdZdZdZeej	        de
fd„¦   «         ¦   «         Zeej	        de
fd„¦   «         ¦   «         Zeej	        de
fd„¦   «         ¦   «         Zeej	        defd	„¦   «         ¦   «         Zej	        defd
„¦   «         ZdS )r   zS
	A message emitted by PostgreSQL.
	A message being a NOTICE, WARNING, INFO, etc.
	ÚMESSAGE)ÚDEBUGÚINFOÚNOTICEÚWARNINGÚERRORÚFATALÚPANIC)ÚSERVERÚCLIENTÚreturnc                 ó   — dS )zV
		Where the message originated from. Normally, 'SERVER', but sometimes
		'CLIENT'.
		N© ©Úselfs    úD/granary/edev/quantum/lib/python3.11/site-packages/postgresql/api.pyÚsourcezMessage.source:   ó   € € € ó    c                 ó   — dS )z(
		The SQL state code of the message.
		Nr!   r"   s    r$   ÚcodezMessage.codeB   r&   r'   c                 ó   — dS )z!
		The primary message string.
		Nr!   r"   s    r$   ÚmessagezMessage.messageI   r&   r'   c                 ó   — dS )zþ
		The additional details given with the message. Common keys *should* be the
		following:

		 * 'severity'
		 * 'context'
		 * 'detail'
		 * 'hint'
		 * 'file'
		 * 'line'
		 * 'function'
		 * 'position'
		 * 'internal_position'
		 * 'internal_query'
		Nr!   r"   s    r$   ÚdetailszMessage.detailsP   r&   r'   c                 ó   — dS )at  
		Whether the fields of the `other` Message object is consistent with the
		fields of `self`.

		This *must* return the result of the comparison of code, source, message,
		and details.

		This method is provided as the alternative to overriding equality;
		often, pointer equality is the desirable means for comparison, but
		equality of the fields is also necessary.
		Nr!   )r#   Úothers     r$   ÚisconsistentzMessage.isconsistentc   r&   r'   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú_e_labelÚ
severitiesÚsourcesÚpropertyÚabcÚabstractmethodÚstrr%   r)   r+   Údictr-   Úboolr0   r!   r'   r$   r   r   %   s2  € € € € € ðð ð €ð€ð€ð
 ØÔð�Sð ð ð ñ Ôñ „(ðð ØÔð�3ð ð ð ñ Ôñ „(ðð
 ØÔð�cð ð ð ñ Ôñ „(ðð
 ØÔð�dð ð ð ñ Ôñ „(ðð" Ôð $ð ð ð ñ Ôðð ð r'   r   c                   ó¾  — e Zd ZdZdZdZej        dd„¦   «         Ze	ej        de
fd„¦   «         ¦   «         Ze	ej        de
gfd„¦   «         ¦   «         Ze	ej        degfd	„¦   «         ¦   «         Ze	ej        de
gfd
„¦   «         ¦   «         Ze	ej        de
gfd„¦   «         ¦   «         Ze	ej        dedffd„¦   «         ¦   «         Ze	ej        dd„¦   «         ¦   «         ZdS )ÚResulta  
	A result is an object managing the results of a prepared statement.

	These objects represent a binding of parameters to a given statement object.

	For results that were constructed on the server and a reference passed back
	to the client, statement and parameters may be None.
	ÚRESULT)Ú	statementÚ
parametersÚ	cursor_idr   Nc                 ó   — dS )z
		Close the Result handle.
		Nr!   r"   s    r$   ÚclosezResult.close}   r&   r'   c                 ó   — dS )z
		The cursor's identifier.
		Nr!   r"   s    r$   rC   zResult.cursor_idƒ   r&   r'   c                 ó   — dS )z¡
		The type of the columns produced by the cursor.

		A sequence of `str` objects stating the SQL type name::

			['INTEGER', 'CHARACTER VARYING', 'INTERVAL']
		Nr!   r"   s    r$   Úsql_column_typeszResult.sql_column_typesŠ   r&   r'   c                 ó   — dS )z‚
		The type Oids of the columns produced by the cursor.

		A sequence of `int` objects stating the SQL type name::

			[27, 28]
		Nr!   r"   s    r$   Úpg_column_typeszResult.pg_column_types•   r&   r'   c                 ó   — dS )z 
		The attribute names of the columns produced by the cursor.

		A sequence of `str` objects stating the column name::

			['column1', 'column2', 'emp_name']
		Nr!   r"   s    r$   Úcolumn_nameszResult.column_names    r&   r'   c                 ó   — dS )z€
		The Python types of the columns produced by the cursor.

		A sequence of type objects::

			[<class 'int'>, <class 'str'>]
		Nr!   r"   s    r$   Úcolumn_typeszResult.column_types«   r&   r'   c                 ó   — dS )a:  
		The parameters bound to the cursor. `None`, if unknown and an empty tuple
		`()`, if no parameters were given.

		These should be the *original* parameters given to the invoked statement.

		This should only be `None` when the cursor is created from an identifier,
		`postgresql.api.Database.cursor_from_id`.
		Nr!   r"   s    r$   rB   zResult.parameters¶   r&   r'   ©r   Nc                 ó   — dS )z¾
		The query object used to create the cursor. `None`, if unknown.

		This should only be `None` when the cursor is created from an identifier,
		`postgresql.api.Database.cursor_from_id`.
		Nr!   r"   s    r$   rA   zResult.statementÃ   r&   r'   ©r   N)r   rP   )r1   r2   r3   r4   r5   Ú
_e_factorsr9   r:   rE   r8   r;   rC   rH   ÚintrJ   rL   rN   ÚtuplerB   rA   r!   r'   r$   r?   r?   q   sÄ  € € € € € ðð ð €Ø6€àÔðð ð ñ Ôðð
 ØÔð˜ð ð ð ñ Ôñ „(ðð
 ØÔð ˜uð ð ð ñ Ôñ „(ðð ØÔð˜s˜eð ð ð ñ Ôñ „(ðð ØÔð˜C˜5ð ð ð ñ Ôñ „(ðð ØÔð˜C˜5ð ð ð ñ Ôñ „(ðð ØÔð	˜% ˜ð 	ð 	ð 	ñ Ôñ „(ð	ð ØÔðð ð ñ Ôñ „(ðð ð r'   r?   c                   ó   — e Zd ZdS )r   N)r1   r2   r3   r!   r'   r$   r   r   Í   s   € € € € € ð
 €r'   r   c                   ó  — e Zd ZdZdZddddddœZddd	œZej        dd„¦   «         Z	d„ Z
eej        d
efd„¦   «         ¦   «         Zej        	 	 dddddd
dgfd„¦   «         Zej        dd„¦   «         Zej        dd„¦   «         ZdS )r   aV  
	A `Cursor` object is an interface to a sequence of tuples(rows). A result
	set. Cursors publish a file-like interface for reading tuples from a cursor
	declared on the database.

	`Cursor` objects are created by invoking the `Statement.declare`
	method or by opening a cursor using an identifier via the
	`Database.cursor_from_id` method.
	ÚCURSORÚABSOLUTEÚRELATIVEÚFROM_ENDÚFORWARDÚBACKWARD)r   r   é   é   é   )TFr   c                 ó   — dS )z;
		Create a new cursor using the same factors as `self`.
		Nr!   r"   s    r$   ÚclonezCursor.cloneð   r&   r'   c                 ó   — | S ©Nr!   r"   s    r$   Ú__iter__zCursor.__iter__ö   s   € Ø	€+r'   c                 ó   — dS )z“
		The default `direction` argument for read().

		When `True` reads are FORWARD.
		When `False` reads are BACKWARD.

		Cursor operation option.
		Nr!   r"   s    r$   Ú	directionzCursor.directionù   r&   r'   NÚquantityzNumber of rows to readrg   z3Direction to fetch in, defaults to `self.direction`ÚRowc                 ó   — dS )ag  
		Read, fetch, the specified number of rows and return them in a list.
		If quantity is `None`, all records will be fetched.

		`direction` can be used to override the default configured direction.

		This alters the cursor's position.

		Read does not directly correlate to FETCH. If zero is given as the
		quantity, an empty sequence *must* be returned.
		Nr!   )r#   rh   rg   s      r$   ÚreadzCursor.read  r&   r'   c                 ó   — dS )zN
		Get the next tuple in the cursor.
		Advances the cursor position by one.
		Nr!   r"   s    r$   Ú__next__zCursor.__next__  r&   r'   c                 ó   — dS )a/  
		Set the cursor's position to the given offset with respect to the
		whence parameter and the configured direction.

		Whence values:

		 ``0`` or ``"ABSOLUTE"``
		  Absolute.
		 ``1`` or ``"RELATIVE"``
		  Relative.
		 ``2`` or ``"FROM_END"``
		  Absolute from end.
		 ``3`` or ``"FORWARD"``
		  Relative forward.
		 ``4`` or ``"BACKWARD"``
		  Relative backward.

		Direction effects whence. If direction is BACKWARD, ABSOLUTE positioning
		will effectively be FROM_END, RELATIVE's position will be negated, and
		FROM_END will effectively be ABSOLUTE.
		Nr!   )r#   ÚoffsetÚwhences      r$   ÚseekzCursor.seek  r&   r'   )r   r   ©NN)r   ri   )rY   )r1   r2   r3   r4   r5   Ú_seek_whence_mapÚ_direction_mapr9   r:   rb   re   r8   r=   rg   rk   rm   rq   r!   r'   r$   r   r   Ô   sR  € € € € € ð
ð ð €ð ØØØØðð Ðð 
Ø
ðð €ð
 Ôðð ð ñ Ôðð
ð ð ð ØÔð˜ð ð ð ñ Ôñ „(ðð Ôà(,ØFJðð Ø%ðàCðð €gðð ð ñ Ôðð  Ôðð ð ñ Ôðð Ôðð ð ñ Ôðð ð r'   r   c                   ó’  — e Zd ZdZej        ddddgfd„¦   «         Zej        dej        fd„¦   «         Z	ej        dej        fd„¦   «         Z
ej        dej        fd	„¦   «         Zej        dej        fd
„¦   «         Z	ej        defd„¦   «         Zej        dd„¦   «         Zej        	 	 dd„¦   «         Zej        	 	 dd„¦   «         ZdS )Ú	Executionz,
	The abstract class of execution methods.
	rB   zPositional Parametersr   ri   c                 ó   — dS )z´
		Execute the prepared statement with the given arguments as parameters.

		Usage:

		>>> p=db.prepare("SELECT column FROM ttable WHERE key = $1")
		>>> p('identifier')
		[...]
		Nr!   ©r#   rB   s     r$   Ú__call__zExecution.__call__:  r&   r'   c                 ó   — dS )a  
		Return an iterator producing the values of first column of the
		rows produced by the cursor created from the statement bound with the
		given parameters.

		Column iterators are never scrollable.

		Supporting cursors will be WITH HOLD when outside of a transaction to
		allow cross-transaction access.

		`column` is designed for the situations involving large data sets.

		Each iteration returns a single value.

		column expressed in sibling terms::

			return map(operator.itemgetter(0), self.rows(*parameters))
		Nr!   rx   s     r$   ÚcolumnzExecution.columnF  r&   r'   c                 ó   — dS )a„  
		Return an iterator producing sequences of rows produced by the cursor
		created from the statement bound with the given parameters.

		Chunking iterators are *never* scrollable.

		Supporting cursors will be WITH HOLD when outside of a transaction.

		`chunks` is designed for moving large data sets efficiently.

		Each iteration returns sequences of rows *normally* of length(seq) ==
		chunksize. If chunksize is unspecified, a default, positive integer will
		be filled in. The rows contained in the sequences are only required to
		support the basic `collections.Sequence` interfaces; simple and quick
		sequence types should be used.
		Nr!   rx   s     r$   ÚchunkszExecution.chunks[  r&   r'   c                 ó   — dS )aÚ  
		Return an iterator producing rows produced by the cursor
		created from the statement bound with the given parameters.

		Row iterators are never scrollable.

		Supporting cursors will be WITH HOLD when outside of a transaction to
		allow cross-transaction access.

		`rows` is designed for the situations involving large data sets.

		Each iteration returns a single row. Arguably, best implemented::

			return itertools.chain.from_iterable(self.chunks(*parameters))
		Nr!   rx   s     r$   ÚrowszExecution.rowsn  r&   r'   c                 ó   — dS )aí  
		Return an iterator producing the values of the first column in
		the cursor created from the statement bound with the given parameters.

		Column iterators are never scrollable.

		Supporting cursors will be WITH HOLD when outside of a transaction to
		allow cross-transaction access.

		`column` is designed for the situations involving large data sets.

		Each iteration returns a single value. `column` is equivalent to::

			return map(operator.itemgetter(0), self.rows(*parameters))
		Nr!   rx   s     r$   r{   zExecution.column€  r&   r'   c                 ó   — dS )za
		Return a scrollable cursor with hold using the statement bound with the
		given parameters.
		Nr!   rx   s     r$   ÚdeclarezExecution.declare’  r&   r'   ú,'First' object that is returned by the queryc                 ó   — dS )aT  
		Execute the prepared statement with the given arguments as parameters.
		If the statement returns rows with multiple columns, return the first
		row. If the statement returns rows with a single column, return the
		first column in the first row. If the query does not return rows at all,
		return the count or `None` if no count exists in the completion message.

		Usage:

		>>> db.prepare("SELECT * FROM ttable WHERE key = $1").first("somekey")
		('somekey', 'somevalue')
		>>> db.prepare("SELECT 'foo'").first()
		'foo'
		>>> db.prepare("INSERT INTO atable (col) VALUES (1)").first()
		1
		Nr!   rx   s     r$   ÚfirstzExecution.first™  r&   r'   Úiterableú2A iterable of tuples to execute the statement withc                 ó   — dS )a   
		Given an iterable, `iterable`, feed the produced parameters to the
		query. This is a bulk-loading interface for parameterized queries.

		Effectively, it is equivalent to:

			>>> q = db.prepare(sql)
			>>> for i in iterable:
			...  q(*i)

		Its purpose is to allow the implementation to take advantage of the
		knowledge that a series of parameters are to be loaded so that the
		operation can be optimized.
		Nr!   ©r#   r†   s     r$   Ú	load_rowszExecution.load_rows¬  r&   r'   ú<A iterable of chunks of tuples to execute the statement withc                 ó   — dS )aé  
		Given an iterable, `iterable`, feed the produced parameters of the chunks
		produced by the iterable to the query. This is a bulk-loading interface
		for parameterized queries.

		Effectively, it is equivalent to:

			>>> ps = db.prepare(...)
			>>> for c in iterable:
			...  for i in c:
			...   q(*i)

		Its purpose is to allow the implementation to take advantage of the
		knowledge that a series of chunks of parameters are to be loaded so
		that the operation can be optimized.
		Nr!   r‰   s     r$   Úload_chunkszExecution.load_chunks¿  r&   r'   N)r   rƒ   )r†   r‡   )r†   r‹   )r1   r2   r3   r4   r9   r:   ry   ÚcollectionsÚIterabler{   r}   r   r   r‚   r…   rŠ   r�   r!   r'   r$   rv   rv   5  s²  € € € € € ðð ð Ôð	Ð"9ð 	¸u¸gð 	ð 	ð 	ñ Ôð	ð Ôð +Ô"6ð ð ð ñ Ôðð( Ôð +Ô"6ð ð ð ñ Ôðð$ Ôð Ô 4ð ð ð ñ Ôðð" Ôð +Ô"6ð ð ð ñ Ôðð" Ôð 6ð ð ð ñ Ôðð Ôðð ð ñ Ôðð$ ÔðØAðð ð ñ Ôðð$ ÔðØKðð ð ñ Ôðð ð r'   rv   )Ú	metaclassc                   óR  — e Zd ZdZdZdZeej        de	fd„¦   «         ¦   «         Z
eej        defd„¦   «         ¦   «         Zeej        de	gfd„¦   «         ¦   «         Zeej        de	gfd„¦   «         ¦   «         Zeej        degfd	„¦   «         ¦   «         Zeej        degfd
„¦   «         ¦   «         Zeej        de	gfd„¦   «         ¦   «         Zeej        degfd„¦   «         ¦   «         Zeej        degfd„¦   «         ¦   «         Zej        dd„¦   «         Zej        dd„¦   «         ZdS )r   a5  
	Instances of `Statement` are returned by the `prepare` method of
	`Database` instances.

	A Statement is an Iterable as well as Callable.

	The Iterable interface is supported for queries that take no arguments at
	all. It allows the syntax::

		>>> for x in db.prepare('select * FROM table'):
		...  pass
	Ú	STATEMENT)ÚdatabaseÚstatement_idÚstringr   c                 ó   — dS )z 
		The statment's identifier.
		Nr!   r"   s    r$   r”   zStatement.statement_idè  r&   r'   c                 ó   — dS )a!  
		The SQL string of the prepared statement.

		`None` if not available. This can happen in cases where a statement is
		prepared on the server and a reference to the statement is sent to the
		client which subsequently uses the statement via the `Database`'s
		`statement` constructor.
		Nr!   r"   s    r$   r•   zStatement.stringï  r&   r'   c                 ó   — dS )z�
		The type of the parameters required by the statement.

		A sequence of `str` objects stating the SQL type name::

			['INTEGER', 'VARCHAR', 'INTERVAL']
		Nr!   r"   s    r$   Úsql_parameter_typeszStatement.sql_parameter_typesû  r&   r'   c                 ó   — dS )zš
		The type of the columns produced by the statement.

		A sequence of `str` objects stating the SQL type name::

			['INTEGER', 'VARCHAR', 'INTERVAL']
		Nr!   r"   s    r$   rH   zStatement.sql_column_types  r&   r'   c                 ó   — dS )zŽ
		The type Oids of the parameters required by the statement.

		A sequence of `int` objects stating the PostgreSQL type Oid::

			[27, 28]
		Nr!   r"   s    r$   Úpg_parameter_typeszStatement.pg_parameter_types  r&   r'   c                 ó   — dS )z…
		The type Oids of the columns produced by the statement.

		A sequence of `int` objects stating the SQL type name::

			[27, 28]
		Nr!   r"   s    r$   rJ   zStatement.pg_column_types  r&   r'   c                 ó   — dS )z£
		The attribute names of the columns produced by the statement.

		A sequence of `str` objects stating the column name::

			['column1', 'column2', 'emp_name']
		Nr!   r"   s    r$   rL   zStatement.column_names'  r&   r'   c                 ó   — dS )zƒ
		The Python types of the columns produced by the statement.

		A sequence of type objects::

			[<class 'int'>, <class 'str'>]
		Nr!   r"   s    r$   rN   zStatement.column_types2  r&   r'   c                 ó   — dS )zˆ
		The Python types expected of parameters given to the statement.

		A sequence of type objects::

			[<class 'int'>, <class 'str'>]
		Nr!   r"   s    r$   Úparameter_typeszStatement.parameter_types=  r&   r'   c                 ó   — dS )z£
		Create a new statement object using the same factors as `self`.

		When used for refreshing plans, the new clone should replace references to
		the original.
		Nr!   r"   s    r$   rb   zStatement.cloneH  r&   r'   Nc                 ó   — dS )zJ
		Close the prepared statement releasing resources associated with it.
		Nr!   r"   s    r$   rE   zStatement.closeQ  r&   r'   )r   r   rR   )r1   r2   r3   r4   r5   rS   r8   r9   r:   r;   r”   Úobjectr•   r™   rH   rT   rœ   rJ   rL   ÚtyperN   r¡   rb   rE   r!   r'   r$   r   r   Ô  s[  € € € € € ð
ð ð €Ø5€à
ØÔð˜3ð ð ð ñ Ôñ „(ðð
 ØÔð�Vð ð ð ñ Ôñ „(ðð ØÔð 3 %ð ð ð ñ Ôñ „(ðð ØÔð ˜uð ð ð ñ Ôñ „(ðð ØÔð # ð ð ð ñ Ôñ „(ðð ØÔð˜s˜eð ð ð ñ Ôñ „(ðð ØÔð˜C˜5ð ð ð ñ Ôñ „(ðð ØÔð˜D˜6ð ð ð ñ Ôñ „(ðð ØÔð˜t˜fð ð ð ñ Ôñ „(ðð Ôðð ð ñ Ôðð Ôðð ð ñ Ôðð ð r'   r   c                   óP   — e Zd ZdZdZdZej        dee	e
j        ffd„¦   «         ZdS )r   z&
	A function stored on the database.
	ÚFUNCTION©r“   r   c                 ó   — dS )a  
		Execute the procedure with the given arguments. If keyword arguments are
		passed they must be mapped to the argument whose name matches the key.
		If any positional arguments are given, they must fill in gaps created by
		the stated keyword arguments. If too few or too many arguments are
		given, a TypeError must be raised. If a keyword argument is passed where
		the procedure does not have a corresponding argument name, then,
		likewise, a TypeError must be raised.

		In the case where the `StoredProcedure` references a set returning
		function(SRF), the result *must* be an iterable. SRFs that return single
		columns *must* return an iterable of that column; not row data. If the
		SRF returns a composite(OUT parameters), it *should* return a `Cursor`.
		Nr!   ©r#   ÚargsÚkws      r$   ry   zStoredProcedure.__call__c  r&   r'   N)r1   r2   r3   r4   r5   rS   r9   r:   r¤   r   rŽ   r�   ry   r!   r'   r$   r   r   Y  s]   € € € € € ðð ð €Ø€àÔð V¨V°[Ô5IÐ$Jð ð ð ñ Ôðð ð r'   r   c                   ó<  — e Zd ZdZdZdZeej        dde	ffd„¦   «         ¦   «         Z
eej        dde	ffd„¦   «         ¦   «         Zej        dd„¦   «         ZeZej        dd	„¦   «         Zej        dd
„¦   «         ZeZej        d„ ¦   «         Zej        d„ ¦   «         ZdS )r   a¼  
	A `Tranaction` is an element that represents a transaction in the session.
	Once created, it's ready to be started, and subsequently committed or
	rolled back.

	Read-only transaction:

		>>> with db.xact(mode = 'read only'):
		...  ...

	Read committed isolation:

		>>> with db.xact(isolation = 'READ COMMITTED'):
		...  ...

	Savepoints are created if inside a transaction block:

		>>> with db.xact():
		...  with db.xact():
		...   ...
	ÚXACTr¨   r   Nc                 ó   — dS )z¿
		The mode of the transaction block:

			START TRANSACTION [ISOLATION] <mode>;

		The `mode` property is a string and will be directly interpolated into the
		START TRANSACTION statement.
		Nr!   r"   s    r$   ÚmodezTransaction.mode”  r&   r'   c                 ó   — dS )zÏ
		The isolation level of the transaction block:

			START TRANSACTION <isolation> [MODE];

		The `isolation` property is a string and will be directly interpolated into
		the START TRANSACTION statement.
		Nr!   r"   s    r$   Ú	isolationzTransaction.isolation   r&   r'   c                 ó   — dS )a×  
		Start the transaction.

		If the database is in a transaction block, the transaction should be
		configured as a savepoint. If any transaction block configuration was
		applied to the transaction, raise a `postgresql.exceptions.OperationError`.

		If the database is not in a transaction block, start one using the
		configuration where:

		`self.isolation` specifies the ``ISOLATION LEVEL``. Normally, ``READ
		COMMITTED``, ``SERIALIZABLE``, or ``READ UNCOMMITTED``.

		`self.mode` specifies the mode of the transaction. Normally, ``READ
		ONLY`` or ``READ WRITE``.

		If the transaction is already open, do nothing.

		If the transaction has been committed or aborted, raise an
		`postgresql.exceptions.OperationError`.
		Nr!   r"   s    r$   ÚstartzTransaction.start¬  r&   r'   c                 ó   — dS )a%  
		Commit the transaction.

		If the transaction is a block, issue a COMMIT statement.

		If the transaction was started inside a transaction block, it should be
		identified as a savepoint, and the savepoint should be released.

		If the transaction has already been committed, do nothing.
		Nr!   r"   s    r$   ÚcommitzTransaction.commitÅ  r&   r'   c                 ó   — dS )zâ
		Abort the transaction.

		If the transaction is a savepoint, ROLLBACK TO the savepoint identifier.

		If the transaction is a transaction block, issue an ABORT.

		If the transaction has already been aborted, do nothing.
		Nr!   r"   s    r$   ÚrollbackzTransaction.rollbackÒ  r&   r'   c                 ó   — dS )z-
		Run the `start` method and return self.
		Nr!   r"   s    r$   Ú	__enter__zTransaction.__enter__ß  r&   r'   c                 ó   — dS )a#  
		If an exception is indicated by the parameters, run the transaction's
		`rollback` method iff the database is still available(not closed), and
		return a `False` value.

		If an exception is not indicated, but the database's transaction state is
		in error, run the transaction's `rollback` method and raise a
		`postgresql.exceptions.InFailedTransactionError`. If the database is
		unavailable, the `rollback` method should cause a
		`postgresql.exceptions.ConnectionDoesNotExistError` exception to occur.

		Otherwise, run the transaction's `commit` method.

		When the `commit` is ultimately unsuccessful or not ran at all, the purpose
		of __exit__ is to resolve the error state of the database iff the
		database is available(not closed) so that more commands can be after the
		block's exit.
		Nr!   ©r#   ÚtypÚobjÚtbs       r$   Ú__exit__zTransaction.__exit__å  r&   r'   rR   )r1   r2   r3   r4   r5   rS   r8   r9   r:   r;   r°   r²   r´   Úbeginr¶   r¸   Úabortrº   rÀ   r!   r'   r$   r   r   {  sN  € € € € € ðð ð* €Ø€à
ØÔð�D˜#�;ð ð ð ñ Ôñ „(ðð ØÔð˜˜s˜ð ð ð ñ Ôñ „(ðð Ôðð ð ñ Ôðð, 
€àÔð
ð 
ð 
ñ Ôð
ð Ôð	ð 	ð 	ñ Ôð	ð 
€àÔðð ñ Ôðð
 Ôðð ñ Ôðð ð r'   r   c                   ó8  — e Zd ZdZdZej        d„ ¦   «         Zej        d„ ¦   «         Zej        d„ ¦   «         Z	ej        dd„¦   «         Z
ej        d„ ¦   «         Zej        d	„ ¦   «         Zej        d
„ ¦   «         Zej        d„ ¦   «         Zej        d„ ¦   «         ZdS )r   zá
	A mapping interface to the session's settings. This provides a direct
	interface to ``SHOW`` or ``SET`` commands. Identifiers and values need
	not be quoted specially as the implementation must do that work for the
	user.
	ÚSETTINGSc                 ó   — dS )z±
		Return the setting corresponding to the given key. The result should be
		consistent with what the ``SHOW`` command returns. If the key does not
		exist, raise a KeyError.
		Nr!   )r#   Úkeys     r$   Ú__getitem__zSettings.__getitem__  r&   r'   c                 ó   — dS )z†
		Set the setting with the given key to the given value. The action should
		be consistent with the effect of the ``SET`` command.
		Nr!   )r#   rÆ   Úvalues      r$   Ú__setitem__zSettings.__setitem__  r&   r'   c                 ó   — dS )zµ
		Create a context manager applying the given settings on __enter__ and
		restoring the old values on __exit__.

		>>> with db.settings(search_path = 'local,public'):
		...  ...
		Nr!   )r#   r¬   s     r$   ry   zSettings.__call__  r&   r'   Nc                 ó   — dS )zh
		Get the setting with the corresponding key. If the setting does not
		exist, return the `default`.
		Nr!   )r#   rÆ   Údefaults      r$   ÚgetzSettings.get  r&   r'   c                 ó   — dS )z¿
		Return a dictionary containing the key-value pairs of the requested
		settings. If *any* of the keys do not exist, a `KeyError` must be raised
		with the set of keys that did not exist.
		Nr!   )r#   Úkeyss     r$   ÚgetsetzSettings.getset&  r&   r'   c                 ó   — dS )zL
		For each key-value pair, incur the effect of the `__setitem__` method.
		Nr!   )r#   Úmappings     r$   ÚupdatezSettings.update.  r&   r'   c                 ó   — dS )z6
		Return an iterator to all of the settings' keys.
		Nr!   r"   s    r$   rÐ   zSettings.keys4  r&   r'   c                 ó   — dS )z8
		Return an iterator to all of the settings' values.
		Nr!   r"   s    r$   ÚvalueszSettings.values:  r&   r'   c                 ó   — dS )z;
		Return an iterator to all of the setting value pairs.
		Nr!   r"   s    r$   ÚitemszSettings.items@  r&   r'   rd   )r1   r2   r3   r4   r5   r9   r:   rÇ   rÊ   ry   rÎ   rÑ   rÔ   rÐ   r×   rÙ   r!   r'   r$   r   r   ú  s?  € € € € € ðð ð €àÔðð ñ Ôðð Ôðð ñ Ôðð Ôðð ñ Ôðð Ôðð ð ñ Ôðð Ôðð ñ Ôðð Ôðð ñ Ôðð
 Ôðð ñ Ôðð
 Ôðð ñ Ôðð
 Ôðð ñ Ôðð ð r'   r   c            	       óH  — e Zd ZdZdZeej        dedffd„¦   «         ¦   «         Z	eej        de
fd„¦   «         ¦   «         Zeej        dedffd„¦   «         ¦   «         Zeej        dedffd„¦   «         ¦   «         Zeej        	 	 d$d	d
dddefd„¦   «         ¦   «         Zeej        defd„¦   «         ¦   «         Zej        d%d„¦   «         Zej        d%d„¦   «         Zej        dedefd„¦   «         Zej        dddefd„¦   «         Zej        dddefd„¦   «         Zej        dddefd„¦   «         Zej        d%d„¦   «         Zej        defd„¦   «         Zej        d%d„¦   «         Zej        d%d„¦   «         Zej        dd d!gfd"„¦   «         Z ej        d&de!j"        fd#„¦   «         Z#dS )'r   zT
	The interface to an individual database. `Connection` objects inherit from
	this
	ÚDATABASEr   Nc                 ó   — dS )z'
		The backend's process identifier.
		Nr!   r"   s    r$   Ú
backend_idzDatabase.backend_idM  r&   r'   c                 ó   — dS )z}
		A version tuple of the database software similar Python's `sys.version_info`.

		>>> db.version_info
		(8, 1, 3, '', 0)
		Nr!   r"   s    r$   Úversion_infozDatabase.version_infoT  r&   r'   c                 ó   — dS )z—
		The client address that the server sees. This is obtainable by querying
		the ``pg_catalog.pg_stat_activity`` relation.

		`None` if unavailable.
		Nr!   r"   s    r$   Úclient_addresszDatabase.client_address^  r&   r'   c                 ó   — dS )z”
		The client port that the server sees. This is obtainable by querying
		the ``pg_catalog.pg_stat_activity`` relation.

		`None` if unavailable.
		Nr!   r"   s    r$   Úclient_portzDatabase.client_porth  r&   r'   r²   z+ISOLATION LEVEL to use with the transactionr°   z0Mode of the transaction, READ ONLY or READ WRITEc                 ó   — dS )z]
		Create a `Transaction` object using the given keyword arguments as its
		configuration.
		Nr!   )r#   r²   r°   s      r$   ÚxactzDatabase.xactr  r&   r'   c                 ó   — dS )z4
		A `Settings` instance bound to the `Database`.
		Nr!   r"   s    r$   ÚsettingszDatabase.settings}  r&   r'   c                 ó   — dS )zŒ
		Execute a DO statement using the given language and source.
		Always returns `None`.

		Likely to be a function of Connection.execute.
		Nr!   )Úlanguager%   s     r$   ÚdozDatabase.do„  r&   r'   c                 ó   — dS )za
		Execute an arbitrary block of SQL. Always returns `None` and raise
		an exception on error.
		Nr!   )Úsqls    r$   ÚexecutezDatabase.execute�  r&   r'   rì   c                 ó   — dS )zœ
		Create a new `Statement` instance bound to the connection
		using the given SQL.

		>>> s = db.prepare("SELECT 1")
		>>> c = s()
		>>> c.next()
		(1,)
		Nr!   )r#   rì   s     r$   ÚpreparezDatabase.prepare”  r&   r'   r”   z&The statement's identification string.c                 ó   — dS )a"  
		Create a `Statement` object that was already prepared on the
		server. The distinction between this and a regular query is that it
		must be explicitly closed if it is no longer desired, and it is
		instantiated using the statement identifier as opposed to the SQL
		statement itself.
		Nr!   )r#   r”   s     r$   Ústatement_from_idzDatabase.statement_from_id   r&   r'   rC   z#The cursor's identification string.c                 ó   — dS )aŽ  
		Create a `Cursor` object from the given `cursor_id` that was already
		declared on the server.

		`Cursor` objects created this way must *not* be closed when the object
		is garbage collected. Rather, the user must explicitly close it for
		the server resources to be released. This is in contrast to `Cursor`
		objects that are created by invoking a `Statement` or a SRF
		`StoredProcedure`.
		Nr!   )r#   rC   s     r$   Úcursor_from_idzDatabase.cursor_from_id¬  r&   r'   Úprocedure_idz:The procedure identifier; a valid ``regprocedure`` or Oid.c                 ó   — dS )a×  
		Create a `StoredProcedure` instance using the given identifier.

		The `proc_id` given can be either an ``Oid``, or a ``regprocedure``
		that identifies the stored procedure to create the interface for.

		>>> p = db.proc('version()')
		>>> p()
		'PostgreSQL 8.3.0'
		>>> qstr = "select oid from pg_proc where proname = 'generate_series'"
		>>> db.prepare(qstr).first()
		1069
		>>> generate_series = db.proc(1069)
		>>> list(generate_series(1,5))
		[1, 2, 3, 4, 5]
		Nr!   )r#   rô   s     r$   ÚproczDatabase.proc»  r&   r'   c                 ó   — dS )aÝ  
		Reset the connection into it's original state.

		Issues a ``RESET ALL`` to the database. If the database supports
		removing temporary tables created in the session, then remove them.
		Reapply initial configuration settings such as path.

		The purpose behind this method is to provide a soft-reconnect method
		that re-initializes the connection into its original state. One
		obvious use of this would be in a connection pool where the connection
		is being recycled.
		Nr!   r"   s    r$   ÚresetzDatabase.resetÑ  r&   r'   c                 ó   — dS )aƒ  
		NOTIFY the channels with the given payload.

		Equivalent to issuing "NOTIFY <channel>" or "NOTIFY <channel>, <payload>"
		for each item in `channels` and `channel_and_payload`. All NOTIFYs issued
		*must* occur in the same transaction.

		The items in `channels` can either be a string or a tuple. If a string,
		no payload is given, but if an item is a `builtins.tuple`, the second item
		will be given as the payload. `channels` offers a means to issue NOTIFYs
		in guaranteed order.

		The items in `channel_and_payload` are all payloaded NOTIFYs where the
		keys are the channels and the values are the payloads. Order is undefined.
		Nr!   )r#   ÚchannelsÚchannel_and_payloads      r$   ÚnotifyzDatabase.notifyà  r&   r'   c                 ó   — dS )ze
		Start listening to the given channels.

		Equivalent to issuing "LISTEN <x>" for x in channels.
		Nr!   ©r#   rú   s     r$   ÚlistenzDatabase.listenò  r&   r'   c                 ó   — dS )zf
		Stop listening to the given channels.

		Equivalent to issuing "UNLISTEN <x>" for x in channels.
		Nr!   rþ   s     r$   ÚunlistenzDatabase.unlistenú  r&   r'   zchannel name.c                 ó   — dS )zK
		Return an *iterator* to all the channels currently being listened to.
		Nr!   r"   s    r$   Úlistening_channelszDatabase.listening_channels  r&   r'   c                 ó   — dS )a)  
		Return an iterator to the notifications received by the connection. The
		iterator *must* produce triples in the form ``(channel, payload, pid)``.

		If timeout is not `None`, `None` *must* be emitted at the specified
		timeout interval. If the timeout is zero, all the pending notifications
		*must* be yielded by the iterator and then `StopIteration` *must* be
		raised.

		If the connection is closed for any reason, the iterator *must* silently
		stop by raising `StopIteration`. Further error control is then the
		responsibility of the user.
		Nr!   ©r#   Útimeouts     r$   ÚiternotifieszDatabase.iternotifies  r&   r'   rr   rR   rd   )$r1   r2   r3   r4   r5   r8   r9   r:   rT   rÝ   rU   rß   r;   rá   rã   r   rå   r   rç   rê   rí   r   rï   rñ   r   ró   r   rö   rø   rü   rÿ   r  r  rŽ   ÚIteratorr  r!   r'   r$   r   r   F  s�  € € € € € ðð ð €à
ØÔð˜#˜t˜ð ð ð ñ Ôñ „(ðð
 ØÔð˜5ð ð ð ñ Ôñ „(ðð ØÔð˜c 4˜[ð ð ð ñ Ôñ „(ðð ØÔð˜3 ˜+ð ð ð ñ Ôñ „(ðð ØÔà>BØ>Bðð Ø;ðà	;ðð ðð ð ñ Ôñ „(ðð ØÔð�xð ð ð ñ Ôñ „(ðð
 Ôðð ð ñ Ôðð Ôðð ð ñ Ôðð Ôð	˜ð 	 ð 	ð 	ð 	ñ Ôð	ð Ôð	Ø9ð	àð	ð 	ð 	ñ Ôð	ð ÔðØ3ðàðð ð ñ Ôðð Ôðà?ðð ðð ð ñ Ôðð* Ôðð ð ñ Ôðð Ôð°sð ð ð ñ Ôðð" Ôðð ð ñ Ôðð Ôðð ð ñ Ôðð Ôð .°#Ð!6ð ð ð ñ Ôðð
 Ôðð ¨;Ô+?ð ð ð ñ Ôðð ð r'   r   c                   ó   — e Zd ZdZd„ ZdS )r   ÚTYPIOc                 ó   — dS )Nr!   r!   r"   s    r$   Ú_e_metaszTypeIO._e_metas  s   € Ø	ˆr'   N)r1   r2   r3   r5   r  r!   r'   r$   r   r     s(   € € € € € Ø€ðð ð ð ð r'   r   c                   ól  — e Zd Zeej        defd„¦   «         ¦   «         Zeej        defd„¦   «         ¦   «         Zeej        defd„¦   «         ¦   «         Z	eej        dede
fd„¦   «         ¦   «         Zej        dededffd„¦   «         Zej        dd„¦   «         Zej        dej        gfd„¦   «         ZdS )ÚSocketFactoryr   c                 ó   — dS )zÐ
		The exception that is raised by sockets that indicate a fatal error.

		The exception can be a base exception as the `fatal_error_message` will
		indicate if that particular exception is actually fatal.
		Nr!   r"   s    r$   Úfatal_exceptionzSocketFactory.fatal_exception  r&   r'   c                 ó   — dS )zx
		The exception raised by the socket when an operation could not be
		completed due to a configured time constraint.
		Nr!   r"   s    r$   Útimeout_exceptionzSocketFactory.timeout_exception)  r&   r'   c                 ó   — dS )zh
		The exception raised by the socket when an operation was interrupted, but
		should be tried again.
		Nr!   r"   s    r$   Útryagain_exceptionz SocketFactory.tryagain_exception1  r&   r'   Úerrc                 ó   — dS )zH
		Whether or not `err` suggests the operation should be tried again.
		Nr!   ©r#   r  s     r$   ÚtryagainzSocketFactory.tryagain9  r&   r'   Nc                 ó   — dS )a  
		A function returning a string describing the failure, this string will be
		given to the `postgresql.exceptions.ConnectionFailure` instance that will
		subsequently be raised by the `Connection` object.

		Returns `None` when `err` is not actually fatal.
		Nr!   r  s     r$   Úfatal_exception_messagez%SocketFactory.fatal_exception_message@  r&   r'   Úsocketúsocket objectúsecured socketc                 ó   — dS )zé
		Return a reference to the secured socket using the given parameters.

		If securing the socket for the connector is impossible, the user should
		never be able to instantiate the connector with parameters requesting
		security.
		Nr!   )r#   r  s     r$   Úsocket_securezSocketFactory.socket_secureJ  r&   r'   c                 ó   — dS )zm
		Return a sequence of `SocketCreator`s that `Connection` objects will use to
		create the socket object.
		Nr!   r"   s    r$   Úsocket_factory_sequencez%SocketFactory.socket_factory_sequenceT  r&   r'   )r  r  r   r  )r1   r2   r3   r8   r9   r:   Ú	Exceptionr  r  r  r=   r  r;   r  r  rŽ   ÚCallabler!  r!   r'   r$   r  r    sx  € € € € € Ø
ØÔð˜ið ð ð ñ Ôñ „(ðð ØÔð 	ð ð ð ñ Ôñ „(ðð ØÔð ð ð ð ñ Ôñ „(ðð ØÔð˜)ð ¨ð ð ð ñ Ôñ „(ðð
 Ôð¨ð ¸¸T°{ð ð ð ñ Ôðð Ôðð ð ñ Ôðð Ôð {Ô';Ð&<ð ð ð ñ Ôðð ð r'   r  c                   ó:   — e Zd ZdZdZdZej        d„ ¦   «         ZdS )r
   z’
	A category is an object that initializes the subject connection for a
	specific purpose.

	Arguably, a runtime class for use with connections.
	ÚCATEGORYr!   c                 ó   — dS )zJ
		Initialize the given connection in order to conform to the category.
		Nr!   )r#   Ú
connections     r$   ry   zCategory.__call__e  r&   r'   N)	r1   r2   r3   r4   r5   rS   r9   r:   ry   r!   r'   r$   r
   r
   [  sG   € € € € € ðð ð €Ø€àÔðð ñ Ôðð ð r'   r
   c                   óR   — e Zd ZdZdZdZd„ Z	 	 	 	 	 dddded	ed
eeefgfde	f
d„Z
dS )r	   z²
	A connector is an object providing the necessary information to establish a
	connection. This includes credentials, database settings, and many times
	addressing information.
	Ú	CONNECTOR)ÚdriverÚcategoryc                 ó.   —  | j         j        | g|¢R i |¤ŽS )zd
		Create and connect. Arguments will be given to the `Connection` instance's
		`connect` method.
		)r*  r'  rª   s      r$   ry   zConnector.__call__t  s)   € ð
 
 ˆŒÔ	 Ð	2 tÐ	2Ð	2Ð	2¨rÐ	2Ð	2Ð2r'   NÚuserz.required keyword specifying the user name(str)Úpasswordr“   rç   r+  c                 ó¾   — |€t          d¦  «        ‚|| _        || _        || _        || _        || _        |�$t          |t          ¦  «        st          d¦  «        ‚d S d S )Nz'user' is a required keywordz8'category' must a be `None` or `postgresql.api.Category`)Ú	TypeErrorr-  r.  r“   rç   r+  Ú
isinstancer
   )r#   r-  r.  r“   rç   r+  s         r$   Ú__init__zConnector.__init__{  sm   € ð 
€\å	Ð1Ñ	2Ô	2Ð2Ø€$„)Ø€$„-Ø€$„-Ø€$„-Ø€$„-ØÐ¥*¨XµxÑ"@Ô"@ÐÝ	ÐMÑ	NÔ	NÐNð ÐÐÐr'   )NNNNN)r1   r2   r3   r4   r5   rS   ry   r;   r<   r
   r2  r!   r'   r$   r	   r	   k  s©   € € € € € ðð ð
 €Ø$€ð3ð 3ð 3ð =AØØØ#'ØðOð OØ	9ðOàðOð ðOð �c˜#�Y�KÐ ð	Oð
 ðOð Oð Oð Oð Oð Or'   r	   c                   ób  — e Zd ZdZdZdZeej        de	fd„¦   «         ¦   «         Z
eej        defd„¦   «         ¦   «         Zeej        defd„¦   «         ¦   «         Zej        dd„¦   «         Zej        dd
„¦   «         Zej        dd„¦   «         Zej        d„ ¦   «         Zej        d„ ¦   «         Zd	S )r   z¼
	The interface to a connection to a PostgreSQL database. This is a
	`Database` interface with the additional connection management tools that
	are particular to using a remote database.
	Ú
CONNECTION)Ú	connectorr   c                 ó   — dS )zs
		The :py:class:`Connector` instance facilitating the `Connection` object's
		communication and initialization.
		Nr!   r"   s    r$   r5  zConnection.connector–  r&   r'   c                 ó   — dS )z°
		The :py:class:`Execution` instance providing a one-shot query interface::

			connection.query.<method>(sql, *parameters) == connection.prepare(sql).<method>(*parameters)
		Nr!   r"   s    r$   ÚqueryzConnection.queryž  r&   r'   c                 ó   — dS )zj
		`True` if the `Connection` is closed, `False` if the `Connection` is
		open.

		>>> db.closed
		True
		Nr!   r"   s    r$   ÚclosedzConnection.closed§  r&   r'   c                 ó   — dS )zy
		Create another connection using the same factors as `self`. The returned
		object should be open and ready for use.
		Nr!   r"   s    r$   rb   zConnection.clone²  r&   r'   Nc                 ó<   — | j         j        }|� || ¦  «         dS dS )zƒ
		Establish the connection to the server and initialize the category.

		Does nothing if the connection is already established.
		N)r5  r+  )r#   Úcats     r$   ÚconnectzConnection.connect¹  s+   € ð 	ŒÔ€#Ø€_Ø€3€t�9„9€9€9€9ð €_r'   c                 ó   — dS )zP
		Close the connection.

		Does nothing if the connection is already closed.
		Nr!   r"   s    r$   rE   zConnection.closeÄ  r&   r'   c                 ó   — dS )z/
		Establish the connection and return self.
		Nr!   r"   s    r$   rº   zConnection.__enter__Ì  r&   r'   c                 ó   — dS )ze
		Closes the connection and returns `False` when an exception is passed in,
		`True` when `None`.
		Nr!   r¼   s       r$   rÀ   zConnection.__exit__Ò  r&   r'   )r   r   rR   )r1   r2   r3   r4   r5   rS   r8   r9   r:   r	   r5  rv   r8  r=   r:  rb   r>  rE   rº   rÀ   r!   r'   r$   r   r   �  sq  € € € € € ðð ð
 €Ø€à
ØÔð˜	ð ð ð ñ Ôñ „(ðð ØÔð�Ið ð ð ñ Ôñ „(ðð ØÔð�Tð ð ð ñ Ôñ „(ðð Ôðð ð ñ Ôðð Ôðð ð ñ Ôðð Ôðð ð ñ Ôðð Ôðð ñ Ôðð
 Ôðð ñ Ôðð ð r'   r   c                   ó:   — e Zd ZdZdZdZej        d„ ¦   «         ZdS )r   z¿
	The `Driver` element provides the `Connector` and other information
	pertaining to the implementation of the driver. Information about what the
	driver supports is available in instances.
	ÚDRIVERr!   c                  ó   — dS )zG
		Create a connection using the given parameters for the Connector.
		Nr!   )r¬   s    r$   r>  zDriver.connectâ  r&   r'   N)	r1   r2   r3   r4   r5   rS   r9   r:   r>  r!   r'   r$   r   r   Ù  sG   € € € € € ðð ð
 €Ø€àÔðð ñ Ôðð ð r'   r   c                   óà   — e Zd ZdZdZdZeej        d„ ¦   «         ¦   «         Z	eej        d„ ¦   «         ¦   «         Z
eej        d„ ¦   «         ¦   «         Zeej        defd„¦   «         ¦   «         Zd	S )
r   z•
	Interface to a PostgreSQL installation. Instances would provide various
	information about an installation of PostgreSQL accessible by the Python
	ÚINSTALLATIONr!   c                 ó   — dS )zL
		A version string consistent with what `SELECT version()` would output.
		Nr!   r"   s    r$   ÚversionzInstallation.versionð  r&   r'   c                 ó   — dS )z�
		A tuple specifying the version in a form similar to Python's
		sys.version_info. (8, 3, 3, 'final', 0)

		See `postgresql.versionstring`.
		Nr!   r"   s    r$   rß   zInstallation.version_info÷  r&   r'   c                 ó   — dS )zd
		The "type" of PostgreSQL. Normally, the first component of the string
		returned by pg_config.
		Nr!   r"   s    r$   r¥   zInstallation.type  r&   r'   r   c                 ó   — dS )z,
		Whether the installation supports SSL.
		Nr!   r"   s    r$   ÚsslzInstallation.ssl	  r&   r'   N)r1   r2   r3   r4   r5   rS   r8   r9   r:   rH  rß   r¥   r=   rL  r!   r'   r$   r   r   è  sØ   € € € € € ðð ð €Ø€à
ØÔðð ñ Ôñ „(ðð
 ØÔðð ñ Ôñ „(ðð ØÔðð ñ Ôñ „(ðð ØÔð�$ð ð ð ñ Ôñ „(ðð ð r'   r   c                   óP  — e Zd ZdZdZdZeej        de	fd„¦   «         ¦   «         Z
eej        defd„¦   «         ¦   «         Zej        	 	 	 	 	 	 	 	 	 	 	 	 d.	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d/d „¦   «         Zej        d!„ ¦   «         Zej        d"„ ¦   «         Zej        d#„ ¦   «         Zej        d$„ ¦   «         Zej        d%„ ¦   «         Zej        	 d0	 d1d)„¦   «         Zej        	 d0	 d1d*„¦   «         Zeej        d+„ ¦   «         ¦   «         Zej        d,„ ¦   «         Zej        d-„ ¦   «         ZdS )2r   zy
	Interface to a PostgreSQL cluster--a data directory. An implementation of
	this provides a means to control a server.
	ÚCLUSTER)ÚinstallationÚdata_directoryr   c                 ó   — dS )z+
		The installation used by the cluster.
		Nr!   r"   s    r$   rO  zCluster.installation  r&   r'   c                 ó   — dS )z4
		The path to the data directory of the cluster.
		Nr!   r"   s    r$   rP  zCluster.data_directory  r&   r'   NÚinitdbúpath to the initdb to user-  úname of the cluster's superuserr.  úsuperuser's passwordÚencodingú#the encoding to use for the clusterÚlocaleú!the locale to use for the clusterÚcollateú$the collation to use for the clusterÚctypeú the ctype to use for the clusterÚmonetaryú#the monetary to use for the clusterÚnumericú"the numeric to use for the clusterÚtimeúthe time to use for the clusterÚtext_search_configú!default text search configurationÚxlogdirú*location for the transaction log directoryc                 ó   — dS )zX
		Create the cluster at the `data_directory` associated with the Cluster
		instance.
		Nr!   )r#   rS  r-  r.  rW  rY  r[  r]  r_  ra  rc  re  rg  s                r$   ÚinitzCluster.init&  r&   r'   c                 ó   — dS )z?
		Kill the server and completely remove the data directory.
		Nr!   r"   s    r$   ÚdropzCluster.drop:  r&   r'   c                 ó   — dS )z
		Start the cluster.
		Nr!   r"   s    r$   r´   zCluster.start@  r&   r'   c                 ó   — dS )z$
		Signal the server to shutdown.
		Nr!   r"   s    r$   ÚstopzCluster.stopF  r&   r'   c                 ó   — dS )z
		Kill the server.
		Nr!   r"   s    r$   ÚkillzCluster.killL  r&   r'   c                 ó   — dS )z
		Restart the cluster.
		Nr!   r"   s    r$   ÚrestartzCluster.restartR  r&   r'   é
   r  úmaximum time to waitc                 ó   — dS )a  
		After the start() method is ran, the database may not be ready for use.
		This method provides a mechanism to block until the cluster is ready for
		use.

		If the `timeout` is reached, the method *must* throw a
		`postgresql.exceptions.ClusterTimeoutError`.
		Nr!   r  s     r$   Úwait_until_startedzCluster.wait_until_startedX  r&   r'   c                 ó   — dS )a	  
		After the stop() method is ran, the database may still be running.
		This method provides a mechanism to block until the cluster is completely
		shutdown.

		If the `timeout` is reached, the method *must* throw a
		`postgresql.exceptions.ClusterTimeoutError`.
		Nr!   r  s     r$   Úwait_until_stoppedzCluster.wait_until_stoppede  r&   r'   c                 ó   — dS )z[
		A `Settings` interface to the ``postgresql.conf`` file associated with the
		cluster.
		Nr!   r"   s    r$   rç   zCluster.settingsr  r&   r'   c                 ó   — dS )zU
		Start the cluster if it's not already running, and wait for it to be
		readied.
		Nr!   r"   s    r$   rº   zCluster.__enter__z  r&   r'   c                 ó   — dS )ze
		Stop the cluster and wait for it to shutdown *iff* it was started by the
		corresponding enter.
		Nr!   )r#   ÚexcÚvalr¿   s       r$   rÀ   zCluster.__exit__�  r&   r'   )NNNNNNNNNNNN)rS  rT  r-  rU  r.  rV  rW  rX  rY  rZ  r[  r\  r]  r^  r_  r`  ra  rb  rc  rd  re  rf  rg  rh  )rt  )r  ru  )r1   r2   r3   r4   r5   rS   r8   r9   r:   r   rO  r;   rP  rj  rl  r´   ro  rq  rs  rw  ry  rç   rº   rÀ   r!   r'   r$   r   r     s®  € € € € € ðð ð €Ø0€à
ØÔð˜<ð ð ð ñ Ôñ „(ðð
 ØÔð˜Sð ð ð ñ Ôñ „(ðð
 Ôà)-Ø-1Ø&*Ø59Ø15Ø59Ø/3Ø59Ø37Ø-1Ø=AØ;?ðØ&ðà	*ðð $ðð 3ð	ð
 /ðð 3ðð -ðð 3ðð 1ðð 
+ðð ;ðð 9ðð ð ñ Ôðð& Ôðð ñ Ôðð
 Ôðð ñ Ôðð
 Ôðð ñ Ôðð
 Ôðð ñ Ôðð
 Ôðð ñ Ôðð
 Ôà%'ð
Ø"ð
ð 
ð 
ñ Ôð
ð Ôà%'ð
Ø"ð
ð 
ð 
ñ Ôð
ð ØÔðð ñ Ôñ „(ðð Ôðð ñ Ôðð Ôðð ñ Ôðð ð r'   r   ÚreStructuredTextÚ__main__z.api)$r4   rŽ   r9   Úpython.elementr   Ú__all__r   r?   r  r�   r   r   ÚABCMetarv   r#  r   ÚregisterÚPreparedStatementr   r   ÚMutableMappingr   r   r   r¤   r  r
   r	   r   r   r   r   Ú__docformat__r1   ÚhelpÚ__package__r!   r'   r$   ú<module>rŠ     s1  ðð	ð 	ð Ð Ð Ð Ø 
€
€
€
à #Ð #Ð #Ð #Ð #Ð #ðð ð €ð$Jð Jð Jð Jð Jˆgñ Jô Jð JðXZð Zð Zð Zð ZˆWñ Zô Zð Zðxð ð ð ð ØØÔØÔñô ð ð_ð _ð _ð _ð _ØØÔØÔñ_ô _ð _ðB]ð ]ð ]ð ]ð ]˜CœKð ]ñ ]ô ]ð ]ð~Að Að Að Að AØØÔØÔñAô Að AðD 
× Ò �9Ñ Ô Ð ØÐ ðð ð ð ð ØØÔñô ð ðD}ð }ð }ð }ð }�'ñ }ô }ð }ð~Jð Jð Jð Jð JØØÔñJô Jð JðXPð Pð Pð Pð Pˆwñ Pô Pð Pðdð ð ð ð ˆWñ ô ð ð;ð ;ð ;ð ;ð ;�Fñ ;ô ;ð ;ðzð ð ð ð ˆwñ ô ð ð  Oð  Oð  Oð  Oð  O�ñ  Oô  Oð  OðDJð Jð Jð Jð J�ñ Jô Jð JðXð ð ð ð ˆWñ ô ð ð&ð &ð &ð &ð &�7ñ &ô &ð &ðPvð vð vð vð vˆgñ vô vð vðp #€ØˆzÒÐØ€€k�FÑÑÔÐÐÐð Ðr'   