Documentation ¶
Index ¶
- func ChkDataType(db *dbEngine.DB, typeCol string) (*pgtype.DataType, bool)
- type CfgCreator
- type ColumnType
- type Creator
- func (c *Creator) ChkDataType(typeCol string) (*pgtype.DataType, bool)
- func (c *Creator) CreateDatabase(packages, listRoutines []string) string
- func (c *Creator) CreateFunctionInvoker(r *psql.Routine, name, camelName, sql string) string
- func (c *Creator) CreateRoutinesInvoker(r *psql.Routine, name string) string
- func (c *Creator) CreateRowScanner(r *psql.Routine, camelName string) string
- func (c *Creator) CreateTableConstructor(cName, name string) string
- func (c *Creator) CreateTypeInterface(t dbEngine.Types, typeName, name, typeCol string) string
- func (c *Creator) GetFuncForDecode(tAttr *dbEngine.TypesAttr, ind int) string
- func (c *Creator) MakeInterfaceDB() error
- func (c *Creator) MakeStruct(table dbEngine.Table) error
- func (c *Creator) StreamCreateDatabase(qw422016 *qt422016.Writer, packages, listRoutines []string)
- func (c *Creator) StreamCreateFunctionInvoker(qw422016 *qt422016.Writer, r *psql.Routine, name, camelName, sql string)
- func (c *Creator) StreamCreateRoutinesInvoker(qw422016 *qt422016.Writer, r *psql.Routine, name string)
- func (c *Creator) StreamCreateRowScanner(qw422016 *qt422016.Writer, r *psql.Routine, camelName string)
- func (c *Creator) StreamCreateTableConstructor(qw422016 *qt422016.Writer, cName, name string)
- func (c *Creator) StreamCreateTypeInterface(qw422016 *qt422016.Writer, t dbEngine.Types, typeName, name, typeCol string)
- func (c *Creator) WriteCreateDatabase(qq422016 qtio422016.Writer, packages, listRoutines []string)
- func (c *Creator) WriteCreateFunctionInvoker(qq422016 qtio422016.Writer, r *psql.Routine, name, camelName, sql string)
- func (c *Creator) WriteCreateRoutinesInvoker(qq422016 qtio422016.Writer, r *psql.Routine, name string)
- func (c *Creator) WriteCreateRowScanner(qq422016 qtio422016.Writer, r *psql.Routine, camelName string)
- func (c *Creator) WriteCreateTableConstructor(qq422016 qtio422016.Writer, cName, name string)
- func (c *Creator) WriteCreateTypeInterface(qq422016 qtio422016.Writer, t dbEngine.Types, typeName, name, typeCol string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CfgCreator ¶ added in v1.1.153
func LoadCfg ¶ added in v1.1.153
func LoadCfg(filename string) (cfg *CfgCreator, err error)
type ColumnType ¶ added in v1.1.55
type ColumnType struct {
// contains filtered or unexported fields
}
func NewColumnType ¶ added in v1.1.55
func NewColumnType(name, sName string, columns []dbEngine.Column) *ColumnType
func (*ColumnType) ColumnType ¶ added in v1.1.55
func (c *ColumnType) ColumnType() string
func (*ColumnType) StreamColumnType ¶ added in v1.1.55
func (c *ColumnType) StreamColumnType(qw422016 *qt422016.Writer)
func (*ColumnType) WriteColumnType ¶ added in v1.1.55
func (c *ColumnType) WriteColumnType(qq422016 qtio422016.Writer)
type Creator ¶
type Creator struct { *dbEngine.DB Types map[string]string // contains filtered or unexported fields }
Creator is interface for generate go-interface according to DB structures (tables & routines)
func NewCreator ¶
func NewCreator(DB *dbEngine.DB, cfg *CfgCreator) (*Creator, error)
NewCreator create with destination directory 'dst'
func (*Creator) ChkDataType ¶ added in v1.1.150
func (*Creator) CreateDatabase ¶ added in v1.1.45
func (*Creator) CreateFunctionInvoker ¶ added in v1.1.153
func (*Creator) CreateRoutinesInvoker ¶ added in v1.1.45
func (*Creator) CreateRowScanner ¶ added in v1.1.45
func (*Creator) CreateTableConstructor ¶ added in v1.1.45
func (*Creator) CreateTypeInterface ¶ added in v1.1.45
func (*Creator) GetFuncForDecode ¶ added in v1.1.45
func (*Creator) MakeInterfaceDB ¶ added in v1.1.7
MakeInterfaceDB create interface of DB
func (*Creator) MakeStruct ¶
MakeStruct create table interface with Columns operations
func (*Creator) StreamCreateDatabase ¶ added in v1.1.45
func (*Creator) StreamCreateFunctionInvoker ¶ added in v1.1.153
func (*Creator) StreamCreateRoutinesInvoker ¶ added in v1.1.45
func (*Creator) StreamCreateRowScanner ¶ added in v1.1.45
func (*Creator) StreamCreateTableConstructor ¶ added in v1.1.45
func (*Creator) StreamCreateTypeInterface ¶ added in v1.1.45
func (*Creator) WriteCreateDatabase ¶ added in v1.1.45
func (c *Creator) WriteCreateDatabase(qq422016 qtio422016.Writer, packages, listRoutines []string)
func (*Creator) WriteCreateFunctionInvoker ¶ added in v1.1.153
func (*Creator) WriteCreateRoutinesInvoker ¶ added in v1.1.45
func (*Creator) WriteCreateRowScanner ¶ added in v1.1.45
func (*Creator) WriteCreateTableConstructor ¶ added in v1.1.45
func (c *Creator) WriteCreateTableConstructor(qq422016 qtio422016.Writer, cName, name string)
func (*Creator) WriteCreateTypeInterface ¶ added in v1.1.45
Source Files ¶
Click to show internal directories.
Click to hide internal directories.