def METHOD_NAME(self, file_path, table_name):
    sql = f"copy {table_name} from stdin with (format csv, header)"
    with open(file_path) as f:
        self.cursor.copy_expert(sql, f, READ_BUFFER_SIZE_BYTES)
    return self.cursor.rowcount