def create_connection(self, async_=True):
logger.info('connecting to source database at "%s"', self.dsn)
cnn = psycopg2.connect(
self.dsn, async_=async_,
connection_factory=LogicalReplicationConnection)
wait_select(cnn)
return cnn
评论列表
文章目录