예제 #1
0
파일: app.py 프로젝트: thrustfm/thrustbase
def index():
	"""Main Index"""
	return json_response({
		"status": 200,
		"name": "thrustbase",
		"version": "0.0.1" 
	})
예제 #2
0
파일: db.py 프로젝트: thrustfm/thrustbase
def db_list():
	return json_response(rdb.db_list())
예제 #3
0
파일: db.py 프로젝트: thrustfm/thrustbase
def table_list(db_name):
	return json_response(rdb.table_list(db_name))
예제 #4
0
파일: db.py 프로젝트: thrustfm/thrustbase
def table_drop(db_name, table_name):
	return json_response(rdb.table_drop(db_name, table_name))
예제 #5
0
파일: db.py 프로젝트: thrustfm/thrustbase
def table_create(db_name, table_name):
	return json_response(rdb.table_create(db_name, table_name))
예제 #6
0
파일: db.py 프로젝트: thrustfm/thrustbase
def table(db_name, table_name):
	return json_response(list(rdb.table(db_name, table_name)))
예제 #7
0
파일: db.py 프로젝트: thrustfm/thrustbase
def drop(db_name):
	return json_response(rdb.db_drop(db_name))
예제 #8
0
파일: db.py 프로젝트: thrustfm/thrustbase
def create(db_name):
	return json_response(rdb.db_create(db_name))