summaryrefslogtreecommitdiff
path: root/lib/extras.py
diff options
context:
space:
mode:
authorOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-06-11 12:20:52 +0200
committerOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-06-11 12:20:52 +0200
commit35a3262fe345b12fbc1cc7f89c2e0d35631811f7 (patch)
tree8fdb0fb969bb9b40fa8c7405c55f4cae70d2bd9d /lib/extras.py
parent9fc5bf44368eb381955c8bd164ccac145363e950 (diff)
downloadpsycopg2-35a3262fe345b12fbc1cc7f89c2e0d35631811f7.tar.gz
Expose ReplicationMessage type in extras
Diffstat (limited to 'lib/extras.py')
-rw-r--r--lib/extras.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/extras.py b/lib/extras.py
index 7de48d7..2f32bf1 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -39,6 +39,7 @@ import psycopg2
from psycopg2 import extensions as _ext
from psycopg2.extensions import cursor as _cursor
from psycopg2.extensions import connection as _connection
+from psycopg2.extensions import replicationMessage as ReplicationMessage
from psycopg2.extensions import adapt as _A
from psycopg2.extensions import b
@@ -515,13 +516,13 @@ class ReplicationCursor(_cursor):
else:
raise RuntimeError("unrecognized replication slot type")
- return self.execute(command)
+ self.execute(command)
def drop_replication_slot(self, slot_name):
"""Drop streaming replication slot."""
command = "DROP_REPLICATION_SLOT %s" % self.quote_ident(slot_name)
- return self.execute(command)
+ self.execute(command)
def start_replication(self, o, slot_type, slot_name=None, start_lsn=None,
timeline=0, keepalive_interval=10, options=None):