_go

package
v1.1.163 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChkDataType added in v1.1.150

func ChkDataType(db *dbEngine.DB, typeCol string) (*pgtype.DataType, bool)

Types

type CfgCreator added in v1.1.153

type CfgCreator struct {
	Dst      string
	Excluded []string
	Imports  []string
	Included []string
}

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 (c *Creator) ChkDataType(typeCol string) (*pgtype.DataType, bool)

func (*Creator) CreateDatabase added in v1.1.45

func (c *Creator) CreateDatabase(packages, listRoutines []string) string

func (*Creator) CreateFunctionInvoker added in v1.1.153

func (c *Creator) CreateFunctionInvoker(r *psql.Routine, name, camelName, sql string) string

func (*Creator) CreateRoutinesInvoker added in v1.1.45

func (c *Creator) CreateRoutinesInvoker(r *psql.Routine, name string) string

func (*Creator) CreateRowScanner added in v1.1.45

func (c *Creator) CreateRowScanner(r *psql.Routine, camelName string) string

func (*Creator) CreateTableConstructor added in v1.1.45

func (c *Creator) CreateTableConstructor(cName, name string) string

func (*Creator) CreateTypeInterface added in v1.1.45

func (c *Creator) CreateTypeInterface(t dbEngine.Types, typeName, name, typeCol string) string

func (*Creator) GetFuncForDecode added in v1.1.45

func (c *Creator) GetFuncForDecode(tAttr *dbEngine.TypesAttr, ind int) string

func (*Creator) MakeInterfaceDB added in v1.1.7

func (c *Creator) MakeInterfaceDB() error

MakeInterfaceDB create interface of DB

func (*Creator) MakeStruct

func (c *Creator) MakeStruct(table dbEngine.Table) error

MakeStruct create table interface with Columns operations

func (*Creator) StreamCreateDatabase added in v1.1.45

func (c *Creator) StreamCreateDatabase(qw422016 *qt422016.Writer, packages, listRoutines []string)

func (*Creator) StreamCreateFunctionInvoker added in v1.1.153

func (c *Creator) StreamCreateFunctionInvoker(qw422016 *qt422016.Writer, r *psql.Routine, name, camelName, sql string)

func (*Creator) StreamCreateRoutinesInvoker added in v1.1.45

func (c *Creator) StreamCreateRoutinesInvoker(qw422016 *qt422016.Writer, r *psql.Routine, name string)

func (*Creator) StreamCreateRowScanner added in v1.1.45

func (c *Creator) StreamCreateRowScanner(qw422016 *qt422016.Writer, r *psql.Routine, camelName string)

func (*Creator) StreamCreateTableConstructor added in v1.1.45

func (c *Creator) StreamCreateTableConstructor(qw422016 *qt422016.Writer, cName, name string)

func (*Creator) StreamCreateTypeInterface added in v1.1.45

func (c *Creator) StreamCreateTypeInterface(qw422016 *qt422016.Writer, t dbEngine.Types, typeName, name, typeCol string)

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 (c *Creator) WriteCreateFunctionInvoker(qq422016 qtio422016.Writer, r *psql.Routine, name, camelName, sql string)

func (*Creator) WriteCreateRoutinesInvoker added in v1.1.45

func (c *Creator) WriteCreateRoutinesInvoker(qq422016 qtio422016.Writer, r *psql.Routine, name string)

func (*Creator) WriteCreateRowScanner added in v1.1.45

func (c *Creator) WriteCreateRowScanner(qq422016 qtio422016.Writer, r *psql.Routine, camelName string)

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

func (c *Creator) WriteCreateTypeInterface(qq422016 qtio422016.Writer, t dbEngine.Types, typeName, name, typeCol string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL