From: Daniele Varrazzo Date: Wed, 28 Oct 2020 00:45:45 +0000 (+0100) Subject: Added missing methods to psycopg3.pq.Escaping proto X-Git-Tag: 3.0.dev0~443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b30ba009bd17d689bdb21bd42715698bdb3b17e1;p=thirdparty%2Fpsycopg.git Added missing methods to psycopg3.pq.Escaping proto --- diff --git a/psycopg3/psycopg3/pq/proto.py b/psycopg3/psycopg3/pq/proto.py index cc7e2d3f6..a8b4cd655 100644 --- a/psycopg3/psycopg3/pq/proto.py +++ b/psycopg3/psycopg3/pq/proto.py @@ -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: ...