9 lines
272 B
Cheetah
9 lines
272 B
Cheetah
{{/* Example of table creation using composition */}}
|
|
{{- define "create_table_composed" -}}
|
|
CREATE TABLE IF NOT EXISTS {{template "qualified_table" .}} (
|
|
{{- range $i, $col := .Columns}}
|
|
{{- if $i}},{{end}}
|
|
{{template "column_definition" $col}}
|
|
{{- end}}
|
|
);
|
|
{{- end -}} |