mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
38 lines
813 B
Plaintext
38 lines
813 B
Plaintext
/**
|
|
* INTERNAL: Do not use.
|
|
* This module holds thin fully generated class definitions around DB entities.
|
|
*/
|
|
module Raw {
|
|
{{#imports}}
|
|
private import {{.}}
|
|
{{/imports}}
|
|
|
|
{{#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}}
|
|
}
|