Revision 5037
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
220 | 220 |
##### Import |
221 | 221 |
|
222 | 222 |
def append_csv(db, table, stream_info, stream, use_copy_from=True): |
223 |
assert sql.table_cols(db, table) == stream_info.header |
|
224 |
|
|
223 | 225 |
def log(msg, level=1): db.log_debug(msg, level) |
224 | 226 |
|
225 | 227 |
dialect = stream_info.dialect |
Also available in: Unified diff
sql_io.py: append_csv(): Check that the CSV's header matches the table's columns