
Import a full census in one transaction
dot-execute_census_import.RdCreates or reuses the census record, inserts the recruits, resolves their multi-stem grouping, then writes the measurements for every stem — all inside a single transaction, so a failure at any point leaves the database as it was rather than half-populated.
Arguments
- data
Long measurement rows carrying `plot_name`, `tag`, `id_liste_plots`, `traitid` and the value columns.
- config
Configuration list from the step 3 module. Uses `recruits`, `census_mode`, `census_map`, `census_number`, `census_year`, `census_month`, `census_day`, `features_field` and `features_field_mappings`.
- con
Database connection or pool.
- dry_run
Report what would happen without writing.
- i18n
Optional translator.