Revision 2052
Added by Aaron Marcuse-Kubitza about 12 years ago
db_xml.py | ||
---|---|---|
124 | 124 |
|
125 | 125 |
def __str__(self): return self.name |
126 | 126 |
|
127 |
def put_table(db, node, in_table, commit=False, row_ct_ref=None,
|
|
128 |
table_is_esc=False):
|
|
127 |
def put_table(db, node, in_table, in_schema=None, commit=False,
|
|
128 |
row_ct_ref=None):
|
|
129 | 129 |
''' |
130 | 130 |
@param node The XML tree that transforms the input to the output. Similar to |
131 | 131 |
put()'s node param, but with the input column name prefixed by "$" in |
132 | 132 |
place of the column value. |
133 | 133 |
@param commit Whether to commit after each query |
134 | 134 |
''' |
135 |
def qual_name(table): sql.qual_name(db, in_schema, table) |
|
136 |
|
|
135 | 137 |
def pkey(table): return sql.pkey(db, table, True) |
136 | 138 |
|
137 | 139 |
out_table = name_of(node) |
Also available in: Unified diff
db_xml.py: put_table(): Take separate in_table and in_schema names, instead of in_table and table_is_esc, because the in_schema is needed to scope the temp tables appropriately