base.py 文件源码

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

项目:clickhouse-sqlalchemy 作者: xzkostyan 项目源码 文件源码
def limit_clause(self, select, **kw):
        text = ''
        if select._limit_clause is not None:
            text += ' \n LIMIT '
            if select._offset_clause is not None:
                text += self.process(select._offset_clause, **kw) + ', '
            text += self.process(select._limit_clause, **kw)
        else:
            if select._offset_clause is not None:
                raise exc.CompileError('OFFSET without LIMIT is not supported')

        return text
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号