Files
codeql/misc/codegen/templates/ql_db.mustache
2023-11-24 06:56:55 +01:00

34 lines
759 B
Plaintext

/**
* INTERNAL: Do not use.
* This module holds thin fully generated class definitions around DB entities.
*/
module Raw {
{{#classes}}
/**
* INTERNAL: Do not use.
{{#doc}}
* {{.}}
{{/doc}}
*/
class {{name}} extends {{db_id}}{{#bases}}, {{.}}{{/bases}} {
{{#root}}string toString() { none() }{{/root}}
{{#final}}override string toString() { result = "{{name}}" }{{/final}}
{{#properties}}
{{^synth}}
/**
* {{>ql_property_doc}} *
{{#description}}
* {{.}}
{{/description}}
*/
{{type}} {{getter}}({{#is_indexed}}int index{{/is_indexed}}) {
{{tablename}}({{#tableparams}}{{^first}}, {{/first}}{{param}}{{/tableparams}})
}
{{/synth}}
{{/properties}}
}
{{/classes}}
}