orm

package
v0.0.0-...-359db49 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 20 Imported by: 1

Documentation

Overview

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go

do not modify, generated file

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

generated code - do not edit

Index

Constants

This section is empty.

Variables

View Source
var BackRepoGongBasicFieldid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongEnumValueid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongEnumid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongLinkid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongNoteid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongStructid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoGongTimeFieldid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoMetaReferenceid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoMetaid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoModelPkgid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoPointerToGongStructFieldid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var BackRepoSliceOfPointerToGongStructFieldid_atBckpTime_newID map[uint]uint

this field is used during the restauration process. it stores the ID at the backup time and is used for renumbering

View Source
var GongBasicField_Fields = []string{

	"ID",
	"Name",
	"BasicKindName",
	"DeclaredType",
	"CompositeStructName",
	"Index",
	"IsDocLink",
	"IsTextArea",
	"IsBespokeWidth",
	"BespokeWidth",
	"IsBespokeHeight",
	"BespokeHeight",
}
View Source
var GongEnumValue_Fields = []string{

	"ID",
	"Name",
	"Value",
}
View Source
var GongEnum_Fields = []string{

	"ID",
	"Name",
	"Type",
}
View Source
var GongLink_Fields = []string{

	"ID",
	"Name",
	"Recv",
	"ImportPath",
}
View Source
var GongNote_Fields = []string{

	"ID",
	"Name",
	"Body",
	"BodyHTML",
}
View Source
var GongStruct_Fields = []string{

	"ID",
	"Name",
	"HasOnAfterUpdateSignature",
	"IsIgnoredForFront",
}
View Source
var GongTimeField_Fields = []string{

	"ID",
	"Name",
	"Index",
	"CompositeStructName",
}
View Source
var MetaReference_Fields = []string{

	"ID",
	"Name",
}
View Source
var Meta_Fields = []string{

	"ID",
	"Name",
	"Text",
}
View Source
var ModelPkg_Fields = []string{

	"ID",
	"Name",
	"PkgPath",
	"PathToGoSubDirectory",
	"OrmPkgGenPath",
	"DbOrmPkgGenPath",
	"DbLiteOrmPkgGenPath",
	"DbPkgGenPath",
	"ControllersPkgGenPath",
	"FullstackPkgGenPath",
	"StackPkgGenPath",
	"StaticPkgGenPath",
	"ProbePkgGenPath",
	"NgWorkspacePath",
	"NgWorkspaceName",
	"NgDataLibrarySourceCodeDirectory",
	"NgSpecificLibrarySourceCodeDirectory",
	"MaterialLibDatamodelTargetPath",
}
View Source
var PointerToGongStructField_Fields = []string{

	"ID",
	"Name",
	"Index",
	"CompositeStructName",
	"IsType",
}
View Source
var SliceOfPointerToGongStructField_Fields = []string{

	"ID",
	"Name",
	"Index",
	"CompositeStructName",
}

Functions

func CopyBackRepoToBackRepoData

func CopyBackRepoToBackRepoData(backRepo *BackRepoStruct, backRepoData *BackRepoData)

func GetID

func GetID[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T) (id int)

func GetIDPointer

func GetIDPointer[T models.PointerToGongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance T) (id int)

func GetInstanceDBFromInstance

func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T) (ret *T2)

func GetReverseFieldOwner

func GetReverseFieldOwner[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T,
	reverseField *models.ReverseField) (res any)

func GetReverseFieldOwnerName

func GetReverseFieldOwnerName[T models.Gongstruct](
	stage *models.StageStruct,
	backRepo *BackRepoStruct,
	instance *T,
	reverseField *models.ReverseField) (res string)

Types

type BackRepoData

type BackRepoData struct {
	GongBasicFieldAPIs []*GongBasicFieldAPI

	GongEnumAPIs []*GongEnumAPI

	GongEnumValueAPIs []*GongEnumValueAPI

	GongLinkAPIs []*GongLinkAPI

	GongNoteAPIs []*GongNoteAPI

	GongStructAPIs []*GongStructAPI

	GongTimeFieldAPIs []*GongTimeFieldAPI

	MetaAPIs []*MetaAPI

	MetaReferenceAPIs []*MetaReferenceAPI

	ModelPkgAPIs []*ModelPkgAPI

	PointerToGongStructFieldAPIs []*PointerToGongStructFieldAPI

	SliceOfPointerToGongStructFieldAPIs []*SliceOfPointerToGongStructFieldAPI
}

type BackRepoGongBasicFieldStruct

type BackRepoGongBasicFieldStruct struct {
	// stores GongBasicFieldDB according to their gorm ID
	Map_GongBasicFieldDBID_GongBasicFieldDB map[uint]*GongBasicFieldDB

	// stores GongBasicFieldDB ID according to GongBasicField address
	Map_GongBasicFieldPtr_GongBasicFieldDBID map[*models.GongBasicField]uint

	// stores GongBasicField according to their gorm ID
	Map_GongBasicFieldDBID_GongBasicFieldPtr map[uint]*models.GongBasicField
	// contains filtered or unexported fields
}

func (*BackRepoGongBasicFieldStruct) Backup

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongBasicFieldDB instances in the backrepo

func (*BackRepoGongBasicFieldStruct) BackupXL

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongBasicFieldDB instances in the backrepo

func (*BackRepoGongBasicFieldStruct) CheckoutPhaseOne

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CheckoutPhaseOne() (Error error)

BackRepoGongBasicField.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongBasicFieldStruct) CheckoutPhaseOneInstance

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CheckoutPhaseOneInstance(gongbasicfieldDB *GongBasicFieldDB) (Error error)

CheckoutPhaseOneInstance takes a gongbasicfieldDB that has been found in the DB, updates the backRepo and stages the models version of the gongbasicfieldDB

func (*BackRepoGongBasicFieldStruct) CheckoutPhaseTwo

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongBasicField.CheckoutPhaseTwo Checkouts all staged instances of GongBasicField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongBasicFieldStruct) CheckoutPhaseTwoInstance

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongbasicfieldDB *GongBasicFieldDB) (Error error)

BackRepoGongBasicField.CheckoutPhaseTwoInstance Checkouts staged instances of GongBasicField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongBasicFieldStruct) CommitDeleteInstance

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongBasicField.CommitDeleteInstance commits deletion of GongBasicField to the BackRepo

func (*BackRepoGongBasicFieldStruct) CommitPhaseOne

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongBasicField.CommitPhaseOne commits all staged instances of GongBasicField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongBasicFieldStruct) CommitPhaseOneInstance

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CommitPhaseOneInstance(gongbasicfield *models.GongBasicField) (Error error)

BackRepoGongBasicField.CommitPhaseOneInstance commits gongbasicfield staged instances of GongBasicField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongBasicFieldStruct) CommitPhaseTwo

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongBasicField.CommitPhaseTwo commits all staged instances of GongBasicField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongBasicFieldStruct) CommitPhaseTwoInstance

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongbasicfield *models.GongBasicField) (Error error)

BackRepoGongBasicField.CommitPhaseTwoInstance commits {{structname }} of models.GongBasicField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongBasicFieldStruct) GetDB

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) GetDB() db.DBInterface

func (*BackRepoGongBasicFieldStruct) GetGongBasicFieldDBFromGongBasicFieldPtr

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) GetGongBasicFieldDBFromGongBasicFieldPtr(gongbasicfield *models.GongBasicField) (gongbasicfieldDB *GongBasicFieldDB)

GetGongBasicFieldDBFromGongBasicFieldPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongBasicFieldStruct) GetStage

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongBasicFieldStruct) ResetReversePointers

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongBasicField.ResetReversePointers commits all staged instances of GongBasicField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongBasicFieldStruct) ResetReversePointersInstance

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongbasicfield *models.GongBasicField) (Error error)

func (*BackRepoGongBasicFieldStruct) RestorePhaseOne

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongBasicFieldDB.json" in dirPath that stores an array of GongBasicFieldDB and stores it in the database the map BackRepoGongBasicFieldid_atBckpTime_newID is updated accordingly

func (*BackRepoGongBasicFieldStruct) RestorePhaseTwo

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongBasicField>id_atBckpTime_newID to compute new index

func (*BackRepoGongBasicFieldStruct) RestoreXLPhaseOne

func (backRepoGongBasicField *BackRepoGongBasicFieldStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongBasicField" sheet all GongBasicFieldDB instances

type BackRepoGongEnumStruct

type BackRepoGongEnumStruct struct {
	// stores GongEnumDB according to their gorm ID
	Map_GongEnumDBID_GongEnumDB map[uint]*GongEnumDB

	// stores GongEnumDB ID according to GongEnum address
	Map_GongEnumPtr_GongEnumDBID map[*models.GongEnum]uint

	// stores GongEnum according to their gorm ID
	Map_GongEnumDBID_GongEnumPtr map[uint]*models.GongEnum
	// contains filtered or unexported fields
}

func (*BackRepoGongEnumStruct) Backup

func (backRepoGongEnum *BackRepoGongEnumStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongEnumDB instances in the backrepo

func (*BackRepoGongEnumStruct) BackupXL

func (backRepoGongEnum *BackRepoGongEnumStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongEnumDB instances in the backrepo

func (*BackRepoGongEnumStruct) CheckoutPhaseOne

func (backRepoGongEnum *BackRepoGongEnumStruct) CheckoutPhaseOne() (Error error)

BackRepoGongEnum.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongEnumStruct) CheckoutPhaseOneInstance

func (backRepoGongEnum *BackRepoGongEnumStruct) CheckoutPhaseOneInstance(gongenumDB *GongEnumDB) (Error error)

CheckoutPhaseOneInstance takes a gongenumDB that has been found in the DB, updates the backRepo and stages the models version of the gongenumDB

func (*BackRepoGongEnumStruct) CheckoutPhaseTwo

func (backRepoGongEnum *BackRepoGongEnumStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnum.CheckoutPhaseTwo Checkouts all staged instances of GongEnum to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumStruct) CheckoutPhaseTwoInstance

func (backRepoGongEnum *BackRepoGongEnumStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumDB *GongEnumDB) (Error error)

BackRepoGongEnum.CheckoutPhaseTwoInstance Checkouts staged instances of GongEnum to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumStruct) CommitDeleteInstance

func (backRepoGongEnum *BackRepoGongEnumStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongEnum.CommitDeleteInstance commits deletion of GongEnum to the BackRepo

func (*BackRepoGongEnumStruct) CommitPhaseOne

func (backRepoGongEnum *BackRepoGongEnumStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongEnum.CommitPhaseOne commits all staged instances of GongEnum to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumStruct) CommitPhaseOneInstance

func (backRepoGongEnum *BackRepoGongEnumStruct) CommitPhaseOneInstance(gongenum *models.GongEnum) (Error error)

BackRepoGongEnum.CommitPhaseOneInstance commits gongenum staged instances of GongEnum to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumStruct) CommitPhaseTwo

func (backRepoGongEnum *BackRepoGongEnumStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnum.CommitPhaseTwo commits all staged instances of GongEnum to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumStruct) CommitPhaseTwoInstance

func (backRepoGongEnum *BackRepoGongEnumStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongenum *models.GongEnum) (Error error)

BackRepoGongEnum.CommitPhaseTwoInstance commits {{structname }} of models.GongEnum to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumStruct) GetDB

func (backRepoGongEnum *BackRepoGongEnumStruct) GetDB() db.DBInterface

func (*BackRepoGongEnumStruct) GetGongEnumDBFromGongEnumPtr

func (backRepoGongEnum *BackRepoGongEnumStruct) GetGongEnumDBFromGongEnumPtr(gongenum *models.GongEnum) (gongenumDB *GongEnumDB)

GetGongEnumDBFromGongEnumPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongEnumStruct) GetStage

func (backRepoGongEnum *BackRepoGongEnumStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongEnumStruct) ResetReversePointers

func (backRepoGongEnum *BackRepoGongEnumStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnum.ResetReversePointers commits all staged instances of GongEnum to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumStruct) ResetReversePointersInstance

func (backRepoGongEnum *BackRepoGongEnumStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongenum *models.GongEnum) (Error error)

func (*BackRepoGongEnumStruct) RestorePhaseOne

func (backRepoGongEnum *BackRepoGongEnumStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongEnumDB.json" in dirPath that stores an array of GongEnumDB and stores it in the database the map BackRepoGongEnumid_atBckpTime_newID is updated accordingly

func (*BackRepoGongEnumStruct) RestorePhaseTwo

func (backRepoGongEnum *BackRepoGongEnumStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongEnum>id_atBckpTime_newID to compute new index

func (*BackRepoGongEnumStruct) RestoreXLPhaseOne

func (backRepoGongEnum *BackRepoGongEnumStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongEnum" sheet all GongEnumDB instances

type BackRepoGongEnumValueStruct

type BackRepoGongEnumValueStruct struct {
	// stores GongEnumValueDB according to their gorm ID
	Map_GongEnumValueDBID_GongEnumValueDB map[uint]*GongEnumValueDB

	// stores GongEnumValueDB ID according to GongEnumValue address
	Map_GongEnumValuePtr_GongEnumValueDBID map[*models.GongEnumValue]uint

	// stores GongEnumValue according to their gorm ID
	Map_GongEnumValueDBID_GongEnumValuePtr map[uint]*models.GongEnumValue
	// contains filtered or unexported fields
}

func (*BackRepoGongEnumValueStruct) Backup

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongEnumValueDB instances in the backrepo

func (*BackRepoGongEnumValueStruct) BackupXL

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongEnumValueDB instances in the backrepo

func (*BackRepoGongEnumValueStruct) CheckoutPhaseOne

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CheckoutPhaseOne() (Error error)

BackRepoGongEnumValue.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongEnumValueStruct) CheckoutPhaseOneInstance

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CheckoutPhaseOneInstance(gongenumvalueDB *GongEnumValueDB) (Error error)

CheckoutPhaseOneInstance takes a gongenumvalueDB that has been found in the DB, updates the backRepo and stages the models version of the gongenumvalueDB

func (*BackRepoGongEnumValueStruct) CheckoutPhaseTwo

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumValue.CheckoutPhaseTwo Checkouts all staged instances of GongEnumValue to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueStruct) CheckoutPhaseTwoInstance

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongenumvalueDB *GongEnumValueDB) (Error error)

