Archetype: sql_batch_execute.mustache

Table of Contents

Master include for a dataset: \ir every generated file in dependency order ({{#model.files}}), with \echo progress markers. The original file had no trailing newline; tangling added one (render-neutral, verified).

See the Template variable reference for the complete list of available variables and their semantics.

Template

The full template source. Edit here and re-tangle with compass build --direct tangle_codegen_templates to regenerate library/templates/sql_batch_execute.mustache.

{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/sql_populate.org. Edit the org source. }}
{{! Template to generate master include file for reference data }}
/* -*- sql-product: postgres; tab-width: 4; indent-tabs-mode: nil -*-
 *
 * AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 * Template: sql_batch_execute.mustache
 * To modify, update the template and regenerate.
 *
 * {{model_name}} Reference Data Master Include File
 *
 * Auto-generated by generator.py from models/slovaris/model.json
 * Includes all {{model_name}} SQL files in the correct dependency order.
 */

{{#model}}
{{#files}}
-- =============================================================================
-- {{description}}
-- =============================================================================

\echo '--- {{description}} ---'
\ir {{model_name}}_{{name}}

{{/files}}
{{/model}}

See also

Emacs 29.1 (Org mode 9.6.6)