132 |
132 |
|
133 |
133 |
put_table_special_funcs = set(['_simplifyPath'])
|
134 |
134 |
|
135 |
|
def put_table(db, node, in_table, commit=False, in_row_ct_ref=None,
|
|
135 |
def put_table(db, node, in_table, in_row_ct_ref=None,
|
136 |
136 |
row_ins_ct_ref=None, limit=None, start=0, on_error=exc.raise_,
|
137 |
137 |
parent_ids_loc=None, next=None):
|
138 |
138 |
'''
|
139 |
139 |
@param node The XML tree that transforms the input to the output. Similar to
|
140 |
140 |
put()'s node param, but with the input column name prefixed by
|
141 |
141 |
input_col_prefix in place of the column value.
|
142 |
|
@param commit Whether to commit after each query
|
143 |
142 |
@return (table, col) Where the pkeys (from INSERT RETURNING) are made
|
144 |
143 |
available
|
145 |
144 |
'''
|
... | ... | |
159 |
158 |
def pkey(table): return sql.pkey(db, table, True)
|
160 |
159 |
|
161 |
160 |
def put_table_(node):
|
162 |
|
return put_table(db, node, in_table, commit, None, row_ins_ct_ref,
|
|
161 |
return put_table(db, node, in_table, None, row_ins_ct_ref,
|
163 |
162 |
on_error=on_error, parent_ids_loc=parent_ids_loc, next=next)
|
164 |
163 |
|
165 |
164 |
is_func = xml_func.is_func(node)
|
db_xml.py: put_table(): Removed no longer needed commit param