BackRepoGongEnumValue.CheckoutPhaseTwoInstance Checkouts staged instances of GongEnumValue to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueStruct) CommitDeleteInstance

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongEnumValue.CommitDeleteInstance commits deletion of GongEnumValue to the BackRepo

func (*BackRepoGongEnumValueStruct) CommitPhaseOne

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongEnumValue.CommitPhaseOne commits all staged instances of GongEnumValue to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumValueStruct) CommitPhaseOneInstance

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CommitPhaseOneInstance(gongenumvalue *models.GongEnumValue) (Error error)

BackRepoGongEnumValue.CommitPhaseOneInstance commits gongenumvalue staged instances of GongEnumValue to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongEnumValueStruct) CommitPhaseTwo

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumValue.CommitPhaseTwo commits all staged instances of GongEnumValue to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueStruct) CommitPhaseTwoInstance

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongenumvalue *models.GongEnumValue) (Error error)

BackRepoGongEnumValue.CommitPhaseTwoInstance commits {{structname }} of models.GongEnumValue to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueStruct) GetDB

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) GetDB() db.DBInterface

func (*BackRepoGongEnumValueStruct) GetGongEnumValueDBFromGongEnumValuePtr

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) GetGongEnumValueDBFromGongEnumValuePtr(gongenumvalue *models.GongEnumValue) (gongenumvalueDB *GongEnumValueDB)

GetGongEnumValueDBFromGongEnumValuePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongEnumValueStruct) GetStage

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongEnumValueStruct) ResetReversePointers

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongEnumValue.ResetReversePointers commits all staged instances of GongEnumValue to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongEnumValueStruct) ResetReversePointersInstance

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongenumvalue *models.GongEnumValue) (Error error)

func (*BackRepoGongEnumValueStruct) RestorePhaseOne

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongEnumValueDB.json" in dirPath that stores an array of GongEnumValueDB and stores it in the database the map BackRepoGongEnumValueid_atBckpTime_newID is updated accordingly

func (*BackRepoGongEnumValueStruct) RestorePhaseTwo

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongEnumValue>id_atBckpTime_newID to compute new index

func (*BackRepoGongEnumValueStruct) RestoreXLPhaseOne

func (backRepoGongEnumValue *BackRepoGongEnumValueStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongEnumValue" sheet all GongEnumValueDB instances

type BackRepoGongLinkStruct

type BackRepoGongLinkStruct struct {
	// stores GongLinkDB according to their gorm ID
	Map_GongLinkDBID_GongLinkDB map[uint]*GongLinkDB

	// stores GongLinkDB ID according to GongLink address
	Map_GongLinkPtr_GongLinkDBID map[*models.GongLink]uint

	// stores GongLink according to their gorm ID
	Map_GongLinkDBID_GongLinkPtr map[uint]*models.GongLink
	// contains filtered or unexported fields
}

func (*BackRepoGongLinkStruct) Backup

func (backRepoGongLink *BackRepoGongLinkStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongLinkDB instances in the backrepo

func (*BackRepoGongLinkStruct) BackupXL

func (backRepoGongLink *BackRepoGongLinkStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongLinkDB instances in the backrepo

func (*BackRepoGongLinkStruct) CheckoutPhaseOne

func (backRepoGongLink *BackRepoGongLinkStruct) CheckoutPhaseOne() (Error error)

BackRepoGongLink.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongLinkStruct) CheckoutPhaseOneInstance

func (backRepoGongLink *BackRepoGongLinkStruct) CheckoutPhaseOneInstance(gonglinkDB *GongLinkDB) (Error error)

CheckoutPhaseOneInstance takes a gonglinkDB that has been found in the DB, updates the backRepo and stages the models version of the gonglinkDB

func (*BackRepoGongLinkStruct) CheckoutPhaseTwo

func (backRepoGongLink *BackRepoGongLinkStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongLink.CheckoutPhaseTwo Checkouts all staged instances of GongLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongLinkStruct) CheckoutPhaseTwoInstance

func (backRepoGongLink *BackRepoGongLinkStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gonglinkDB *GongLinkDB) (Error error)

BackRepoGongLink.CheckoutPhaseTwoInstance Checkouts staged instances of GongLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongLinkStruct) CommitDeleteInstance

func (backRepoGongLink *BackRepoGongLinkStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongLink.CommitDeleteInstance commits deletion of GongLink to the BackRepo

func (*BackRepoGongLinkStruct) CommitPhaseOne

func (backRepoGongLink *BackRepoGongLinkStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongLink.CommitPhaseOne commits all staged instances of GongLink to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongLinkStruct) CommitPhaseOneInstance

func (backRepoGongLink *BackRepoGongLinkStruct) CommitPhaseOneInstance(gonglink *models.GongLink) (Error error)

BackRepoGongLink.CommitPhaseOneInstance commits gonglink staged instances of GongLink to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongLinkStruct) CommitPhaseTwo

func (backRepoGongLink *BackRepoGongLinkStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongLink.CommitPhaseTwo commits all staged instances of GongLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongLinkStruct) CommitPhaseTwoInstance

func (backRepoGongLink *BackRepoGongLinkStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gonglink *models.GongLink) (Error error)

BackRepoGongLink.CommitPhaseTwoInstance commits {{structname }} of models.GongLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongLinkStruct) GetDB

func (backRepoGongLink *BackRepoGongLinkStruct) GetDB() db.DBInterface

func (*BackRepoGongLinkStruct) GetGongLinkDBFromGongLinkPtr

func (backRepoGongLink *BackRepoGongLinkStruct) GetGongLinkDBFromGongLinkPtr(gonglink *models.GongLink) (gonglinkDB *GongLinkDB)

GetGongLinkDBFromGongLinkPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongLinkStruct) GetStage

func (backRepoGongLink *BackRepoGongLinkStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongLinkStruct) ResetReversePointers

func (backRepoGongLink *BackRepoGongLinkStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongLink.ResetReversePointers commits all staged instances of GongLink to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongLinkStruct) ResetReversePointersInstance

func (backRepoGongLink *BackRepoGongLinkStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gonglink *models.GongLink) (Error error)

func (*BackRepoGongLinkStruct) RestorePhaseOne

func (backRepoGongLink *BackRepoGongLinkStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongLinkDB.json" in dirPath that stores an array of GongLinkDB and stores it in the database the map BackRepoGongLinkid_atBckpTime_newID is updated accordingly

func (*BackRepoGongLinkStruct) RestorePhaseTwo

func (backRepoGongLink *BackRepoGongLinkStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongLink>id_atBckpTime_newID to compute new index

func (*BackRepoGongLinkStruct) RestoreXLPhaseOne

func (backRepoGongLink *BackRepoGongLinkStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongLink" sheet all GongLinkDB instances

type BackRepoGongNoteStruct

type BackRepoGongNoteStruct struct {
	// stores GongNoteDB according to their gorm ID
	Map_GongNoteDBID_GongNoteDB map[uint]*GongNoteDB

	// stores GongNoteDB ID according to GongNote address
	Map_GongNotePtr_GongNoteDBID map[*models.GongNote]uint

	// stores GongNote according to their gorm ID
	Map_GongNoteDBID_GongNotePtr map[uint]*models.GongNote
	// contains filtered or unexported fields
}

func (*BackRepoGongNoteStruct) Backup

func (backRepoGongNote *BackRepoGongNoteStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongNoteDB instances in the backrepo

func (*BackRepoGongNoteStruct) BackupXL

func (backRepoGongNote *BackRepoGongNoteStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongNoteDB instances in the backrepo

func (*BackRepoGongNoteStruct) CheckoutPhaseOne

func (backRepoGongNote *BackRepoGongNoteStruct) CheckoutPhaseOne() (Error error)

BackRepoGongNote.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongNoteStruct) CheckoutPhaseOneInstance

func (backRepoGongNote *BackRepoGongNoteStruct) CheckoutPhaseOneInstance(gongnoteDB *GongNoteDB) (Error error)

CheckoutPhaseOneInstance takes a gongnoteDB that has been found in the DB, updates the backRepo and stages the models version of the gongnoteDB

func (*BackRepoGongNoteStruct) CheckoutPhaseTwo

func (backRepoGongNote *BackRepoGongNoteStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongNote.CheckoutPhaseTwo Checkouts all staged instances of GongNote to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongNoteStruct) CheckoutPhaseTwoInstance

func (backRepoGongNote *BackRepoGongNoteStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongnoteDB *GongNoteDB) (Error error)

BackRepoGongNote.CheckoutPhaseTwoInstance Checkouts staged instances of GongNote to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongNoteStruct) CommitDeleteInstance

func (backRepoGongNote *BackRepoGongNoteStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongNote.CommitDeleteInstance commits deletion of GongNote to the BackRepo

func (*BackRepoGongNoteStruct) CommitPhaseOne

func (backRepoGongNote *BackRepoGongNoteStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongNote.CommitPhaseOne commits all staged instances of GongNote to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongNoteStruct) CommitPhaseOneInstance

func (backRepoGongNote *BackRepoGongNoteStruct) CommitPhaseOneInstance(gongnote *models.GongNote) (Error error)

BackRepoGongNote.CommitPhaseOneInstance commits gongnote staged instances of GongNote to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongNoteStruct) CommitPhaseTwo

func (backRepoGongNote *BackRepoGongNoteStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongNote.CommitPhaseTwo commits all staged instances of GongNote to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongNoteStruct) CommitPhaseTwoInstance

func (backRepoGongNote *BackRepoGongNoteStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongnote *models.GongNote) (Error error)

BackRepoGongNote.CommitPhaseTwoInstance commits {{structname }} of models.GongNote to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongNoteStruct) GetDB

func (backRepoGongNote *BackRepoGongNoteStruct) GetDB() db.DBInterface

func (*BackRepoGongNoteStruct) GetGongNoteDBFromGongNotePtr

func (backRepoGongNote *BackRepoGongNoteStruct) GetGongNoteDBFromGongNotePtr(gongnote *models.GongNote) (gongnoteDB *GongNoteDB)

GetGongNoteDBFromGongNotePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongNoteStruct) GetStage

func (backRepoGongNote *BackRepoGongNoteStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongNoteStruct) ResetReversePointers

func (backRepoGongNote *BackRepoGongNoteStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongNote.ResetReversePointers commits all staged instances of GongNote to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongNoteStruct) ResetReversePointersInstance

func (backRepoGongNote *BackRepoGongNoteStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongnote *models.GongNote) (Error error)

func (*BackRepoGongNoteStruct) RestorePhaseOne

func (backRepoGongNote *BackRepoGongNoteStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongNoteDB.json" in dirPath that stores an array of GongNoteDB and stores it in the database the map BackRepoGongNoteid_atBckpTime_newID is updated accordingly

func (*BackRepoGongNoteStruct) RestorePhaseTwo

func (backRepoGongNote *BackRepoGongNoteStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongNote>id_atBckpTime_newID to compute new index

func (*BackRepoGongNoteStruct) RestoreXLPhaseOne

func (backRepoGongNote *BackRepoGongNoteStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongNote" sheet all GongNoteDB instances

type BackRepoGongStructStruct

type BackRepoGongStructStruct struct {
	// stores GongStructDB according to their gorm ID
	Map_GongStructDBID_GongStructDB map[uint]*GongStructDB

	// stores GongStructDB ID according to GongStruct address
	Map_GongStructPtr_GongStructDBID map[*models.GongStruct]uint

	// stores GongStruct according to their gorm ID
	Map_GongStructDBID_GongStructPtr map[uint]*models.GongStruct
	// contains filtered or unexported fields
}

func (*BackRepoGongStructStruct) Backup

func (backRepoGongStruct *BackRepoGongStructStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongStructDB instances in the backrepo

func (*BackRepoGongStructStruct) BackupXL

func (backRepoGongStruct *BackRepoGongStructStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongStructDB instances in the backrepo

func (*BackRepoGongStructStruct) CheckoutPhaseOne

func (backRepoGongStruct *BackRepoGongStructStruct) CheckoutPhaseOne() (Error error)

BackRepoGongStruct.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongStructStruct) CheckoutPhaseOneInstance

func (backRepoGongStruct *BackRepoGongStructStruct) CheckoutPhaseOneInstance(gongstructDB *GongStructDB) (Error error)

CheckoutPhaseOneInstance takes a gongstructDB that has been found in the DB, updates the backRepo and stages the models version of the gongstructDB

func (*BackRepoGongStructStruct) CheckoutPhaseTwo

func (backRepoGongStruct *BackRepoGongStructStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongStruct.CheckoutPhaseTwo Checkouts all staged instances of GongStruct to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructStruct) CheckoutPhaseTwoInstance

func (backRepoGongStruct *BackRepoGongStructStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongstructDB *GongStructDB) (Error error)

BackRepoGongStruct.CheckoutPhaseTwoInstance Checkouts staged instances of GongStruct to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructStruct) CommitDeleteInstance

func (backRepoGongStruct *BackRepoGongStructStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongStruct.CommitDeleteInstance commits deletion of GongStruct to the BackRepo

func (*BackRepoGongStructStruct) CommitPhaseOne

func (backRepoGongStruct *BackRepoGongStructStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongStruct.CommitPhaseOne commits all staged instances of GongStruct to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongStructStruct) CommitPhaseOneInstance

func (backRepoGongStruct *BackRepoGongStructStruct) CommitPhaseOneInstance(gongstruct *models.GongStruct) (Error error)

BackRepoGongStruct.CommitPhaseOneInstance commits gongstruct staged instances of GongStruct to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongStructStruct) CommitPhaseTwo

func (backRepoGongStruct *BackRepoGongStructStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongStruct.CommitPhaseTwo commits all staged instances of GongStruct to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructStruct) CommitPhaseTwoInstance

func (backRepoGongStruct *BackRepoGongStructStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongstruct *models.GongStruct) (Error error)

BackRepoGongStruct.CommitPhaseTwoInstance commits {{structname }} of models.GongStruct to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructStruct) GetDB

func (backRepoGongStruct *BackRepoGongStructStruct) GetDB() db.DBInterface

func (*BackRepoGongStructStruct) GetGongStructDBFromGongStructPtr

func (backRepoGongStruct *BackRepoGongStructStruct) GetGongStructDBFromGongStructPtr(gongstruct *models.GongStruct) (gongstructDB *GongStructDB)

GetGongStructDBFromGongStructPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongStructStruct) GetStage

func (backRepoGongStruct *BackRepoGongStructStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongStructStruct) ResetReversePointers

func (backRepoGongStruct *BackRepoGongStructStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongStruct.ResetReversePointers commits all staged instances of GongStruct to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongStructStruct) ResetReversePointersInstance

func (backRepoGongStruct *BackRepoGongStructStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongstruct *models.GongStruct) (Error error)

func (*BackRepoGongStructStruct) RestorePhaseOne

func (backRepoGongStruct *BackRepoGongStructStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongStructDB.json" in dirPath that stores an array of GongStructDB and stores it in the database the map BackRepoGongStructid_atBckpTime_newID is updated accordingly

func (*BackRepoGongStructStruct) RestorePhaseTwo

func (backRepoGongStruct *BackRepoGongStructStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongStruct>id_atBckpTime_newID to compute new index

func (*BackRepoGongStructStruct) RestoreXLPhaseOne

func (backRepoGongStruct *BackRepoGongStructStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongStruct" sheet all GongStructDB instances

type BackRepoGongTimeFieldStruct

type BackRepoGongTimeFieldStruct struct {
	// stores GongTimeFieldDB according to their gorm ID
	Map_GongTimeFieldDBID_GongTimeFieldDB map[uint]*GongTimeFieldDB

	// stores GongTimeFieldDB ID according to GongTimeField address
	Map_GongTimeFieldPtr_GongTimeFieldDBID map[*models.GongTimeField]uint

	// stores GongTimeField according to their gorm ID
	Map_GongTimeFieldDBID_GongTimeFieldPtr map[uint]*models.GongTimeField
	// contains filtered or unexported fields
}

func (*BackRepoGongTimeFieldStruct) Backup

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) Backup(dirPath string)

Backup generates a json file from a slice of all GongTimeFieldDB instances in the backrepo

func (*BackRepoGongTimeFieldStruct) BackupXL

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all GongTimeFieldDB instances in the backrepo

func (*BackRepoGongTimeFieldStruct) CheckoutPhaseOne

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CheckoutPhaseOne() (Error error)

BackRepoGongTimeField.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoGongTimeFieldStruct) CheckoutPhaseOneInstance

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CheckoutPhaseOneInstance(gongtimefieldDB *GongTimeFieldDB) (Error error)

CheckoutPhaseOneInstance takes a gongtimefieldDB that has been found in the DB, updates the backRepo and stages the models version of the gongtimefieldDB

func (*BackRepoGongTimeFieldStruct) CheckoutPhaseTwo

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongTimeField.CheckoutPhaseTwo Checkouts all staged instances of GongTimeField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongTimeFieldStruct) CheckoutPhaseTwoInstance

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, gongtimefieldDB *GongTimeFieldDB) (Error error)

BackRepoGongTimeField.CheckoutPhaseTwoInstance Checkouts staged instances of GongTimeField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongTimeFieldStruct) CommitDeleteInstance

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGongTimeField.CommitDeleteInstance commits deletion of GongTimeField to the BackRepo

