mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
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
26 lines
448 B
Plaintext
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}}
|