Skip to content

Commit

Permalink
WIP classes for range sharded and for creating new entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutip committed Jan 19, 2015
1 parent 1967b4b commit 6d870c6
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 156 deletions.
7 changes: 4 additions & 3 deletions py/vtdb/database_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ def create_cursor(self, writable, table_class, routing, **kwargs):
raise dbexceptions.ProgrammingError(
"Cannot execute queries outside db operations context.")

cursor = table_class.create_vtgate_cursor(self.get_vtgate_connection(),
self.tablet_type,
writable, **kwargs)
cursor = table_class.create_vtgate_cursor(routing,
self.get_vtgate_connection(),
self.tablet_type,
writable, **kwargs)

return cursor

Expand Down
Loading

0 comments on commit 6d870c6

Please sign in to comment.