func (*BackRepoGongTimeFieldStruct) CommitPhaseOne

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGongTimeField.CommitPhaseOne commits all staged instances of GongTimeField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongTimeFieldStruct) CommitPhaseOneInstance

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CommitPhaseOneInstance(gongtimefield *models.GongTimeField) (Error error)

BackRepoGongTimeField.CommitPhaseOneInstance commits gongtimefield staged instances of GongTimeField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoGongTimeFieldStruct) CommitPhaseTwo

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoGongTimeField.CommitPhaseTwo commits all staged instances of GongTimeField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongTimeFieldStruct) CommitPhaseTwoInstance

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, gongtimefield *models.GongTimeField) (Error error)

BackRepoGongTimeField.CommitPhaseTwoInstance commits {{structname }} of models.GongTimeField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongTimeFieldStruct) GetDB

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) GetDB() db.DBInterface

func (*BackRepoGongTimeFieldStruct) GetGongTimeFieldDBFromGongTimeFieldPtr

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) GetGongTimeFieldDBFromGongTimeFieldPtr(gongtimefield *models.GongTimeField) (gongtimefieldDB *GongTimeFieldDB)

GetGongTimeFieldDBFromGongTimeFieldPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoGongTimeFieldStruct) GetStage

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGongTimeFieldStruct) ResetReversePointers

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoGongTimeField.ResetReversePointers commits all staged instances of GongTimeField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoGongTimeFieldStruct) ResetReversePointersInstance

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, gongtimefield *models.GongTimeField) (Error error)

func (*BackRepoGongTimeFieldStruct) RestorePhaseOne

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "GongTimeFieldDB.json" in dirPath that stores an array of GongTimeFieldDB and stores it in the database the map BackRepoGongTimeFieldid_atBckpTime_newID is updated accordingly

func (*BackRepoGongTimeFieldStruct) RestorePhaseTwo

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<GongTimeField>id_atBckpTime_newID to compute new index

func (*BackRepoGongTimeFieldStruct) RestoreXLPhaseOne

func (backRepoGongTimeField *BackRepoGongTimeFieldStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "GongTimeField" sheet all GongTimeFieldDB instances

type BackRepoMetaReferenceStruct

type BackRepoMetaReferenceStruct struct {
	// stores MetaReferenceDB according to their gorm ID
	Map_MetaReferenceDBID_MetaReferenceDB map[uint]*MetaReferenceDB

	// stores MetaReferenceDB ID according to MetaReference address
	Map_MetaReferencePtr_MetaReferenceDBID map[*models.MetaReference]uint

	// stores MetaReference according to their gorm ID
	Map_MetaReferenceDBID_MetaReferencePtr map[uint]*models.MetaReference
	// contains filtered or unexported fields
}

func (*BackRepoMetaReferenceStruct) Backup

func (backRepoMetaReference *BackRepoMetaReferenceStruct) Backup(dirPath string)

Backup generates a json file from a slice of all MetaReferenceDB instances in the backrepo

func (*BackRepoMetaReferenceStruct) BackupXL

func (backRepoMetaReference *BackRepoMetaReferenceStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all MetaReferenceDB instances in the backrepo

func (*BackRepoMetaReferenceStruct) CheckoutPhaseOne

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CheckoutPhaseOne() (Error error)

BackRepoMetaReference.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoMetaReferenceStruct) CheckoutPhaseOneInstance

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CheckoutPhaseOneInstance(metareferenceDB *MetaReferenceDB) (Error error)

CheckoutPhaseOneInstance takes a metareferenceDB that has been found in the DB, updates the backRepo and stages the models version of the metareferenceDB

func (*BackRepoMetaReferenceStruct) CheckoutPhaseTwo

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMetaReference.CheckoutPhaseTwo Checkouts all staged instances of MetaReference to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaReferenceStruct) CheckoutPhaseTwoInstance

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, metareferenceDB *MetaReferenceDB) (Error error)

BackRepoMetaReference.CheckoutPhaseTwoInstance Checkouts staged instances of MetaReference to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaReferenceStruct) CommitDeleteInstance

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMetaReference.CommitDeleteInstance commits deletion of MetaReference to the BackRepo

func (*BackRepoMetaReferenceStruct) CommitPhaseOne

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMetaReference.CommitPhaseOne commits all staged instances of MetaReference to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoMetaReferenceStruct) CommitPhaseOneInstance

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CommitPhaseOneInstance(metareference *models.MetaReference) (Error error)

BackRepoMetaReference.CommitPhaseOneInstance commits metareference staged instances of MetaReference to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoMetaReferenceStruct) CommitPhaseTwo

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMetaReference.CommitPhaseTwo commits all staged instances of MetaReference to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaReferenceStruct) CommitPhaseTwoInstance

func (backRepoMetaReference *BackRepoMetaReferenceStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, metareference *models.MetaReference) (Error error)

BackRepoMetaReference.CommitPhaseTwoInstance commits {{structname }} of models.MetaReference to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaReferenceStruct) GetDB

func (backRepoMetaReference *BackRepoMetaReferenceStruct) GetDB() db.DBInterface

func (*BackRepoMetaReferenceStruct) GetMetaReferenceDBFromMetaReferencePtr

func (backRepoMetaReference *BackRepoMetaReferenceStruct) GetMetaReferenceDBFromMetaReferencePtr(metareference *models.MetaReference) (metareferenceDB *MetaReferenceDB)

GetMetaReferenceDBFromMetaReferencePtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoMetaReferenceStruct) GetStage

func (backRepoMetaReference *BackRepoMetaReferenceStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMetaReferenceStruct) ResetReversePointers

func (backRepoMetaReference *BackRepoMetaReferenceStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoMetaReference.ResetReversePointers commits all staged instances of MetaReference to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaReferenceStruct) ResetReversePointersInstance

func (backRepoMetaReference *BackRepoMetaReferenceStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, metareference *models.MetaReference) (Error error)

func (*BackRepoMetaReferenceStruct) RestorePhaseOne

func (backRepoMetaReference *BackRepoMetaReferenceStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "MetaReferenceDB.json" in dirPath that stores an array of MetaReferenceDB and stores it in the database the map BackRepoMetaReferenceid_atBckpTime_newID is updated accordingly

func (*BackRepoMetaReferenceStruct) RestorePhaseTwo

func (backRepoMetaReference *BackRepoMetaReferenceStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<MetaReference>id_atBckpTime_newID to compute new index

func (*BackRepoMetaReferenceStruct) RestoreXLPhaseOne

func (backRepoMetaReference *BackRepoMetaReferenceStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "MetaReference" sheet all MetaReferenceDB instances

type BackRepoMetaStruct

type BackRepoMetaStruct struct {
	// stores MetaDB according to their gorm ID
	Map_MetaDBID_MetaDB map[uint]*MetaDB

	// stores MetaDB ID according to Meta address
	Map_MetaPtr_MetaDBID map[*models.Meta]uint

	// stores Meta according to their gorm ID
	Map_MetaDBID_MetaPtr map[uint]*models.Meta
	// contains filtered or unexported fields
}

func (*BackRepoMetaStruct) Backup

func (backRepoMeta *BackRepoMetaStruct) Backup(dirPath string)

Backup generates a json file from a slice of all MetaDB instances in the backrepo

func (*BackRepoMetaStruct) BackupXL

func (backRepoMeta *BackRepoMetaStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all MetaDB instances in the backrepo

func (*BackRepoMetaStruct) CheckoutPhaseOne

func (backRepoMeta *BackRepoMetaStruct) CheckoutPhaseOne() (Error error)

BackRepoMeta.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoMetaStruct) CheckoutPhaseOneInstance

func (backRepoMeta *BackRepoMetaStruct) CheckoutPhaseOneInstance(metaDB *MetaDB) (Error error)

CheckoutPhaseOneInstance takes a metaDB that has been found in the DB, updates the backRepo and stages the models version of the metaDB

func (*BackRepoMetaStruct) CheckoutPhaseTwo

func (backRepoMeta *BackRepoMetaStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMeta.CheckoutPhaseTwo Checkouts all staged instances of Meta to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaStruct) CheckoutPhaseTwoInstance

func (backRepoMeta *BackRepoMetaStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, metaDB *MetaDB) (Error error)

BackRepoMeta.CheckoutPhaseTwoInstance Checkouts staged instances of Meta to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaStruct) CommitDeleteInstance

func (backRepoMeta *BackRepoMetaStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMeta.CommitDeleteInstance commits deletion of Meta to the BackRepo

func (*BackRepoMetaStruct) CommitPhaseOne

func (backRepoMeta *BackRepoMetaStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMeta.CommitPhaseOne commits all staged instances of Meta to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoMetaStruct) CommitPhaseOneInstance

func (backRepoMeta *BackRepoMetaStruct) CommitPhaseOneInstance(meta *models.Meta) (Error error)

BackRepoMeta.CommitPhaseOneInstance commits meta staged instances of Meta to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoMetaStruct) CommitPhaseTwo

func (backRepoMeta *BackRepoMetaStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoMeta.CommitPhaseTwo commits all staged instances of Meta to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaStruct) CommitPhaseTwoInstance

func (backRepoMeta *BackRepoMetaStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, meta *models.Meta) (Error error)

BackRepoMeta.CommitPhaseTwoInstance commits {{structname }} of models.Meta to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaStruct) GetDB

func (backRepoMeta *BackRepoMetaStruct) GetDB() db.DBInterface

func (*BackRepoMetaStruct) GetMetaDBFromMetaPtr

func (backRepoMeta *BackRepoMetaStruct) GetMetaDBFromMetaPtr(meta *models.Meta) (metaDB *MetaDB)

GetMetaDBFromMetaPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoMetaStruct) GetStage

