Retrieves settings for a single collection from the database. Returns default values if no settings exist for the collection.
Arguments
- collection
Character. Collection UUID. Validated with
artcore::validate_uuid()where applicable.- cn
Database connection. If NULL, creates a connection via
artcore::dbc()and closes it on exit. Pass an existing connection to batch multiple queries efficiently.
Value
List with collection settings:
- collection_uuid
The collection UUID
- status
'wip' or 'complete'
- visibility_override
NA, 'visible', or 'hidden'
- extended_settings
List of additional settings
- created_at
Timestamp of record creation
- updated_at
Timestamp of last update
Details
Queries settings.collection_settings table. If no record exists for the
collection, returns a list with default values (status = "wip", no visibility
override, empty extended_settings).
