ores.sql.schema.domain_entity_view_drop
Table of Contents
Drop script for a read-model view. sql profile; output projects/ores.sql/drop/{component}/{component}_{entity_plural}_drop.sql.
#+default: disabled: only an entity bound to the read-model profile has a view in place of a table. The profile enables this archetype and withdraws the table create and drop.
See the Template variable reference for the complete list of available variables and their semantics. See SQL naming conventions for the official object-name patterns all SQL templates follow.
1. Template
The full template source. Edit here and re-tangle with
compass build --direct tangle_codegen_templates to regenerate
library/templates/sql_schema_domain_entity_view_drop.mustache.
{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/ores.sql.schema.domain_entity_view_drop.org. Edit the org source. }}
{{! Template to generate the SQL drop script for a read-model view }}
{{{sql_license}}}
{{#domain_entity}}
/*
* AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
* Template: sql_schema_domain_entity_view_drop.mustache
* To modify, update the template and regenerate.
*/
drop view if exists "{{sql.tablename}}";
{{/domain_entity}}
2. See also
- Parent facet: ores.sql.schema
- Template variable reference