func (backRepoMeta *BackRepoMetaStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMetaStruct) ResetReversePointers

func (backRepoMeta *BackRepoMetaStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoMeta.ResetReversePointers commits all staged instances of Meta to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoMetaStruct) ResetReversePointersInstance

func (backRepoMeta *BackRepoMetaStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, meta *models.Meta) (Error error)

func (*BackRepoMetaStruct) RestorePhaseOne

func (backRepoMeta *BackRepoMetaStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "MetaDB.json" in dirPath that stores an array of MetaDB and stores it in the database the map BackRepoMetaid_atBckpTime_newID is updated accordingly

func (*BackRepoMetaStruct) RestorePhaseTwo

func (backRepoMeta *BackRepoMetaStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<Meta>id_atBckpTime_newID to compute new index

func (*BackRepoMetaStruct) RestoreXLPhaseOne

func (backRepoMeta *BackRepoMetaStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Meta" sheet all MetaDB instances

type BackRepoModelPkgStruct

type BackRepoModelPkgStruct struct {
	// stores ModelPkgDB according to their gorm ID
	Map_ModelPkgDBID_ModelPkgDB map[uint]*ModelPkgDB

	// stores ModelPkgDB ID according to ModelPkg address
	Map_ModelPkgPtr_ModelPkgDBID map[*models.ModelPkg]uint

	// stores ModelPkg according to their gorm ID
	Map_ModelPkgDBID_ModelPkgPtr map[uint]*models.ModelPkg
	// contains filtered or unexported fields
}

func (*BackRepoModelPkgStruct) Backup

func (backRepoModelPkg *BackRepoModelPkgStruct) Backup(dirPath string)

Backup generates a json file from a slice of all ModelPkgDB instances in the backrepo

func (*BackRepoModelPkgStruct) BackupXL

func (backRepoModelPkg *BackRepoModelPkgStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all ModelPkgDB instances in the backrepo

func (*BackRepoModelPkgStruct) CheckoutPhaseOne

func (backRepoModelPkg *BackRepoModelPkgStruct) CheckoutPhaseOne() (Error error)

BackRepoModelPkg.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoModelPkgStruct) CheckoutPhaseOneInstance

func (backRepoModelPkg *BackRepoModelPkgStruct) CheckoutPhaseOneInstance(modelpkgDB *ModelPkgDB) (Error error)

CheckoutPhaseOneInstance takes a modelpkgDB that has been found in the DB, updates the backRepo and stages the models version of the modelpkgDB

func (*BackRepoModelPkgStruct) CheckoutPhaseTwo

func (backRepoModelPkg *BackRepoModelPkgStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoModelPkg.CheckoutPhaseTwo Checkouts all staged instances of ModelPkg to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoModelPkgStruct) CheckoutPhaseTwoInstance

func (backRepoModelPkg *BackRepoModelPkgStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, modelpkgDB *ModelPkgDB) (Error error)

BackRepoModelPkg.CheckoutPhaseTwoInstance Checkouts staged instances of ModelPkg to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoModelPkgStruct) CommitDeleteInstance

func (backRepoModelPkg *BackRepoModelPkgStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoModelPkg.CommitDeleteInstance commits deletion of ModelPkg to the BackRepo

func (*BackRepoModelPkgStruct) CommitPhaseOne

func (backRepoModelPkg *BackRepoModelPkgStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoModelPkg.CommitPhaseOne commits all staged instances of ModelPkg to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoModelPkgStruct) CommitPhaseOneInstance

func (backRepoModelPkg *BackRepoModelPkgStruct) CommitPhaseOneInstance(modelpkg *models.ModelPkg) (Error error)

BackRepoModelPkg.CommitPhaseOneInstance commits modelpkg staged instances of ModelPkg to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoModelPkgStruct) CommitPhaseTwo

func (backRepoModelPkg *BackRepoModelPkgStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoModelPkg.CommitPhaseTwo commits all staged instances of ModelPkg to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoModelPkgStruct) CommitPhaseTwoInstance

func (backRepoModelPkg *BackRepoModelPkgStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, modelpkg *models.ModelPkg) (Error error)

BackRepoModelPkg.CommitPhaseTwoInstance commits {{structname }} of models.ModelPkg to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoModelPkgStruct) GetDB

func (backRepoModelPkg *BackRepoModelPkgStruct) GetDB() db.DBInterface

func (*BackRepoModelPkgStruct) GetModelPkgDBFromModelPkgPtr

func (backRepoModelPkg *BackRepoModelPkgStruct) GetModelPkgDBFromModelPkgPtr(modelpkg *models.ModelPkg) (modelpkgDB *ModelPkgDB)

GetModelPkgDBFromModelPkgPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoModelPkgStruct) GetStage

func (backRepoModelPkg *BackRepoModelPkgStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoModelPkgStruct) ResetReversePointers

func (backRepoModelPkg *BackRepoModelPkgStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoModelPkg.ResetReversePointers commits all staged instances of ModelPkg to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoModelPkgStruct) ResetReversePointersInstance

func (backRepoModelPkg *BackRepoModelPkgStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, modelpkg *models.ModelPkg) (Error error)

func (*BackRepoModelPkgStruct) RestorePhaseOne

func (backRepoModelPkg *BackRepoModelPkgStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "ModelPkgDB.json" in dirPath that stores an array of ModelPkgDB and stores it in the database the map BackRepoModelPkgid_atBckpTime_newID is updated accordingly

func (*BackRepoModelPkgStruct) RestorePhaseTwo

func (backRepoModelPkg *BackRepoModelPkgStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<ModelPkg>id_atBckpTime_newID to compute new index

func (*BackRepoModelPkgStruct) RestoreXLPhaseOne

func (backRepoModelPkg *BackRepoModelPkgStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "ModelPkg" sheet all ModelPkgDB instances

type BackRepoPointerToGongStructFieldStruct

type BackRepoPointerToGongStructFieldStruct struct {
	// stores PointerToGongStructFieldDB according to their gorm ID
	Map_PointerToGongStructFieldDBID_PointerToGongStructFieldDB map[uint]*PointerToGongStructFieldDB

	// stores PointerToGongStructFieldDB ID according to PointerToGongStructField address
	Map_PointerToGongStructFieldPtr_PointerToGongStructFieldDBID map[*models.PointerToGongStructField]uint

	// stores PointerToGongStructField according to their gorm ID
	Map_PointerToGongStructFieldDBID_PointerToGongStructFieldPtr map[uint]*models.PointerToGongStructField
	// contains filtered or unexported fields
}

func (*BackRepoPointerToGongStructFieldStruct) Backup

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) Backup(dirPath string)

Backup generates a json file from a slice of all PointerToGongStructFieldDB instances in the backrepo

func (*BackRepoPointerToGongStructFieldStruct) BackupXL

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all PointerToGongStructFieldDB instances in the backrepo

func (*BackRepoPointerToGongStructFieldStruct) CheckoutPhaseOne

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CheckoutPhaseOne() (Error error)

BackRepoPointerToGongStructField.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoPointerToGongStructFieldStruct) CheckoutPhaseOneInstance

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CheckoutPhaseOneInstance(pointertogongstructfieldDB *PointerToGongStructFieldDB) (Error error)

CheckoutPhaseOneInstance takes a pointertogongstructfieldDB that has been found in the DB, updates the backRepo and stages the models version of the pointertogongstructfieldDB

func (*BackRepoPointerToGongStructFieldStruct) CheckoutPhaseTwo

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoPointerToGongStructField.CheckoutPhaseTwo Checkouts all staged instances of PointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPointerToGongStructFieldStruct) CheckoutPhaseTwoInstance

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, pointertogongstructfieldDB *PointerToGongStructFieldDB) (Error error)

BackRepoPointerToGongStructField.CheckoutPhaseTwoInstance Checkouts staged instances of PointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPointerToGongStructFieldStruct) CommitDeleteInstance

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPointerToGongStructField.CommitDeleteInstance commits deletion of PointerToGongStructField to the BackRepo

func (*BackRepoPointerToGongStructFieldStruct) CommitPhaseOne

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPointerToGongStructField.CommitPhaseOne commits all staged instances of PointerToGongStructField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoPointerToGongStructFieldStruct) CommitPhaseOneInstance

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CommitPhaseOneInstance(pointertogongstructfield *models.PointerToGongStructField) (Error error)

BackRepoPointerToGongStructField.CommitPhaseOneInstance commits pointertogongstructfield staged instances of PointerToGongStructField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoPointerToGongStructFieldStruct) CommitPhaseTwo

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoPointerToGongStructField.CommitPhaseTwo commits all staged instances of PointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPointerToGongStructFieldStruct) CommitPhaseTwoInstance

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, pointertogongstructfield *models.PointerToGongStructField) (Error error)

BackRepoPointerToGongStructField.CommitPhaseTwoInstance commits {{structname }} of models.PointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPointerToGongStructFieldStruct) GetDB

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) GetDB() db.DBInterface

func (*BackRepoPointerToGongStructFieldStruct) GetPointerToGongStructFieldDBFromPointerToGongStructFieldPtr

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) GetPointerToGongStructFieldDBFromPointerToGongStructFieldPtr(pointertogongstructfield *models.PointerToGongStructField) (pointertogongstructfieldDB *PointerToGongStructFieldDB)

GetPointerToGongStructFieldDBFromPointerToGongStructFieldPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoPointerToGongStructFieldStruct) GetStage

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoPointerToGongStructFieldStruct) ResetReversePointers

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoPointerToGongStructField.ResetReversePointers commits all staged instances of PointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoPointerToGongStructFieldStruct) ResetReversePointersInstance

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, pointertogongstructfield *models.PointerToGongStructField) (Error error)

func (*BackRepoPointerToGongStructFieldStruct) RestorePhaseOne

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "PointerToGongStructFieldDB.json" in dirPath that stores an array of PointerToGongStructFieldDB and stores it in the database the map BackRepoPointerToGongStructFieldid_atBckpTime_newID is updated accordingly

func (*BackRepoPointerToGongStructFieldStruct) RestorePhaseTwo

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<PointerToGongStructField>id_atBckpTime_newID to compute new index

func (*BackRepoPointerToGongStructFieldStruct) RestoreXLPhaseOne

func (backRepoPointerToGongStructField *BackRepoPointerToGongStructFieldStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "PointerToGongStructField" sheet all PointerToGongStructFieldDB instances

type BackRepoSliceOfPointerToGongStructFieldStruct

type BackRepoSliceOfPointerToGongStructFieldStruct struct {
	// stores SliceOfPointerToGongStructFieldDB according to their gorm ID
	Map_SliceOfPointerToGongStructFieldDBID_SliceOfPointerToGongStructFieldDB map[uint]*SliceOfPointerToGongStructFieldDB

	// stores SliceOfPointerToGongStructFieldDB ID according to SliceOfPointerToGongStructField address
	Map_SliceOfPointerToGongStructFieldPtr_SliceOfPointerToGongStructFieldDBID map[*models.SliceOfPointerToGongStructField]uint

	// stores SliceOfPointerToGongStructField according to their gorm ID
	Map_SliceOfPointerToGongStructFieldDBID_SliceOfPointerToGongStructFieldPtr map[uint]*models.SliceOfPointerToGongStructField
	// contains filtered or unexported fields
}

func (*BackRepoSliceOfPointerToGongStructFieldStruct) Backup

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) Backup(dirPath string)

Backup generates a json file from a slice of all SliceOfPointerToGongStructFieldDB instances in the backrepo

func (*BackRepoSliceOfPointerToGongStructFieldStruct) BackupXL

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) BackupXL(file *xlsx.File)

Backup generates a json file from a slice of all SliceOfPointerToGongStructFieldDB instances in the backrepo

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseOne

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseOne() (Error error)

BackRepoSliceOfPointerToGongStructField.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage

Phase One will result in having instances on the stage aligned with the back repo pointers are not initialized yet (this is for phase two)

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseOneInstance

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseOneInstance(sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) (Error error)

CheckoutPhaseOneInstance takes a sliceofpointertogongstructfieldDB that has been found in the DB, updates the backRepo and stages the models version of the sliceofpointertogongstructfieldDB

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseTwo

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoSliceOfPointerToGongStructField.CheckoutPhaseTwo Checkouts all staged instances of SliceOfPointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseTwoInstance

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) (Error error)

BackRepoSliceOfPointerToGongStructField.CheckoutPhaseTwoInstance Checkouts staged instances of SliceOfPointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CommitDeleteInstance

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoSliceOfPointerToGongStructField.CommitDeleteInstance commits deletion of SliceOfPointerToGongStructField to the BackRepo

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseOne

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoSliceOfPointerToGongStructField.CommitPhaseOne commits all staged instances of SliceOfPointerToGongStructField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseOneInstance

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseOneInstance(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField) (Error error)

BackRepoSliceOfPointerToGongStructField.CommitPhaseOneInstance commits sliceofpointertogongstructfield staged instances of SliceOfPointerToGongStructField to the BackRepo Phase One is the creation of instance in the database if it is not yet done to get the unique ID for each staged instance

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseTwo

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

BackRepoSliceOfPointerToGongStructField.CommitPhaseTwo commits all staged instances of SliceOfPointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseTwoInstance

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField) (Error error)

