Project

General

Profile

« Previous | Next » 

Revision 1998

db_xml.py: put_table(): Added commit param to specify whether to commit after each query

View differences:

db_xml.py
116 116
    
117 117
    return id_
118 118

  
119
def put_table(db, node, table, row_ct_ref=None, table_is_esc=False):
120
    '''@param node The XML tree that transforms the input to the output. Similar
121
        to put()'s node param, but with the input column name prefixed by "$"
122
        in place of the column value.
119
def put_table(db, node, table, commit=False, row_ct_ref=None,
120
    table_is_esc=False):
123 121
    '''
122
    @param node The XML tree that transforms the input to the output. Similar to
123
        put()'s node param, but with the input column name prefixed by "$" in
124
        place of the column value.
125
    @param commit Whether to commit after each query
126
    '''
124 127
    import sys; sys.stderr.write(str(node))
128
    if commit: db.db.commit()
125 129
    raise NotImplementedError('By-column optimization not available yet')

Also available in: Unified diff