Codegen now supports the database column type in the field template.
This allows for inserting it as a comment which is very useful while tweaking your typemappings as you can see what the input was.
This commit is contained in:
parent
be0064f730
commit
104ab5de1e
8 changed files with 49 additions and 19 deletions
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
#include <QString>
|
||||
#include "Pgsql_oids.h"
|
||||
#include "TypeMappings.h"
|
||||
|
||||
class NameManglingRules;
|
||||
class TypeMappings;
|
||||
class StructureTemplate;
|
||||
class IndentationConfig;
|
||||
class ResultLoopTemplate;
|
||||
|
|
@ -17,7 +17,7 @@ public:
|
|||
LanguageConfig();
|
||||
|
||||
QString columnNameToFieldName(const QString& column_name) const;
|
||||
QString getTypeName(Oid dbtype) const;
|
||||
TypeMappingResult getTypeName(Oid dbtype) const;
|
||||
|
||||
void setNameManglingRules(std::shared_ptr<const NameManglingRules> name_mangling_rules);
|
||||
std::shared_ptr<const TypeMappings> typeMappings() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue