]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Added missing methods to psycopg3.pq.Escaping proto
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 28 Oct 2020 00:45:45 +0000 (01:45 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 28 Oct 2020 00:46:14 +0000 (01:46 +0100)
psycopg3/psycopg3/pq/proto.py

index cc7e2d3f685e1de706015cd64dabeff9734f245c..a8b4cd65569bb7d8a2c4babf5596060968f992ee 100644 (file)
@@ -345,6 +345,12 @@ class Escaping(Protocol):
     def escape_literal(self, data: bytes) -> bytes:
         ...
 
+    def escape_identifier(self, data: bytes) -> bytes:
+        ...
+
+    def escape_string(self, data: bytes) -> bytes:
+        ...
+
     def escape_bytea(self, data: bytes) -> bytes:
         ...