Files
codeql/swift/codegen/lib/templates/dbscheme.mustache
Paolo Tranquilli 91fd83a554 Swift: dbscheme generator
This patch introduces the basic infrastructure of the code generation
suite and the `dbscheme` generator.

Notice that the checked in `schema.yml` should reflect swift 5.6 but
might need some tweaking.

Closes https://github.com/github/codeql-c-team/issues/979
2022-04-14 11:27:41 +02:00

26 lines
448 B
Plaintext

// generated by {{generator}}
{{#includes}}
// from {{src}}
{{data}}
{{/includes}}
// from {{src}}
{{#declarations}}
{{#is_union}}
{{lhs}} =
{{#rhs}}
{{#first}} {{/first}}{{^first}}| {{/first}}{{type}}
{{/rhs}};
{{/is_union}}
{{#is_table}}
{{#keyset}}
#keyset[{{#ids}}{{^first}}, {{/first}}{{id}}{{/ids}}]
{{/keyset}}
{{name}}({{#columns}}{{^first}},{{/first}}
{{lhstype}} {{name}}: {{rhstype}}{{/columns}}
);
{{/is_table}}
{{/declarations}}