Skip to content

Commit

Permalink
Implementation function
Browse files Browse the repository at this point in the history
  • Loading branch information
zxyle committed Jul 29, 2019
1 parent e2c49c3 commit 10c07d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tinycrud/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def query(self, tb, condition):
post = self.db[tb]
return [row for row in post.find(condition)]

def update(self, tb, doc, condition):
pass

def ensure_index(self):
pass

Expand Down
5 changes: 4 additions & 1 deletion tinycrud/redisHandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# Author: Zheng <zxyful@gmail.com>
# Date: 2019/7/25
# Desc:
# Desc:

import redis

Expand Down Expand Up @@ -33,6 +33,9 @@ def query(self, tb, condition):

return result

def update(self, tb, doc, condition):
pass

def __repr__(self):
version = self.r.info("Server").get("redis_version")
return "Redis: {}".format(version)

0 comments on commit 10c07d3

Please sign in to comment.