insert_from_url

igwn_ligolw.utils.ligolw_sqlite.insert_from_url(url, preserve_ids=False, verbose=False, contenthandler=None)

Parse and insert the LIGO Light Weight document at the URL into the database with which the content handler is associated. If preserve_ids is False (default), then row IDs are modified during the insert process to prevent collisions with IDs already in the database. If preserve_ids is True then IDs are not modified; this will result in database consistency violations if any of the IDs of newly-inserted rows collide with row IDs already in the database, and is generally only sensible when inserting a document into an empty database. If verbose is True then progress reports will be printed to stderr. See igwn_ligolw.dbtables.use_in() for more information about constructing a suitable content handler class.