BackRepoSliceOfPointerToGongStructField.CommitPhaseTwoInstance commits {{structname }} of models.SliceOfPointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoSliceOfPointerToGongStructFieldStruct) GetDB

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) GetDB() db.DBInterface

func (*BackRepoSliceOfPointerToGongStructFieldStruct) GetSliceOfPointerToGongStructFieldDBFromSliceOfPointerToGongStructFieldPtr

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) GetSliceOfPointerToGongStructFieldDBFromSliceOfPointerToGongStructFieldPtr(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField) (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB)

GetSliceOfPointerToGongStructFieldDBFromSliceOfPointerToGongStructFieldPtr is a handy function to access the back repo instance from the stage instance

func (*BackRepoSliceOfPointerToGongStructFieldStruct) GetStage

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoSliceOfPointerToGongStructFieldStruct) ResetReversePointers

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

BackRepoSliceOfPointerToGongStructField.ResetReversePointers commits all staged instances of SliceOfPointerToGongStructField to the BackRepo Phase Two is the update of instance with the field in the database

func (*BackRepoSliceOfPointerToGongStructFieldStruct) ResetReversePointersInstance

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField) (Error error)

func (*BackRepoSliceOfPointerToGongStructFieldStruct) RestorePhaseOne

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) RestorePhaseOne(dirPath string)

RestorePhaseOne read the file "SliceOfPointerToGongStructFieldDB.json" in dirPath that stores an array of SliceOfPointerToGongStructFieldDB and stores it in the database the map BackRepoSliceOfPointerToGongStructFieldid_atBckpTime_newID is updated accordingly

func (*BackRepoSliceOfPointerToGongStructFieldStruct) RestorePhaseTwo

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) RestorePhaseTwo()

RestorePhaseTwo uses all map BackRepo<SliceOfPointerToGongStructField>id_atBckpTime_newID to compute new index

func (*BackRepoSliceOfPointerToGongStructFieldStruct) RestoreXLPhaseOne

func (backRepoSliceOfPointerToGongStructField *BackRepoSliceOfPointerToGongStructFieldStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "SliceOfPointerToGongStructField" sheet all SliceOfPointerToGongStructFieldDB instances

type BackRepoStruct

type BackRepoStruct struct {
	// insertion point for per struct back repo declarations
	BackRepoGongBasicField BackRepoGongBasicFieldStruct

	BackRepoGongEnum BackRepoGongEnumStruct

	BackRepoGongEnumValue BackRepoGongEnumValueStruct

	BackRepoGongLink BackRepoGongLinkStruct

	BackRepoGongNote BackRepoGongNoteStruct

	BackRepoGongStruct BackRepoGongStructStruct

	BackRepoGongTimeField BackRepoGongTimeFieldStruct

	BackRepoMeta BackRepoMetaStruct

	BackRepoMetaReference BackRepoMetaReferenceStruct

	BackRepoModelPkg BackRepoModelPkgStruct

	BackRepoPointerToGongStructField BackRepoPointerToGongStructFieldStruct

	BackRepoSliceOfPointerToGongStructField BackRepoSliceOfPointerToGongStructFieldStruct

	CommitFromBackNb uint // records commit increments when performed by the back

	PushFromFrontNb uint // records commit increments when performed by the front
	// contains filtered or unexported fields
}

BackRepoStruct supports callback functions

func NewBackRepo

func NewBackRepo(stage *models.StageStruct, filename string) (backRepo *BackRepoStruct)

func (*BackRepoStruct) Backup

func (backRepo *BackRepoStruct) Backup(stage *models.StageStruct, dirPath string)

Backup the BackRepoStruct

func (*BackRepoStruct) BackupXL

func (backRepo *BackRepoStruct) BackupXL(stage *models.StageStruct, dirPath string)

Backup in XL the BackRepoStruct

func (*BackRepoStruct) Checkout

func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)

Checkout the database into the stage

func (*BackRepoStruct) CheckoutGongBasicField

func (backRepo *BackRepoStruct) CheckoutGongBasicField(gongbasicfield *models.GongBasicField)

