wip: codegenerator, basic widget present for showing the generated code and specifying
parameters. Some code is also generated but it is not complete yet. minimum still required - field assignments - properly format and escape the query string
This commit is contained in:
parent
daf9536bed
commit
f5145f36ed
19 changed files with 380 additions and 32 deletions
|
|
@ -18,6 +18,11 @@ public:
|
|||
QString columnNameToFieldName(const QString& column_name) const;
|
||||
QString getTypeName(Oid dbtype) const;
|
||||
|
||||
void setNameManglingRules(std::shared_ptr<const NameManglingRules> name_mangling_rules)
|
||||
{
|
||||
m_varNaming = name_mangling_rules;
|
||||
}
|
||||
|
||||
std::shared_ptr<const TypeMappings> typeMappings() const { return m_typeMappings; }
|
||||
void setTypeMappings(std::shared_ptr<const TypeMappings> type_mappings)
|
||||
{
|
||||
|
|
@ -29,10 +34,20 @@ public:
|
|||
return m_structureTemplate;
|
||||
}
|
||||
|
||||
void setStructureTemplate(std::shared_ptr<const StructureTemplate> structure_template)
|
||||
{
|
||||
m_structureTemplate = structure_template;
|
||||
}
|
||||
|
||||
std::shared_ptr<const IndentationConfig> indentationConfig() const
|
||||
{
|
||||
return m_indentationConfig;
|
||||
}
|
||||
|
||||
void setIndentationConfig(std::shared_ptr<const IndentationConfig> indentation_config)
|
||||
{
|
||||
m_indentationConfig = indentation_config;
|
||||
}
|
||||
private:
|
||||
/** Default template for declaring a variable of the correct type.
|
||||
* exmaple: "{$type} {$varname};"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue