Skip to contents

Wrapper for database insertion of complete artwork record. Takes the table_list from [build_artwork_record()] and commits to database via [artutils::add_artwork()].

Usage

commit_artwork(table_list, cn = NULL)

Arguments

table_list

List. Output from [build_artwork_record()].

cn

Database connection. If NULL, creates and closes automatically.

Value

Invisible TRUE on success.

Details

This is a thin wrapper that: 1 2. Calls `artutils::add_artwork()` within a transaction 3. Updates artist stats and benchmarks

The actual database operations are handled by artutils. This function exists to encapsulate the commit step for pipeline orchestration and error handling.

See also

[build_artwork_record()] for creating the table_list

Other pipeline functions: build-record, createArtworkHash, create_gallery_images(), frame-analytics, frame-metrics, render_certificate(), validate_table_list()