CommitGongBasicField allows checkout of a single gongbasicfield (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongEnum

func (backRepo *BackRepoStruct) CheckoutGongEnum(gongenum *models.GongEnum)

CommitGongEnum allows checkout of a single gongenum (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongEnumValue

func (backRepo *BackRepoStruct) CheckoutGongEnumValue(gongenumvalue *models.GongEnumValue)

CommitGongEnumValue allows checkout of a single gongenumvalue (if already staged and with a BackRepo id)

func (backRepo *BackRepoStruct) CheckoutGongLink(gonglink *models.GongLink)

CommitGongLink allows checkout of a single gonglink (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongNote

func (backRepo *BackRepoStruct) CheckoutGongNote(gongnote *models.GongNote)

CommitGongNote allows checkout of a single gongnote (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongStruct

func (backRepo *BackRepoStruct) CheckoutGongStruct(gongstruct *models.GongStruct)

CommitGongStruct allows checkout of a single gongstruct (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGongTimeField

func (backRepo *BackRepoStruct) CheckoutGongTimeField(gongtimefield *models.GongTimeField)

CommitGongTimeField allows checkout of a single gongtimefield (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMeta

func (backRepo *BackRepoStruct) CheckoutMeta(meta *models.Meta)

CommitMeta allows checkout of a single meta (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMetaReference

func (backRepo *BackRepoStruct) CheckoutMetaReference(metareference *models.MetaReference)

CommitMetaReference allows checkout of a single metareference (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutModelPkg

func (backRepo *BackRepoStruct) CheckoutModelPkg(modelpkg *models.ModelPkg)

CommitModelPkg allows checkout of a single modelpkg (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPointerToGongStructField

func (backRepo *BackRepoStruct) CheckoutPointerToGongStructField(pointertogongstructfield *models.PointerToGongStructField)

CommitPointerToGongStructField allows checkout of a single pointertogongstructfield (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutSliceOfPointerToGongStructField

func (backRepo *BackRepoStruct) CheckoutSliceOfPointerToGongStructField(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField)

CommitSliceOfPointerToGongStructField allows checkout of a single sliceofpointertogongstructfield (if already staged and with a BackRepo id)

func (*BackRepoStruct) Commit

func (backRepo *BackRepoStruct) Commit(stage *models.StageStruct)

Commit the BackRepoStruct inner variables and link to the database

func (*BackRepoStruct) CommitGongBasicField

func (backRepo *BackRepoStruct) CommitGongBasicField(gongbasicfield *models.GongBasicField)

CommitGongBasicField allows commit of a single gongbasicfield (if already staged)

func (*BackRepoStruct) CommitGongEnum

func (backRepo *BackRepoStruct) CommitGongEnum(gongenum *models.GongEnum)

CommitGongEnum allows commit of a single gongenum (if already staged)

func (*BackRepoStruct) CommitGongEnumValue

func (backRepo *BackRepoStruct) CommitGongEnumValue(gongenumvalue *models.GongEnumValue)

CommitGongEnumValue allows commit of a single gongenumvalue (if already staged)

func (backRepo *BackRepoStruct) CommitGongLink(gonglink *models.GongLink)

CommitGongLink allows commit of a single gonglink (if already staged)

func (*BackRepoStruct) CommitGongNote

func (backRepo *BackRepoStruct) CommitGongNote(gongnote *models.GongNote)

CommitGongNote allows commit of a single gongnote (if already staged)

func (*BackRepoStruct) CommitGongStruct

func (backRepo *BackRepoStruct) CommitGongStruct(gongstruct *models.GongStruct)

CommitGongStruct allows commit of a single gongstruct (if already staged)

func (*BackRepoStruct) CommitGongTimeField

func (backRepo *BackRepoStruct) CommitGongTimeField(gongtimefield *models.GongTimeField)

CommitGongTimeField allows commit of a single gongtimefield (if already staged)

func (*BackRepoStruct) CommitMeta

func (backRepo *BackRepoStruct) CommitMeta(meta *models.Meta)

CommitMeta allows commit of a single meta (if already staged)

func (*BackRepoStruct) CommitMetaReference

func (backRepo *BackRepoStruct) CommitMetaReference(metareference *models.MetaReference)

CommitMetaReference allows commit of a single metareference (if already staged)

func (*BackRepoStruct) CommitModelPkg

func (backRepo *BackRepoStruct) CommitModelPkg(modelpkg *models.ModelPkg)

CommitModelPkg allows commit of a single modelpkg (if already staged)

func (*BackRepoStruct) CommitPointerToGongStructField

func (backRepo *BackRepoStruct) CommitPointerToGongStructField(pointertogongstructfield *models.PointerToGongStructField)

CommitPointerToGongStructField allows commit of a single pointertogongstructfield (if already staged)

func (*BackRepoStruct) CommitSliceOfPointerToGongStructField

func (backRepo *BackRepoStruct) CommitSliceOfPointerToGongStructField(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField)

CommitSliceOfPointerToGongStructField allows commit of a single sliceofpointertogongstructfield (if already staged)

func (*BackRepoStruct) GetLastCommitFromBackNb

func (backRepo *BackRepoStruct) GetLastCommitFromBackNb() uint

func (*BackRepoStruct) GetLastPushFromFrontNb

func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint

func (*BackRepoStruct) GetStage

func (backRepo *BackRepoStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoStruct) IncrementCommitFromBackNb

func (backRepo *BackRepoStruct) IncrementCommitFromBackNb() uint

func (*BackRepoStruct) IncrementPushFromFrontNb

func (backRepo *BackRepoStruct) IncrementPushFromFrontNb() uint

func (*BackRepoStruct) Restore

func (backRepo *BackRepoStruct) Restore(stage *models.StageStruct, dirPath string)

Restore the database into the back repo

func (*BackRepoStruct) RestoreXL

func (backRepo *BackRepoStruct) RestoreXL(stage *models.StageStruct, dirPath string)

Restore the database into the back repo

func (*BackRepoStruct) SubscribeToCommitNb

func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb(ctx context.Context) <-chan int

type DBLite

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

DBLite is an in-memory database implementation of DBInterface

func NewDBLite

func NewDBLite() *DBLite

NewDBLite creates a new instance of DBLite

func (*DBLite) Create

func (db *DBLite) Create(instanceDB any) (db.DBInterface, error)

Create inserts a new record into the database

func (*DBLite) Delete

func (db *DBLite) Delete(instanceDB any) (db.DBInterface, error)

Delete removes a record from the database

func (*DBLite) Find

func (db *DBLite) Find(instanceDBs any) (db.DBInterface, error)

Find retrieves all records of a type from the database

func (*DBLite) First

func (db *DBLite) First(instanceDB any, conds ...any) (db.DBInterface, error)

First retrieves the first record of a type from the database

func (*DBLite) Model

func (db *DBLite) Model(instanceDB any) (db.DBInterface, error)

Model is a placeholder in this implementation

func (*DBLite) Save

func (db *DBLite) Save(instanceDB any) (db.DBInterface, error)

Save updates or inserts a record into the database

func (*DBLite) Unscoped

func (db *DBLite) Unscoped() (db.DBInterface, error)

Unscoped sets the unscoped flag for soft-deletes (not used in this implementation)

func (*DBLite) Updates

func (db *DBLite) Updates(instanceDB any) (db.DBInterface, error)

Updates modifies an existing record in the database

type GongBasicFieldAPI

type GongBasicFieldAPI struct {
	gorm.Model

	models.GongBasicField_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongBasicFieldPointersEncoding GongBasicFieldPointersEncoding
}

GongBasicFieldAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongbasicfieldAPI

type GongBasicFieldDB

type GongBasicFieldDB struct {
	gorm.Model

	// Declation for basic field gongbasicfieldDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongbasicfieldDB.BasicKindName
	BasicKindName_Data sql.NullString

	// Declation for basic field gongbasicfieldDB.DeclaredType
	DeclaredType_Data sql.NullString

	// Declation for basic field gongbasicfieldDB.CompositeStructName
	CompositeStructName_Data sql.NullString

	// Declation for basic field gongbasicfieldDB.Index
	Index_Data sql.NullInt64

	// Declation for basic field gongbasicfieldDB.IsDocLink
	// provide the sql storage for the boolan
	IsDocLink_Data sql.NullBool

	// Declation for basic field gongbasicfieldDB.IsTextArea
	// provide the sql storage for the boolan
	IsTextArea_Data sql.NullBool

	// Declation for basic field gongbasicfieldDB.IsBespokeWidth
	// provide the sql storage for the boolan
	IsBespokeWidth_Data sql.NullBool

	// Declation for basic field gongbasicfieldDB.BespokeWidth
	BespokeWidth_Data sql.NullInt64

	// Declation for basic field gongbasicfieldDB.IsBespokeHeight
	// provide the sql storage for the boolan
	IsBespokeHeight_Data sql.NullBool

	// Declation for basic field gongbasicfieldDB.BespokeHeight
	BespokeHeight_Data sql.NullInt64

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongBasicFieldPointersEncoding
}

GongBasicFieldDB describes a gongbasicfield in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongbasicfieldDB

func (*GongBasicFieldDB) CopyBasicFieldsFromGongBasicField

func (gongbasicfieldDB *GongBasicFieldDB) CopyBasicFieldsFromGongBasicField(gongbasicfield *models.GongBasicField)

CopyBasicFieldsFromGongBasicField

func (*GongBasicFieldDB) CopyBasicFieldsFromGongBasicFieldWOP

func (gongbasicfieldDB *GongBasicFieldDB) CopyBasicFieldsFromGongBasicFieldWOP(gongbasicfield *GongBasicFieldWOP)

CopyBasicFieldsFromGongBasicFieldWOP

func (*GongBasicFieldDB) CopyBasicFieldsFromGongBasicField_WOP

func (gongbasicfieldDB *GongBasicFieldDB) CopyBasicFieldsFromGongBasicField_WOP(gongbasicfield *models.GongBasicField_WOP)

CopyBasicFieldsFromGongBasicField_WOP

func (*GongBasicFieldDB) CopyBasicFieldsToGongBasicField

func (gongbasicfieldDB *GongBasicFieldDB) CopyBasicFieldsToGongBasicField(gongbasicfield *models.GongBasicField)

CopyBasicFieldsToGongBasicField

func (*GongBasicFieldDB) CopyBasicFieldsToGongBasicFieldWOP

func (gongbasicfieldDB *GongBasicFieldDB) CopyBasicFieldsToGongBasicFieldWOP(gongbasicfield *GongBasicFieldWOP)

CopyBasicFieldsToGongBasicFieldWOP

func (*GongBasicFieldDB) CopyBasicFieldsToGongBasicField_WOP

func (gongbasicfieldDB *GongBasicFieldDB) CopyBasicFieldsToGongBasicField_WOP(gongbasicfield *models.GongBasicField_WOP)

CopyBasicFieldsToGongBasicField_WOP

func (*GongBasicFieldDB) DecodePointers

func (gongbasicfieldDB *GongBasicFieldDB) DecodePointers(backRepo *BackRepoStruct, gongbasicfield *models.GongBasicField)

type GongBasicFieldDBResponse

type GongBasicFieldDBResponse struct {
	GongBasicFieldDB
}

GongBasicFieldDBResponse provides response swagger:response gongbasicfieldDBResponse

type GongBasicFieldDBs

type GongBasicFieldDBs []GongBasicFieldDB

GongBasicFieldDBs arrays gongbasicfieldDBs swagger:response gongbasicfieldDBsResponse

type GongBasicFieldPointersEncoding

type GongBasicFieldPointersEncoding struct {

	// field GongEnum is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	GongEnumID sql.NullInt64
}

GongBasicFieldPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongBasicFieldWOP

type GongBasicFieldWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	BasicKindName string `xlsx:"2"`

	DeclaredType string `xlsx:"3"`

	CompositeStructName string `xlsx:"4"`

	Index int `xlsx:"5"`

	IsDocLink bool `xlsx:"6"`

	IsTextArea bool `xlsx:"7"`

	IsBespokeWidth bool `xlsx:"8"`

	BespokeWidth int `xlsx:"9"`

	IsBespokeHeight bool `xlsx:"10"`

	BespokeHeight int `xlsx:"11"`
}

GongBasicFieldWOP is a GongBasicField without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongEnumAPI

type GongEnumAPI struct {
	gorm.Model

	models.GongEnum_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongEnumPointersEncoding GongEnumPointersEncoding
}

GongEnumAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongenumAPI

type GongEnumDB

type GongEnumDB struct {
	gorm.Model

	// Declation for basic field gongenumDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongenumDB.Type
	Type_Data sql.NullInt64

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongEnumPointersEncoding
}

GongEnumDB describes a gongenum in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongenumDB

func (*GongEnumDB) CopyBasicFieldsFromGongEnum

func (gongenumDB *GongEnumDB) CopyBasicFieldsFromGongEnum(gongenum *models.GongEnum)

CopyBasicFieldsFromGongEnum

func (*GongEnumDB) CopyBasicFieldsFromGongEnumWOP

func (gongenumDB *GongEnumDB) CopyBasicFieldsFromGongEnumWOP(gongenum *GongEnumWOP)

CopyBasicFieldsFromGongEnumWOP

func (*GongEnumDB) CopyBasicFieldsFromGongEnum_WOP

func (gongenumDB *GongEnumDB) CopyBasicFieldsFromGongEnum_WOP(gongenum *models.GongEnum_WOP)

CopyBasicFieldsFromGongEnum_WOP

func (*GongEnumDB) CopyBasicFieldsToGongEnum

func (gongenumDB *GongEnumDB) CopyBasicFieldsToGongEnum(gongenum *models.GongEnum)

CopyBasicFieldsToGongEnum

func (*GongEnumDB) CopyBasicFieldsToGongEnumWOP

func (gongenumDB *GongEnumDB) CopyBasicFieldsToGongEnumWOP(gongenum *GongEnumWOP)

CopyBasicFieldsToGongEnumWOP

func (*GongEnumDB) CopyBasicFieldsToGongEnum_WOP

func (gongenumDB *GongEnumDB) CopyBasicFieldsToGongEnum_WOP(gongenum *models.GongEnum_WOP)

CopyBasicFieldsToGongEnum_WOP

func (*GongEnumDB) DecodePointers

func (gongenumDB *GongEnumDB) DecodePointers(backRepo *BackRepoStruct, gongenum *models.GongEnum)

type GongEnumDBResponse

type GongEnumDBResponse struct {
	GongEnumDB
}

GongEnumDBResponse provides response swagger:response gongenumDBResponse

type GongEnumDBs

type GongEnumDBs []GongEnumDB

GongEnumDBs arrays gongenumDBs swagger:response gongenumDBsResponse

type GongEnumPointersEncoding

type GongEnumPointersEncoding struct {

	// field GongEnumValues is a slice of pointers to another Struct (optional or 0..1)
	GongEnumValues IntSlice `gorm:"type:TEXT"`
}

GongEnumPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongEnumValueAPI

type GongEnumValueAPI struct {
	gorm.Model

	models.GongEnumValue_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongEnumValuePointersEncoding GongEnumValuePointersEncoding
}

GongEnumValueAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongenumvalueAPI

type GongEnumValueDB

type GongEnumValueDB struct {
	gorm.Model

	// Declation for basic field gongenumvalueDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongenumvalueDB.Value
	Value_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongEnumValuePointersEncoding
}

GongEnumValueDB describes a gongenumvalue in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongenumvalueDB

func (*GongEnumValueDB) CopyBasicFieldsFromGongEnumValue

func (gongenumvalueDB *GongEnumValueDB) CopyBasicFieldsFromGongEnumValue(gongenumvalue *models.GongEnumValue)

CopyBasicFieldsFromGongEnumValue

func (*GongEnumValueDB) CopyBasicFieldsFromGongEnumValueWOP

func (gongenumvalueDB *GongEnumValueDB) CopyBasicFieldsFromGongEnumValueWOP(gongenumvalue *GongEnumValueWOP)

CopyBasicFieldsFromGongEnumValueWOP

func (*GongEnumValueDB) CopyBasicFieldsFromGongEnumValue_WOP

func (gongenumvalueDB *GongEnumValueDB) CopyBasicFieldsFromGongEnumValue_WOP(gongenumvalue *models.GongEnumValue_WOP)

CopyBasicFieldsFromGongEnumValue_WOP

func (*GongEnumValueDB) CopyBasicFieldsToGongEnumValue

func (gongenumvalueDB *GongEnumValueDB) CopyBasicFieldsToGongEnumValue(gongenumvalue *models.GongEnumValue)

CopyBasicFieldsToGongEnumValue

func (*GongEnumValueDB) CopyBasicFieldsToGongEnumValueWOP

func (gongenumvalueDB *GongEnumValueDB) CopyBasicFieldsToGongEnumValueWOP(gongenumvalue *GongEnumValueWOP)

CopyBasicFieldsToGongEnumValueWOP

func (*GongEnumValueDB) CopyBasicFieldsToGongEnumValue_WOP

func (gongenumvalueDB *GongEnumValueDB) CopyBasicFieldsToGongEnumValue_WOP(gongenumvalue *models.GongEnumValue_WOP)

CopyBasicFieldsToGongEnumValue_WOP

func (*GongEnumValueDB) DecodePointers

func (gongenumvalueDB *GongEnumValueDB) DecodePointers(backRepo *BackRepoStruct, gongenumvalue *models.GongEnumValue)

type GongEnumValueDBResponse

type GongEnumValueDBResponse struct {
	GongEnumValueDB
}

GongEnumValueDBResponse provides response swagger:response gongenumvalueDBResponse

type GongEnumValueDBs

type GongEnumValueDBs []GongEnumValueDB

GongEnumValueDBs arrays gongenumvalueDBs swagger:response gongenumvalueDBsResponse

type GongEnumValuePointersEncoding

type GongEnumValuePointersEncoding struct {
}

GongEnumValuePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongEnumValueWOP

type GongEnumValueWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

GongEnumValueWOP is a GongEnumValue without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongEnumWOP

type GongEnumWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Type models.GongEnumType `xlsx:"2"`
}

GongEnumWOP is a GongEnum without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongLinkAPI

type GongLinkAPI struct {
	gorm.Model

	models.GongLink_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongLinkPointersEncoding GongLinkPointersEncoding
}

GongLinkAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gonglinkAPI

type GongLinkDB

type GongLinkDB struct {
	gorm.Model

	// Declation for basic field gonglinkDB.Name
	Name_Data sql.NullString

	// Declation for basic field gonglinkDB.Recv
	Recv_Data sql.NullString

	// Declation for basic field gonglinkDB.ImportPath
	ImportPath_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongLinkPointersEncoding
}

GongLinkDB describes a gonglink in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gonglinkDB

func (gonglinkDB *GongLinkDB) CopyBasicFieldsFromGongLink(gonglink *models.GongLink)

CopyBasicFieldsFromGongLink

func (*GongLinkDB) CopyBasicFieldsFromGongLinkWOP

func (gonglinkDB *GongLinkDB) CopyBasicFieldsFromGongLinkWOP(gonglink *GongLinkWOP)

CopyBasicFieldsFromGongLinkWOP

func (gonglinkDB *GongLinkDB) CopyBasicFieldsFromGongLink_WOP(gonglink *models.GongLink_WOP)

CopyBasicFieldsFromGongLink_WOP

func (gonglinkDB *GongLinkDB) CopyBasicFieldsToGongLink(gonglink *models.GongLink)

CopyBasicFieldsToGongLink

func (*GongLinkDB) CopyBasicFieldsToGongLinkWOP

func (gonglinkDB *GongLinkDB) CopyBasicFieldsToGongLinkWOP(gonglink *GongLinkWOP)

CopyBasicFieldsToGongLinkWOP

func (gonglinkDB *GongLinkDB) CopyBasicFieldsToGongLink_WOP(gonglink *models.GongLink_WOP)

CopyBasicFieldsToGongLink_WOP

func (*GongLinkDB) DecodePointers

func (gonglinkDB *GongLinkDB) DecodePointers(backRepo *BackRepoStruct, gonglink *models.GongLink)

type GongLinkDBResponse

type GongLinkDBResponse struct {
	GongLinkDB
}

GongLinkDBResponse provides response swagger:response gonglinkDBResponse

type GongLinkDBs

type GongLinkDBs []GongLinkDB

GongLinkDBs arrays gonglinkDBs swagger:response gonglinkDBsResponse

type GongLinkPointersEncoding

type GongLinkPointersEncoding struct {
}

GongLinkPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongLinkWOP

type GongLinkWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Recv string `xlsx:"2"`

	ImportPath string `xlsx:"3"`
}

GongLinkWOP is a GongLink without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongNoteAPI

type GongNoteAPI struct {
	gorm.Model

	models.GongNote_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongNotePointersEncoding GongNotePointersEncoding
}

GongNoteAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongnoteAPI

type GongNoteDB

type GongNoteDB struct {
	gorm.Model

	// Declation for basic field gongnoteDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongnoteDB.Body
	Body_Data sql.NullString

	// Declation for basic field gongnoteDB.BodyHTML
	BodyHTML_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongNotePointersEncoding
}

GongNoteDB describes a gongnote in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongnoteDB

func (*GongNoteDB) CopyBasicFieldsFromGongNote

func (gongnoteDB *GongNoteDB) CopyBasicFieldsFromGongNote(gongnote *models.GongNote)

CopyBasicFieldsFromGongNote

func (*GongNoteDB) CopyBasicFieldsFromGongNoteWOP

func (gongnoteDB *GongNoteDB) CopyBasicFieldsFromGongNoteWOP(gongnote *GongNoteWOP)

CopyBasicFieldsFromGongNoteWOP

func (*GongNoteDB) CopyBasicFieldsFromGongNote_WOP

func (gongnoteDB *GongNoteDB) CopyBasicFieldsFromGongNote_WOP(gongnote *models.GongNote_WOP)

CopyBasicFieldsFromGongNote_WOP

func (*GongNoteDB) CopyBasicFieldsToGongNote

func (gongnoteDB *GongNoteDB) CopyBasicFieldsToGongNote(gongnote *models.GongNote)

CopyBasicFieldsToGongNote

func (*GongNoteDB) CopyBasicFieldsToGongNoteWOP

func (gongnoteDB *GongNoteDB) CopyBasicFieldsToGongNoteWOP(gongnote *GongNoteWOP)

CopyBasicFieldsToGongNoteWOP

func (*GongNoteDB) CopyBasicFieldsToGongNote_WOP

func (gongnoteDB *GongNoteDB) CopyBasicFieldsToGongNote_WOP(gongnote *models.GongNote_WOP)

CopyBasicFieldsToGongNote_WOP

func (*GongNoteDB) DecodePointers

func (gongnoteDB *GongNoteDB) DecodePointers(backRepo *BackRepoStruct, gongnote *models.GongNote)

type GongNoteDBResponse

type GongNoteDBResponse struct {
	GongNoteDB
}

GongNoteDBResponse provides response swagger:response gongnoteDBResponse

type GongNoteDBs

type GongNoteDBs []GongNoteDB

GongNoteDBs arrays gongnoteDBs swagger:response gongnoteDBsResponse

type GongNotePointersEncoding

type GongNotePointersEncoding struct {

	// field Links is a slice of pointers to another Struct (optional or 0..1)
	Links IntSlice `gorm:"type:TEXT"`
}

GongNotePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongNoteWOP

type GongNoteWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Body string `xlsx:"2"`

	BodyHTML string `xlsx:"3"`
}

GongNoteWOP is a GongNote without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongStructAPI

type GongStructAPI struct {
	gorm.Model

	models.GongStruct_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongStructPointersEncoding GongStructPointersEncoding
}

GongStructAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongstructAPI

type GongStructDB

type GongStructDB struct {
	gorm.Model

	// Declation for basic field gongstructDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongstructDB.HasOnAfterUpdateSignature
	// provide the sql storage for the boolan
	HasOnAfterUpdateSignature_Data sql.NullBool

	// Declation for basic field gongstructDB.IsIgnoredForFront
	// provide the sql storage for the boolan
	IsIgnoredForFront_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongStructPointersEncoding
}

GongStructDB describes a gongstruct in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongstructDB

func (*GongStructDB) CopyBasicFieldsFromGongStruct

func (gongstructDB *GongStructDB) CopyBasicFieldsFromGongStruct(gongstruct *models.GongStruct)

CopyBasicFieldsFromGongStruct

func (*GongStructDB) CopyBasicFieldsFromGongStructWOP

func (gongstructDB *GongStructDB) CopyBasicFieldsFromGongStructWOP(gongstruct *GongStructWOP)

CopyBasicFieldsFromGongStructWOP

func (*GongStructDB) CopyBasicFieldsFromGongStruct_WOP

func (gongstructDB *GongStructDB) CopyBasicFieldsFromGongStruct_WOP(gongstruct *models.GongStruct_WOP)

CopyBasicFieldsFromGongStruct_WOP

func (*GongStructDB) CopyBasicFieldsToGongStruct

func (gongstructDB *GongStructDB) CopyBasicFieldsToGongStruct(gongstruct *models.GongStruct)

CopyBasicFieldsToGongStruct

func (*GongStructDB) CopyBasicFieldsToGongStructWOP

func (gongstructDB *GongStructDB) CopyBasicFieldsToGongStructWOP(gongstruct *GongStructWOP)

CopyBasicFieldsToGongStructWOP

func (*GongStructDB) CopyBasicFieldsToGongStruct_WOP

func (gongstructDB *GongStructDB) CopyBasicFieldsToGongStruct_WOP(gongstruct *models.GongStruct_WOP)

CopyBasicFieldsToGongStruct_WOP

func (*GongStructDB) DecodePointers

func (gongstructDB *GongStructDB) DecodePointers(backRepo *BackRepoStruct, gongstruct *models.GongStruct)

type GongStructDBResponse

type GongStructDBResponse struct {
	GongStructDB
}

GongStructDBResponse provides response swagger:response gongstructDBResponse

type GongStructDBs

type GongStructDBs []GongStructDB

GongStructDBs arrays gongstructDBs swagger:response gongstructDBsResponse

type GongStructPointersEncoding

type GongStructPointersEncoding struct {

	// field GongBasicFields is a slice of pointers to another Struct (optional or 0..1)
	GongBasicFields IntSlice `gorm:"type:TEXT"`

	// field GongTimeFields is a slice of pointers to another Struct (optional or 0..1)
	GongTimeFields IntSlice `gorm:"type:TEXT"`

	// field PointerToGongStructFields is a slice of pointers to another Struct (optional or 0..1)
	PointerToGongStructFields IntSlice `gorm:"type:TEXT"`

	// field SliceOfPointerToGongStructFields is a slice of pointers to another Struct (optional or 0..1)
	SliceOfPointerToGongStructFields IntSlice `gorm:"type:TEXT"`
}

GongStructPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongStructWOP

type GongStructWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	HasOnAfterUpdateSignature bool `xlsx:"2"`

	IsIgnoredForFront bool `xlsx:"3"`
}

GongStructWOP is a GongStruct without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongTimeFieldAPI

type GongTimeFieldAPI struct {
	gorm.Model

	models.GongTimeField_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	GongTimeFieldPointersEncoding GongTimeFieldPointersEncoding
}

GongTimeFieldAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model gongtimefieldAPI

type GongTimeFieldDB

type GongTimeFieldDB struct {
	gorm.Model

	// Declation for basic field gongtimefieldDB.Name
	Name_Data sql.NullString

	// Declation for basic field gongtimefieldDB.Index
	Index_Data sql.NullInt64

	// Declation for basic field gongtimefieldDB.CompositeStructName
	CompositeStructName_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	GongTimeFieldPointersEncoding
}

GongTimeFieldDB describes a gongtimefield in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model gongtimefieldDB

func (*GongTimeFieldDB) CopyBasicFieldsFromGongTimeField

func (gongtimefieldDB *GongTimeFieldDB) CopyBasicFieldsFromGongTimeField(gongtimefield *models.GongTimeField)

CopyBasicFieldsFromGongTimeField

func (*GongTimeFieldDB) CopyBasicFieldsFromGongTimeFieldWOP

func (gongtimefieldDB *GongTimeFieldDB) CopyBasicFieldsFromGongTimeFieldWOP(gongtimefield *GongTimeFieldWOP)

CopyBasicFieldsFromGongTimeFieldWOP

func (*GongTimeFieldDB) CopyBasicFieldsFromGongTimeField_WOP

func (gongtimefieldDB *GongTimeFieldDB) CopyBasicFieldsFromGongTimeField_WOP(gongtimefield *models.GongTimeField_WOP)

CopyBasicFieldsFromGongTimeField_WOP

func (*GongTimeFieldDB) CopyBasicFieldsToGongTimeField

func (gongtimefieldDB *GongTimeFieldDB) CopyBasicFieldsToGongTimeField(gongtimefield *models.GongTimeField)

CopyBasicFieldsToGongTimeField

func (*GongTimeFieldDB) CopyBasicFieldsToGongTimeFieldWOP

func (gongtimefieldDB *GongTimeFieldDB) CopyBasicFieldsToGongTimeFieldWOP(gongtimefield *GongTimeFieldWOP)

CopyBasicFieldsToGongTimeFieldWOP

func (*GongTimeFieldDB) CopyBasicFieldsToGongTimeField_WOP

func (gongtimefieldDB *GongTimeFieldDB) CopyBasicFieldsToGongTimeField_WOP(gongtimefield *models.GongTimeField_WOP)

CopyBasicFieldsToGongTimeField_WOP

func (*GongTimeFieldDB) DecodePointers

func (gongtimefieldDB *GongTimeFieldDB) DecodePointers(backRepo *BackRepoStruct, gongtimefield *models.GongTimeField)

type GongTimeFieldDBResponse

type GongTimeFieldDBResponse struct {
	GongTimeFieldDB
}

GongTimeFieldDBResponse provides response swagger:response gongtimefieldDBResponse

type GongTimeFieldDBs

type GongTimeFieldDBs []GongTimeFieldDB

GongTimeFieldDBs arrays gongtimefieldDBs swagger:response gongtimefieldDBsResponse

type GongTimeFieldPointersEncoding

type GongTimeFieldPointersEncoding struct {
}

GongTimeFieldPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type GongTimeFieldWOP

type GongTimeFieldWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Index int `xlsx:"2"`

	CompositeStructName string `xlsx:"3"`
}

GongTimeFieldWOP is a GongTimeField without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type GongstructDB

type GongstructDB interface {
}

type IntSlice

type IntSlice []int

func (*IntSlice) Scan

func (s *IntSlice) Scan(value interface{}) error

Scan makes IntSlice implement the sql.Scanner interface.

func (IntSlice) Value

func (s IntSlice) Value() (driver.Value, error)

Value makes IntSlice implement the driver.Valuer interface.

type MetaAPI

type MetaAPI struct {
	gorm.Model

	models.Meta_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	MetaPointersEncoding MetaPointersEncoding
}

MetaAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model metaAPI

type MetaDB

type MetaDB struct {
	gorm.Model

	// Declation for basic field metaDB.Name
	Name_Data sql.NullString

	// Declation for basic field metaDB.Text
	Text_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	MetaPointersEncoding
}

MetaDB describes a meta in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model metaDB

func (*MetaDB) CopyBasicFieldsFromMeta

func (metaDB *MetaDB) CopyBasicFieldsFromMeta(meta *models.Meta)

CopyBasicFieldsFromMeta

func (*MetaDB) CopyBasicFieldsFromMetaWOP

func (metaDB *MetaDB) CopyBasicFieldsFromMetaWOP(meta *MetaWOP)

CopyBasicFieldsFromMetaWOP

func (*MetaDB) CopyBasicFieldsFromMeta_WOP

func (metaDB *MetaDB) CopyBasicFieldsFromMeta_WOP(meta *models.Meta_WOP)

CopyBasicFieldsFromMeta_WOP

func (*MetaDB) CopyBasicFieldsToMeta

func (metaDB *MetaDB) CopyBasicFieldsToMeta(meta *models.Meta)

CopyBasicFieldsToMeta

func (*MetaDB) CopyBasicFieldsToMetaWOP

func (metaDB *MetaDB) CopyBasicFieldsToMetaWOP(meta *MetaWOP)

CopyBasicFieldsToMetaWOP

func (*MetaDB) CopyBasicFieldsToMeta_WOP

func (metaDB *MetaDB) CopyBasicFieldsToMeta_WOP(meta *models.Meta_WOP)

CopyBasicFieldsToMeta_WOP

func (*MetaDB) DecodePointers

func (metaDB *MetaDB) DecodePointers(backRepo *BackRepoStruct, meta *models.Meta)

type MetaDBResponse

type MetaDBResponse struct {
	MetaDB
}

MetaDBResponse provides response swagger:response metaDBResponse

type MetaDBs

type MetaDBs []MetaDB

MetaDBs arrays metaDBs swagger:response metaDBsResponse

type MetaPointersEncoding

type MetaPointersEncoding struct {

	// field MetaReferences is a slice of pointers to another Struct (optional or 0..1)
	MetaReferences IntSlice `gorm:"type:TEXT"`
}

MetaPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type MetaReferenceAPI

type MetaReferenceAPI struct {
	gorm.Model

	models.MetaReference_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	MetaReferencePointersEncoding MetaReferencePointersEncoding
}

MetaReferenceAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model metareferenceAPI

type MetaReferenceDB

type MetaReferenceDB struct {
	gorm.Model

	// Declation for basic field metareferenceDB.Name
	Name_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	MetaReferencePointersEncoding
}

MetaReferenceDB describes a metareference in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model metareferenceDB

func (*MetaReferenceDB) CopyBasicFieldsFromMetaReference

func (metareferenceDB *MetaReferenceDB) CopyBasicFieldsFromMetaReference(metareference *models.MetaReference)

CopyBasicFieldsFromMetaReference

func (*MetaReferenceDB) CopyBasicFieldsFromMetaReferenceWOP

func (metareferenceDB *MetaReferenceDB) CopyBasicFieldsFromMetaReferenceWOP(metareference *MetaReferenceWOP)

CopyBasicFieldsFromMetaReferenceWOP

func (*MetaReferenceDB) CopyBasicFieldsFromMetaReference_WOP

func (metareferenceDB *MetaReferenceDB) CopyBasicFieldsFromMetaReference_WOP(metareference *models.MetaReference_WOP)

CopyBasicFieldsFromMetaReference_WOP

func (*MetaReferenceDB) CopyBasicFieldsToMetaReference

func (metareferenceDB *MetaReferenceDB) CopyBasicFieldsToMetaReference(metareference *models.MetaReference)

CopyBasicFieldsToMetaReference

func (*MetaReferenceDB) CopyBasicFieldsToMetaReferenceWOP

func (metareferenceDB *MetaReferenceDB) CopyBasicFieldsToMetaReferenceWOP(metareference *MetaReferenceWOP)

CopyBasicFieldsToMetaReferenceWOP

func (*MetaReferenceDB) CopyBasicFieldsToMetaReference_WOP

func (metareferenceDB *MetaReferenceDB) CopyBasicFieldsToMetaReference_WOP(metareference *models.MetaReference_WOP)

CopyBasicFieldsToMetaReference_WOP

func (*MetaReferenceDB) DecodePointers

func (metareferenceDB *MetaReferenceDB) DecodePointers(backRepo *BackRepoStruct, metareference *models.MetaReference)

type MetaReferenceDBResponse

type MetaReferenceDBResponse struct {
	MetaReferenceDB
}

MetaReferenceDBResponse provides response swagger:response metareferenceDBResponse

type MetaReferenceDBs

type MetaReferenceDBs []MetaReferenceDB

MetaReferenceDBs arrays metareferenceDBs swagger:response metareferenceDBsResponse

type MetaReferencePointersEncoding

type MetaReferencePointersEncoding struct {
}

MetaReferencePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type MetaReferenceWOP

type MetaReferenceWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`
}

MetaReferenceWOP is a MetaReference without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type MetaWOP

type MetaWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Text string `xlsx:"2"`
}

MetaWOP is a Meta without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type ModelPkgAPI

type ModelPkgAPI struct {
	gorm.Model

	models.ModelPkg_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	ModelPkgPointersEncoding ModelPkgPointersEncoding
}

ModelPkgAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model modelpkgAPI

type ModelPkgDB

type ModelPkgDB struct {
	gorm.Model

	// Declation for basic field modelpkgDB.Name
	Name_Data sql.NullString

	// Declation for basic field modelpkgDB.PkgPath
	PkgPath_Data sql.NullString

	// Declation for basic field modelpkgDB.PathToGoSubDirectory
	PathToGoSubDirectory_Data sql.NullString

	// Declation for basic field modelpkgDB.OrmPkgGenPath
	OrmPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.DbOrmPkgGenPath
	DbOrmPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.DbLiteOrmPkgGenPath
	DbLiteOrmPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.DbPkgGenPath
	DbPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.ControllersPkgGenPath
	ControllersPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.FullstackPkgGenPath
	FullstackPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.StackPkgGenPath
	StackPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.StaticPkgGenPath
	StaticPkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.ProbePkgGenPath
	ProbePkgGenPath_Data sql.NullString

	// Declation for basic field modelpkgDB.NgWorkspacePath
	NgWorkspacePath_Data sql.NullString

	// Declation for basic field modelpkgDB.NgWorkspaceName
	NgWorkspaceName_Data sql.NullString

	// Declation for basic field modelpkgDB.NgDataLibrarySourceCodeDirectory
	NgDataLibrarySourceCodeDirectory_Data sql.NullString

	// Declation for basic field modelpkgDB.NgSpecificLibrarySourceCodeDirectory
	NgSpecificLibrarySourceCodeDirectory_Data sql.NullString

	// Declation for basic field modelpkgDB.MaterialLibDatamodelTargetPath
	MaterialLibDatamodelTargetPath_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	ModelPkgPointersEncoding
}

ModelPkgDB describes a modelpkg in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model modelpkgDB

func (*ModelPkgDB) CopyBasicFieldsFromModelPkg

func (modelpkgDB *ModelPkgDB) CopyBasicFieldsFromModelPkg(modelpkg *models.ModelPkg)

CopyBasicFieldsFromModelPkg

func (*ModelPkgDB) CopyBasicFieldsFromModelPkgWOP

func (modelpkgDB *ModelPkgDB) CopyBasicFieldsFromModelPkgWOP(modelpkg *ModelPkgWOP)

CopyBasicFieldsFromModelPkgWOP

func (*ModelPkgDB) CopyBasicFieldsFromModelPkg_WOP

func (modelpkgDB *ModelPkgDB) CopyBasicFieldsFromModelPkg_WOP(modelpkg *models.ModelPkg_WOP)

CopyBasicFieldsFromModelPkg_WOP

func (*ModelPkgDB) CopyBasicFieldsToModelPkg

func (modelpkgDB *ModelPkgDB) CopyBasicFieldsToModelPkg(modelpkg *models.ModelPkg)

CopyBasicFieldsToModelPkg

func (*ModelPkgDB) CopyBasicFieldsToModelPkgWOP

func (modelpkgDB *ModelPkgDB) CopyBasicFieldsToModelPkgWOP(modelpkg *ModelPkgWOP)

CopyBasicFieldsToModelPkgWOP

func (*ModelPkgDB) CopyBasicFieldsToModelPkg_WOP

func (modelpkgDB *ModelPkgDB) CopyBasicFieldsToModelPkg_WOP(modelpkg *models.ModelPkg_WOP)

CopyBasicFieldsToModelPkg_WOP

func (*ModelPkgDB) DecodePointers

func (modelpkgDB *ModelPkgDB) DecodePointers(backRepo *BackRepoStruct, modelpkg *models.ModelPkg)

type ModelPkgDBResponse

type ModelPkgDBResponse struct {
	ModelPkgDB
}

ModelPkgDBResponse provides response swagger:response modelpkgDBResponse

type ModelPkgDBs

type ModelPkgDBs []ModelPkgDB

ModelPkgDBs arrays modelpkgDBs swagger:response modelpkgDBsResponse

type ModelPkgPointersEncoding

type ModelPkgPointersEncoding struct {
}

ModelPkgPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type ModelPkgWOP

type ModelPkgWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	PkgPath string `xlsx:"2"`

	PathToGoSubDirectory string `xlsx:"3"`

	OrmPkgGenPath string `xlsx:"4"`

	DbOrmPkgGenPath string `xlsx:"5"`

	DbLiteOrmPkgGenPath string `xlsx:"6"`

	DbPkgGenPath string `xlsx:"7"`

	ControllersPkgGenPath string `xlsx:"8"`

	FullstackPkgGenPath string `xlsx:"9"`

	StackPkgGenPath string `xlsx:"10"`

	StaticPkgGenPath string `xlsx:"11"`

	ProbePkgGenPath string `xlsx:"12"`

	NgWorkspacePath string `xlsx:"13"`

	NgWorkspaceName string `xlsx:"14"`

	NgDataLibrarySourceCodeDirectory string `xlsx:"15"`

	NgSpecificLibrarySourceCodeDirectory string `xlsx:"16"`

	MaterialLibDatamodelTargetPath string `xlsx:"17"`
}

ModelPkgWOP is a ModelPkg without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type PointerToGongStructFieldAPI

type PointerToGongStructFieldAPI struct {
	gorm.Model

	models.PointerToGongStructField_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	PointerToGongStructFieldPointersEncoding PointerToGongStructFieldPointersEncoding
}

PointerToGongStructFieldAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model pointertogongstructfieldAPI

type PointerToGongStructFieldDB

type PointerToGongStructFieldDB struct {
	gorm.Model

	// Declation for basic field pointertogongstructfieldDB.Name
	Name_Data sql.NullString

	// Declation for basic field pointertogongstructfieldDB.Index
	Index_Data sql.NullInt64

	// Declation for basic field pointertogongstructfieldDB.CompositeStructName
	CompositeStructName_Data sql.NullString

	// Declation for basic field pointertogongstructfieldDB.IsType
	// provide the sql storage for the boolan
	IsType_Data sql.NullBool

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	PointerToGongStructFieldPointersEncoding
}

PointerToGongStructFieldDB describes a pointertogongstructfield in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model pointertogongstructfieldDB

func (*PointerToGongStructFieldDB) CopyBasicFieldsFromPointerToGongStructField

func (pointertogongstructfieldDB *PointerToGongStructFieldDB) CopyBasicFieldsFromPointerToGongStructField(pointertogongstructfield *models.PointerToGongStructField)

CopyBasicFieldsFromPointerToGongStructField

func (*PointerToGongStructFieldDB) CopyBasicFieldsFromPointerToGongStructFieldWOP

func (pointertogongstructfieldDB *PointerToGongStructFieldDB) CopyBasicFieldsFromPointerToGongStructFieldWOP(pointertogongstructfield *PointerToGongStructFieldWOP)

CopyBasicFieldsFromPointerToGongStructFieldWOP

func (*PointerToGongStructFieldDB) CopyBasicFieldsFromPointerToGongStructField_WOP

func (pointertogongstructfieldDB *PointerToGongStructFieldDB) CopyBasicFieldsFromPointerToGongStructField_WOP(pointertogongstructfield *models.PointerToGongStructField_WOP)

CopyBasicFieldsFromPointerToGongStructField_WOP

func (*PointerToGongStructFieldDB) CopyBasicFieldsToPointerToGongStructField

func (pointertogongstructfieldDB *PointerToGongStructFieldDB) CopyBasicFieldsToPointerToGongStructField(pointertogongstructfield *models.PointerToGongStructField)

CopyBasicFieldsToPointerToGongStructField

func (*PointerToGongStructFieldDB) CopyBasicFieldsToPointerToGongStructFieldWOP

func (pointertogongstructfieldDB *PointerToGongStructFieldDB) CopyBasicFieldsToPointerToGongStructFieldWOP(pointertogongstructfield *PointerToGongStructFieldWOP)

CopyBasicFieldsToPointerToGongStructFieldWOP

func (*PointerToGongStructFieldDB) CopyBasicFieldsToPointerToGongStructField_WOP

func (pointertogongstructfieldDB *PointerToGongStructFieldDB) CopyBasicFieldsToPointerToGongStructField_WOP(pointertogongstructfield *models.PointerToGongStructField_WOP)

CopyBasicFieldsToPointerToGongStructField_WOP

func (*PointerToGongStructFieldDB) DecodePointers

func (pointertogongstructfieldDB *PointerToGongStructFieldDB) DecodePointers(backRepo *BackRepoStruct, pointertogongstructfield *models.PointerToGongStructField)

type PointerToGongStructFieldDBResponse

type PointerToGongStructFieldDBResponse struct {
	PointerToGongStructFieldDB
}

PointerToGongStructFieldDBResponse provides response swagger:response pointertogongstructfieldDBResponse

type PointerToGongStructFieldDBs

type PointerToGongStructFieldDBs []PointerToGongStructFieldDB

PointerToGongStructFieldDBs arrays pointertogongstructfieldDBs swagger:response pointertogongstructfieldDBsResponse

type PointerToGongStructFieldPointersEncoding

type PointerToGongStructFieldPointersEncoding struct {

	// field GongStruct is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	GongStructID sql.NullInt64
}

PointerToGongStructFieldPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type PointerToGongStructFieldWOP

type PointerToGongStructFieldWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Index int `xlsx:"2"`

	CompositeStructName string `xlsx:"3"`

	IsType bool `xlsx:"4"`
}

PointerToGongStructFieldWOP is a PointerToGongStructField without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

type SliceOfPointerToGongStructFieldAPI

type SliceOfPointerToGongStructFieldAPI struct {
	gorm.Model

	models.SliceOfPointerToGongStructField_WOP

	// encoding of pointers
	// for API, it cannot be embedded
	SliceOfPointerToGongStructFieldPointersEncoding SliceOfPointerToGongStructFieldPointersEncoding
}

SliceOfPointerToGongStructFieldAPI is the input in POST API

for POST, API, one needs the fields of the model as well as the fields from associations ("Has One" and "Has Many") that are generated to fullfill the ORM requirements for associations

swagger:model sliceofpointertogongstructfieldAPI

type SliceOfPointerToGongStructFieldDB

type SliceOfPointerToGongStructFieldDB struct {
	gorm.Model

	// Declation for basic field sliceofpointertogongstructfieldDB.Name
	Name_Data sql.NullString

	// Declation for basic field sliceofpointertogongstructfieldDB.Index
	Index_Data sql.NullInt64

	// Declation for basic field sliceofpointertogongstructfieldDB.CompositeStructName
	CompositeStructName_Data sql.NullString

	// encoding of pointers
	// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
	SliceOfPointerToGongStructFieldPointersEncoding
}

SliceOfPointerToGongStructFieldDB describes a sliceofpointertogongstructfield in the database

It incorporates the GORM ID, basic fields from the model (because they can be serialized), the encoded version of pointers

swagger:model sliceofpointertogongstructfieldDB

func (*SliceOfPointerToGongStructFieldDB) CopyBasicFieldsFromSliceOfPointerToGongStructField

func (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) CopyBasicFieldsFromSliceOfPointerToGongStructField(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField)

CopyBasicFieldsFromSliceOfPointerToGongStructField

func (*SliceOfPointerToGongStructFieldDB) CopyBasicFieldsFromSliceOfPointerToGongStructFieldWOP

func (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) CopyBasicFieldsFromSliceOfPointerToGongStructFieldWOP(sliceofpointertogongstructfield *SliceOfPointerToGongStructFieldWOP)

CopyBasicFieldsFromSliceOfPointerToGongStructFieldWOP

func (*SliceOfPointerToGongStructFieldDB) CopyBasicFieldsFromSliceOfPointerToGongStructField_WOP

func (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) CopyBasicFieldsFromSliceOfPointerToGongStructField_WOP(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField_WOP)

CopyBasicFieldsFromSliceOfPointerToGongStructField_WOP

func (*SliceOfPointerToGongStructFieldDB) CopyBasicFieldsToSliceOfPointerToGongStructField

func (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) CopyBasicFieldsToSliceOfPointerToGongStructField(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField)

CopyBasicFieldsToSliceOfPointerToGongStructField

func (*SliceOfPointerToGongStructFieldDB) CopyBasicFieldsToSliceOfPointerToGongStructFieldWOP

func (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) CopyBasicFieldsToSliceOfPointerToGongStructFieldWOP(sliceofpointertogongstructfield *SliceOfPointerToGongStructFieldWOP)

CopyBasicFieldsToSliceOfPointerToGongStructFieldWOP

func (*SliceOfPointerToGongStructFieldDB) CopyBasicFieldsToSliceOfPointerToGongStructField_WOP

func (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) CopyBasicFieldsToSliceOfPointerToGongStructField_WOP(sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField_WOP)

CopyBasicFieldsToSliceOfPointerToGongStructField_WOP

func (*SliceOfPointerToGongStructFieldDB) DecodePointers

func (sliceofpointertogongstructfieldDB *SliceOfPointerToGongStructFieldDB) DecodePointers(backRepo *BackRepoStruct, sliceofpointertogongstructfield *models.SliceOfPointerToGongStructField)

type SliceOfPointerToGongStructFieldDBResponse

type SliceOfPointerToGongStructFieldDBResponse struct {
	SliceOfPointerToGongStructFieldDB
}

SliceOfPointerToGongStructFieldDBResponse provides response swagger:response sliceofpointertogongstructfieldDBResponse

type SliceOfPointerToGongStructFieldDBs

type SliceOfPointerToGongStructFieldDBs []SliceOfPointerToGongStructFieldDB

SliceOfPointerToGongStructFieldDBs arrays sliceofpointertogongstructfieldDBs swagger:response sliceofpointertogongstructfieldDBsResponse

type SliceOfPointerToGongStructFieldPointersEncoding

type SliceOfPointerToGongStructFieldPointersEncoding struct {

	// field GongStruct is a pointer to another Struct (optional or 0..1)
	// This field is generated into another field to enable AS ONE association
	GongStructID sql.NullInt64
}

SliceOfPointerToGongStructFieldPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct

type SliceOfPointerToGongStructFieldWOP

type SliceOfPointerToGongStructFieldWOP struct {
	ID int `xlsx:"0"`

	Name string `xlsx:"1"`

	Index int `xlsx:"2"`

	CompositeStructName string `xlsx:"3"`
}

SliceOfPointerToGongStructFieldWOP is a SliceOfPointerToGongStructField without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint

Directories

Path Synopsis
generated code - do not edit
generated code - do not edit

Jump to

Keyboard shortcuts

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