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
|
|
@ -4,6 +4,7 @@
|
|||
#include "Pgsql_declare.h"
|
||||
#include <QString>
|
||||
#include <vector>
|
||||
#include "TypeMappings.h"
|
||||
|
||||
class LanguageConfig;
|
||||
class QTextStream;
|
||||
|
|
@ -33,7 +34,7 @@ public:
|
|||
// - Code for processing a single row
|
||||
// - Declaration of struct for holding single row result
|
||||
QString columnNameToVariableName(QString column_name) const;
|
||||
QString getTypeName(Oid dbtype) const;
|
||||
TypeMappingResult getTypeName(Oid dbtype) const;
|
||||
private:
|
||||
|
||||
std::shared_ptr<const LanguageConfig> m_configuration;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue