##############################################################################
from database import Database
+import dbutils
class Connection(object):
+ Query = dbutils.Query
+ Field = dbutils.Field
+ Table = dbutils.Table
+ Constraint = dbutils.Constraint
+ Literal = dbutils.Literal
+
def __init__(self, *args, **kwargs):
self._db_con = None
# [{'name': 'id', 'type': 'char', 'size': 20, 'primary': True}]
return None
- def _get_cursor(self, db_name, query):
- # {'select': [('t1$_id', 'id'), {'select': [('t1$c1', 'value')], 'from': ['t1$c1'], 'where': [(('t1$c1', 'id'), '=', ('t1$_id', 'id'))]}], 'from': ['t1$_id']}
+ def _get_cursor(self, query):
return None
- def _next(self, cursor):
+ def _next(self, db_name, cursor):
return None
def _insert(self, db_name, table_name, values):