Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make object_from_row public.

  • Loading branch information...
commit 57f334d850fbb64baefb650eef279285dcb976b4 1 parent 3ae44bb
Martin Atkins apparentlymart authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 conjurer/mapper.py
6 conjurer/mapper.py
View
@@ -48,7 +48,7 @@ def __init__(self, source_table, target_class, custom_mappings=None):
self.mappings.append((column, attr_name, transform))
- def _object_from_row(self, row):
+ def object_from_row(self, row):
if row is None:
return None
@@ -65,11 +65,11 @@ def _object_from_row(self, row):
def result_to_object_iter(self, result):
for row in result:
- yield self._object_from_row(row)
+ yield self.object_from_row(row)
def result_to_object(self, result):
row = result.fetchone()
- return self._object_from_row(row)
+ return self.object_from_row(row)
def select_stmt(self):
return sqlalchemy.select( [ self.source_table ] )
Please sign in to comment.
Something went wrong with that request. Please try again.