destinations.insert_job_client
InsertValuesJobClient Objects
class InsertValuesJobClient(SqlJobClientWithStaging)
restore_file_load
def restore_file_load(file_path: str) -> LoadJob
Returns a completed SqlLoadJob or InsertValuesJob
Returns completed jobs as SqlLoadJob and InsertValuesJob executed atomically in start_file_load so any jobs that should be recreated are already completed. Obviously the case of asking for jobs that were never created will not be handled. With correctly implemented loader that cannot happen.
Arguments:
file_path
str - a path to a job file
Returns:
LoadJob
- Always a restored job completed