readaccess

package
v0.0.0-...-e88ef8c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CodeGeneratorName = "Leeway readaccess (" + vcs.ModuleInfo() + ")"

Functions

func ComposeMembershipPackInfo

func ComposeMembershipPackInfo(tblDesc common.TableDesc, namer gocodegen.GoClassNamerReadAccessI) (membershipSpecs []common.MembershipSpecE, classNames []string, sectionToClassName []string, err error)

Types

type ColumnIndexCodeGenerator

type ColumnIndexCodeGenerator struct {
	// contains filtered or unexported fields
}

func NewColumnIndexCodeGenerator

func NewColumnIndexCodeGenerator() *ColumnIndexCodeGenerator

func (*ColumnIndexCodeGenerator) AddField

func (inst *ColumnIndexCodeGenerator) AddField(name string, columnIndex uint32)

func (*ColumnIndexCodeGenerator) GenerateCommon

func (inst *ColumnIndexCodeGenerator) GenerateCommon(w io.Writer, instClassType string) (err error)

func (*ColumnIndexCodeGenerator) GenerateInstInit

func (inst *ColumnIndexCodeGenerator) GenerateInstInit(w io.Writer) (err error)

func (*ColumnIndexCodeGenerator) IterateAll

func (inst *ColumnIndexCodeGenerator) IterateAll() iter.Seq2[uint32, string]

func (*ColumnIndexCodeGenerator) Length

func (inst *ColumnIndexCodeGenerator) Length() int

func (*ColumnIndexCodeGenerator) Reset

func (inst *ColumnIndexCodeGenerator) Reset()

type GeneratorDriver

type GeneratorDriver struct {
	// contains filtered or unexported fields
}

func NewGoCodeGeneratorDriver

func NewGoCodeGeneratorDriver(namingConvention common.NamingConventionI, tech common.TechnologySpecificGeneratorI, fatRuntime bool) *GeneratorDriver

func (*GeneratorDriver) GenerateGoClasses

func (inst *GeneratorDriver) GenerateGoClasses(packageName string, tableName naming.StylableName, tblDesc common.TableDesc, tableRowConfig common.TableRowConfigE, clsNamer gocodegen.GoClassNamerI) (sourceCode []byte, wellFormed bool, err error)

type GoClassBuilder

type GoClassBuilder struct {
	// contains filtered or unexported fields
}

func NewGoClassBuilder

func NewGoClassBuilder(fatRuntime bool) *GoClassBuilder

func (*GoClassBuilder) ComposeAttributeClassAndFactoryCode

func (inst *GoClassBuilder) ComposeAttributeClassAndFactoryCode(clsNamer gocodegen.GoClassNamerI, tableName naming.StylableName, sectionName naming.StylableName, sectionIdx int, totalSections int, sectionIRH *common.IntermediatePairHolder, tableRowConfig common.TableRowConfigE) (err error)

func (*GoClassBuilder) ComposeAttributeCode

func (inst *GoClassBuilder) ComposeAttributeCode(clsNamer gocodegen.GoClassNamerI, tableName naming.StylableName, sectionName naming.StylableName, sectionIdx int, totalSections int, sectionIRH *common.IntermediatePairHolder, tableRowConfig common.TableRowConfigE) (err error)

func (*GoClassBuilder) ComposeEntityClassAndFactoryCode

func (inst *GoClassBuilder) ComposeEntityClassAndFactoryCode(clsNamer gocodegen.GoClassNamerI, tableName naming.StylableName, sectionNames []naming.StylableName, ir *common.IntermediateTableRepresentation, tableRowConfig common.TableRowConfigE, entityIRH *common.IntermediatePairHolder) (err error)

func (*GoClassBuilder) ComposeEntityCode

func (inst *GoClassBuilder) ComposeEntityCode(clsNamer gocodegen.GoClassNamerI, tableName naming.StylableName, sectionNames []naming.StylableName, ir *common.IntermediateTableRepresentation, tableRowConfig common.TableRowConfigE, entityIRH *common.IntermediatePairHolder) (err error)

func (*GoClassBuilder) ComposeGoImports

func (inst *GoClassBuilder) ComposeGoImports(ir *common.IntermediateTableRepresentation, tableRowConfig common.TableRowConfigE, suppressedImports *containers.HashSet[string]) (err error)

func (*GoClassBuilder) ComposeNamingConventionDependentCode

func (inst *GoClassBuilder) ComposeNamingConventionDependentCode(tableName naming.StylableName, ir *common.IntermediateTableRepresentation, namingConvention common.NamingConventionI, tableRowConfig common.TableRowConfigE, clsNamer gocodegen.GoClassNamerI) (err error)

func (*GoClassBuilder) ComposeSectionClassAndFactoryCode

func (inst *GoClassBuilder) ComposeSectionClassAndFactoryCode(clsNamer gocodegen.GoClassNamerI, tableName naming.StylableName, sectionName naming.StylableName, sectionIdx int, totalSections int, sectionIRH *common.IntermediatePairHolder, tableRowConfig common.TableRowConfigE) (err error)

func (*GoClassBuilder) ComposeSectionCode

func (inst *GoClassBuilder) ComposeSectionCode(clsNamer gocodegen.GoClassNamerI, tableName naming.StylableName, sectionName naming.StylableName, sectionIdx int, totalSections int, sectionIRH *common.IntermediatePairHolder, tableRowConfig common.TableRowConfigE) (err error)

func (*GoClassBuilder) GetCode

func (inst *GoClassBuilder) GetCode() (code string, err error)

func (*GoClassBuilder) PrepareCodeComposition

func (inst *GoClassBuilder) PrepareCodeComposition()

func (*GoClassBuilder) ResetCodeBuilder

func (inst *GoClassBuilder) ResetCodeBuilder()

func (*GoClassBuilder) SetCodeBuilder

func (inst *GoClassBuilder) SetCodeBuilder(s *strings.Builder)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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