Exemplo n.º 1
0
 def response(self):
     return Response(self._get_connection().execute_select(
         self._compile_select()))
Exemplo n.º 2
0
 def pluck(self, key, value):
     return Response(self._get_connection().execute_select(
         self._compile_select())).pluck(key, value)
Exemplo n.º 3
0
 def lists(self, columns):
     return Response(self._get_connection().execute_select(
         self._compile_select())).tolist(columns)
Exemplo n.º 4
0
 def data(self):
     return Response(self._get_connection().execute(self._compile_select())).data()
Exemplo n.º 5
0
 def response(self):
     return Response(self._get_connection().execute(self._compile_select(),
                                                    DictCursor))
Exemplo n.º 6
0
 def execute(self, sql):
     return Response(self._get_connection().execute(sql, DictCursor))