Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BizPackage ¶
type BizPackage struct { BasePackage string PackageName string ImportPackages []string BizTypes []*BizType }
func (*BizPackage) AppendImport ¶
func (pkg *BizPackage) AppendImport(pkgName string) bool
func (*BizPackage) HasImports ¶
func (pkg *BizPackage) HasImports() bool
type Column ¶
type Column struct { TableName string ColumnName string IsPrimaryKey bool IsNullable bool IsAutoIncrement bool IsUnique bool DataType string CharacterMaximumLength sql.NullInt64 NumericPrecision sql.NullInt64 NumericScale sql.NullInt64 ColumnType string }
func (Column) GetPostgresParam ¶
type Configuration ¶
type Configuration struct { Hostname string Port string DatabaseType string DatabaseName string Username string Password string BasePackage string OutputPath string ExcludedEntities []string Entities []string SkipDaoGeneration bool SkipBizGeneration bool SkipServiceGeneration bool ForcePluralResourceName bool PostgresSchema string }
func LoadConfiguration ¶
func LoadConfiguration(path string) Configuration
func (*Configuration) IsExcluded ¶
func (conf *Configuration) IsExcluded(name string) bool
func (*Configuration) IsIncluded ¶
func (conf *Configuration) IsIncluded(name string) bool
type DaoPackage ¶
type DaoPackage struct { BasePackage string PackageName string ImportPackages []string DaoTypes []*DaoType ViewDaoTypes []*DaoType }
func (*DaoPackage) AppendImport ¶
func (pkg *DaoPackage) AppendImport(pkgName string) bool
func (*DaoPackage) HasImports ¶
func (pkg *DaoPackage) HasImports() bool
type DatabaseSchema ¶
type ModelField ¶
type ModelField struct { FieldName string FieldType string FieldMetadata string IsPK bool IsAutoInc bool IsNullable bool NullableFieldType string }
func (ModelField) GetPostgresParam ¶
func (mf ModelField) GetPostgresParam(i int) string
func (ModelField) GetPostgresParamFrom ¶
func (mf ModelField) GetPostgresParamFrom(i int, s int) string
type ModelPackage ¶
type ModelPackage struct { BasePackage string PackageName string ImportPackages []string ModelTypes []*ModelType ViewModelTypes []*ModelType }
func (*ModelPackage) AppendImport ¶
func (pkg *ModelPackage) AppendImport(pkgName string) bool
func (*ModelPackage) HasImport ¶
func (pkg *ModelPackage) HasImport(impPkg string) bool
func (*ModelPackage) HasImports ¶
func (pkg *ModelPackage) HasImports() bool
type ModelType ¶
type ModelType struct { PackageName string TypeName string Fields []*ModelField PKFields []*ModelField OtherFields []*ModelField }
type ServicePackage ¶
type ServicePackage struct { BasePackage string PackageName string ImportPackages []string ServiceTypes []*ServiceType }
func (*ServicePackage) AppendImport ¶
func (pkg *ServicePackage) AppendImport(pkgName string) bool
func (*ServicePackage) HasImports ¶
func (pkg *ServicePackage) HasImports() bool
type ServiceType ¶
type ViewModelField ¶
type ViewModelPackage ¶
type ViewModelPackage struct { BasePackage string PackageName string ImportPackages []string ViewModelTypes []*ViewModelType }
func (*ViewModelPackage) AppendImport ¶
func (pkg *ViewModelPackage) AppendImport(pkgName string) bool
func (*ViewModelPackage) HasImports ¶
func (pkg *ViewModelPackage) HasImports() bool
type ViewModelType ¶
type ViewModelType struct { PackageName string TypeName string Fields []*ViewModelField PKFields []*ViewModelField IsSimplePK bool PKType string PKStringConv string }
Click to show internal directories.
Click to hide internal directories.