dal.py 文件源码

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

项目:spc 作者: whbrewer 项目源码 文件源码
def count(self,query,distinct=None):
        if distinct:
            raise RuntimeError("COUNT DISTINCT not supported")
        if not isinstance(query,Query):
            raise SyntaxError("Not Supported")
        tablename = self.get_table(query)
        rows = self.select(query,[self.db[tablename]._id],{})
        return len(rows)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号