fix_db.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:replisome 作者: GambitResearch 项目源码 文件源码
def make_repl_conn(self, **kwargs):
        """Create a new replication connection to the test database.

        The connection is asynchronous, and will be closed on teardown().
        """
        cnn = psycopg2.connect(
            self.dsn, connection_factory=LogicalReplicationConnection,
            async_=True, **kwargs)
        wait_select(cnn)
        self._conns.append(cnn)
        return cnn
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号