@@ -108,18 +108,6 @@ def load(self, iterable):
108108 optimize the operation.
109109 """
110110
111- @abstractmethod
112- def __invert__ (self ):
113- """
114- Shorthand for a call to the `first` method without any arguments.
115- Useful for resolving static queries. Example usage:
116-
117- >>> ~pg_con.query("INSERT INTO ttable VALUES ('value')")
118- 1
119- >>> ~pg_con.query("SELECT 'somestring'")
120- 'somestring'
121- """
122-
123111 @abstractmethod
124112 def close (self ):
125113 """
@@ -133,12 +121,6 @@ def prepare(self):
133121 used if the query were closed at some point.
134122 """
135123
136- @abstractmethod
137- def reprepare (self ):
138- """
139- Shorthand for ``close`` then ``prepare``.
140- """
141-
142124class Cursor (
143125 collections .Iterator ,
144126 collections .Iterable ,
@@ -376,10 +358,9 @@ class Settings(
376358 metaclass = ABCMeta
377359):
378360 """
379- A mapping interface to the session's settings. This dictionary-like object
380- provides a direct interface to ``SHOW`` or ``SET`` commands. Identifiers and
381- values need not be quoted specially as the implementation must do that work
382- for the user.
361+ A mapping interface to the session's settings. This provides a direct interface
362+ to ``SHOW`` or ``SET`` commands. Identifiers and values need not be quoted
363+ specially as the implementation must do that work for the user.
383364 """
384365
385366 def getpath (self ) -> "Sequence of schema names that make up the search_path" :
@@ -538,7 +519,7 @@ def query(self,
538519 sql : "The query text." ,
539520 * default_args : "The default positional parameters to pass to the statement." ,
540521 title : "The query's name, used in tracebacks when available" = None ,
541- prepare : "Whether or not to prepare the query." = True ,
522+ prepare : "Whether or not to prepare the query." = True
542523 ):
543524 """
544525 Create a new `.query` instance that provides an interface to the prepared statement.
@@ -578,7 +559,7 @@ def cquery(self,
578559 sql : "The query text." ,
579560 * default_args : "The default positional parameters to pass to the statement." ,
580561 title : "The query's name, used in tracebacks when available" = None ,
581- prepare : "Whether or not to prepare the query." = True ,
562+ prepare : "Whether or not to prepare the query." = True
582563 ):
583564 """
584565 Exactly like `query`, but cache the created `PreparedStatement` using the
@@ -593,7 +574,7 @@ def statement(self,
593574 statement_id : "The identifier of the statement." ,
594575 * default_args : "The default positional parameters to pass to the statement." ,
595576 title : "The query's name, used in tracebacks when available" = None ,
596- prepare : "Whether or not to prepare the query." = True ,
577+ prepare : "Whether or not to prepare the query." = True
597578 ):
598579 """
599580 Create a `PreparedStatement` object that was already prepared on the server.
@@ -748,8 +729,8 @@ def closed(self):
748729 doc = """
749730 A property that provides an interface to "SELECT current_user", ``SET
750731 ROLE``, and ``RESET ROLE``. When the attribute is resolved, the current user will
751- be given as a character string(unicode) . When the attribute is set, it will
752- issue a ``SET ROLE`` command to the server, changing the session's user. When
732+ be given as a character string. When the attribute is set, it will issue a
733+ ``SET ROLE`` command to the server, changing the session's user. When
753734 the attribute is deleted, a ``RESET ROLE`` command will be issued to the
754735 server.
755736 """
@@ -827,7 +808,7 @@ def restart(self):
827808 @abstractproperty
828809 def settings (self ):
829810 """
830- A `Settings` interface to the postgresql.conf file associated with the
811+ A `Settings` interface to the `` postgresql.conf`` file associated with the
831812 cluster.
832813 """
833814
0 commit comments