orm

package
v0.0.0-...-a0af7a8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 20 Imported by: 0

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

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

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 All_Fields = []string{

	"ID",
	"Name",
	"OuterElementName",
	"Order",
	"Depth",
	"MinOccurs",
	"MaxOccurs",
}
View Source
var Annotation_Fields = []string{

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

	"ID",
	"Name",
	"NameXSD",
	"HasNameConflict",
	"GoIdentifier",
	"Ref",
	"Order",
	"Depth",
}
View Source
var Attribute_Fields = []string{

	"ID",
	"Name",
	"NameXSD",
	"Type",
	"HasNameConflict",
	"GoIdentifier",
	"Default",
	"Use",
	"Form",
	"Fixed",
	"Ref",
	"TargetNamespace",
	"SimpleType",
	"IDXSD",
}
View Source
var BackRepoAllid_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 BackRepoAnnotationid_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 BackRepoAttributeGroupid_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 BackRepoAttributeid_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 BackRepoChoiceid_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 BackRepoComplexContentid_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 BackRepoComplexTypeid_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 BackRepoDocumentationid_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 BackRepoElementid_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 BackRepoEnumerationid_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 BackRepoExtensionid_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 BackRepoGroupid_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 BackRepoLengthid_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 BackRepoMaxInclusiveid_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 BackRepoMaxLengthid_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 BackRepoMinInclusiveid_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 BackRepoMinLengthid_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 BackRepoPatternid_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 BackRepoRestrictionid_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 BackRepoSchemaid_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 BackRepoSequenceid_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 BackRepoSimpleContentid_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 BackRepoSimpleTypeid_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 BackRepoTotalDigitid_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 BackRepoUnionid_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 BackRepoWhiteSpaceid_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 Choice_Fields = []string{

	"ID",
	"Name",
	"OuterElementName",
	"Order",
	"Depth",
	"MinOccurs",
	"MaxOccurs",
	"IsDuplicatedInXSD",
}
View Source
var ComplexContent_Fields = []string{

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

	"ID",
	"Name",
	"HasNameConflict",
	"GoIdentifier",
	"IsAnonymous",
	"NameXSD",
	"OuterElementName",
	"Order",
	"Depth",
	"MinOccurs",
	"MaxOccurs",
	"IsDuplicatedInXSD",
}
View Source
var Documentation_Fields = []string{

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

	"ID",
	"Name",
	"Order",
	"Depth",
	"HasNameConflict",
	"GoIdentifier",
	"NameXSD",
	"Type",
	"MinOccurs",
	"MaxOccurs",
	"Default",
	"Fixed",
	"Nillable",
	"Ref",
	"Abstract",
	"Form",
	"Block",
	"Final",
	"IsDuplicatedInXSD",
}
View Source
var Enumeration_Fields = []string{

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

	"ID",
	"Name",
	"OuterElementName",
	"Order",
	"Depth",
	"MinOccurs",
	"MaxOccurs",
	"Base",
	"Ref",
}
View Source
var Group_Fields = []string{

	"ID",
	"Name",
	"NameXSD",
	"Ref",
	"IsAnonymous",
	"HasNameConflict",
	"GoIdentifier",
	"OuterElementName",
	"Order",
	"Depth",
	"MinOccurs",
	"MaxOccurs",
}
View Source
var Length_Fields = []string{

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

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

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

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

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

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

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

	"ID",
	"Name",
	"Xs",
	"Order",
	"Depth",
}
View Source
var Sequence_Fields = []string{

	"ID",
	"Name",
	"OuterElementName",
	"Order",
	"Depth",
	"MinOccurs",
	"MaxOccurs",
}
View Source
var SimpleContent_Fields = []string{

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

	"ID",
	"Name",
	"NameXSD",
	"Order",
	"Depth",
}
View Source
var TotalDigit_Fields = []string{

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

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

	"ID",
	"Name",
	"Value",
}

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 AllAPI

type AllAPI struct {
	gorm.Model

	models.All_WOP

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

AllAPI 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 allAPI

type AllDB

type AllDB struct {
	gorm.Model

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

	// Declation for basic field allDB.OuterElementName
	OuterElementName_Data sql.NullString

	// Declation for basic field allDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field allDB.Depth
	Depth_Data sql.NullInt64

	// Declation for basic field allDB.MinOccurs
	MinOccurs_Data sql.NullString

	// Declation for basic field allDB.MaxOccurs
	MaxOccurs_Data sql.NullString

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

AllDB describes a all 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 allDB

func (*AllDB) CopyBasicFieldsFromAll

func (allDB *AllDB) CopyBasicFieldsFromAll(all *models.All)

CopyBasicFieldsFromAll

func (*AllDB) CopyBasicFieldsFromAllWOP

func (allDB *AllDB) CopyBasicFieldsFromAllWOP(all *AllWOP)

CopyBasicFieldsFromAllWOP

func (*AllDB) CopyBasicFieldsFromAll_WOP

func (allDB *AllDB) CopyBasicFieldsFromAll_WOP(all *models.All_WOP)

CopyBasicFieldsFromAll_WOP

func (*AllDB) CopyBasicFieldsToAll

func (allDB *AllDB) CopyBasicFieldsToAll(all *models.All)

CopyBasicFieldsToAll

func (*AllDB) CopyBasicFieldsToAllWOP

func (allDB *AllDB) CopyBasicFieldsToAllWOP(all *AllWOP)

CopyBasicFieldsToAllWOP

func (*AllDB) CopyBasicFieldsToAll_WOP

func (allDB *AllDB) CopyBasicFieldsToAll_WOP(all *models.All_WOP)

CopyBasicFieldsToAll_WOP

func (*AllDB) DecodePointers

func (allDB *AllDB) DecodePointers(backRepo *BackRepoStruct, all *models.All)

type AllDBResponse

type AllDBResponse struct {
	AllDB
}

AllDBResponse provides response swagger:response allDBResponse

type AllDBs

type AllDBs []AllDB

AllDBs arrays allDBs swagger:response allDBsResponse

type AllPointersEncoding

type AllPointersEncoding struct {

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

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

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

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

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

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

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

type AllWOP

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

	Name string `xlsx:"1"`

	OuterElementName string `xlsx:"2"`

	Order int `xlsx:"3"`

	Depth int `xlsx:"4"`

	MinOccurs string `xlsx:"5"`

	MaxOccurs string `xlsx:"6"`
}

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

type AnnotationAPI

type AnnotationAPI struct {
	gorm.Model

	models.Annotation_WOP

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

AnnotationAPI 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 annotationAPI

type AnnotationDB

type AnnotationDB struct {
	gorm.Model

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

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

AnnotationDB describes a annotation 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 annotationDB

func (*AnnotationDB) CopyBasicFieldsFromAnnotation

func (annotationDB *AnnotationDB) CopyBasicFieldsFromAnnotation(annotation *models.Annotation)

CopyBasicFieldsFromAnnotation

func (*AnnotationDB) CopyBasicFieldsFromAnnotationWOP

func (annotationDB *AnnotationDB) CopyBasicFieldsFromAnnotationWOP(annotation *AnnotationWOP)

CopyBasicFieldsFromAnnotationWOP

func (*AnnotationDB) CopyBasicFieldsFromAnnotation_WOP

func (annotationDB *AnnotationDB) CopyBasicFieldsFromAnnotation_WOP(annotation *models.Annotation_WOP)

CopyBasicFieldsFromAnnotation_WOP

func (*AnnotationDB) CopyBasicFieldsToAnnotation

func (annotationDB *AnnotationDB) CopyBasicFieldsToAnnotation(annotation *models.Annotation)

CopyBasicFieldsToAnnotation

func (*AnnotationDB) CopyBasicFieldsToAnnotationWOP

func (annotationDB *AnnotationDB) CopyBasicFieldsToAnnotationWOP(annotation *AnnotationWOP)

CopyBasicFieldsToAnnotationWOP

func (*AnnotationDB) CopyBasicFieldsToAnnotation_WOP

func (annotationDB *AnnotationDB) CopyBasicFieldsToAnnotation_WOP(annotation *models.Annotation_WOP)

CopyBasicFieldsToAnnotation_WOP

func (*AnnotationDB) DecodePointers

func (annotationDB *AnnotationDB) DecodePointers(backRepo *BackRepoStruct, annotation *models.Annotation)

type AnnotationDBResponse

type AnnotationDBResponse struct {
	AnnotationDB
}

AnnotationDBResponse provides response swagger:response annotationDBResponse

type AnnotationDBs

type AnnotationDBs []AnnotationDB

AnnotationDBs arrays annotationDBs swagger:response annotationDBsResponse

type AnnotationPointersEncoding

type AnnotationPointersEncoding struct {

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

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

type AnnotationWOP

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

	Name string `xlsx:"1"`
}

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

type AttributeAPI

type AttributeAPI struct {
	gorm.Model

	models.Attribute_WOP

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

AttributeAPI 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 attributeAPI

type AttributeDB

type AttributeDB struct {
	gorm.Model

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

	// Declation for basic field attributeDB.NameXSD
	NameXSD_Data sql.NullString

	// Declation for basic field attributeDB.Type
	Type_Data sql.NullString

	// Declation for basic field attributeDB.HasNameConflict
	// provide the sql storage for the boolan
	HasNameConflict_Data sql.NullBool

	// Declation for basic field attributeDB.GoIdentifier
	GoIdentifier_Data sql.NullString

	// Declation for basic field attributeDB.Default
	Default_Data sql.NullString

	// Declation for basic field attributeDB.Use
	Use_Data sql.NullString

	// Declation for basic field attributeDB.Form
	Form_Data sql.NullString

	// Declation for basic field attributeDB.Fixed
	Fixed_Data sql.NullString

	// Declation for basic field attributeDB.Ref
	Ref_Data sql.NullString

	// Declation for basic field attributeDB.TargetNamespace
	TargetNamespace_Data sql.NullString

	// Declation for basic field attributeDB.SimpleType
	SimpleType_Data sql.NullString

	// Declation for basic field attributeDB.IDXSD
	IDXSD_Data sql.NullString

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

AttributeDB describes a attribute 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 attributeDB

func (*AttributeDB) CopyBasicFieldsFromAttribute

func (attributeDB *AttributeDB) CopyBasicFieldsFromAttribute(attribute *models.Attribute)

CopyBasicFieldsFromAttribute

func (*AttributeDB) CopyBasicFieldsFromAttributeWOP

func (attributeDB *AttributeDB) CopyBasicFieldsFromAttributeWOP(attribute *AttributeWOP)

CopyBasicFieldsFromAttributeWOP

func (*AttributeDB) CopyBasicFieldsFromAttribute_WOP

func (attributeDB *AttributeDB) CopyBasicFieldsFromAttribute_WOP(attribute *models.Attribute_WOP)

CopyBasicFieldsFromAttribute_WOP

func (*AttributeDB) CopyBasicFieldsToAttribute

func (attributeDB *AttributeDB) CopyBasicFieldsToAttribute(attribute *models.Attribute)

CopyBasicFieldsToAttribute

func (*AttributeDB) CopyBasicFieldsToAttributeWOP

func (attributeDB *AttributeDB) CopyBasicFieldsToAttributeWOP(attribute *AttributeWOP)

CopyBasicFieldsToAttributeWOP

func (*AttributeDB) CopyBasicFieldsToAttribute_WOP

func (attributeDB *AttributeDB) CopyBasicFieldsToAttribute_WOP(attribute *models.Attribute_WOP)

CopyBasicFieldsToAttribute_WOP

func (*AttributeDB) DecodePointers

func (attributeDB *AttributeDB) DecodePointers(backRepo *BackRepoStruct, attribute *models.Attribute)

type AttributeDBResponse

type AttributeDBResponse struct {
	AttributeDB
}

AttributeDBResponse provides response swagger:response attributeDBResponse

type AttributeDBs

type AttributeDBs []AttributeDB

AttributeDBs arrays attributeDBs swagger:response attributeDBsResponse

type AttributeGroupAPI

type AttributeGroupAPI struct {
	gorm.Model

	models.AttributeGroup_WOP

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

AttributeGroupAPI 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 attributegroupAPI

type AttributeGroupDB

type AttributeGroupDB struct {
	gorm.Model

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

	// Declation for basic field attributegroupDB.NameXSD
	NameXSD_Data sql.NullString

	// Declation for basic field attributegroupDB.HasNameConflict
	// provide the sql storage for the boolan
	HasNameConflict_Data sql.NullBool

	// Declation for basic field attributegroupDB.GoIdentifier
	GoIdentifier_Data sql.NullString

	// Declation for basic field attributegroupDB.Ref
	Ref_Data sql.NullString

	// Declation for basic field attributegroupDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field attributegroupDB.Depth
	Depth_Data sql.NullInt64

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

AttributeGroupDB describes a attributegroup 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 attributegroupDB

func (*AttributeGroupDB) CopyBasicFieldsFromAttributeGroup

func (attributegroupDB *AttributeGroupDB) CopyBasicFieldsFromAttributeGroup(attributegroup *models.AttributeGroup)

CopyBasicFieldsFromAttributeGroup

func (*AttributeGroupDB) CopyBasicFieldsFromAttributeGroupWOP

func (attributegroupDB *AttributeGroupDB) CopyBasicFieldsFromAttributeGroupWOP(attributegroup *AttributeGroupWOP)

CopyBasicFieldsFromAttributeGroupWOP

func (*AttributeGroupDB) CopyBasicFieldsFromAttributeGroup_WOP

func (attributegroupDB *AttributeGroupDB) CopyBasicFieldsFromAttributeGroup_WOP(attributegroup *models.AttributeGroup_WOP)

CopyBasicFieldsFromAttributeGroup_WOP

func (*AttributeGroupDB) CopyBasicFieldsToAttributeGroup

func (attributegroupDB *AttributeGroupDB) CopyBasicFieldsToAttributeGroup(attributegroup *models.AttributeGroup)

CopyBasicFieldsToAttributeGroup

func (*AttributeGroupDB) CopyBasicFieldsToAttributeGroupWOP

func (attributegroupDB *AttributeGroupDB) CopyBasicFieldsToAttributeGroupWOP(attributegroup *AttributeGroupWOP)

CopyBasicFieldsToAttributeGroupWOP

func (*AttributeGroupDB) CopyBasicFieldsToAttributeGroup_WOP

func (attributegroupDB *AttributeGroupDB) CopyBasicFieldsToAttributeGroup_WOP(attributegroup *models.AttributeGroup_WOP)

CopyBasicFieldsToAttributeGroup_WOP

func (*AttributeGroupDB) DecodePointers

func (attributegroupDB *AttributeGroupDB) DecodePointers(backRepo *BackRepoStruct, attributegroup *models.AttributeGroup)

type AttributeGroupDBResponse

type AttributeGroupDBResponse struct {
	AttributeGroupDB
}

AttributeGroupDBResponse provides response swagger:response attributegroupDBResponse

type AttributeGroupDBs

type AttributeGroupDBs []AttributeGroupDB

AttributeGroupDBs arrays attributegroupDBs swagger:response attributegroupDBsResponse

type AttributeGroupPointersEncoding

type AttributeGroupPointersEncoding struct {

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

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

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

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

type AttributeGroupWOP

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

	Name string `xlsx:"1"`

	NameXSD string `xlsx:"2"`

	HasNameConflict bool `xlsx:"3"`

	GoIdentifier string `xlsx:"4"`

	Ref string `xlsx:"5"`

	Order int `xlsx:"6"`

	Depth int `xlsx:"7"`
}

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

type AttributePointersEncoding

type AttributePointersEncoding struct {

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

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

type AttributeWOP

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

	Name string `xlsx:"1"`

	NameXSD string `xlsx:"2"`

	Type string `xlsx:"3"`

	HasNameConflict bool `xlsx:"4"`

	GoIdentifier string `xlsx:"5"`

	Default string `xlsx:"6"`

	Use string `xlsx:"7"`

	Form string `xlsx:"8"`

	Fixed string `xlsx:"9"`

	Ref string `xlsx:"10"`

	TargetNamespace string `xlsx:"11"`

	SimpleType string `xlsx:"12"`

	IDXSD string `xlsx:"13"`
}

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

type BackRepoAllStruct

type BackRepoAllStruct struct {
	// stores AllDB according to their gorm ID
	Map_AllDBID_AllDB map[uint]*AllDB

	// stores AllDB ID according to All address
	Map_AllPtr_AllDBID map[*models.All]uint

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

func (*BackRepoAllStruct) Backup

func (backRepoAll *BackRepoAllStruct) Backup(dirPath string)

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

func (*BackRepoAllStruct) BackupXL

func (backRepoAll *BackRepoAllStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoAllStruct) CheckoutPhaseOne

func (backRepoAll *BackRepoAllStruct) CheckoutPhaseOne() (Error error)

BackRepoAll.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 (*BackRepoAllStruct) CheckoutPhaseOneInstance

func (backRepoAll *BackRepoAllStruct) CheckoutPhaseOneInstance(allDB *AllDB) (Error error)

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

func (*BackRepoAllStruct) CheckoutPhaseTwo

func (backRepoAll *BackRepoAllStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAllStruct) CheckoutPhaseTwoInstance

func (backRepoAll *BackRepoAllStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, allDB *AllDB) (Error error)

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

func (*BackRepoAllStruct) CommitDeleteInstance

func (backRepoAll *BackRepoAllStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoAll.CommitDeleteInstance commits deletion of All to the BackRepo

func (*BackRepoAllStruct) CommitPhaseOne

func (backRepoAll *BackRepoAllStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoAll.CommitPhaseOne commits all staged instances of All 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 (*BackRepoAllStruct) CommitPhaseOneInstance

func (backRepoAll *BackRepoAllStruct) CommitPhaseOneInstance(all *models.All) (Error error)

BackRepoAll.CommitPhaseOneInstance commits all staged instances of All 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 (*BackRepoAllStruct) CommitPhaseTwo

func (backRepoAll *BackRepoAllStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAllStruct) CommitPhaseTwoInstance

func (backRepoAll *BackRepoAllStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, all *models.All) (Error error)

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

func (*BackRepoAllStruct) GetAllDBFromAllPtr

func (backRepoAll *BackRepoAllStruct) GetAllDBFromAllPtr(all *models.All) (allDB *AllDB)

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

func (*BackRepoAllStruct) GetDB

func (backRepoAll *BackRepoAllStruct) GetDB() db.DBInterface

func (*BackRepoAllStruct) GetStage

func (backRepoAll *BackRepoAllStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoAllStruct) ResetReversePointers

func (backRepoAll *BackRepoAllStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAllStruct) ResetReversePointersInstance

func (backRepoAll *BackRepoAllStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, all *models.All) (Error error)

func (*BackRepoAllStruct) RestorePhaseOne

func (backRepoAll *BackRepoAllStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoAllStruct) RestorePhaseTwo

func (backRepoAll *BackRepoAllStruct) RestorePhaseTwo()

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

func (*BackRepoAllStruct) RestoreXLPhaseOne

func (backRepoAll *BackRepoAllStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "All" sheet all AllDB instances

type BackRepoAnnotationStruct

type BackRepoAnnotationStruct struct {
	// stores AnnotationDB according to their gorm ID
	Map_AnnotationDBID_AnnotationDB map[uint]*AnnotationDB

	// stores AnnotationDB ID according to Annotation address
	Map_AnnotationPtr_AnnotationDBID map[*models.Annotation]uint

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

func (*BackRepoAnnotationStruct) Backup

func (backRepoAnnotation *BackRepoAnnotationStruct) Backup(dirPath string)

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

func (*BackRepoAnnotationStruct) BackupXL

func (backRepoAnnotation *BackRepoAnnotationStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoAnnotationStruct) CheckoutPhaseOne

func (backRepoAnnotation *BackRepoAnnotationStruct) CheckoutPhaseOne() (Error error)

BackRepoAnnotation.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 (*BackRepoAnnotationStruct) CheckoutPhaseOneInstance

func (backRepoAnnotation *BackRepoAnnotationStruct) CheckoutPhaseOneInstance(annotationDB *AnnotationDB) (Error error)

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

func (*BackRepoAnnotationStruct) CheckoutPhaseTwo

func (backRepoAnnotation *BackRepoAnnotationStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAnnotationStruct) CheckoutPhaseTwoInstance

func (backRepoAnnotation *BackRepoAnnotationStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, annotationDB *AnnotationDB) (Error error)

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

func (*BackRepoAnnotationStruct) CommitDeleteInstance

func (backRepoAnnotation *BackRepoAnnotationStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoAnnotation.CommitDeleteInstance commits deletion of Annotation to the BackRepo

func (*BackRepoAnnotationStruct) CommitPhaseOne

func (backRepoAnnotation *BackRepoAnnotationStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoAnnotation.CommitPhaseOne commits all staged instances of Annotation 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 (*BackRepoAnnotationStruct) CommitPhaseOneInstance

func (backRepoAnnotation *BackRepoAnnotationStruct) CommitPhaseOneInstance(annotation *models.Annotation) (Error error)

BackRepoAnnotation.CommitPhaseOneInstance commits annotation staged instances of Annotation 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 (*BackRepoAnnotationStruct) CommitPhaseTwo

func (backRepoAnnotation *BackRepoAnnotationStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAnnotationStruct) CommitPhaseTwoInstance

func (backRepoAnnotation *BackRepoAnnotationStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, annotation *models.Annotation) (Error error)

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

func (*BackRepoAnnotationStruct) GetAnnotationDBFromAnnotationPtr

func (backRepoAnnotation *BackRepoAnnotationStruct) GetAnnotationDBFromAnnotationPtr(annotation *models.Annotation) (annotationDB *AnnotationDB)

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

func (*BackRepoAnnotationStruct) GetDB

func (backRepoAnnotation *BackRepoAnnotationStruct) GetDB() db.DBInterface

func (*BackRepoAnnotationStruct) GetStage

func (backRepoAnnotation *BackRepoAnnotationStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoAnnotationStruct) ResetReversePointers

func (backRepoAnnotation *BackRepoAnnotationStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAnnotationStruct) ResetReversePointersInstance

func (backRepoAnnotation *BackRepoAnnotationStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, annotation *models.Annotation) (Error error)

func (*BackRepoAnnotationStruct) RestorePhaseOne

func (backRepoAnnotation *BackRepoAnnotationStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoAnnotationStruct) RestorePhaseTwo

func (backRepoAnnotation *BackRepoAnnotationStruct) RestorePhaseTwo()

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

func (*BackRepoAnnotationStruct) RestoreXLPhaseOne

func (backRepoAnnotation *BackRepoAnnotationStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Annotation" sheet all AnnotationDB instances

type BackRepoAttributeGroupStruct

type BackRepoAttributeGroupStruct struct {
	// stores AttributeGroupDB according to their gorm ID
	Map_AttributeGroupDBID_AttributeGroupDB map[uint]*AttributeGroupDB

	// stores AttributeGroupDB ID according to AttributeGroup address
	Map_AttributeGroupPtr_AttributeGroupDBID map[*models.AttributeGroup]uint

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

func (*BackRepoAttributeGroupStruct) Backup

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) Backup(dirPath string)

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

func (*BackRepoAttributeGroupStruct) BackupXL

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoAttributeGroupStruct) CheckoutPhaseOne

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CheckoutPhaseOne() (Error error)

BackRepoAttributeGroup.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 (*BackRepoAttributeGroupStruct) CheckoutPhaseOneInstance

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CheckoutPhaseOneInstance(attributegroupDB *AttributeGroupDB) (Error error)

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

func (*BackRepoAttributeGroupStruct) CheckoutPhaseTwo

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAttributeGroupStruct) CheckoutPhaseTwoInstance

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, attributegroupDB *AttributeGroupDB) (Error error)

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

func (*BackRepoAttributeGroupStruct) CommitDeleteInstance

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoAttributeGroup.CommitDeleteInstance commits deletion of AttributeGroup to the BackRepo

func (*BackRepoAttributeGroupStruct) CommitPhaseOne

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoAttributeGroup.CommitPhaseOne commits all staged instances of AttributeGroup 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 (*BackRepoAttributeGroupStruct) CommitPhaseOneInstance

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CommitPhaseOneInstance(attributegroup *models.AttributeGroup) (Error error)

BackRepoAttributeGroup.CommitPhaseOneInstance commits attributegroup staged instances of AttributeGroup 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 (*BackRepoAttributeGroupStruct) CommitPhaseTwo

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAttributeGroupStruct) CommitPhaseTwoInstance

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, attributegroup *models.AttributeGroup) (Error error)

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

func (*BackRepoAttributeGroupStruct) GetAttributeGroupDBFromAttributeGroupPtr

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) GetAttributeGroupDBFromAttributeGroupPtr(attributegroup *models.AttributeGroup) (attributegroupDB *AttributeGroupDB)

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

func (*BackRepoAttributeGroupStruct) GetDB

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) GetDB() db.DBInterface

func (*BackRepoAttributeGroupStruct) GetStage

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoAttributeGroupStruct) ResetReversePointers

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAttributeGroupStruct) ResetReversePointersInstance

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, attributegroup *models.AttributeGroup) (Error error)

func (*BackRepoAttributeGroupStruct) RestorePhaseOne

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoAttributeGroupStruct) RestorePhaseTwo

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) RestorePhaseTwo()

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

func (*BackRepoAttributeGroupStruct) RestoreXLPhaseOne

func (backRepoAttributeGroup *BackRepoAttributeGroupStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "AttributeGroup" sheet all AttributeGroupDB instances

type BackRepoAttributeStruct

type BackRepoAttributeStruct struct {
	// stores AttributeDB according to their gorm ID
	Map_AttributeDBID_AttributeDB map[uint]*AttributeDB

	// stores AttributeDB ID according to Attribute address
	Map_AttributePtr_AttributeDBID map[*models.Attribute]uint

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

func (*BackRepoAttributeStruct) Backup

func (backRepoAttribute *BackRepoAttributeStruct) Backup(dirPath string)

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

func (*BackRepoAttributeStruct) BackupXL

func (backRepoAttribute *BackRepoAttributeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoAttributeStruct) CheckoutPhaseOne

func (backRepoAttribute *BackRepoAttributeStruct) CheckoutPhaseOne() (Error error)

BackRepoAttribute.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 (*BackRepoAttributeStruct) CheckoutPhaseOneInstance

func (backRepoAttribute *BackRepoAttributeStruct) CheckoutPhaseOneInstance(attributeDB *AttributeDB) (Error error)

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

func (*BackRepoAttributeStruct) CheckoutPhaseTwo

func (backRepoAttribute *BackRepoAttributeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAttributeStruct) CheckoutPhaseTwoInstance

func (backRepoAttribute *BackRepoAttributeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, attributeDB *AttributeDB) (Error error)

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

func (*BackRepoAttributeStruct) CommitDeleteInstance

func (backRepoAttribute *BackRepoAttributeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoAttribute.CommitDeleteInstance commits deletion of Attribute to the BackRepo

func (*BackRepoAttributeStruct) CommitPhaseOne

func (backRepoAttribute *BackRepoAttributeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoAttribute.CommitPhaseOne commits all staged instances of Attribute 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 (*BackRepoAttributeStruct) CommitPhaseOneInstance

func (backRepoAttribute *BackRepoAttributeStruct) CommitPhaseOneInstance(attribute *models.Attribute) (Error error)

BackRepoAttribute.CommitPhaseOneInstance commits attribute staged instances of Attribute 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 (*BackRepoAttributeStruct) CommitPhaseTwo

func (backRepoAttribute *BackRepoAttributeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAttributeStruct) CommitPhaseTwoInstance

func (backRepoAttribute *BackRepoAttributeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, attribute *models.Attribute) (Error error)

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

func (*BackRepoAttributeStruct) GetAttributeDBFromAttributePtr

func (backRepoAttribute *BackRepoAttributeStruct) GetAttributeDBFromAttributePtr(attribute *models.Attribute) (attributeDB *AttributeDB)

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

func (*BackRepoAttributeStruct) GetDB

func (backRepoAttribute *BackRepoAttributeStruct) GetDB() db.DBInterface

func (*BackRepoAttributeStruct) GetStage

func (backRepoAttribute *BackRepoAttributeStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoAttributeStruct) ResetReversePointers

func (backRepoAttribute *BackRepoAttributeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoAttributeStruct) ResetReversePointersInstance

func (backRepoAttribute *BackRepoAttributeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, attribute *models.Attribute) (Error error)

func (*BackRepoAttributeStruct) RestorePhaseOne

func (backRepoAttribute *BackRepoAttributeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoAttributeStruct) RestorePhaseTwo

func (backRepoAttribute *BackRepoAttributeStruct) RestorePhaseTwo()

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

func (*BackRepoAttributeStruct) RestoreXLPhaseOne

func (backRepoAttribute *BackRepoAttributeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Attribute" sheet all AttributeDB instances

type BackRepoChoiceStruct

type BackRepoChoiceStruct struct {
	// stores ChoiceDB according to their gorm ID
	Map_ChoiceDBID_ChoiceDB map[uint]*ChoiceDB

	// stores ChoiceDB ID according to Choice address
	Map_ChoicePtr_ChoiceDBID map[*models.Choice]uint

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

func (*BackRepoChoiceStruct) Backup

func (backRepoChoice *BackRepoChoiceStruct) Backup(dirPath string)

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

func (*BackRepoChoiceStruct) BackupXL

func (backRepoChoice *BackRepoChoiceStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoChoiceStruct) CheckoutPhaseOne

func (backRepoChoice *BackRepoChoiceStruct) CheckoutPhaseOne() (Error error)

BackRepoChoice.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 (*BackRepoChoiceStruct) CheckoutPhaseOneInstance

func (backRepoChoice *BackRepoChoiceStruct) CheckoutPhaseOneInstance(choiceDB *ChoiceDB) (Error error)

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

func (*BackRepoChoiceStruct) CheckoutPhaseTwo

func (backRepoChoice *BackRepoChoiceStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoChoiceStruct) CheckoutPhaseTwoInstance

func (backRepoChoice *BackRepoChoiceStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, choiceDB *ChoiceDB) (Error error)

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

func (*BackRepoChoiceStruct) CommitDeleteInstance

func (backRepoChoice *BackRepoChoiceStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoChoice.CommitDeleteInstance commits deletion of Choice to the BackRepo

func (*BackRepoChoiceStruct) CommitPhaseOne

func (backRepoChoice *BackRepoChoiceStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoChoice.CommitPhaseOne commits all staged instances of Choice 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 (*BackRepoChoiceStruct) CommitPhaseOneInstance

func (backRepoChoice *BackRepoChoiceStruct) CommitPhaseOneInstance(choice *models.Choice) (Error error)

BackRepoChoice.CommitPhaseOneInstance commits choice staged instances of Choice 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 (*BackRepoChoiceStruct) CommitPhaseTwo

func (backRepoChoice *BackRepoChoiceStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoChoiceStruct) CommitPhaseTwoInstance

func (backRepoChoice *BackRepoChoiceStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, choice *models.Choice) (Error error)

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

func (*BackRepoChoiceStruct) GetChoiceDBFromChoicePtr

func (backRepoChoice *BackRepoChoiceStruct) GetChoiceDBFromChoicePtr(choice *models.Choice) (choiceDB *ChoiceDB)

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

func (*BackRepoChoiceStruct) GetDB

func (backRepoChoice *BackRepoChoiceStruct) GetDB() db.DBInterface

func (*BackRepoChoiceStruct) GetStage

func (backRepoChoice *BackRepoChoiceStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoChoiceStruct) ResetReversePointers

func (backRepoChoice *BackRepoChoiceStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoChoiceStruct) ResetReversePointersInstance

func (backRepoChoice *BackRepoChoiceStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, choice *models.Choice) (Error error)

func (*BackRepoChoiceStruct) RestorePhaseOne

func (backRepoChoice *BackRepoChoiceStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoChoiceStruct) RestorePhaseTwo

func (backRepoChoice *BackRepoChoiceStruct) RestorePhaseTwo()

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

func (*BackRepoChoiceStruct) RestoreXLPhaseOne

func (backRepoChoice *BackRepoChoiceStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Choice" sheet all ChoiceDB instances

type BackRepoComplexContentStruct

type BackRepoComplexContentStruct struct {
	// stores ComplexContentDB according to their gorm ID
	Map_ComplexContentDBID_ComplexContentDB map[uint]*ComplexContentDB

	// stores ComplexContentDB ID according to ComplexContent address
	Map_ComplexContentPtr_ComplexContentDBID map[*models.ComplexContent]uint

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

func (*BackRepoComplexContentStruct) Backup

func (backRepoComplexContent *BackRepoComplexContentStruct) Backup(dirPath string)

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

func (*BackRepoComplexContentStruct) BackupXL

func (backRepoComplexContent *BackRepoComplexContentStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoComplexContentStruct) CheckoutPhaseOne

func (backRepoComplexContent *BackRepoComplexContentStruct) CheckoutPhaseOne() (Error error)

BackRepoComplexContent.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 (*BackRepoComplexContentStruct) CheckoutPhaseOneInstance

func (backRepoComplexContent *BackRepoComplexContentStruct) CheckoutPhaseOneInstance(complexcontentDB *ComplexContentDB) (Error error)

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

func (*BackRepoComplexContentStruct) CheckoutPhaseTwo

func (backRepoComplexContent *BackRepoComplexContentStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoComplexContentStruct) CheckoutPhaseTwoInstance

func (backRepoComplexContent *BackRepoComplexContentStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, complexcontentDB *ComplexContentDB) (Error error)

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

func (*BackRepoComplexContentStruct) CommitDeleteInstance

func (backRepoComplexContent *BackRepoComplexContentStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoComplexContent.CommitDeleteInstance commits deletion of ComplexContent to the BackRepo

func (*BackRepoComplexContentStruct) CommitPhaseOne

func (backRepoComplexContent *BackRepoComplexContentStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoComplexContent.CommitPhaseOne commits all staged instances of ComplexContent 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 (*BackRepoComplexContentStruct) CommitPhaseOneInstance

func (backRepoComplexContent *BackRepoComplexContentStruct) CommitPhaseOneInstance(complexcontent *models.ComplexContent) (Error error)

BackRepoComplexContent.CommitPhaseOneInstance commits complexcontent staged instances of ComplexContent 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 (*BackRepoComplexContentStruct) CommitPhaseTwo

func (backRepoComplexContent *BackRepoComplexContentStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoComplexContentStruct) CommitPhaseTwoInstance

func (backRepoComplexContent *BackRepoComplexContentStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, complexcontent *models.ComplexContent) (Error error)

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

func (*BackRepoComplexContentStruct) GetComplexContentDBFromComplexContentPtr

func (backRepoComplexContent *BackRepoComplexContentStruct) GetComplexContentDBFromComplexContentPtr(complexcontent *models.ComplexContent) (complexcontentDB *ComplexContentDB)

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

func (*BackRepoComplexContentStruct) GetDB

func (backRepoComplexContent *BackRepoComplexContentStruct) GetDB() db.DBInterface

func (*BackRepoComplexContentStruct) GetStage

func (backRepoComplexContent *BackRepoComplexContentStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoComplexContentStruct) ResetReversePointers

func (backRepoComplexContent *BackRepoComplexContentStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoComplexContentStruct) ResetReversePointersInstance

func (backRepoComplexContent *BackRepoComplexContentStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, complexcontent *models.ComplexContent) (Error error)

func (*BackRepoComplexContentStruct) RestorePhaseOne

func (backRepoComplexContent *BackRepoComplexContentStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoComplexContentStruct) RestorePhaseTwo

func (backRepoComplexContent *BackRepoComplexContentStruct) RestorePhaseTwo()

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

func (*BackRepoComplexContentStruct) RestoreXLPhaseOne

func (backRepoComplexContent *BackRepoComplexContentStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "ComplexContent" sheet all ComplexContentDB instances

type BackRepoComplexTypeStruct

type BackRepoComplexTypeStruct struct {
	// stores ComplexTypeDB according to their gorm ID
	Map_ComplexTypeDBID_ComplexTypeDB map[uint]*ComplexTypeDB

	// stores ComplexTypeDB ID according to ComplexType address
	Map_ComplexTypePtr_ComplexTypeDBID map[*models.ComplexType]uint

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

func (*BackRepoComplexTypeStruct) Backup

func (backRepoComplexType *BackRepoComplexTypeStruct) Backup(dirPath string)

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

func (*BackRepoComplexTypeStruct) BackupXL

func (backRepoComplexType *BackRepoComplexTypeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoComplexTypeStruct) CheckoutPhaseOne

func (backRepoComplexType *BackRepoComplexTypeStruct) CheckoutPhaseOne() (Error error)

BackRepoComplexType.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 (*BackRepoComplexTypeStruct) CheckoutPhaseOneInstance

func (backRepoComplexType *BackRepoComplexTypeStruct) CheckoutPhaseOneInstance(complextypeDB *ComplexTypeDB) (Error error)

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

func (*BackRepoComplexTypeStruct) CheckoutPhaseTwo

func (backRepoComplexType *BackRepoComplexTypeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoComplexTypeStruct) CheckoutPhaseTwoInstance

func (backRepoComplexType *BackRepoComplexTypeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, complextypeDB *ComplexTypeDB) (Error error)

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

func (*BackRepoComplexTypeStruct) CommitDeleteInstance

func (backRepoComplexType *BackRepoComplexTypeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoComplexType.CommitDeleteInstance commits deletion of ComplexType to the BackRepo

func (*BackRepoComplexTypeStruct) CommitPhaseOne

func (backRepoComplexType *BackRepoComplexTypeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoComplexType.CommitPhaseOne commits all staged instances of ComplexType 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 (*BackRepoComplexTypeStruct) CommitPhaseOneInstance

func (backRepoComplexType *BackRepoComplexTypeStruct) CommitPhaseOneInstance(complextype *models.ComplexType) (Error error)

BackRepoComplexType.CommitPhaseOneInstance commits complextype staged instances of ComplexType 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 (*BackRepoComplexTypeStruct) CommitPhaseTwo

func (backRepoComplexType *BackRepoComplexTypeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoComplexTypeStruct) CommitPhaseTwoInstance

func (backRepoComplexType *BackRepoComplexTypeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, complextype *models.ComplexType) (Error error)

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

func (*BackRepoComplexTypeStruct) GetComplexTypeDBFromComplexTypePtr

func (backRepoComplexType *BackRepoComplexTypeStruct) GetComplexTypeDBFromComplexTypePtr(complextype *models.ComplexType) (complextypeDB *ComplexTypeDB)

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

func (*BackRepoComplexTypeStruct) GetDB

func (backRepoComplexType *BackRepoComplexTypeStruct) GetDB() db.DBInterface

func (*BackRepoComplexTypeStruct) GetStage

func (backRepoComplexType *BackRepoComplexTypeStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoComplexTypeStruct) ResetReversePointers

func (backRepoComplexType *BackRepoComplexTypeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoComplexTypeStruct) ResetReversePointersInstance

func (backRepoComplexType *BackRepoComplexTypeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, complextype *models.ComplexType) (Error error)

func (*BackRepoComplexTypeStruct) RestorePhaseOne

func (backRepoComplexType *BackRepoComplexTypeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoComplexTypeStruct) RestorePhaseTwo

func (backRepoComplexType *BackRepoComplexTypeStruct) RestorePhaseTwo()

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

func (*BackRepoComplexTypeStruct) RestoreXLPhaseOne

func (backRepoComplexType *BackRepoComplexTypeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "ComplexType" sheet all ComplexTypeDB instances

type BackRepoData

type BackRepoData struct {
	AllAPIs []*AllAPI

	AnnotationAPIs []*AnnotationAPI

	AttributeAPIs []*AttributeAPI

	AttributeGroupAPIs []*AttributeGroupAPI

	ChoiceAPIs []*ChoiceAPI

	ComplexContentAPIs []*ComplexContentAPI

	ComplexTypeAPIs []*ComplexTypeAPI

	DocumentationAPIs []*DocumentationAPI

	ElementAPIs []*ElementAPI

	EnumerationAPIs []*EnumerationAPI

	ExtensionAPIs []*ExtensionAPI

	GroupAPIs []*GroupAPI

	LengthAPIs []*LengthAPI

	MaxInclusiveAPIs []*MaxInclusiveAPI

	MaxLengthAPIs []*MaxLengthAPI

	MinInclusiveAPIs []*MinInclusiveAPI

	MinLengthAPIs []*MinLengthAPI

	PatternAPIs []*PatternAPI

	RestrictionAPIs []*RestrictionAPI

	SchemaAPIs []*SchemaAPI

	SequenceAPIs []*SequenceAPI

	SimpleContentAPIs []*SimpleContentAPI

	SimpleTypeAPIs []*SimpleTypeAPI

	TotalDigitAPIs []*TotalDigitAPI

	UnionAPIs []*UnionAPI

	WhiteSpaceAPIs []*WhiteSpaceAPI
}

type BackRepoDocumentationStruct

type BackRepoDocumentationStruct struct {
	// stores DocumentationDB according to their gorm ID
	Map_DocumentationDBID_DocumentationDB map[uint]*DocumentationDB

	// stores DocumentationDB ID according to Documentation address
	Map_DocumentationPtr_DocumentationDBID map[*models.Documentation]uint

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

func (*BackRepoDocumentationStruct) Backup

func (backRepoDocumentation *BackRepoDocumentationStruct) Backup(dirPath string)

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

func (*BackRepoDocumentationStruct) BackupXL

func (backRepoDocumentation *BackRepoDocumentationStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoDocumentationStruct) CheckoutPhaseOne

func (backRepoDocumentation *BackRepoDocumentationStruct) CheckoutPhaseOne() (Error error)

BackRepoDocumentation.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 (*BackRepoDocumentationStruct) CheckoutPhaseOneInstance

func (backRepoDocumentation *BackRepoDocumentationStruct) CheckoutPhaseOneInstance(documentationDB *DocumentationDB) (Error error)

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

func (*BackRepoDocumentationStruct) CheckoutPhaseTwo

func (backRepoDocumentation *BackRepoDocumentationStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoDocumentationStruct) CheckoutPhaseTwoInstance

func (backRepoDocumentation *BackRepoDocumentationStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, documentationDB *DocumentationDB) (Error error)

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

func (*BackRepoDocumentationStruct) CommitDeleteInstance

func (backRepoDocumentation *BackRepoDocumentationStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoDocumentation.CommitDeleteInstance commits deletion of Documentation to the BackRepo

func (*BackRepoDocumentationStruct) CommitPhaseOne

func (backRepoDocumentation *BackRepoDocumentationStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoDocumentation.CommitPhaseOne commits all staged instances of Documentation 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 (*BackRepoDocumentationStruct) CommitPhaseOneInstance

func (backRepoDocumentation *BackRepoDocumentationStruct) CommitPhaseOneInstance(documentation *models.Documentation) (Error error)

BackRepoDocumentation.CommitPhaseOneInstance commits documentation staged instances of Documentation 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 (*BackRepoDocumentationStruct) CommitPhaseTwo

func (backRepoDocumentation *BackRepoDocumentationStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoDocumentationStruct) CommitPhaseTwoInstance

func (backRepoDocumentation *BackRepoDocumentationStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, documentation *models.Documentation) (Error error)

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

func (*BackRepoDocumentationStruct) GetDB

func (backRepoDocumentation *BackRepoDocumentationStruct) GetDB() db.DBInterface

func (*BackRepoDocumentationStruct) GetDocumentationDBFromDocumentationPtr

func (backRepoDocumentation *BackRepoDocumentationStruct) GetDocumentationDBFromDocumentationPtr(documentation *models.Documentation) (documentationDB *DocumentationDB)

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

func (*BackRepoDocumentationStruct) GetStage

func (backRepoDocumentation *BackRepoDocumentationStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoDocumentationStruct) ResetReversePointers

func (backRepoDocumentation *BackRepoDocumentationStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoDocumentationStruct) ResetReversePointersInstance

func (backRepoDocumentation *BackRepoDocumentationStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, documentation *models.Documentation) (Error error)

func (*BackRepoDocumentationStruct) RestorePhaseOne

func (backRepoDocumentation *BackRepoDocumentationStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoDocumentationStruct) RestorePhaseTwo

func (backRepoDocumentation *BackRepoDocumentationStruct) RestorePhaseTwo()

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

func (*BackRepoDocumentationStruct) RestoreXLPhaseOne

func (backRepoDocumentation *BackRepoDocumentationStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Documentation" sheet all DocumentationDB instances

type BackRepoElementStruct

type BackRepoElementStruct struct {
	// stores ElementDB according to their gorm ID
	Map_ElementDBID_ElementDB map[uint]*ElementDB

	// stores ElementDB ID according to Element address
	Map_ElementPtr_ElementDBID map[*models.Element]uint

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

func (*BackRepoElementStruct) Backup

func (backRepoElement *BackRepoElementStruct) Backup(dirPath string)

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

func (*BackRepoElementStruct) BackupXL

func (backRepoElement *BackRepoElementStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoElementStruct) CheckoutPhaseOne

func (backRepoElement *BackRepoElementStruct) CheckoutPhaseOne() (Error error)

BackRepoElement.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 (*BackRepoElementStruct) CheckoutPhaseOneInstance

func (backRepoElement *BackRepoElementStruct) CheckoutPhaseOneInstance(elementDB *ElementDB) (Error error)

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

func (*BackRepoElementStruct) CheckoutPhaseTwo

func (backRepoElement *BackRepoElementStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoElementStruct) CheckoutPhaseTwoInstance

func (backRepoElement *BackRepoElementStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, elementDB *ElementDB) (Error error)

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

func (*BackRepoElementStruct) CommitDeleteInstance

func (backRepoElement *BackRepoElementStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoElement.CommitDeleteInstance commits deletion of Element to the BackRepo

func (*BackRepoElementStruct) CommitPhaseOne

func (backRepoElement *BackRepoElementStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoElement.CommitPhaseOne commits all staged instances of Element 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 (*BackRepoElementStruct) CommitPhaseOneInstance

func (backRepoElement *BackRepoElementStruct) CommitPhaseOneInstance(element *models.Element) (Error error)

BackRepoElement.CommitPhaseOneInstance commits element staged instances of Element 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 (*BackRepoElementStruct) CommitPhaseTwo

func (backRepoElement *BackRepoElementStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoElementStruct) CommitPhaseTwoInstance

func (backRepoElement *BackRepoElementStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, element *models.Element) (Error error)

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

func (*BackRepoElementStruct) GetDB

func (backRepoElement *BackRepoElementStruct) GetDB() db.DBInterface

func (*BackRepoElementStruct) GetElementDBFromElementPtr

func (backRepoElement *BackRepoElementStruct) GetElementDBFromElementPtr(element *models.Element) (elementDB *ElementDB)

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

func (*BackRepoElementStruct) GetStage

func (backRepoElement *BackRepoElementStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoElementStruct) ResetReversePointers

func (backRepoElement *BackRepoElementStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoElementStruct) ResetReversePointersInstance

func (backRepoElement *BackRepoElementStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, element *models.Element) (Error error)

func (*BackRepoElementStruct) RestorePhaseOne

func (backRepoElement *BackRepoElementStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoElementStruct) RestorePhaseTwo

func (backRepoElement *BackRepoElementStruct) RestorePhaseTwo()

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

func (*BackRepoElementStruct) RestoreXLPhaseOne

func (backRepoElement *BackRepoElementStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Element" sheet all ElementDB instances

type BackRepoEnumerationStruct

type BackRepoEnumerationStruct struct {
	// stores EnumerationDB according to their gorm ID
	Map_EnumerationDBID_EnumerationDB map[uint]*EnumerationDB

	// stores EnumerationDB ID according to Enumeration address
	Map_EnumerationPtr_EnumerationDBID map[*models.Enumeration]uint

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

func (*BackRepoEnumerationStruct) Backup

func (backRepoEnumeration *BackRepoEnumerationStruct) Backup(dirPath string)

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

func (*BackRepoEnumerationStruct) BackupXL

func (backRepoEnumeration *BackRepoEnumerationStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoEnumerationStruct) CheckoutPhaseOne

func (backRepoEnumeration *BackRepoEnumerationStruct) CheckoutPhaseOne() (Error error)

BackRepoEnumeration.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 (*BackRepoEnumerationStruct) CheckoutPhaseOneInstance

func (backRepoEnumeration *BackRepoEnumerationStruct) CheckoutPhaseOneInstance(enumerationDB *EnumerationDB) (Error error)

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

func (*BackRepoEnumerationStruct) CheckoutPhaseTwo

func (backRepoEnumeration *BackRepoEnumerationStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoEnumerationStruct) CheckoutPhaseTwoInstance

func (backRepoEnumeration *BackRepoEnumerationStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, enumerationDB *EnumerationDB) (Error error)

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

func (*BackRepoEnumerationStruct) CommitDeleteInstance

func (backRepoEnumeration *BackRepoEnumerationStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoEnumeration.CommitDeleteInstance commits deletion of Enumeration to the BackRepo

func (*BackRepoEnumerationStruct) CommitPhaseOne

func (backRepoEnumeration *BackRepoEnumerationStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoEnumeration.CommitPhaseOne commits all staged instances of Enumeration 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 (*BackRepoEnumerationStruct) CommitPhaseOneInstance

func (backRepoEnumeration *BackRepoEnumerationStruct) CommitPhaseOneInstance(enumeration *models.Enumeration) (Error error)

BackRepoEnumeration.CommitPhaseOneInstance commits enumeration staged instances of Enumeration 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 (*BackRepoEnumerationStruct) CommitPhaseTwo

func (backRepoEnumeration *BackRepoEnumerationStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoEnumerationStruct) CommitPhaseTwoInstance

func (backRepoEnumeration *BackRepoEnumerationStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, enumeration *models.Enumeration) (Error error)

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

func (*BackRepoEnumerationStruct) GetDB

func (backRepoEnumeration *BackRepoEnumerationStruct) GetDB() db.DBInterface

func (*BackRepoEnumerationStruct) GetEnumerationDBFromEnumerationPtr

func (backRepoEnumeration *BackRepoEnumerationStruct) GetEnumerationDBFromEnumerationPtr(enumeration *models.Enumeration) (enumerationDB *EnumerationDB)

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

func (*BackRepoEnumerationStruct) GetStage

func (backRepoEnumeration *BackRepoEnumerationStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoEnumerationStruct) ResetReversePointers

func (backRepoEnumeration *BackRepoEnumerationStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoEnumerationStruct) ResetReversePointersInstance

func (backRepoEnumeration *BackRepoEnumerationStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, enumeration *models.Enumeration) (Error error)

func (*BackRepoEnumerationStruct) RestorePhaseOne

func (backRepoEnumeration *BackRepoEnumerationStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoEnumerationStruct) RestorePhaseTwo

func (backRepoEnumeration *BackRepoEnumerationStruct) RestorePhaseTwo()

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

func (*BackRepoEnumerationStruct) RestoreXLPhaseOne

func (backRepoEnumeration *BackRepoEnumerationStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Enumeration" sheet all EnumerationDB instances

type BackRepoExtensionStruct

type BackRepoExtensionStruct struct {
	// stores ExtensionDB according to their gorm ID
	Map_ExtensionDBID_ExtensionDB map[uint]*ExtensionDB

	// stores ExtensionDB ID according to Extension address
	Map_ExtensionPtr_ExtensionDBID map[*models.Extension]uint

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

func (*BackRepoExtensionStruct) Backup

func (backRepoExtension *BackRepoExtensionStruct) Backup(dirPath string)

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

func (*BackRepoExtensionStruct) BackupXL

func (backRepoExtension *BackRepoExtensionStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoExtensionStruct) CheckoutPhaseOne

func (backRepoExtension *BackRepoExtensionStruct) CheckoutPhaseOne() (Error error)

BackRepoExtension.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 (*BackRepoExtensionStruct) CheckoutPhaseOneInstance

func (backRepoExtension *BackRepoExtensionStruct) CheckoutPhaseOneInstance(extensionDB *ExtensionDB) (Error error)

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

func (*BackRepoExtensionStruct) CheckoutPhaseTwo

func (backRepoExtension *BackRepoExtensionStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoExtensionStruct) CheckoutPhaseTwoInstance

func (backRepoExtension *BackRepoExtensionStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, extensionDB *ExtensionDB) (Error error)

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

func (*BackRepoExtensionStruct) CommitDeleteInstance

func (backRepoExtension *BackRepoExtensionStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoExtension.CommitDeleteInstance commits deletion of Extension to the BackRepo

func (*BackRepoExtensionStruct) CommitPhaseOne

func (backRepoExtension *BackRepoExtensionStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoExtension.CommitPhaseOne commits all staged instances of Extension 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 (*BackRepoExtensionStruct) CommitPhaseOneInstance

func (backRepoExtension *BackRepoExtensionStruct) CommitPhaseOneInstance(extension *models.Extension) (Error error)

BackRepoExtension.CommitPhaseOneInstance commits extension staged instances of Extension 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 (*BackRepoExtensionStruct) CommitPhaseTwo

func (backRepoExtension *BackRepoExtensionStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoExtensionStruct) CommitPhaseTwoInstance

func (backRepoExtension *BackRepoExtensionStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, extension *models.Extension) (Error error)

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

func (*BackRepoExtensionStruct) GetDB

func (backRepoExtension *BackRepoExtensionStruct) GetDB() db.DBInterface

func (*BackRepoExtensionStruct) GetExtensionDBFromExtensionPtr

func (backRepoExtension *BackRepoExtensionStruct) GetExtensionDBFromExtensionPtr(extension *models.Extension) (extensionDB *ExtensionDB)

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

func (*BackRepoExtensionStruct) GetStage

func (backRepoExtension *BackRepoExtensionStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoExtensionStruct) ResetReversePointers

func (backRepoExtension *BackRepoExtensionStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoExtensionStruct) ResetReversePointersInstance

func (backRepoExtension *BackRepoExtensionStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, extension *models.Extension) (Error error)

func (*BackRepoExtensionStruct) RestorePhaseOne

func (backRepoExtension *BackRepoExtensionStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoExtensionStruct) RestorePhaseTwo

func (backRepoExtension *BackRepoExtensionStruct) RestorePhaseTwo()

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

func (*BackRepoExtensionStruct) RestoreXLPhaseOne

func (backRepoExtension *BackRepoExtensionStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Extension" sheet all ExtensionDB instances

type BackRepoGroupStruct

type BackRepoGroupStruct struct {
	// stores GroupDB according to their gorm ID
	Map_GroupDBID_GroupDB map[uint]*GroupDB

	// stores GroupDB ID according to Group address
	Map_GroupPtr_GroupDBID map[*models.Group]uint

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

func (*BackRepoGroupStruct) Backup

func (backRepoGroup *BackRepoGroupStruct) Backup(dirPath string)

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

func (*BackRepoGroupStruct) BackupXL

func (backRepoGroup *BackRepoGroupStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoGroupStruct) CheckoutPhaseOne

func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseOne() (Error error)

BackRepoGroup.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 (*BackRepoGroupStruct) CheckoutPhaseOneInstance

func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseOneInstance(groupDB *GroupDB) (Error error)

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

func (*BackRepoGroupStruct) CheckoutPhaseTwo

func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoGroupStruct) CheckoutPhaseTwoInstance

func (backRepoGroup *BackRepoGroupStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, groupDB *GroupDB) (Error error)

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

func (*BackRepoGroupStruct) CommitDeleteInstance

func (backRepoGroup *BackRepoGroupStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoGroup.CommitDeleteInstance commits deletion of Group to the BackRepo

func (*BackRepoGroupStruct) CommitPhaseOne

func (backRepoGroup *BackRepoGroupStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoGroup.CommitPhaseOne commits all staged instances of Group 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 (*BackRepoGroupStruct) CommitPhaseOneInstance

func (backRepoGroup *BackRepoGroupStruct) CommitPhaseOneInstance(group *models.Group) (Error error)

BackRepoGroup.CommitPhaseOneInstance commits group staged instances of Group 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 (*BackRepoGroupStruct) CommitPhaseTwo

func (backRepoGroup *BackRepoGroupStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoGroupStruct) CommitPhaseTwoInstance

func (backRepoGroup *BackRepoGroupStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, group *models.Group) (Error error)

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

func (*BackRepoGroupStruct) GetDB

func (backRepoGroup *BackRepoGroupStruct) GetDB() db.DBInterface

func (*BackRepoGroupStruct) GetGroupDBFromGroupPtr

func (backRepoGroup *BackRepoGroupStruct) GetGroupDBFromGroupPtr(group *models.Group) (groupDB *GroupDB)

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

func (*BackRepoGroupStruct) GetStage

func (backRepoGroup *BackRepoGroupStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoGroupStruct) ResetReversePointers

func (backRepoGroup *BackRepoGroupStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoGroupStruct) ResetReversePointersInstance

func (backRepoGroup *BackRepoGroupStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, group *models.Group) (Error error)

func (*BackRepoGroupStruct) RestorePhaseOne

func (backRepoGroup *BackRepoGroupStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoGroupStruct) RestorePhaseTwo

func (backRepoGroup *BackRepoGroupStruct) RestorePhaseTwo()

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

func (*BackRepoGroupStruct) RestoreXLPhaseOne

func (backRepoGroup *BackRepoGroupStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Group" sheet all GroupDB instances

type BackRepoLengthStruct

type BackRepoLengthStruct struct {
	// stores LengthDB according to their gorm ID
	Map_LengthDBID_LengthDB map[uint]*LengthDB

	// stores LengthDB ID according to Length address
	Map_LengthPtr_LengthDBID map[*models.Length]uint

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

func (*BackRepoLengthStruct) Backup

func (backRepoLength *BackRepoLengthStruct) Backup(dirPath string)

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

func (*BackRepoLengthStruct) BackupXL

func (backRepoLength *BackRepoLengthStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoLengthStruct) CheckoutPhaseOne

func (backRepoLength *BackRepoLengthStruct) CheckoutPhaseOne() (Error error)

BackRepoLength.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 (*BackRepoLengthStruct) CheckoutPhaseOneInstance

func (backRepoLength *BackRepoLengthStruct) CheckoutPhaseOneInstance(lengthDB *LengthDB) (Error error)

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

func (*BackRepoLengthStruct) CheckoutPhaseTwo

func (backRepoLength *BackRepoLengthStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLengthStruct) CheckoutPhaseTwoInstance

func (backRepoLength *BackRepoLengthStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, lengthDB *LengthDB) (Error error)

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

func (*BackRepoLengthStruct) CommitDeleteInstance

func (backRepoLength *BackRepoLengthStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoLength.CommitDeleteInstance commits deletion of Length to the BackRepo

func (*BackRepoLengthStruct) CommitPhaseOne

func (backRepoLength *BackRepoLengthStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoLength.CommitPhaseOne commits all staged instances of Length 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 (*BackRepoLengthStruct) CommitPhaseOneInstance

func (backRepoLength *BackRepoLengthStruct) CommitPhaseOneInstance(length *models.Length) (Error error)

BackRepoLength.CommitPhaseOneInstance commits length staged instances of Length 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 (*BackRepoLengthStruct) CommitPhaseTwo

func (backRepoLength *BackRepoLengthStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLengthStruct) CommitPhaseTwoInstance

func (backRepoLength *BackRepoLengthStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, length *models.Length) (Error error)

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

func (*BackRepoLengthStruct) GetDB

func (backRepoLength *BackRepoLengthStruct) GetDB() db.DBInterface

func (*BackRepoLengthStruct) GetLengthDBFromLengthPtr

func (backRepoLength *BackRepoLengthStruct) GetLengthDBFromLengthPtr(length *models.Length) (lengthDB *LengthDB)

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

func (*BackRepoLengthStruct) GetStage

func (backRepoLength *BackRepoLengthStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoLengthStruct) ResetReversePointers

func (backRepoLength *BackRepoLengthStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoLengthStruct) ResetReversePointersInstance

func (backRepoLength *BackRepoLengthStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, length *models.Length) (Error error)

func (*BackRepoLengthStruct) RestorePhaseOne

func (backRepoLength *BackRepoLengthStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoLengthStruct) RestorePhaseTwo

func (backRepoLength *BackRepoLengthStruct) RestorePhaseTwo()

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

func (*BackRepoLengthStruct) RestoreXLPhaseOne

func (backRepoLength *BackRepoLengthStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Length" sheet all LengthDB instances

type BackRepoMaxInclusiveStruct

type BackRepoMaxInclusiveStruct struct {
	// stores MaxInclusiveDB according to their gorm ID
	Map_MaxInclusiveDBID_MaxInclusiveDB map[uint]*MaxInclusiveDB

	// stores MaxInclusiveDB ID according to MaxInclusive address
	Map_MaxInclusivePtr_MaxInclusiveDBID map[*models.MaxInclusive]uint

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

func (*BackRepoMaxInclusiveStruct) Backup

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) Backup(dirPath string)

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

func (*BackRepoMaxInclusiveStruct) BackupXL

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoMaxInclusiveStruct) CheckoutPhaseOne

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CheckoutPhaseOne() (Error error)

BackRepoMaxInclusive.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 (*BackRepoMaxInclusiveStruct) CheckoutPhaseOneInstance

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CheckoutPhaseOneInstance(maxinclusiveDB *MaxInclusiveDB) (Error error)

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

func (*BackRepoMaxInclusiveStruct) CheckoutPhaseTwo

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMaxInclusiveStruct) CheckoutPhaseTwoInstance

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, maxinclusiveDB *MaxInclusiveDB) (Error error)

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

func (*BackRepoMaxInclusiveStruct) CommitDeleteInstance

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMaxInclusive.CommitDeleteInstance commits deletion of MaxInclusive to the BackRepo

func (*BackRepoMaxInclusiveStruct) CommitPhaseOne

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMaxInclusive.CommitPhaseOne commits all staged instances of MaxInclusive 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 (*BackRepoMaxInclusiveStruct) CommitPhaseOneInstance

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CommitPhaseOneInstance(maxinclusive *models.MaxInclusive) (Error error)

BackRepoMaxInclusive.CommitPhaseOneInstance commits maxinclusive staged instances of MaxInclusive 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 (*BackRepoMaxInclusiveStruct) CommitPhaseTwo

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMaxInclusiveStruct) CommitPhaseTwoInstance

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, maxinclusive *models.MaxInclusive) (Error error)

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

func (*BackRepoMaxInclusiveStruct) GetDB

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) GetDB() db.DBInterface

func (*BackRepoMaxInclusiveStruct) GetMaxInclusiveDBFromMaxInclusivePtr

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) GetMaxInclusiveDBFromMaxInclusivePtr(maxinclusive *models.MaxInclusive) (maxinclusiveDB *MaxInclusiveDB)

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

func (*BackRepoMaxInclusiveStruct) GetStage

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMaxInclusiveStruct) ResetReversePointers

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMaxInclusiveStruct) ResetReversePointersInstance

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, maxinclusive *models.MaxInclusive) (Error error)

func (*BackRepoMaxInclusiveStruct) RestorePhaseOne

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoMaxInclusiveStruct) RestorePhaseTwo

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) RestorePhaseTwo()

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

func (*BackRepoMaxInclusiveStruct) RestoreXLPhaseOne

func (backRepoMaxInclusive *BackRepoMaxInclusiveStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "MaxInclusive" sheet all MaxInclusiveDB instances

type BackRepoMaxLengthStruct

type BackRepoMaxLengthStruct struct {
	// stores MaxLengthDB according to their gorm ID
	Map_MaxLengthDBID_MaxLengthDB map[uint]*MaxLengthDB

	// stores MaxLengthDB ID according to MaxLength address
	Map_MaxLengthPtr_MaxLengthDBID map[*models.MaxLength]uint

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

func (*BackRepoMaxLengthStruct) Backup

func (backRepoMaxLength *BackRepoMaxLengthStruct) Backup(dirPath string)

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

func (*BackRepoMaxLengthStruct) BackupXL

func (backRepoMaxLength *BackRepoMaxLengthStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoMaxLengthStruct) CheckoutPhaseOne

func (backRepoMaxLength *BackRepoMaxLengthStruct) CheckoutPhaseOne() (Error error)

BackRepoMaxLength.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 (*BackRepoMaxLengthStruct) CheckoutPhaseOneInstance

func (backRepoMaxLength *BackRepoMaxLengthStruct) CheckoutPhaseOneInstance(maxlengthDB *MaxLengthDB) (Error error)

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

func (*BackRepoMaxLengthStruct) CheckoutPhaseTwo

func (backRepoMaxLength *BackRepoMaxLengthStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMaxLengthStruct) CheckoutPhaseTwoInstance

func (backRepoMaxLength *BackRepoMaxLengthStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, maxlengthDB *MaxLengthDB) (Error error)

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

func (*BackRepoMaxLengthStruct) CommitDeleteInstance

func (backRepoMaxLength *BackRepoMaxLengthStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMaxLength.CommitDeleteInstance commits deletion of MaxLength to the BackRepo

func (*BackRepoMaxLengthStruct) CommitPhaseOne

func (backRepoMaxLength *BackRepoMaxLengthStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMaxLength.CommitPhaseOne commits all staged instances of MaxLength 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 (*BackRepoMaxLengthStruct) CommitPhaseOneInstance

func (backRepoMaxLength *BackRepoMaxLengthStruct) CommitPhaseOneInstance(maxlength *models.MaxLength) (Error error)

BackRepoMaxLength.CommitPhaseOneInstance commits maxlength staged instances of MaxLength 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 (*BackRepoMaxLengthStruct) CommitPhaseTwo

func (backRepoMaxLength *BackRepoMaxLengthStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMaxLengthStruct) CommitPhaseTwoInstance

func (backRepoMaxLength *BackRepoMaxLengthStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, maxlength *models.MaxLength) (Error error)

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

func (*BackRepoMaxLengthStruct) GetDB

func (backRepoMaxLength *BackRepoMaxLengthStruct) GetDB() db.DBInterface

func (*BackRepoMaxLengthStruct) GetMaxLengthDBFromMaxLengthPtr

func (backRepoMaxLength *BackRepoMaxLengthStruct) GetMaxLengthDBFromMaxLengthPtr(maxlength *models.MaxLength) (maxlengthDB *MaxLengthDB)

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

func (*BackRepoMaxLengthStruct) GetStage

func (backRepoMaxLength *BackRepoMaxLengthStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMaxLengthStruct) ResetReversePointers

func (backRepoMaxLength *BackRepoMaxLengthStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMaxLengthStruct) ResetReversePointersInstance

func (backRepoMaxLength *BackRepoMaxLengthStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, maxlength *models.MaxLength) (Error error)

func (*BackRepoMaxLengthStruct) RestorePhaseOne

func (backRepoMaxLength *BackRepoMaxLengthStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoMaxLengthStruct) RestorePhaseTwo

func (backRepoMaxLength *BackRepoMaxLengthStruct) RestorePhaseTwo()

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

func (*BackRepoMaxLengthStruct) RestoreXLPhaseOne

func (backRepoMaxLength *BackRepoMaxLengthStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "MaxLength" sheet all MaxLengthDB instances

type BackRepoMinInclusiveStruct

type BackRepoMinInclusiveStruct struct {
	// stores MinInclusiveDB according to their gorm ID
	Map_MinInclusiveDBID_MinInclusiveDB map[uint]*MinInclusiveDB

	// stores MinInclusiveDB ID according to MinInclusive address
	Map_MinInclusivePtr_MinInclusiveDBID map[*models.MinInclusive]uint

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

func (*BackRepoMinInclusiveStruct) Backup

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) Backup(dirPath string)

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

func (*BackRepoMinInclusiveStruct) BackupXL

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoMinInclusiveStruct) CheckoutPhaseOne

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CheckoutPhaseOne() (Error error)

BackRepoMinInclusive.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 (*BackRepoMinInclusiveStruct) CheckoutPhaseOneInstance

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CheckoutPhaseOneInstance(mininclusiveDB *MinInclusiveDB) (Error error)

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

func (*BackRepoMinInclusiveStruct) CheckoutPhaseTwo

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMinInclusiveStruct) CheckoutPhaseTwoInstance

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, mininclusiveDB *MinInclusiveDB) (Error error)

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

func (*BackRepoMinInclusiveStruct) CommitDeleteInstance

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMinInclusive.CommitDeleteInstance commits deletion of MinInclusive to the BackRepo

func (*BackRepoMinInclusiveStruct) CommitPhaseOne

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMinInclusive.CommitPhaseOne commits all staged instances of MinInclusive 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 (*BackRepoMinInclusiveStruct) CommitPhaseOneInstance

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CommitPhaseOneInstance(mininclusive *models.MinInclusive) (Error error)

BackRepoMinInclusive.CommitPhaseOneInstance commits mininclusive staged instances of MinInclusive 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 (*BackRepoMinInclusiveStruct) CommitPhaseTwo

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMinInclusiveStruct) CommitPhaseTwoInstance

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, mininclusive *models.MinInclusive) (Error error)

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

func (*BackRepoMinInclusiveStruct) GetDB

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) GetDB() db.DBInterface

func (*BackRepoMinInclusiveStruct) GetMinInclusiveDBFromMinInclusivePtr

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) GetMinInclusiveDBFromMinInclusivePtr(mininclusive *models.MinInclusive) (mininclusiveDB *MinInclusiveDB)

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

func (*BackRepoMinInclusiveStruct) GetStage

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMinInclusiveStruct) ResetReversePointers

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMinInclusiveStruct) ResetReversePointersInstance

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, mininclusive *models.MinInclusive) (Error error)

func (*BackRepoMinInclusiveStruct) RestorePhaseOne

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoMinInclusiveStruct) RestorePhaseTwo

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) RestorePhaseTwo()

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

func (*BackRepoMinInclusiveStruct) RestoreXLPhaseOne

func (backRepoMinInclusive *BackRepoMinInclusiveStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "MinInclusive" sheet all MinInclusiveDB instances

type BackRepoMinLengthStruct

type BackRepoMinLengthStruct struct {
	// stores MinLengthDB according to their gorm ID
	Map_MinLengthDBID_MinLengthDB map[uint]*MinLengthDB

	// stores MinLengthDB ID according to MinLength address
	Map_MinLengthPtr_MinLengthDBID map[*models.MinLength]uint

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

func (*BackRepoMinLengthStruct) Backup

func (backRepoMinLength *BackRepoMinLengthStruct) Backup(dirPath string)

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

func (*BackRepoMinLengthStruct) BackupXL

func (backRepoMinLength *BackRepoMinLengthStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoMinLengthStruct) CheckoutPhaseOne

func (backRepoMinLength *BackRepoMinLengthStruct) CheckoutPhaseOne() (Error error)

BackRepoMinLength.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 (*BackRepoMinLengthStruct) CheckoutPhaseOneInstance

func (backRepoMinLength *BackRepoMinLengthStruct) CheckoutPhaseOneInstance(minlengthDB *MinLengthDB) (Error error)

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

func (*BackRepoMinLengthStruct) CheckoutPhaseTwo

func (backRepoMinLength *BackRepoMinLengthStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMinLengthStruct) CheckoutPhaseTwoInstance

func (backRepoMinLength *BackRepoMinLengthStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, minlengthDB *MinLengthDB) (Error error)

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

func (*BackRepoMinLengthStruct) CommitDeleteInstance

func (backRepoMinLength *BackRepoMinLengthStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoMinLength.CommitDeleteInstance commits deletion of MinLength to the BackRepo

func (*BackRepoMinLengthStruct) CommitPhaseOne

func (backRepoMinLength *BackRepoMinLengthStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoMinLength.CommitPhaseOne commits all staged instances of MinLength 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 (*BackRepoMinLengthStruct) CommitPhaseOneInstance

func (backRepoMinLength *BackRepoMinLengthStruct) CommitPhaseOneInstance(minlength *models.MinLength) (Error error)

BackRepoMinLength.CommitPhaseOneInstance commits minlength staged instances of MinLength 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 (*BackRepoMinLengthStruct) CommitPhaseTwo

func (backRepoMinLength *BackRepoMinLengthStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMinLengthStruct) CommitPhaseTwoInstance

func (backRepoMinLength *BackRepoMinLengthStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, minlength *models.MinLength) (Error error)

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

func (*BackRepoMinLengthStruct) GetDB

func (backRepoMinLength *BackRepoMinLengthStruct) GetDB() db.DBInterface

func (*BackRepoMinLengthStruct) GetMinLengthDBFromMinLengthPtr

func (backRepoMinLength *BackRepoMinLengthStruct) GetMinLengthDBFromMinLengthPtr(minlength *models.MinLength) (minlengthDB *MinLengthDB)

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

func (*BackRepoMinLengthStruct) GetStage

func (backRepoMinLength *BackRepoMinLengthStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoMinLengthStruct) ResetReversePointers

func (backRepoMinLength *BackRepoMinLengthStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoMinLengthStruct) ResetReversePointersInstance

func (backRepoMinLength *BackRepoMinLengthStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, minlength *models.MinLength) (Error error)

func (*BackRepoMinLengthStruct) RestorePhaseOne

func (backRepoMinLength *BackRepoMinLengthStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoMinLengthStruct) RestorePhaseTwo

func (backRepoMinLength *BackRepoMinLengthStruct) RestorePhaseTwo()

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

func (*BackRepoMinLengthStruct) RestoreXLPhaseOne

func (backRepoMinLength *BackRepoMinLengthStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "MinLength" sheet all MinLengthDB instances

type BackRepoPatternStruct

type BackRepoPatternStruct struct {
	// stores PatternDB according to their gorm ID
	Map_PatternDBID_PatternDB map[uint]*PatternDB

	// stores PatternDB ID according to Pattern address
	Map_PatternPtr_PatternDBID map[*models.Pattern]uint

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

func (*BackRepoPatternStruct) Backup

func (backRepoPattern *BackRepoPatternStruct) Backup(dirPath string)

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

func (*BackRepoPatternStruct) BackupXL

func (backRepoPattern *BackRepoPatternStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoPatternStruct) CheckoutPhaseOne

func (backRepoPattern *BackRepoPatternStruct) CheckoutPhaseOne() (Error error)

BackRepoPattern.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 (*BackRepoPatternStruct) CheckoutPhaseOneInstance

func (backRepoPattern *BackRepoPatternStruct) CheckoutPhaseOneInstance(patternDB *PatternDB) (Error error)

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

func (*BackRepoPatternStruct) CheckoutPhaseTwo

func (backRepoPattern *BackRepoPatternStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPatternStruct) CheckoutPhaseTwoInstance

func (backRepoPattern *BackRepoPatternStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, patternDB *PatternDB) (Error error)

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

func (*BackRepoPatternStruct) CommitDeleteInstance

func (backRepoPattern *BackRepoPatternStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoPattern.CommitDeleteInstance commits deletion of Pattern to the BackRepo

func (*BackRepoPatternStruct) CommitPhaseOne

func (backRepoPattern *BackRepoPatternStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoPattern.CommitPhaseOne commits all staged instances of Pattern 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 (*BackRepoPatternStruct) CommitPhaseOneInstance

func (backRepoPattern *BackRepoPatternStruct) CommitPhaseOneInstance(pattern *models.Pattern) (Error error)

BackRepoPattern.CommitPhaseOneInstance commits pattern staged instances of Pattern 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 (*BackRepoPatternStruct) CommitPhaseTwo

func (backRepoPattern *BackRepoPatternStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPatternStruct) CommitPhaseTwoInstance

func (backRepoPattern *BackRepoPatternStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, pattern *models.Pattern) (Error error)

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

func (*BackRepoPatternStruct) GetDB

func (backRepoPattern *BackRepoPatternStruct) GetDB() db.DBInterface

func (*BackRepoPatternStruct) GetPatternDBFromPatternPtr

func (backRepoPattern *BackRepoPatternStruct) GetPatternDBFromPatternPtr(pattern *models.Pattern) (patternDB *PatternDB)

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

func (*BackRepoPatternStruct) GetStage

func (backRepoPattern *BackRepoPatternStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoPatternStruct) ResetReversePointers

func (backRepoPattern *BackRepoPatternStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoPatternStruct) ResetReversePointersInstance

func (backRepoPattern *BackRepoPatternStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, pattern *models.Pattern) (Error error)

func (*BackRepoPatternStruct) RestorePhaseOne

func (backRepoPattern *BackRepoPatternStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoPatternStruct) RestorePhaseTwo

func (backRepoPattern *BackRepoPatternStruct) RestorePhaseTwo()

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

func (*BackRepoPatternStruct) RestoreXLPhaseOne

func (backRepoPattern *BackRepoPatternStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Pattern" sheet all PatternDB instances

type BackRepoRestrictionStruct

type BackRepoRestrictionStruct struct {
	// stores RestrictionDB according to their gorm ID
	Map_RestrictionDBID_RestrictionDB map[uint]*RestrictionDB

	// stores RestrictionDB ID according to Restriction address
	Map_RestrictionPtr_RestrictionDBID map[*models.Restriction]uint

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

func (*BackRepoRestrictionStruct) Backup

func (backRepoRestriction *BackRepoRestrictionStruct) Backup(dirPath string)

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

func (*BackRepoRestrictionStruct) BackupXL

func (backRepoRestriction *BackRepoRestrictionStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoRestrictionStruct) CheckoutPhaseOne

func (backRepoRestriction *BackRepoRestrictionStruct) CheckoutPhaseOne() (Error error)

BackRepoRestriction.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 (*BackRepoRestrictionStruct) CheckoutPhaseOneInstance

func (backRepoRestriction *BackRepoRestrictionStruct) CheckoutPhaseOneInstance(restrictionDB *RestrictionDB) (Error error)

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

func (*BackRepoRestrictionStruct) CheckoutPhaseTwo

func (backRepoRestriction *BackRepoRestrictionStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRestrictionStruct) CheckoutPhaseTwoInstance

func (backRepoRestriction *BackRepoRestrictionStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, restrictionDB *RestrictionDB) (Error error)

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

func (*BackRepoRestrictionStruct) CommitDeleteInstance

func (backRepoRestriction *BackRepoRestrictionStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoRestriction.CommitDeleteInstance commits deletion of Restriction to the BackRepo

func (*BackRepoRestrictionStruct) CommitPhaseOne

func (backRepoRestriction *BackRepoRestrictionStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoRestriction.CommitPhaseOne commits all staged instances of Restriction 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 (*BackRepoRestrictionStruct) CommitPhaseOneInstance

func (backRepoRestriction *BackRepoRestrictionStruct) CommitPhaseOneInstance(restriction *models.Restriction) (Error error)

BackRepoRestriction.CommitPhaseOneInstance commits restriction staged instances of Restriction 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 (*BackRepoRestrictionStruct) CommitPhaseTwo

func (backRepoRestriction *BackRepoRestrictionStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRestrictionStruct) CommitPhaseTwoInstance

func (backRepoRestriction *BackRepoRestrictionStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, restriction *models.Restriction) (Error error)

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

func (*BackRepoRestrictionStruct) GetDB

func (backRepoRestriction *BackRepoRestrictionStruct) GetDB() db.DBInterface

func (*BackRepoRestrictionStruct) GetRestrictionDBFromRestrictionPtr

func (backRepoRestriction *BackRepoRestrictionStruct) GetRestrictionDBFromRestrictionPtr(restriction *models.Restriction) (restrictionDB *RestrictionDB)

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

func (*BackRepoRestrictionStruct) GetStage

func (backRepoRestriction *BackRepoRestrictionStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoRestrictionStruct) ResetReversePointers

func (backRepoRestriction *BackRepoRestrictionStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoRestrictionStruct) ResetReversePointersInstance

func (backRepoRestriction *BackRepoRestrictionStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, restriction *models.Restriction) (Error error)

func (*BackRepoRestrictionStruct) RestorePhaseOne

func (backRepoRestriction *BackRepoRestrictionStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoRestrictionStruct) RestorePhaseTwo

func (backRepoRestriction *BackRepoRestrictionStruct) RestorePhaseTwo()

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

func (*BackRepoRestrictionStruct) RestoreXLPhaseOne

func (backRepoRestriction *BackRepoRestrictionStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Restriction" sheet all RestrictionDB instances

type BackRepoSchemaStruct

type BackRepoSchemaStruct struct {
	// stores SchemaDB according to their gorm ID
	Map_SchemaDBID_SchemaDB map[uint]*SchemaDB

	// stores SchemaDB ID according to Schema address
	Map_SchemaPtr_SchemaDBID map[*models.Schema]uint

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

func (*BackRepoSchemaStruct) Backup

func (backRepoSchema *BackRepoSchemaStruct) Backup(dirPath string)

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

func (*BackRepoSchemaStruct) BackupXL

func (backRepoSchema *BackRepoSchemaStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoSchemaStruct) CheckoutPhaseOne

func (backRepoSchema *BackRepoSchemaStruct) CheckoutPhaseOne() (Error error)

BackRepoSchema.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 (*BackRepoSchemaStruct) CheckoutPhaseOneInstance

func (backRepoSchema *BackRepoSchemaStruct) CheckoutPhaseOneInstance(schemaDB *SchemaDB) (Error error)

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

func (*BackRepoSchemaStruct) CheckoutPhaseTwo

func (backRepoSchema *BackRepoSchemaStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSchemaStruct) CheckoutPhaseTwoInstance

func (backRepoSchema *BackRepoSchemaStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, schemaDB *SchemaDB) (Error error)

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

func (*BackRepoSchemaStruct) CommitDeleteInstance

func (backRepoSchema *BackRepoSchemaStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoSchema.CommitDeleteInstance commits deletion of Schema to the BackRepo

func (*BackRepoSchemaStruct) CommitPhaseOne

func (backRepoSchema *BackRepoSchemaStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoSchema.CommitPhaseOne commits all staged instances of Schema 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 (*BackRepoSchemaStruct) CommitPhaseOneInstance

func (backRepoSchema *BackRepoSchemaStruct) CommitPhaseOneInstance(schema *models.Schema) (Error error)

BackRepoSchema.CommitPhaseOneInstance commits schema staged instances of Schema 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 (*BackRepoSchemaStruct) CommitPhaseTwo

func (backRepoSchema *BackRepoSchemaStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSchemaStruct) CommitPhaseTwoInstance

func (backRepoSchema *BackRepoSchemaStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, schema *models.Schema) (Error error)

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

func (*BackRepoSchemaStruct) GetDB

func (backRepoSchema *BackRepoSchemaStruct) GetDB() db.DBInterface

func (*BackRepoSchemaStruct) GetSchemaDBFromSchemaPtr

func (backRepoSchema *BackRepoSchemaStruct) GetSchemaDBFromSchemaPtr(schema *models.Schema) (schemaDB *SchemaDB)

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

func (*BackRepoSchemaStruct) GetStage

func (backRepoSchema *BackRepoSchemaStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoSchemaStruct) ResetReversePointers

func (backRepoSchema *BackRepoSchemaStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSchemaStruct) ResetReversePointersInstance

func (backRepoSchema *BackRepoSchemaStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, schema *models.Schema) (Error error)

func (*BackRepoSchemaStruct) RestorePhaseOne

func (backRepoSchema *BackRepoSchemaStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoSchemaStruct) RestorePhaseTwo

func (backRepoSchema *BackRepoSchemaStruct) RestorePhaseTwo()

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

func (*BackRepoSchemaStruct) RestoreXLPhaseOne

func (backRepoSchema *BackRepoSchemaStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Schema" sheet all SchemaDB instances

type BackRepoSequenceStruct

type BackRepoSequenceStruct struct {
	// stores SequenceDB according to their gorm ID
	Map_SequenceDBID_SequenceDB map[uint]*SequenceDB

	// stores SequenceDB ID according to Sequence address
	Map_SequencePtr_SequenceDBID map[*models.Sequence]uint

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

func (*BackRepoSequenceStruct) Backup

func (backRepoSequence *BackRepoSequenceStruct) Backup(dirPath string)

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

func (*BackRepoSequenceStruct) BackupXL

func (backRepoSequence *BackRepoSequenceStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoSequenceStruct) CheckoutPhaseOne

func (backRepoSequence *BackRepoSequenceStruct) CheckoutPhaseOne() (Error error)

BackRepoSequence.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 (*BackRepoSequenceStruct) CheckoutPhaseOneInstance

func (backRepoSequence *BackRepoSequenceStruct) CheckoutPhaseOneInstance(sequenceDB *SequenceDB) (Error error)

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

func (*BackRepoSequenceStruct) CheckoutPhaseTwo

func (backRepoSequence *BackRepoSequenceStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSequenceStruct) CheckoutPhaseTwoInstance

func (backRepoSequence *BackRepoSequenceStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, sequenceDB *SequenceDB) (Error error)

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

func (*BackRepoSequenceStruct) CommitDeleteInstance

func (backRepoSequence *BackRepoSequenceStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoSequence.CommitDeleteInstance commits deletion of Sequence to the BackRepo

func (*BackRepoSequenceStruct) CommitPhaseOne

func (backRepoSequence *BackRepoSequenceStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoSequence.CommitPhaseOne commits all staged instances of Sequence 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 (*BackRepoSequenceStruct) CommitPhaseOneInstance

func (backRepoSequence *BackRepoSequenceStruct) CommitPhaseOneInstance(sequence *models.Sequence) (Error error)

BackRepoSequence.CommitPhaseOneInstance commits sequence staged instances of Sequence 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 (*BackRepoSequenceStruct) CommitPhaseTwo

func (backRepoSequence *BackRepoSequenceStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSequenceStruct) CommitPhaseTwoInstance

func (backRepoSequence *BackRepoSequenceStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, sequence *models.Sequence) (Error error)

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

func (*BackRepoSequenceStruct) GetDB

func (backRepoSequence *BackRepoSequenceStruct) GetDB() db.DBInterface

func (*BackRepoSequenceStruct) GetSequenceDBFromSequencePtr

func (backRepoSequence *BackRepoSequenceStruct) GetSequenceDBFromSequencePtr(sequence *models.Sequence) (sequenceDB *SequenceDB)

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

func (*BackRepoSequenceStruct) GetStage

func (backRepoSequence *BackRepoSequenceStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoSequenceStruct) ResetReversePointers

func (backRepoSequence *BackRepoSequenceStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSequenceStruct) ResetReversePointersInstance

func (backRepoSequence *BackRepoSequenceStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, sequence *models.Sequence) (Error error)

func (*BackRepoSequenceStruct) RestorePhaseOne

func (backRepoSequence *BackRepoSequenceStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoSequenceStruct) RestorePhaseTwo

func (backRepoSequence *BackRepoSequenceStruct) RestorePhaseTwo()

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

func (*BackRepoSequenceStruct) RestoreXLPhaseOne

func (backRepoSequence *BackRepoSequenceStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Sequence" sheet all SequenceDB instances

type BackRepoSimpleContentStruct

type BackRepoSimpleContentStruct struct {
	// stores SimpleContentDB according to their gorm ID
	Map_SimpleContentDBID_SimpleContentDB map[uint]*SimpleContentDB

	// stores SimpleContentDB ID according to SimpleContent address
	Map_SimpleContentPtr_SimpleContentDBID map[*models.SimpleContent]uint

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

func (*BackRepoSimpleContentStruct) Backup

func (backRepoSimpleContent *BackRepoSimpleContentStruct) Backup(dirPath string)

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

func (*BackRepoSimpleContentStruct) BackupXL

func (backRepoSimpleContent *BackRepoSimpleContentStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoSimpleContentStruct) CheckoutPhaseOne

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CheckoutPhaseOne() (Error error)

BackRepoSimpleContent.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 (*BackRepoSimpleContentStruct) CheckoutPhaseOneInstance

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CheckoutPhaseOneInstance(simplecontentDB *SimpleContentDB) (Error error)

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

func (*BackRepoSimpleContentStruct) CheckoutPhaseTwo

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSimpleContentStruct) CheckoutPhaseTwoInstance

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, simplecontentDB *SimpleContentDB) (Error error)

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

func (*BackRepoSimpleContentStruct) CommitDeleteInstance

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoSimpleContent.CommitDeleteInstance commits deletion of SimpleContent to the BackRepo

func (*BackRepoSimpleContentStruct) CommitPhaseOne

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoSimpleContent.CommitPhaseOne commits all staged instances of SimpleContent 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 (*BackRepoSimpleContentStruct) CommitPhaseOneInstance

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CommitPhaseOneInstance(simplecontent *models.SimpleContent) (Error error)

BackRepoSimpleContent.CommitPhaseOneInstance commits simplecontent staged instances of SimpleContent 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 (*BackRepoSimpleContentStruct) CommitPhaseTwo

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSimpleContentStruct) CommitPhaseTwoInstance

func (backRepoSimpleContent *BackRepoSimpleContentStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, simplecontent *models.SimpleContent) (Error error)

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

func (*BackRepoSimpleContentStruct) GetDB

func (backRepoSimpleContent *BackRepoSimpleContentStruct) GetDB() db.DBInterface

func (*BackRepoSimpleContentStruct) GetSimpleContentDBFromSimpleContentPtr

func (backRepoSimpleContent *BackRepoSimpleContentStruct) GetSimpleContentDBFromSimpleContentPtr(simplecontent *models.SimpleContent) (simplecontentDB *SimpleContentDB)

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

func (*BackRepoSimpleContentStruct) GetStage

func (backRepoSimpleContent *BackRepoSimpleContentStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoSimpleContentStruct) ResetReversePointers

func (backRepoSimpleContent *BackRepoSimpleContentStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSimpleContentStruct) ResetReversePointersInstance

func (backRepoSimpleContent *BackRepoSimpleContentStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, simplecontent *models.SimpleContent) (Error error)

func (*BackRepoSimpleContentStruct) RestorePhaseOne

func (backRepoSimpleContent *BackRepoSimpleContentStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoSimpleContentStruct) RestorePhaseTwo

func (backRepoSimpleContent *BackRepoSimpleContentStruct) RestorePhaseTwo()

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

func (*BackRepoSimpleContentStruct) RestoreXLPhaseOne

func (backRepoSimpleContent *BackRepoSimpleContentStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "SimpleContent" sheet all SimpleContentDB instances

type BackRepoSimpleTypeStruct

type BackRepoSimpleTypeStruct struct {
	// stores SimpleTypeDB according to their gorm ID
	Map_SimpleTypeDBID_SimpleTypeDB map[uint]*SimpleTypeDB

	// stores SimpleTypeDB ID according to SimpleType address
	Map_SimpleTypePtr_SimpleTypeDBID map[*models.SimpleType]uint

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

func (*BackRepoSimpleTypeStruct) Backup

func (backRepoSimpleType *BackRepoSimpleTypeStruct) Backup(dirPath string)

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

func (*BackRepoSimpleTypeStruct) BackupXL

func (backRepoSimpleType *BackRepoSimpleTypeStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoSimpleTypeStruct) CheckoutPhaseOne

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CheckoutPhaseOne() (Error error)

BackRepoSimpleType.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 (*BackRepoSimpleTypeStruct) CheckoutPhaseOneInstance

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CheckoutPhaseOneInstance(simpletypeDB *SimpleTypeDB) (Error error)

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

func (*BackRepoSimpleTypeStruct) CheckoutPhaseTwo

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSimpleTypeStruct) CheckoutPhaseTwoInstance

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, simpletypeDB *SimpleTypeDB) (Error error)

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

func (*BackRepoSimpleTypeStruct) CommitDeleteInstance

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoSimpleType.CommitDeleteInstance commits deletion of SimpleType to the BackRepo

func (*BackRepoSimpleTypeStruct) CommitPhaseOne

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoSimpleType.CommitPhaseOne commits all staged instances of SimpleType 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 (*BackRepoSimpleTypeStruct) CommitPhaseOneInstance

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CommitPhaseOneInstance(simpletype *models.SimpleType) (Error error)

BackRepoSimpleType.CommitPhaseOneInstance commits simpletype staged instances of SimpleType 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 (*BackRepoSimpleTypeStruct) CommitPhaseTwo

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSimpleTypeStruct) CommitPhaseTwoInstance

func (backRepoSimpleType *BackRepoSimpleTypeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, simpletype *models.SimpleType) (Error error)

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

func (*BackRepoSimpleTypeStruct) GetDB

func (backRepoSimpleType *BackRepoSimpleTypeStruct) GetDB() db.DBInterface

func (*BackRepoSimpleTypeStruct) GetSimpleTypeDBFromSimpleTypePtr

func (backRepoSimpleType *BackRepoSimpleTypeStruct) GetSimpleTypeDBFromSimpleTypePtr(simpletype *models.SimpleType) (simpletypeDB *SimpleTypeDB)

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

func (*BackRepoSimpleTypeStruct) GetStage

func (backRepoSimpleType *BackRepoSimpleTypeStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoSimpleTypeStruct) ResetReversePointers

func (backRepoSimpleType *BackRepoSimpleTypeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoSimpleTypeStruct) ResetReversePointersInstance

func (backRepoSimpleType *BackRepoSimpleTypeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, simpletype *models.SimpleType) (Error error)

func (*BackRepoSimpleTypeStruct) RestorePhaseOne

func (backRepoSimpleType *BackRepoSimpleTypeStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoSimpleTypeStruct) RestorePhaseTwo

func (backRepoSimpleType *BackRepoSimpleTypeStruct) RestorePhaseTwo()

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

func (*BackRepoSimpleTypeStruct) RestoreXLPhaseOne

func (backRepoSimpleType *BackRepoSimpleTypeStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "SimpleType" sheet all SimpleTypeDB instances

type BackRepoStruct

type BackRepoStruct struct {
	// insertion point for per struct back repo declarations
	BackRepoAll BackRepoAllStruct

	BackRepoAnnotation BackRepoAnnotationStruct

	BackRepoAttribute BackRepoAttributeStruct

	BackRepoAttributeGroup BackRepoAttributeGroupStruct

	BackRepoChoice BackRepoChoiceStruct

	BackRepoComplexContent BackRepoComplexContentStruct

	BackRepoComplexType BackRepoComplexTypeStruct

	BackRepoDocumentation BackRepoDocumentationStruct

	BackRepoElement BackRepoElementStruct

	BackRepoEnumeration BackRepoEnumerationStruct

	BackRepoExtension BackRepoExtensionStruct

	BackRepoGroup BackRepoGroupStruct

	BackRepoLength BackRepoLengthStruct

	BackRepoMaxInclusive BackRepoMaxInclusiveStruct

	BackRepoMaxLength BackRepoMaxLengthStruct

	BackRepoMinInclusive BackRepoMinInclusiveStruct

	BackRepoMinLength BackRepoMinLengthStruct

	BackRepoPattern BackRepoPatternStruct

	BackRepoRestriction BackRepoRestrictionStruct

	BackRepoSchema BackRepoSchemaStruct

	BackRepoSequence BackRepoSequenceStruct

	BackRepoSimpleContent BackRepoSimpleContentStruct

	BackRepoSimpleType BackRepoSimpleTypeStruct

	BackRepoTotalDigit BackRepoTotalDigitStruct

	BackRepoUnion BackRepoUnionStruct

	BackRepoWhiteSpace BackRepoWhiteSpaceStruct

	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) CheckoutAll

func (backRepo *BackRepoStruct) CheckoutAll(all *models.All)

CommitAll allows checkout of a single all (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutAnnotation

func (backRepo *BackRepoStruct) CheckoutAnnotation(annotation *models.Annotation)

CommitAnnotation allows checkout of a single annotation (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutAttribute

func (backRepo *BackRepoStruct) CheckoutAttribute(attribute *models.Attribute)

CommitAttribute allows checkout of a single attribute (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutAttributeGroup

func (backRepo *BackRepoStruct) CheckoutAttributeGroup(attributegroup *models.AttributeGroup)

CommitAttributeGroup allows checkout of a single attributegroup (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutChoice

func (backRepo *BackRepoStruct) CheckoutChoice(choice *models.Choice)

CommitChoice allows checkout of a single choice (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutComplexContent

func (backRepo *BackRepoStruct) CheckoutComplexContent(complexcontent *models.ComplexContent)

CommitComplexContent allows checkout of a single complexcontent (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutComplexType

func (backRepo *BackRepoStruct) CheckoutComplexType(complextype *models.ComplexType)

CommitComplexType allows checkout of a single complextype (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutDocumentation

func (backRepo *BackRepoStruct) CheckoutDocumentation(documentation *models.Documentation)

CommitDocumentation allows checkout of a single documentation (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutElement

func (backRepo *BackRepoStruct) CheckoutElement(element *models.Element)

CommitElement allows checkout of a single element (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutEnumeration

func (backRepo *BackRepoStruct) CheckoutEnumeration(enumeration *models.Enumeration)

CommitEnumeration allows checkout of a single enumeration (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutExtension

func (backRepo *BackRepoStruct) CheckoutExtension(extension *models.Extension)

CommitExtension allows checkout of a single extension (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutGroup

func (backRepo *BackRepoStruct) CheckoutGroup(group *models.Group)

CommitGroup allows checkout of a single group (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutLength

func (backRepo *BackRepoStruct) CheckoutLength(length *models.Length)

CommitLength allows checkout of a single length (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMaxInclusive

func (backRepo *BackRepoStruct) CheckoutMaxInclusive(maxinclusive *models.MaxInclusive)

CommitMaxInclusive allows checkout of a single maxinclusive (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMaxLength

func (backRepo *BackRepoStruct) CheckoutMaxLength(maxlength *models.MaxLength)

CommitMaxLength allows checkout of a single maxlength (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMinInclusive

func (backRepo *BackRepoStruct) CheckoutMinInclusive(mininclusive *models.MinInclusive)

CommitMinInclusive allows checkout of a single mininclusive (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutMinLength

func (backRepo *BackRepoStruct) CheckoutMinLength(minlength *models.MinLength)

CommitMinLength allows checkout of a single minlength (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutPattern

func (backRepo *BackRepoStruct) CheckoutPattern(pattern *models.Pattern)

CommitPattern allows checkout of a single pattern (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutRestriction

func (backRepo *BackRepoStruct) CheckoutRestriction(restriction *models.Restriction)

CommitRestriction allows checkout of a single restriction (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutSchema

func (backRepo *BackRepoStruct) CheckoutSchema(schema *models.Schema)

CommitSchema allows checkout of a single schema (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutSequence

func (backRepo *BackRepoStruct) CheckoutSequence(sequence *models.Sequence)

CommitSequence allows checkout of a single sequence (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutSimpleContent

func (backRepo *BackRepoStruct) CheckoutSimpleContent(simplecontent *models.SimpleContent)

CommitSimpleContent allows checkout of a single simplecontent (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutSimpleType

func (backRepo *BackRepoStruct) CheckoutSimpleType(simpletype *models.SimpleType)

CommitSimpleType allows checkout of a single simpletype (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutTotalDigit

func (backRepo *BackRepoStruct) CheckoutTotalDigit(totaldigit *models.TotalDigit)

CommitTotalDigit allows checkout of a single totaldigit (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutUnion

func (backRepo *BackRepoStruct) CheckoutUnion(union *models.Union)

CommitUnion allows checkout of a single union (if already staged and with a BackRepo id)

func (*BackRepoStruct) CheckoutWhiteSpace

func (backRepo *BackRepoStruct) CheckoutWhiteSpace(whitespace *models.WhiteSpace)

CommitWhiteSpace allows checkout of a single whitespace (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) CommitAll

func (backRepo *BackRepoStruct) CommitAll(all *models.All)

CommitAll allows commit of a single all (if already staged)

func (*BackRepoStruct) CommitAnnotation

func (backRepo *BackRepoStruct) CommitAnnotation(annotation *models.Annotation)

CommitAnnotation allows commit of a single annotation (if already staged)

func (*BackRepoStruct) CommitAttribute

func (backRepo *BackRepoStruct) CommitAttribute(attribute *models.Attribute)

CommitAttribute allows commit of a single attribute (if already staged)

func (*BackRepoStruct) CommitAttributeGroup

func (backRepo *BackRepoStruct) CommitAttributeGroup(attributegroup *models.AttributeGroup)

CommitAttributeGroup allows commit of a single attributegroup (if already staged)

func (*BackRepoStruct) CommitChoice

func (backRepo *BackRepoStruct) CommitChoice(choice *models.Choice)

CommitChoice allows commit of a single choice (if already staged)

func (*BackRepoStruct) CommitComplexContent

func (backRepo *BackRepoStruct) CommitComplexContent(complexcontent *models.ComplexContent)

CommitComplexContent allows commit of a single complexcontent (if already staged)

func (*BackRepoStruct) CommitComplexType

func (backRepo *BackRepoStruct) CommitComplexType(complextype *models.ComplexType)

CommitComplexType allows commit of a single complextype (if already staged)

func (*BackRepoStruct) CommitDocumentation

func (backRepo *BackRepoStruct) CommitDocumentation(documentation *models.Documentation)

CommitDocumentation allows commit of a single documentation (if already staged)

func (*BackRepoStruct) CommitElement

func (backRepo *BackRepoStruct) CommitElement(element *models.Element)

CommitElement allows commit of a single element (if already staged)

func (*BackRepoStruct) CommitEnumeration

func (backRepo *BackRepoStruct) CommitEnumeration(enumeration *models.Enumeration)

CommitEnumeration allows commit of a single enumeration (if already staged)

func (*BackRepoStruct) CommitExtension

func (backRepo *BackRepoStruct) CommitExtension(extension *models.Extension)

CommitExtension allows commit of a single extension (if already staged)

func (*BackRepoStruct) CommitGroup

func (backRepo *BackRepoStruct) CommitGroup(group *models.Group)

CommitGroup allows commit of a single group (if already staged)

func (*BackRepoStruct) CommitLength

func (backRepo *BackRepoStruct) CommitLength(length *models.Length)

CommitLength allows commit of a single length (if already staged)

func (*BackRepoStruct) CommitMaxInclusive

func (backRepo *BackRepoStruct) CommitMaxInclusive(maxinclusive *models.MaxInclusive)

CommitMaxInclusive allows commit of a single maxinclusive (if already staged)

func (*BackRepoStruct) CommitMaxLength

func (backRepo *BackRepoStruct) CommitMaxLength(maxlength *models.MaxLength)

CommitMaxLength allows commit of a single maxlength (if already staged)

func (*BackRepoStruct) CommitMinInclusive

func (backRepo *BackRepoStruct) CommitMinInclusive(mininclusive *models.MinInclusive)

CommitMinInclusive allows commit of a single mininclusive (if already staged)

func (*BackRepoStruct) CommitMinLength

func (backRepo *BackRepoStruct) CommitMinLength(minlength *models.MinLength)

CommitMinLength allows commit of a single minlength (if already staged)

func (*BackRepoStruct) CommitPattern

func (backRepo *BackRepoStruct) CommitPattern(pattern *models.Pattern)

CommitPattern allows commit of a single pattern (if already staged)

func (*BackRepoStruct) CommitRestriction

func (backRepo *BackRepoStruct) CommitRestriction(restriction *models.Restriction)

CommitRestriction allows commit of a single restriction (if already staged)

func (*BackRepoStruct) CommitSchema

func (backRepo *BackRepoStruct) CommitSchema(schema *models.Schema)

CommitSchema allows commit of a single schema (if already staged)

func (*BackRepoStruct) CommitSequence

func (backRepo *BackRepoStruct) CommitSequence(sequence *models.Sequence)

CommitSequence allows commit of a single sequence (if already staged)

func (*BackRepoStruct) CommitSimpleContent

func (backRepo *BackRepoStruct) CommitSimpleContent(simplecontent *models.SimpleContent)

CommitSimpleContent allows commit of a single simplecontent (if already staged)

func (*BackRepoStruct) CommitSimpleType

func (backRepo *BackRepoStruct) CommitSimpleType(simpletype *models.SimpleType)

CommitSimpleType allows commit of a single simpletype (if already staged)

func (*BackRepoStruct) CommitTotalDigit

func (backRepo *BackRepoStruct) CommitTotalDigit(totaldigit *models.TotalDigit)

CommitTotalDigit allows commit of a single totaldigit (if already staged)

func (*BackRepoStruct) CommitUnion

func (backRepo *BackRepoStruct) CommitUnion(union *models.Union)

CommitUnion allows commit of a single union (if already staged)

func (*BackRepoStruct) CommitWhiteSpace

func (backRepo *BackRepoStruct) CommitWhiteSpace(whitespace *models.WhiteSpace)

CommitWhiteSpace allows commit of a single whitespace (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 BackRepoTotalDigitStruct

type BackRepoTotalDigitStruct struct {
	// stores TotalDigitDB according to their gorm ID
	Map_TotalDigitDBID_TotalDigitDB map[uint]*TotalDigitDB

	// stores TotalDigitDB ID according to TotalDigit address
	Map_TotalDigitPtr_TotalDigitDBID map[*models.TotalDigit]uint

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

func (*BackRepoTotalDigitStruct) Backup

func (backRepoTotalDigit *BackRepoTotalDigitStruct) Backup(dirPath string)

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

func (*BackRepoTotalDigitStruct) BackupXL

func (backRepoTotalDigit *BackRepoTotalDigitStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoTotalDigitStruct) CheckoutPhaseOne

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CheckoutPhaseOne() (Error error)

BackRepoTotalDigit.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 (*BackRepoTotalDigitStruct) CheckoutPhaseOneInstance

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CheckoutPhaseOneInstance(totaldigitDB *TotalDigitDB) (Error error)

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

func (*BackRepoTotalDigitStruct) CheckoutPhaseTwo

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTotalDigitStruct) CheckoutPhaseTwoInstance

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, totaldigitDB *TotalDigitDB) (Error error)

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

func (*BackRepoTotalDigitStruct) CommitDeleteInstance

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoTotalDigit.CommitDeleteInstance commits deletion of TotalDigit to the BackRepo

func (*BackRepoTotalDigitStruct) CommitPhaseOne

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoTotalDigit.CommitPhaseOne commits all staged instances of TotalDigit 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 (*BackRepoTotalDigitStruct) CommitPhaseOneInstance

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CommitPhaseOneInstance(totaldigit *models.TotalDigit) (Error error)

BackRepoTotalDigit.CommitPhaseOneInstance commits totaldigit staged instances of TotalDigit 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 (*BackRepoTotalDigitStruct) CommitPhaseTwo

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTotalDigitStruct) CommitPhaseTwoInstance

func (backRepoTotalDigit *BackRepoTotalDigitStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, totaldigit *models.TotalDigit) (Error error)

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

func (*BackRepoTotalDigitStruct) GetDB

func (backRepoTotalDigit *BackRepoTotalDigitStruct) GetDB() db.DBInterface

func (*BackRepoTotalDigitStruct) GetStage

func (backRepoTotalDigit *BackRepoTotalDigitStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoTotalDigitStruct) GetTotalDigitDBFromTotalDigitPtr

func (backRepoTotalDigit *BackRepoTotalDigitStruct) GetTotalDigitDBFromTotalDigitPtr(totaldigit *models.TotalDigit) (totaldigitDB *TotalDigitDB)

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

func (*BackRepoTotalDigitStruct) ResetReversePointers

func (backRepoTotalDigit *BackRepoTotalDigitStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoTotalDigitStruct) ResetReversePointersInstance

func (backRepoTotalDigit *BackRepoTotalDigitStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, totaldigit *models.TotalDigit) (Error error)

func (*BackRepoTotalDigitStruct) RestorePhaseOne

func (backRepoTotalDigit *BackRepoTotalDigitStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoTotalDigitStruct) RestorePhaseTwo

func (backRepoTotalDigit *BackRepoTotalDigitStruct) RestorePhaseTwo()

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

func (*BackRepoTotalDigitStruct) RestoreXLPhaseOne

func (backRepoTotalDigit *BackRepoTotalDigitStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "TotalDigit" sheet all TotalDigitDB instances

type BackRepoUnionStruct

type BackRepoUnionStruct struct {
	// stores UnionDB according to their gorm ID
	Map_UnionDBID_UnionDB map[uint]*UnionDB

	// stores UnionDB ID according to Union address
	Map_UnionPtr_UnionDBID map[*models.Union]uint

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

func (*BackRepoUnionStruct) Backup

func (backRepoUnion *BackRepoUnionStruct) Backup(dirPath string)

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

func (*BackRepoUnionStruct) BackupXL

func (backRepoUnion *BackRepoUnionStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoUnionStruct) CheckoutPhaseOne

func (backRepoUnion *BackRepoUnionStruct) CheckoutPhaseOne() (Error error)

BackRepoUnion.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 (*BackRepoUnionStruct) CheckoutPhaseOneInstance

func (backRepoUnion *BackRepoUnionStruct) CheckoutPhaseOneInstance(unionDB *UnionDB) (Error error)

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

func (*BackRepoUnionStruct) CheckoutPhaseTwo

func (backRepoUnion *BackRepoUnionStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoUnionStruct) CheckoutPhaseTwoInstance

func (backRepoUnion *BackRepoUnionStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, unionDB *UnionDB) (Error error)

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

func (*BackRepoUnionStruct) CommitDeleteInstance

func (backRepoUnion *BackRepoUnionStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoUnion.CommitDeleteInstance commits deletion of Union to the BackRepo

func (*BackRepoUnionStruct) CommitPhaseOne

func (backRepoUnion *BackRepoUnionStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoUnion.CommitPhaseOne commits all staged instances of Union 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 (*BackRepoUnionStruct) CommitPhaseOneInstance

func (backRepoUnion *BackRepoUnionStruct) CommitPhaseOneInstance(union *models.Union) (Error error)

BackRepoUnion.CommitPhaseOneInstance commits union staged instances of Union 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 (*BackRepoUnionStruct) CommitPhaseTwo

func (backRepoUnion *BackRepoUnionStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoUnionStruct) CommitPhaseTwoInstance

func (backRepoUnion *BackRepoUnionStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, union *models.Union) (Error error)

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

func (*BackRepoUnionStruct) GetDB

func (backRepoUnion *BackRepoUnionStruct) GetDB() db.DBInterface

func (*BackRepoUnionStruct) GetStage

func (backRepoUnion *BackRepoUnionStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoUnionStruct) GetUnionDBFromUnionPtr

func (backRepoUnion *BackRepoUnionStruct) GetUnionDBFromUnionPtr(union *models.Union) (unionDB *UnionDB)

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

func (*BackRepoUnionStruct) ResetReversePointers

func (backRepoUnion *BackRepoUnionStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoUnionStruct) ResetReversePointersInstance

func (backRepoUnion *BackRepoUnionStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, union *models.Union) (Error error)

func (*BackRepoUnionStruct) RestorePhaseOne

func (backRepoUnion *BackRepoUnionStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoUnionStruct) RestorePhaseTwo

func (backRepoUnion *BackRepoUnionStruct) RestorePhaseTwo()

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

func (*BackRepoUnionStruct) RestoreXLPhaseOne

func (backRepoUnion *BackRepoUnionStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "Union" sheet all UnionDB instances

type BackRepoWhiteSpaceStruct

type BackRepoWhiteSpaceStruct struct {
	// stores WhiteSpaceDB according to their gorm ID
	Map_WhiteSpaceDBID_WhiteSpaceDB map[uint]*WhiteSpaceDB

	// stores WhiteSpaceDB ID according to WhiteSpace address
	Map_WhiteSpacePtr_WhiteSpaceDBID map[*models.WhiteSpace]uint

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

func (*BackRepoWhiteSpaceStruct) Backup

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) Backup(dirPath string)

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

func (*BackRepoWhiteSpaceStruct) BackupXL

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) BackupXL(file *xlsx.File)

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

func (*BackRepoWhiteSpaceStruct) CheckoutPhaseOne

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CheckoutPhaseOne() (Error error)

BackRepoWhiteSpace.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 (*BackRepoWhiteSpaceStruct) CheckoutPhaseOneInstance

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CheckoutPhaseOneInstance(whitespaceDB *WhiteSpaceDB) (Error error)

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

func (*BackRepoWhiteSpaceStruct) CheckoutPhaseTwo

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoWhiteSpaceStruct) CheckoutPhaseTwoInstance

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, whitespaceDB *WhiteSpaceDB) (Error error)

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

func (*BackRepoWhiteSpaceStruct) CommitDeleteInstance

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CommitDeleteInstance(id uint) (Error error)

BackRepoWhiteSpace.CommitDeleteInstance commits deletion of WhiteSpace to the BackRepo

func (*BackRepoWhiteSpaceStruct) CommitPhaseOne

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)

BackRepoWhiteSpace.CommitPhaseOne commits all staged instances of WhiteSpace 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 (*BackRepoWhiteSpaceStruct) CommitPhaseOneInstance

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CommitPhaseOneInstance(whitespace *models.WhiteSpace) (Error error)

BackRepoWhiteSpace.CommitPhaseOneInstance commits whitespace staged instances of WhiteSpace 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 (*BackRepoWhiteSpaceStruct) CommitPhaseTwo

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoWhiteSpaceStruct) CommitPhaseTwoInstance

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, whitespace *models.WhiteSpace) (Error error)

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

func (*BackRepoWhiteSpaceStruct) GetDB

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) GetDB() db.DBInterface

func (*BackRepoWhiteSpaceStruct) GetStage

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) GetStage() (stage *models.StageStruct)

func (*BackRepoWhiteSpaceStruct) GetWhiteSpaceDBFromWhiteSpacePtr

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) GetWhiteSpaceDBFromWhiteSpacePtr(whitespace *models.WhiteSpace) (whitespaceDB *WhiteSpaceDB)

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

func (*BackRepoWhiteSpaceStruct) ResetReversePointers

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)

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

func (*BackRepoWhiteSpaceStruct) ResetReversePointersInstance

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, whitespace *models.WhiteSpace) (Error error)

func (*BackRepoWhiteSpaceStruct) RestorePhaseOne

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) RestorePhaseOne(dirPath string)

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

func (*BackRepoWhiteSpaceStruct) RestorePhaseTwo

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) RestorePhaseTwo()

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

func (*BackRepoWhiteSpaceStruct) RestoreXLPhaseOne

func (backRepoWhiteSpace *BackRepoWhiteSpaceStruct) RestoreXLPhaseOne(file *xlsx.File)

RestoreXL from the "WhiteSpace" sheet all WhiteSpaceDB instances

type ChoiceAPI

type ChoiceAPI struct {
	gorm.Model

	models.Choice_WOP

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

ChoiceAPI 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 choiceAPI

type ChoiceDB

type ChoiceDB struct {
	gorm.Model

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

	// Declation for basic field choiceDB.OuterElementName
	OuterElementName_Data sql.NullString

	// Declation for basic field choiceDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field choiceDB.Depth
	Depth_Data sql.NullInt64

	// Declation for basic field choiceDB.MinOccurs
	MinOccurs_Data sql.NullString

	// Declation for basic field choiceDB.MaxOccurs
	MaxOccurs_Data sql.NullString

	// Declation for basic field choiceDB.IsDuplicatedInXSD
	// provide the sql storage for the boolan
	IsDuplicatedInXSD_Data sql.NullBool

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

ChoiceDB describes a choice 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 choiceDB

func (*ChoiceDB) CopyBasicFieldsFromChoice

func (choiceDB *ChoiceDB) CopyBasicFieldsFromChoice(choice *models.Choice)

CopyBasicFieldsFromChoice

func (*ChoiceDB) CopyBasicFieldsFromChoiceWOP

func (choiceDB *ChoiceDB) CopyBasicFieldsFromChoiceWOP(choice *ChoiceWOP)

CopyBasicFieldsFromChoiceWOP

func (*ChoiceDB) CopyBasicFieldsFromChoice_WOP

func (choiceDB *ChoiceDB) CopyBasicFieldsFromChoice_WOP(choice *models.Choice_WOP)

CopyBasicFieldsFromChoice_WOP

func (*ChoiceDB) CopyBasicFieldsToChoice

func (choiceDB *ChoiceDB) CopyBasicFieldsToChoice(choice *models.Choice)

CopyBasicFieldsToChoice

func (*ChoiceDB) CopyBasicFieldsToChoiceWOP

func (choiceDB *ChoiceDB) CopyBasicFieldsToChoiceWOP(choice *ChoiceWOP)

CopyBasicFieldsToChoiceWOP

func (*ChoiceDB) CopyBasicFieldsToChoice_WOP

func (choiceDB *ChoiceDB) CopyBasicFieldsToChoice_WOP(choice *models.Choice_WOP)

CopyBasicFieldsToChoice_WOP

func (*ChoiceDB) DecodePointers

func (choiceDB *ChoiceDB) DecodePointers(backRepo *BackRepoStruct, choice *models.Choice)

type ChoiceDBResponse

type ChoiceDBResponse struct {
	ChoiceDB
}

ChoiceDBResponse provides response swagger:response choiceDBResponse

type ChoiceDBs

type ChoiceDBs []ChoiceDB

ChoiceDBs arrays choiceDBs swagger:response choiceDBsResponse

type ChoicePointersEncoding

type ChoicePointersEncoding struct {

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

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

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

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

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

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

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

type ChoiceWOP

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

	Name string `xlsx:"1"`

	OuterElementName string `xlsx:"2"`

	Order int `xlsx:"3"`

	Depth int `xlsx:"4"`

	MinOccurs string `xlsx:"5"`

	MaxOccurs string `xlsx:"6"`

	IsDuplicatedInXSD bool `xlsx:"7"`
}

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

type ComplexContentAPI

type ComplexContentAPI struct {
	gorm.Model

	models.ComplexContent_WOP

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

ComplexContentAPI 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 complexcontentAPI

type ComplexContentDB

type ComplexContentDB struct {
	gorm.Model

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

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

ComplexContentDB describes a complexcontent 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 complexcontentDB

func (*ComplexContentDB) CopyBasicFieldsFromComplexContent

func (complexcontentDB *ComplexContentDB) CopyBasicFieldsFromComplexContent(complexcontent *models.ComplexContent)

CopyBasicFieldsFromComplexContent

func (*ComplexContentDB) CopyBasicFieldsFromComplexContentWOP

func (complexcontentDB *ComplexContentDB) CopyBasicFieldsFromComplexContentWOP(complexcontent *ComplexContentWOP)

CopyBasicFieldsFromComplexContentWOP

func (*ComplexContentDB) CopyBasicFieldsFromComplexContent_WOP

func (complexcontentDB *ComplexContentDB) CopyBasicFieldsFromComplexContent_WOP(complexcontent *models.ComplexContent_WOP)

CopyBasicFieldsFromComplexContent_WOP

func (*ComplexContentDB) CopyBasicFieldsToComplexContent

func (complexcontentDB *ComplexContentDB) CopyBasicFieldsToComplexContent(complexcontent *models.ComplexContent)

CopyBasicFieldsToComplexContent

func (*ComplexContentDB) CopyBasicFieldsToComplexContentWOP

func (complexcontentDB *ComplexContentDB) CopyBasicFieldsToComplexContentWOP(complexcontent *ComplexContentWOP)

CopyBasicFieldsToComplexContentWOP

func (*ComplexContentDB) CopyBasicFieldsToComplexContent_WOP

func (complexcontentDB *ComplexContentDB) CopyBasicFieldsToComplexContent_WOP(complexcontent *models.ComplexContent_WOP)

CopyBasicFieldsToComplexContent_WOP

func (*ComplexContentDB) DecodePointers

func (complexcontentDB *ComplexContentDB) DecodePointers(backRepo *BackRepoStruct, complexcontent *models.ComplexContent)

type ComplexContentDBResponse

type ComplexContentDBResponse struct {
	ComplexContentDB
}

ComplexContentDBResponse provides response swagger:response complexcontentDBResponse

type ComplexContentDBs

type ComplexContentDBs []ComplexContentDB

ComplexContentDBs arrays complexcontentDBs swagger:response complexcontentDBsResponse

type ComplexContentPointersEncoding

type ComplexContentPointersEncoding struct {
}

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

type ComplexContentWOP

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

	Name string `xlsx:"1"`
}

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

type ComplexTypeAPI

type ComplexTypeAPI struct {
	gorm.Model

	models.ComplexType_WOP

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

ComplexTypeAPI 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 complextypeAPI

type ComplexTypeDB

type ComplexTypeDB struct {
	gorm.Model

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

	// Declation for basic field complextypeDB.HasNameConflict
	// provide the sql storage for the boolan
	HasNameConflict_Data sql.NullBool

	// Declation for basic field complextypeDB.GoIdentifier
	GoIdentifier_Data sql.NullString

	// Declation for basic field complextypeDB.IsAnonymous
	// provide the sql storage for the boolan
	IsAnonymous_Data sql.NullBool

	// Declation for basic field complextypeDB.NameXSD
	NameXSD_Data sql.NullString

	// Declation for basic field complextypeDB.OuterElementName
	OuterElementName_Data sql.NullString

	// Declation for basic field complextypeDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field complextypeDB.Depth
	Depth_Data sql.NullInt64

	// Declation for basic field complextypeDB.MinOccurs
	MinOccurs_Data sql.NullString

	// Declation for basic field complextypeDB.MaxOccurs
	MaxOccurs_Data sql.NullString

	// Declation for basic field complextypeDB.IsDuplicatedInXSD
	// provide the sql storage for the boolan
	IsDuplicatedInXSD_Data sql.NullBool

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

ComplexTypeDB describes a complextype 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 complextypeDB

func (*ComplexTypeDB) CopyBasicFieldsFromComplexType

func (complextypeDB *ComplexTypeDB) CopyBasicFieldsFromComplexType(complextype *models.ComplexType)

CopyBasicFieldsFromComplexType

func (*ComplexTypeDB) CopyBasicFieldsFromComplexTypeWOP

func (complextypeDB *ComplexTypeDB) CopyBasicFieldsFromComplexTypeWOP(complextype *ComplexTypeWOP)

CopyBasicFieldsFromComplexTypeWOP

func (*ComplexTypeDB) CopyBasicFieldsFromComplexType_WOP

func (complextypeDB *ComplexTypeDB) CopyBasicFieldsFromComplexType_WOP(complextype *models.ComplexType_WOP)

CopyBasicFieldsFromComplexType_WOP

func (*ComplexTypeDB) CopyBasicFieldsToComplexType

func (complextypeDB *ComplexTypeDB) CopyBasicFieldsToComplexType(complextype *models.ComplexType)

CopyBasicFieldsToComplexType

func (*ComplexTypeDB) CopyBasicFieldsToComplexTypeWOP

func (complextypeDB *ComplexTypeDB) CopyBasicFieldsToComplexTypeWOP(complextype *ComplexTypeWOP)

CopyBasicFieldsToComplexTypeWOP

func (*ComplexTypeDB) CopyBasicFieldsToComplexType_WOP

func (complextypeDB *ComplexTypeDB) CopyBasicFieldsToComplexType_WOP(complextype *models.ComplexType_WOP)

CopyBasicFieldsToComplexType_WOP

func (*ComplexTypeDB) DecodePointers

func (complextypeDB *ComplexTypeDB) DecodePointers(backRepo *BackRepoStruct, complextype *models.ComplexType)

type ComplexTypeDBResponse

type ComplexTypeDBResponse struct {
	ComplexTypeDB
}

ComplexTypeDBResponse provides response swagger:response complextypeDBResponse

type ComplexTypeDBs

type ComplexTypeDBs []ComplexTypeDB

ComplexTypeDBs arrays complextypeDBs swagger:response complextypeDBsResponse

type ComplexTypePointersEncoding

type ComplexTypePointersEncoding struct {

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

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

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

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

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

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

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

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

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

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

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

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

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

type ComplexTypeWOP

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

	Name string `xlsx:"1"`

	HasNameConflict bool `xlsx:"2"`

	GoIdentifier string `xlsx:"3"`

	IsAnonymous bool `xlsx:"4"`

	NameXSD string `xlsx:"5"`

	OuterElementName string `xlsx:"6"`

	Order int `xlsx:"7"`

	Depth int `xlsx:"8"`

	MinOccurs string `xlsx:"9"`

	MaxOccurs string `xlsx:"10"`

	IsDuplicatedInXSD bool `xlsx:"11"`
}

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

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 DocumentationAPI

type DocumentationAPI struct {
	gorm.Model

	models.Documentation_WOP

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

DocumentationAPI 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 documentationAPI

type DocumentationDB

type DocumentationDB struct {
	gorm.Model

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

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

	// Declation for basic field documentationDB.Source
	Source_Data sql.NullString

	// Declation for basic field documentationDB.Lang
	Lang_Data sql.NullString

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

DocumentationDB describes a documentation 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 documentationDB

func (*DocumentationDB) CopyBasicFieldsFromDocumentation

func (documentationDB *DocumentationDB) CopyBasicFieldsFromDocumentation(documentation *models.Documentation)

CopyBasicFieldsFromDocumentation

func (*DocumentationDB) CopyBasicFieldsFromDocumentationWOP

func (documentationDB *DocumentationDB) CopyBasicFieldsFromDocumentationWOP(documentation *DocumentationWOP)

CopyBasicFieldsFromDocumentationWOP

func (*DocumentationDB) CopyBasicFieldsFromDocumentation_WOP

func (documentationDB *DocumentationDB) CopyBasicFieldsFromDocumentation_WOP(documentation *models.Documentation_WOP)

CopyBasicFieldsFromDocumentation_WOP

func (*DocumentationDB) CopyBasicFieldsToDocumentation

func (documentationDB *DocumentationDB) CopyBasicFieldsToDocumentation(documentation *models.Documentation)

CopyBasicFieldsToDocumentation

func (*DocumentationDB) CopyBasicFieldsToDocumentationWOP

func (documentationDB *DocumentationDB) CopyBasicFieldsToDocumentationWOP(documentation *DocumentationWOP)

CopyBasicFieldsToDocumentationWOP

func (*DocumentationDB) CopyBasicFieldsToDocumentation_WOP

func (documentationDB *DocumentationDB) CopyBasicFieldsToDocumentation_WOP(documentation *models.Documentation_WOP)

CopyBasicFieldsToDocumentation_WOP

func (*DocumentationDB) DecodePointers

func (documentationDB *DocumentationDB) DecodePointers(backRepo *BackRepoStruct, documentation *models.Documentation)

type DocumentationDBResponse

type DocumentationDBResponse struct {
	DocumentationDB
}

DocumentationDBResponse provides response swagger:response documentationDBResponse

type DocumentationDBs

type DocumentationDBs []DocumentationDB

DocumentationDBs arrays documentationDBs swagger:response documentationDBsResponse

type DocumentationPointersEncoding

type DocumentationPointersEncoding struct {
}

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

type DocumentationWOP

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

	Name string `xlsx:"1"`

	Text string `xlsx:"2"`

	Source string `xlsx:"3"`

	Lang string `xlsx:"4"`
}

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

type ElementAPI

type ElementAPI struct {
	gorm.Model

	models.Element_WOP

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

ElementAPI 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 elementAPI

type ElementDB

type ElementDB struct {
	gorm.Model

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

	// Declation for basic field elementDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field elementDB.Depth
	Depth_Data sql.NullInt64

	// Declation for basic field elementDB.HasNameConflict
	// provide the sql storage for the boolan
	HasNameConflict_Data sql.NullBool

	// Declation for basic field elementDB.GoIdentifier
	GoIdentifier_Data sql.NullString

	// Declation for basic field elementDB.NameXSD
	NameXSD_Data sql.NullString

	// Declation for basic field elementDB.Type
	Type_Data sql.NullString

	// Declation for basic field elementDB.MinOccurs
	MinOccurs_Data sql.NullString

	// Declation for basic field elementDB.MaxOccurs
	MaxOccurs_Data sql.NullString

	// Declation for basic field elementDB.Default
	Default_Data sql.NullString

	// Declation for basic field elementDB.Fixed
	Fixed_Data sql.NullString

	// Declation for basic field elementDB.Nillable
	Nillable_Data sql.NullString

	// Declation for basic field elementDB.Ref
	Ref_Data sql.NullString

	// Declation for basic field elementDB.Abstract
	Abstract_Data sql.NullString

	// Declation for basic field elementDB.Form
	Form_Data sql.NullString

	// Declation for basic field elementDB.Block
	Block_Data sql.NullString

	// Declation for basic field elementDB.Final
	Final_Data sql.NullString

	// Declation for basic field elementDB.IsDuplicatedInXSD
	// provide the sql storage for the boolan
	IsDuplicatedInXSD_Data sql.NullBool

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

ElementDB describes a element 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 elementDB

func (*ElementDB) CopyBasicFieldsFromElement

func (elementDB *ElementDB) CopyBasicFieldsFromElement(element *models.Element)

CopyBasicFieldsFromElement

func (*ElementDB) CopyBasicFieldsFromElementWOP

func (elementDB *ElementDB) CopyBasicFieldsFromElementWOP(element *ElementWOP)

CopyBasicFieldsFromElementWOP

func (*ElementDB) CopyBasicFieldsFromElement_WOP

func (elementDB *ElementDB) CopyBasicFieldsFromElement_WOP(element *models.Element_WOP)

CopyBasicFieldsFromElement_WOP

func (*ElementDB) CopyBasicFieldsToElement

func (elementDB *ElementDB) CopyBasicFieldsToElement(element *models.Element)

CopyBasicFieldsToElement

func (*ElementDB) CopyBasicFieldsToElementWOP

func (elementDB *ElementDB) CopyBasicFieldsToElementWOP(element *ElementWOP)

CopyBasicFieldsToElementWOP

func (*ElementDB) CopyBasicFieldsToElement_WOP

func (elementDB *ElementDB) CopyBasicFieldsToElement_WOP(element *models.Element_WOP)

CopyBasicFieldsToElement_WOP

func (*ElementDB) DecodePointers

func (elementDB *ElementDB) DecodePointers(backRepo *BackRepoStruct, element *models.Element)

type ElementDBResponse

type ElementDBResponse struct {
	ElementDB
}

ElementDBResponse provides response swagger:response elementDBResponse

type ElementDBs

type ElementDBs []ElementDB

ElementDBs arrays elementDBs swagger:response elementDBsResponse

type ElementPointersEncoding

type ElementPointersEncoding struct {

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

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

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

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

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

type ElementWOP

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

	Name string `xlsx:"1"`

	Order int `xlsx:"2"`

	Depth int `xlsx:"3"`

	HasNameConflict bool `xlsx:"4"`

	GoIdentifier string `xlsx:"5"`

	NameXSD string `xlsx:"6"`

	Type string `xlsx:"7"`

	MinOccurs string `xlsx:"8"`

	MaxOccurs string `xlsx:"9"`

	Default string `xlsx:"10"`

	Fixed string `xlsx:"11"`

	Nillable string `xlsx:"12"`

	Ref string `xlsx:"13"`

	Abstract string `xlsx:"14"`

	Form string `xlsx:"15"`

	Block string `xlsx:"16"`

	Final string `xlsx:"17"`

	IsDuplicatedInXSD bool `xlsx:"18"`
}

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

type EnumerationAPI

type EnumerationAPI struct {
	gorm.Model

	models.Enumeration_WOP

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

EnumerationAPI 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 enumerationAPI

type EnumerationDB

type EnumerationDB struct {
	gorm.Model

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

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

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

EnumerationDB describes a enumeration 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 enumerationDB

func (*EnumerationDB) CopyBasicFieldsFromEnumeration

func (enumerationDB *EnumerationDB) CopyBasicFieldsFromEnumeration(enumeration *models.Enumeration)

CopyBasicFieldsFromEnumeration

func (*EnumerationDB) CopyBasicFieldsFromEnumerationWOP

func (enumerationDB *EnumerationDB) CopyBasicFieldsFromEnumerationWOP(enumeration *EnumerationWOP)

CopyBasicFieldsFromEnumerationWOP

func (*EnumerationDB) CopyBasicFieldsFromEnumeration_WOP

func (enumerationDB *EnumerationDB) CopyBasicFieldsFromEnumeration_WOP(enumeration *models.Enumeration_WOP)

CopyBasicFieldsFromEnumeration_WOP

func (*EnumerationDB) CopyBasicFieldsToEnumeration

func (enumerationDB *EnumerationDB) CopyBasicFieldsToEnumeration(enumeration *models.Enumeration)

CopyBasicFieldsToEnumeration

func (*EnumerationDB) CopyBasicFieldsToEnumerationWOP

func (enumerationDB *EnumerationDB) CopyBasicFieldsToEnumerationWOP(enumeration *EnumerationWOP)

CopyBasicFieldsToEnumerationWOP

func (*EnumerationDB) CopyBasicFieldsToEnumeration_WOP

func (enumerationDB *EnumerationDB) CopyBasicFieldsToEnumeration_WOP(enumeration *models.Enumeration_WOP)

CopyBasicFieldsToEnumeration_WOP

func (*EnumerationDB) DecodePointers

func (enumerationDB *EnumerationDB) DecodePointers(backRepo *BackRepoStruct, enumeration *models.Enumeration)

type EnumerationDBResponse

type EnumerationDBResponse struct {
	EnumerationDB
}

EnumerationDBResponse provides response swagger:response enumerationDBResponse

type EnumerationDBs

type EnumerationDBs []EnumerationDB

EnumerationDBs arrays enumerationDBs swagger:response enumerationDBsResponse

type EnumerationPointersEncoding

type EnumerationPointersEncoding struct {

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

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

type EnumerationWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type ExtensionAPI

type ExtensionAPI struct {
	gorm.Model

	models.Extension_WOP

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

ExtensionAPI 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 extensionAPI

type ExtensionDB

type ExtensionDB struct {
	gorm.Model

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

	// Declation for basic field extensionDB.OuterElementName
	OuterElementName_Data sql.NullString

	// Declation for basic field extensionDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field extensionDB.Depth
	Depth_Data sql.NullInt64

	// Declation for basic field extensionDB.MinOccurs
	MinOccurs_Data sql.NullString

	// Declation for basic field extensionDB.MaxOccurs
	MaxOccurs_Data sql.NullString

	// Declation for basic field extensionDB.Base
	Base_Data sql.NullString

	// Declation for basic field extensionDB.Ref
	Ref_Data sql.NullString

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

ExtensionDB describes a extension 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 extensionDB

func (*ExtensionDB) CopyBasicFieldsFromExtension

func (extensionDB *ExtensionDB) CopyBasicFieldsFromExtension(extension *models.Extension)

CopyBasicFieldsFromExtension

func (*ExtensionDB) CopyBasicFieldsFromExtensionWOP

func (extensionDB *ExtensionDB) CopyBasicFieldsFromExtensionWOP(extension *ExtensionWOP)

CopyBasicFieldsFromExtensionWOP

func (*ExtensionDB) CopyBasicFieldsFromExtension_WOP

func (extensionDB *ExtensionDB) CopyBasicFieldsFromExtension_WOP(extension *models.Extension_WOP)

CopyBasicFieldsFromExtension_WOP

func (*ExtensionDB) CopyBasicFieldsToExtension

func (extensionDB *ExtensionDB) CopyBasicFieldsToExtension(extension *models.Extension)

CopyBasicFieldsToExtension

func (*ExtensionDB) CopyBasicFieldsToExtensionWOP

func (extensionDB *ExtensionDB) CopyBasicFieldsToExtensionWOP(extension *ExtensionWOP)

CopyBasicFieldsToExtensionWOP

func (*ExtensionDB) CopyBasicFieldsToExtension_WOP

func (extensionDB *ExtensionDB) CopyBasicFieldsToExtension_WOP(extension *models.Extension_WOP)

CopyBasicFieldsToExtension_WOP

func (*ExtensionDB) DecodePointers

func (extensionDB *ExtensionDB) DecodePointers(backRepo *BackRepoStruct, extension *models.Extension)

type ExtensionDBResponse

type ExtensionDBResponse struct {
	ExtensionDB
}

ExtensionDBResponse provides response swagger:response extensionDBResponse

type ExtensionDBs

type ExtensionDBs []ExtensionDB

ExtensionDBs arrays extensionDBs swagger:response extensionDBsResponse

type ExtensionPointersEncoding

type ExtensionPointersEncoding struct {

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

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

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

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

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

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

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

type ExtensionWOP

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

	Name string `xlsx:"1"`

	OuterElementName string `xlsx:"2"`

	Order int `xlsx:"3"`

	Depth int `xlsx:"4"`

	MinOccurs string `xlsx:"5"`

	MaxOccurs string `xlsx:"6"`

	Base string `xlsx:"7"`

	Ref string `xlsx:"8"`
}

ExtensionWOP is a Extension 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 GroupAPI

type GroupAPI struct {
	gorm.Model

	models.Group_WOP

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

GroupAPI 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 groupAPI

type GroupDB

type GroupDB struct {
	gorm.Model

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

	// Declation for basic field groupDB.NameXSD
	NameXSD_Data sql.NullString

	// Declation for basic field groupDB.Ref
	Ref_Data sql.NullString

	// Declation for basic field groupDB.IsAnonymous
	// provide the sql storage for the boolan
	IsAnonymous_Data sql.NullBool

	// Declation for basic field groupDB.HasNameConflict
	// provide the sql storage for the boolan
	HasNameConflict_Data sql.NullBool

	// Declation for basic field groupDB.GoIdentifier
	GoIdentifier_Data sql.NullString

	// Declation for basic field groupDB.OuterElementName
	OuterElementName_Data sql.NullString

	// Declation for basic field groupDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field groupDB.Depth
	Depth_Data sql.NullInt64

	// Declation for basic field groupDB.MinOccurs
	MinOccurs_Data sql.NullString

	// Declation for basic field groupDB.MaxOccurs
	MaxOccurs_Data sql.NullString

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

GroupDB describes a group 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 groupDB

func (*GroupDB) CopyBasicFieldsFromGroup

func (groupDB *GroupDB) CopyBasicFieldsFromGroup(group *models.Group)

CopyBasicFieldsFromGroup

func (*GroupDB) CopyBasicFieldsFromGroupWOP

func (groupDB *GroupDB) CopyBasicFieldsFromGroupWOP(group *GroupWOP)

CopyBasicFieldsFromGroupWOP

func (*GroupDB) CopyBasicFieldsFromGroup_WOP

func (groupDB *GroupDB) CopyBasicFieldsFromGroup_WOP(group *models.Group_WOP)

CopyBasicFieldsFromGroup_WOP

func (*GroupDB) CopyBasicFieldsToGroup

func (groupDB *GroupDB) CopyBasicFieldsToGroup(group *models.Group)

CopyBasicFieldsToGroup

func (*GroupDB) CopyBasicFieldsToGroupWOP

func (groupDB *GroupDB) CopyBasicFieldsToGroupWOP(group *GroupWOP)

CopyBasicFieldsToGroupWOP

func (*GroupDB) CopyBasicFieldsToGroup_WOP

func (groupDB *GroupDB) CopyBasicFieldsToGroup_WOP(group *models.Group_WOP)

CopyBasicFieldsToGroup_WOP

func (*GroupDB) DecodePointers

func (groupDB *GroupDB) DecodePointers(backRepo *BackRepoStruct, group *models.Group)

type GroupDBResponse

type GroupDBResponse struct {
	GroupDB
}

GroupDBResponse provides response swagger:response groupDBResponse

type GroupDBs

type GroupDBs []GroupDB

GroupDBs arrays groupDBs swagger:response groupDBsResponse

type GroupPointersEncoding

type GroupPointersEncoding struct {

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

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

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

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

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

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

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

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

type GroupWOP

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

	Name string `xlsx:"1"`

	NameXSD string `xlsx:"2"`

	Ref string `xlsx:"3"`

	IsAnonymous bool `xlsx:"4"`

	HasNameConflict bool `xlsx:"5"`

	GoIdentifier string `xlsx:"6"`

	OuterElementName string `xlsx:"7"`

	Order int `xlsx:"8"`

	Depth int `xlsx:"9"`

	MinOccurs string `xlsx:"10"`

	MaxOccurs string `xlsx:"11"`
}

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

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 LengthAPI

type LengthAPI struct {
	gorm.Model

	models.Length_WOP

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

LengthAPI 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 lengthAPI

type LengthDB

type LengthDB struct {
	gorm.Model

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

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

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

LengthDB describes a length 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 lengthDB

func (*LengthDB) CopyBasicFieldsFromLength

func (lengthDB *LengthDB) CopyBasicFieldsFromLength(length *models.Length)

CopyBasicFieldsFromLength

func (*LengthDB) CopyBasicFieldsFromLengthWOP

func (lengthDB *LengthDB) CopyBasicFieldsFromLengthWOP(length *LengthWOP)

CopyBasicFieldsFromLengthWOP

func (*LengthDB) CopyBasicFieldsFromLength_WOP

func (lengthDB *LengthDB) CopyBasicFieldsFromLength_WOP(length *models.Length_WOP)

CopyBasicFieldsFromLength_WOP

func (*LengthDB) CopyBasicFieldsToLength

func (lengthDB *LengthDB) CopyBasicFieldsToLength(length *models.Length)

CopyBasicFieldsToLength

func (*LengthDB) CopyBasicFieldsToLengthWOP

func (lengthDB *LengthDB) CopyBasicFieldsToLengthWOP(length *LengthWOP)

CopyBasicFieldsToLengthWOP

func (*LengthDB) CopyBasicFieldsToLength_WOP

func (lengthDB *LengthDB) CopyBasicFieldsToLength_WOP(length *models.Length_WOP)

CopyBasicFieldsToLength_WOP

func (*LengthDB) DecodePointers

func (lengthDB *LengthDB) DecodePointers(backRepo *BackRepoStruct, length *models.Length)

type LengthDBResponse

type LengthDBResponse struct {
	LengthDB
}

LengthDBResponse provides response swagger:response lengthDBResponse

type LengthDBs

type LengthDBs []LengthDB

LengthDBs arrays lengthDBs swagger:response lengthDBsResponse

type LengthPointersEncoding

type LengthPointersEncoding struct {

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

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

type LengthWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type MaxInclusiveAPI

type MaxInclusiveAPI struct {
	gorm.Model

	models.MaxInclusive_WOP

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

MaxInclusiveAPI 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 maxinclusiveAPI

type MaxInclusiveDB

type MaxInclusiveDB struct {
	gorm.Model

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

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

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

MaxInclusiveDB describes a maxinclusive 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 maxinclusiveDB

func (*MaxInclusiveDB) CopyBasicFieldsFromMaxInclusive

func (maxinclusiveDB *MaxInclusiveDB) CopyBasicFieldsFromMaxInclusive(maxinclusive *models.MaxInclusive)

CopyBasicFieldsFromMaxInclusive

func (*MaxInclusiveDB) CopyBasicFieldsFromMaxInclusiveWOP

func (maxinclusiveDB *MaxInclusiveDB) CopyBasicFieldsFromMaxInclusiveWOP(maxinclusive *MaxInclusiveWOP)

CopyBasicFieldsFromMaxInclusiveWOP

func (*MaxInclusiveDB) CopyBasicFieldsFromMaxInclusive_WOP

func (maxinclusiveDB *MaxInclusiveDB) CopyBasicFieldsFromMaxInclusive_WOP(maxinclusive *models.MaxInclusive_WOP)

CopyBasicFieldsFromMaxInclusive_WOP

func (*MaxInclusiveDB) CopyBasicFieldsToMaxInclusive

func (maxinclusiveDB *MaxInclusiveDB) CopyBasicFieldsToMaxInclusive(maxinclusive *models.MaxInclusive)

CopyBasicFieldsToMaxInclusive

func (*MaxInclusiveDB) CopyBasicFieldsToMaxInclusiveWOP

func (maxinclusiveDB *MaxInclusiveDB) CopyBasicFieldsToMaxInclusiveWOP(maxinclusive *MaxInclusiveWOP)

CopyBasicFieldsToMaxInclusiveWOP

func (*MaxInclusiveDB) CopyBasicFieldsToMaxInclusive_WOP

func (maxinclusiveDB *MaxInclusiveDB) CopyBasicFieldsToMaxInclusive_WOP(maxinclusive *models.MaxInclusive_WOP)

CopyBasicFieldsToMaxInclusive_WOP

func (*MaxInclusiveDB) DecodePointers

func (maxinclusiveDB *MaxInclusiveDB) DecodePointers(backRepo *BackRepoStruct, maxinclusive *models.MaxInclusive)

type MaxInclusiveDBResponse

type MaxInclusiveDBResponse struct {
	MaxInclusiveDB
}

MaxInclusiveDBResponse provides response swagger:response maxinclusiveDBResponse

type MaxInclusiveDBs

type MaxInclusiveDBs []MaxInclusiveDB

MaxInclusiveDBs arrays maxinclusiveDBs swagger:response maxinclusiveDBsResponse

type MaxInclusivePointersEncoding

type MaxInclusivePointersEncoding struct {

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

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

type MaxInclusiveWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type MaxLengthAPI

type MaxLengthAPI struct {
	gorm.Model

	models.MaxLength_WOP

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

MaxLengthAPI 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 maxlengthAPI

type MaxLengthDB

type MaxLengthDB struct {
	gorm.Model

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

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

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

MaxLengthDB describes a maxlength 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 maxlengthDB

func (*MaxLengthDB) CopyBasicFieldsFromMaxLength

func (maxlengthDB *MaxLengthDB) CopyBasicFieldsFromMaxLength(maxlength *models.MaxLength)

CopyBasicFieldsFromMaxLength

func (*MaxLengthDB) CopyBasicFieldsFromMaxLengthWOP

func (maxlengthDB *MaxLengthDB) CopyBasicFieldsFromMaxLengthWOP(maxlength *MaxLengthWOP)

CopyBasicFieldsFromMaxLengthWOP

func (*MaxLengthDB) CopyBasicFieldsFromMaxLength_WOP

func (maxlengthDB *MaxLengthDB) CopyBasicFieldsFromMaxLength_WOP(maxlength *models.MaxLength_WOP)

CopyBasicFieldsFromMaxLength_WOP

func (*MaxLengthDB) CopyBasicFieldsToMaxLength

func (maxlengthDB *MaxLengthDB) CopyBasicFieldsToMaxLength(maxlength *models.MaxLength)

CopyBasicFieldsToMaxLength

func (*MaxLengthDB) CopyBasicFieldsToMaxLengthWOP

func (maxlengthDB *MaxLengthDB) CopyBasicFieldsToMaxLengthWOP(maxlength *MaxLengthWOP)

CopyBasicFieldsToMaxLengthWOP

func (*MaxLengthDB) CopyBasicFieldsToMaxLength_WOP

func (maxlengthDB *MaxLengthDB) CopyBasicFieldsToMaxLength_WOP(maxlength *models.MaxLength_WOP)

CopyBasicFieldsToMaxLength_WOP

func (*MaxLengthDB) DecodePointers

func (maxlengthDB *MaxLengthDB) DecodePointers(backRepo *BackRepoStruct, maxlength *models.MaxLength)

type MaxLengthDBResponse

type MaxLengthDBResponse struct {
	MaxLengthDB
}

MaxLengthDBResponse provides response swagger:response maxlengthDBResponse

type MaxLengthDBs

type MaxLengthDBs []MaxLengthDB

MaxLengthDBs arrays maxlengthDBs swagger:response maxlengthDBsResponse

type MaxLengthPointersEncoding

type MaxLengthPointersEncoding struct {

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

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

type MaxLengthWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type MinInclusiveAPI

type MinInclusiveAPI struct {
	gorm.Model

	models.MinInclusive_WOP

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

MinInclusiveAPI 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 mininclusiveAPI

type MinInclusiveDB

type MinInclusiveDB struct {
	gorm.Model

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

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

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

MinInclusiveDB describes a mininclusive 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 mininclusiveDB

func (*MinInclusiveDB) CopyBasicFieldsFromMinInclusive

func (mininclusiveDB *MinInclusiveDB) CopyBasicFieldsFromMinInclusive(mininclusive *models.MinInclusive)

CopyBasicFieldsFromMinInclusive

func (*MinInclusiveDB) CopyBasicFieldsFromMinInclusiveWOP

func (mininclusiveDB *MinInclusiveDB) CopyBasicFieldsFromMinInclusiveWOP(mininclusive *MinInclusiveWOP)

CopyBasicFieldsFromMinInclusiveWOP

func (*MinInclusiveDB) CopyBasicFieldsFromMinInclusive_WOP

func (mininclusiveDB *MinInclusiveDB) CopyBasicFieldsFromMinInclusive_WOP(mininclusive *models.MinInclusive_WOP)

CopyBasicFieldsFromMinInclusive_WOP

func (*MinInclusiveDB) CopyBasicFieldsToMinInclusive

func (mininclusiveDB *MinInclusiveDB) CopyBasicFieldsToMinInclusive(mininclusive *models.MinInclusive)

CopyBasicFieldsToMinInclusive

func (*MinInclusiveDB) CopyBasicFieldsToMinInclusiveWOP

func (mininclusiveDB *MinInclusiveDB) CopyBasicFieldsToMinInclusiveWOP(mininclusive *MinInclusiveWOP)

CopyBasicFieldsToMinInclusiveWOP

func (*MinInclusiveDB) CopyBasicFieldsToMinInclusive_WOP

func (mininclusiveDB *MinInclusiveDB) CopyBasicFieldsToMinInclusive_WOP(mininclusive *models.MinInclusive_WOP)

CopyBasicFieldsToMinInclusive_WOP

func (*MinInclusiveDB) DecodePointers

func (mininclusiveDB *MinInclusiveDB) DecodePointers(backRepo *BackRepoStruct, mininclusive *models.MinInclusive)

type MinInclusiveDBResponse

type MinInclusiveDBResponse struct {
	MinInclusiveDB
}

MinInclusiveDBResponse provides response swagger:response mininclusiveDBResponse

type MinInclusiveDBs

type MinInclusiveDBs []MinInclusiveDB

MinInclusiveDBs arrays mininclusiveDBs swagger:response mininclusiveDBsResponse

type MinInclusivePointersEncoding

type MinInclusivePointersEncoding struct {

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

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

type MinInclusiveWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type MinLengthAPI

type MinLengthAPI struct {
	gorm.Model

	models.MinLength_WOP

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

MinLengthAPI 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 minlengthAPI

type MinLengthDB

type MinLengthDB struct {
	gorm.Model

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

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

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

MinLengthDB describes a minlength 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 minlengthDB

func (*MinLengthDB) CopyBasicFieldsFromMinLength

func (minlengthDB *MinLengthDB) CopyBasicFieldsFromMinLength(minlength *models.MinLength)

CopyBasicFieldsFromMinLength

func (*MinLengthDB) CopyBasicFieldsFromMinLengthWOP

func (minlengthDB *MinLengthDB) CopyBasicFieldsFromMinLengthWOP(minlength *MinLengthWOP)

CopyBasicFieldsFromMinLengthWOP

func (*MinLengthDB) CopyBasicFieldsFromMinLength_WOP

func (minlengthDB *MinLengthDB) CopyBasicFieldsFromMinLength_WOP(minlength *models.MinLength_WOP)

CopyBasicFieldsFromMinLength_WOP

func (*MinLengthDB) CopyBasicFieldsToMinLength

func (minlengthDB *MinLengthDB) CopyBasicFieldsToMinLength(minlength *models.MinLength)

CopyBasicFieldsToMinLength

func (*MinLengthDB) CopyBasicFieldsToMinLengthWOP

func (minlengthDB *MinLengthDB) CopyBasicFieldsToMinLengthWOP(minlength *MinLengthWOP)

CopyBasicFieldsToMinLengthWOP

func (*MinLengthDB) CopyBasicFieldsToMinLength_WOP

func (minlengthDB *MinLengthDB) CopyBasicFieldsToMinLength_WOP(minlength *models.MinLength_WOP)

CopyBasicFieldsToMinLength_WOP

func (*MinLengthDB) DecodePointers

func (minlengthDB *MinLengthDB) DecodePointers(backRepo *BackRepoStruct, minlength *models.MinLength)

type MinLengthDBResponse

type MinLengthDBResponse struct {
	MinLengthDB
}

MinLengthDBResponse provides response swagger:response minlengthDBResponse

type MinLengthDBs

type MinLengthDBs []MinLengthDB

MinLengthDBs arrays minlengthDBs swagger:response minlengthDBsResponse

type MinLengthPointersEncoding

type MinLengthPointersEncoding struct {

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

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

type MinLengthWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type PatternAPI

type PatternAPI struct {
	gorm.Model

	models.Pattern_WOP

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

PatternAPI 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 patternAPI

type PatternDB

type PatternDB struct {
	gorm.Model

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

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

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

PatternDB describes a pattern 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 patternDB

func (*PatternDB) CopyBasicFieldsFromPattern

func (patternDB *PatternDB) CopyBasicFieldsFromPattern(pattern *models.Pattern)

CopyBasicFieldsFromPattern

func (*PatternDB) CopyBasicFieldsFromPatternWOP

func (patternDB *PatternDB) CopyBasicFieldsFromPatternWOP(pattern *PatternWOP)

CopyBasicFieldsFromPatternWOP

func (*PatternDB) CopyBasicFieldsFromPattern_WOP

func (patternDB *PatternDB) CopyBasicFieldsFromPattern_WOP(pattern *models.Pattern_WOP)

CopyBasicFieldsFromPattern_WOP

func (*PatternDB) CopyBasicFieldsToPattern

func (patternDB *PatternDB) CopyBasicFieldsToPattern(pattern *models.Pattern)

CopyBasicFieldsToPattern

func (*PatternDB) CopyBasicFieldsToPatternWOP

func (patternDB *PatternDB) CopyBasicFieldsToPatternWOP(pattern *PatternWOP)

CopyBasicFieldsToPatternWOP

func (*PatternDB) CopyBasicFieldsToPattern_WOP

func (patternDB *PatternDB) CopyBasicFieldsToPattern_WOP(pattern *models.Pattern_WOP)

CopyBasicFieldsToPattern_WOP

func (*PatternDB) DecodePointers

func (patternDB *PatternDB) DecodePointers(backRepo *BackRepoStruct, pattern *models.Pattern)

type PatternDBResponse

type PatternDBResponse struct {
	PatternDB
}

PatternDBResponse provides response swagger:response patternDBResponse

type PatternDBs

type PatternDBs []PatternDB

PatternDBs arrays patternDBs swagger:response patternDBsResponse

type PatternPointersEncoding

type PatternPointersEncoding struct {

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

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

type PatternWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type RestrictionAPI

type RestrictionAPI struct {
	gorm.Model

	models.Restriction_WOP

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

RestrictionAPI 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 restrictionAPI

type RestrictionDB

type RestrictionDB struct {
	gorm.Model

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

	// Declation for basic field restrictionDB.Base
	Base_Data sql.NullString

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

RestrictionDB describes a restriction 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 restrictionDB

func (*RestrictionDB) CopyBasicFieldsFromRestriction

func (restrictionDB *RestrictionDB) CopyBasicFieldsFromRestriction(restriction *models.Restriction)

CopyBasicFieldsFromRestriction

func (*RestrictionDB) CopyBasicFieldsFromRestrictionWOP

func (restrictionDB *RestrictionDB) CopyBasicFieldsFromRestrictionWOP(restriction *RestrictionWOP)

CopyBasicFieldsFromRestrictionWOP

func (*RestrictionDB) CopyBasicFieldsFromRestriction_WOP

func (restrictionDB *RestrictionDB) CopyBasicFieldsFromRestriction_WOP(restriction *models.Restriction_WOP)

CopyBasicFieldsFromRestriction_WOP

func (*RestrictionDB) CopyBasicFieldsToRestriction

func (restrictionDB *RestrictionDB) CopyBasicFieldsToRestriction(restriction *models.Restriction)

CopyBasicFieldsToRestriction

func (*RestrictionDB) CopyBasicFieldsToRestrictionWOP

func (restrictionDB *RestrictionDB) CopyBasicFieldsToRestrictionWOP(restriction *RestrictionWOP)

CopyBasicFieldsToRestrictionWOP

func (*RestrictionDB) CopyBasicFieldsToRestriction_WOP

func (restrictionDB *RestrictionDB) CopyBasicFieldsToRestriction_WOP(restriction *models.Restriction_WOP)

CopyBasicFieldsToRestriction_WOP

func (*RestrictionDB) DecodePointers

func (restrictionDB *RestrictionDB) DecodePointers(backRepo *BackRepoStruct, restriction *models.Restriction)

type RestrictionDBResponse

type RestrictionDBResponse struct {
	RestrictionDB
}

RestrictionDBResponse provides response swagger:response restrictionDBResponse

type RestrictionDBs

type RestrictionDBs []RestrictionDB

RestrictionDBs arrays restrictionDBs swagger:response restrictionDBsResponse

type RestrictionPointersEncoding

type RestrictionPointersEncoding struct {

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

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

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

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

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

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

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

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

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

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

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

type RestrictionWOP

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

	Name string `xlsx:"1"`

	Base string `xlsx:"2"`
}

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

type SchemaAPI

type SchemaAPI struct {
	gorm.Model

	models.Schema_WOP

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

SchemaAPI 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 schemaAPI

type SchemaDB

type SchemaDB struct {
	gorm.Model

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

	// Declation for basic field schemaDB.Xs
	Xs_Data sql.NullString

	// Declation for basic field schemaDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field schemaDB.Depth
	Depth_Data sql.NullInt64

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

SchemaDB describes a schema 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 schemaDB

func (*SchemaDB) CopyBasicFieldsFromSchema

func (schemaDB *SchemaDB) CopyBasicFieldsFromSchema(schema *models.Schema)

CopyBasicFieldsFromSchema

func (*SchemaDB) CopyBasicFieldsFromSchemaWOP

func (schemaDB *SchemaDB) CopyBasicFieldsFromSchemaWOP(schema *SchemaWOP)

CopyBasicFieldsFromSchemaWOP

func (*SchemaDB) CopyBasicFieldsFromSchema_WOP

func (schemaDB *SchemaDB) CopyBasicFieldsFromSchema_WOP(schema *models.Schema_WOP)

CopyBasicFieldsFromSchema_WOP

func (*SchemaDB) CopyBasicFieldsToSchema

func (schemaDB *SchemaDB) CopyBasicFieldsToSchema(schema *models.Schema)

CopyBasicFieldsToSchema

func (*SchemaDB) CopyBasicFieldsToSchemaWOP

func (schemaDB *SchemaDB) CopyBasicFieldsToSchemaWOP(schema *SchemaWOP)

CopyBasicFieldsToSchemaWOP

func (*SchemaDB) CopyBasicFieldsToSchema_WOP

func (schemaDB *SchemaDB) CopyBasicFieldsToSchema_WOP(schema *models.Schema_WOP)

CopyBasicFieldsToSchema_WOP

func (*SchemaDB) DecodePointers

func (schemaDB *SchemaDB) DecodePointers(backRepo *BackRepoStruct, schema *models.Schema)

type SchemaDBResponse

type SchemaDBResponse struct {
	SchemaDB
}

SchemaDBResponse provides response swagger:response schemaDBResponse

type SchemaDBs

type SchemaDBs []SchemaDB

SchemaDBs arrays schemaDBs swagger:response schemaDBsResponse

type SchemaPointersEncoding

type SchemaPointersEncoding struct {

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

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

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

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

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

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

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

type SchemaWOP

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

	Name string `xlsx:"1"`

	Xs string `xlsx:"2"`

	Order int `xlsx:"3"`

	Depth int `xlsx:"4"`
}

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

type SequenceAPI

type SequenceAPI struct {
	gorm.Model

	models.Sequence_WOP

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

SequenceAPI 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 sequenceAPI

type SequenceDB

type SequenceDB struct {
	gorm.Model

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

	// Declation for basic field sequenceDB.OuterElementName
	OuterElementName_Data sql.NullString

	// Declation for basic field sequenceDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field sequenceDB.Depth
	Depth_Data sql.NullInt64

	// Declation for basic field sequenceDB.MinOccurs
	MinOccurs_Data sql.NullString

	// Declation for basic field sequenceDB.MaxOccurs
	MaxOccurs_Data sql.NullString

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

SequenceDB describes a sequence 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 sequenceDB

func (*SequenceDB) CopyBasicFieldsFromSequence

func (sequenceDB *SequenceDB) CopyBasicFieldsFromSequence(sequence *models.Sequence)

CopyBasicFieldsFromSequence

func (*SequenceDB) CopyBasicFieldsFromSequenceWOP

func (sequenceDB *SequenceDB) CopyBasicFieldsFromSequenceWOP(sequence *SequenceWOP)

CopyBasicFieldsFromSequenceWOP

func (*SequenceDB) CopyBasicFieldsFromSequence_WOP

func (sequenceDB *SequenceDB) CopyBasicFieldsFromSequence_WOP(sequence *models.Sequence_WOP)

CopyBasicFieldsFromSequence_WOP

func (*SequenceDB) CopyBasicFieldsToSequence

func (sequenceDB *SequenceDB) CopyBasicFieldsToSequence(sequence *models.Sequence)

CopyBasicFieldsToSequence

func (*SequenceDB) CopyBasicFieldsToSequenceWOP

func (sequenceDB *SequenceDB) CopyBasicFieldsToSequenceWOP(sequence *SequenceWOP)

CopyBasicFieldsToSequenceWOP

func (*SequenceDB) CopyBasicFieldsToSequence_WOP

func (sequenceDB *SequenceDB) CopyBasicFieldsToSequence_WOP(sequence *models.Sequence_WOP)

CopyBasicFieldsToSequence_WOP

func (*SequenceDB) DecodePointers

func (sequenceDB *SequenceDB) DecodePointers(backRepo *BackRepoStruct, sequence *models.Sequence)

type SequenceDBResponse

type SequenceDBResponse struct {
	SequenceDB
}

SequenceDBResponse provides response swagger:response sequenceDBResponse

type SequenceDBs

type SequenceDBs []SequenceDB

SequenceDBs arrays sequenceDBs swagger:response sequenceDBsResponse

type SequencePointersEncoding

type SequencePointersEncoding struct {

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

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

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

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

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

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

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

type SequenceWOP

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

	Name string `xlsx:"1"`

	OuterElementName string `xlsx:"2"`

	Order int `xlsx:"3"`

	Depth int `xlsx:"4"`

	MinOccurs string `xlsx:"5"`

	MaxOccurs string `xlsx:"6"`
}

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

type SimpleContentAPI

type SimpleContentAPI struct {
	gorm.Model

	models.SimpleContent_WOP

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

SimpleContentAPI 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 simplecontentAPI

type SimpleContentDB

type SimpleContentDB struct {
	gorm.Model

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

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

SimpleContentDB describes a simplecontent 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 simplecontentDB

func (*SimpleContentDB) CopyBasicFieldsFromSimpleContent

func (simplecontentDB *SimpleContentDB) CopyBasicFieldsFromSimpleContent(simplecontent *models.SimpleContent)

CopyBasicFieldsFromSimpleContent

func (*SimpleContentDB) CopyBasicFieldsFromSimpleContentWOP

func (simplecontentDB *SimpleContentDB) CopyBasicFieldsFromSimpleContentWOP(simplecontent *SimpleContentWOP)

CopyBasicFieldsFromSimpleContentWOP

func (*SimpleContentDB) CopyBasicFieldsFromSimpleContent_WOP

func (simplecontentDB *SimpleContentDB) CopyBasicFieldsFromSimpleContent_WOP(simplecontent *models.SimpleContent_WOP)

CopyBasicFieldsFromSimpleContent_WOP

func (*SimpleContentDB) CopyBasicFieldsToSimpleContent

func (simplecontentDB *SimpleContentDB) CopyBasicFieldsToSimpleContent(simplecontent *models.SimpleContent)

CopyBasicFieldsToSimpleContent

func (*SimpleContentDB) CopyBasicFieldsToSimpleContentWOP

func (simplecontentDB *SimpleContentDB) CopyBasicFieldsToSimpleContentWOP(simplecontent *SimpleContentWOP)

CopyBasicFieldsToSimpleContentWOP

func (*SimpleContentDB) CopyBasicFieldsToSimpleContent_WOP

func (simplecontentDB *SimpleContentDB) CopyBasicFieldsToSimpleContent_WOP(simplecontent *models.SimpleContent_WOP)

CopyBasicFieldsToSimpleContent_WOP

func (*SimpleContentDB) DecodePointers

func (simplecontentDB *SimpleContentDB) DecodePointers(backRepo *BackRepoStruct, simplecontent *models.SimpleContent)

type SimpleContentDBResponse

type SimpleContentDBResponse struct {
	SimpleContentDB
}

SimpleContentDBResponse provides response swagger:response simplecontentDBResponse

type SimpleContentDBs

type SimpleContentDBs []SimpleContentDB

SimpleContentDBs arrays simplecontentDBs swagger:response simplecontentDBsResponse

type SimpleContentPointersEncoding

type SimpleContentPointersEncoding struct {

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

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

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

type SimpleContentWOP

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

	Name string `xlsx:"1"`
}

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

type SimpleTypeAPI

type SimpleTypeAPI struct {
	gorm.Model

	models.SimpleType_WOP

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

SimpleTypeAPI 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 simpletypeAPI

type SimpleTypeDB

type SimpleTypeDB struct {
	gorm.Model

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

	// Declation for basic field simpletypeDB.NameXSD
	NameXSD_Data sql.NullString

	// Declation for basic field simpletypeDB.Order
	Order_Data sql.NullInt64

	// Declation for basic field simpletypeDB.Depth
	Depth_Data sql.NullInt64

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

SimpleTypeDB describes a simpletype 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 simpletypeDB

func (*SimpleTypeDB) CopyBasicFieldsFromSimpleType

func (simpletypeDB *SimpleTypeDB) CopyBasicFieldsFromSimpleType(simpletype *models.SimpleType)

CopyBasicFieldsFromSimpleType

func (*SimpleTypeDB) CopyBasicFieldsFromSimpleTypeWOP

func (simpletypeDB *SimpleTypeDB) CopyBasicFieldsFromSimpleTypeWOP(simpletype *SimpleTypeWOP)

CopyBasicFieldsFromSimpleTypeWOP

func (*SimpleTypeDB) CopyBasicFieldsFromSimpleType_WOP

func (simpletypeDB *SimpleTypeDB) CopyBasicFieldsFromSimpleType_WOP(simpletype *models.SimpleType_WOP)

CopyBasicFieldsFromSimpleType_WOP

func (*SimpleTypeDB) CopyBasicFieldsToSimpleType

func (simpletypeDB *SimpleTypeDB) CopyBasicFieldsToSimpleType(simpletype *models.SimpleType)

CopyBasicFieldsToSimpleType

func (*SimpleTypeDB) CopyBasicFieldsToSimpleTypeWOP

func (simpletypeDB *SimpleTypeDB) CopyBasicFieldsToSimpleTypeWOP(simpletype *SimpleTypeWOP)

CopyBasicFieldsToSimpleTypeWOP

func (*SimpleTypeDB) CopyBasicFieldsToSimpleType_WOP

func (simpletypeDB *SimpleTypeDB) CopyBasicFieldsToSimpleType_WOP(simpletype *models.SimpleType_WOP)

CopyBasicFieldsToSimpleType_WOP

func (*SimpleTypeDB) DecodePointers

func (simpletypeDB *SimpleTypeDB) DecodePointers(backRepo *BackRepoStruct, simpletype *models.SimpleType)

type SimpleTypeDBResponse

type SimpleTypeDBResponse struct {
	SimpleTypeDB
}

SimpleTypeDBResponse provides response swagger:response simpletypeDBResponse

type SimpleTypeDBs

type SimpleTypeDBs []SimpleTypeDB

SimpleTypeDBs arrays simpletypeDBs swagger:response simpletypeDBsResponse

type SimpleTypePointersEncoding

type SimpleTypePointersEncoding struct {

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

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

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

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

type SimpleTypeWOP

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

	Name string `xlsx:"1"`

	NameXSD string `xlsx:"2"`

	Order int `xlsx:"3"`

	Depth int `xlsx:"4"`
}

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

type TotalDigitAPI

type TotalDigitAPI struct {
	gorm.Model

	models.TotalDigit_WOP

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

TotalDigitAPI 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 totaldigitAPI

type TotalDigitDB

type TotalDigitDB struct {
	gorm.Model

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

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

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

TotalDigitDB describes a totaldigit 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 totaldigitDB

func (*TotalDigitDB) CopyBasicFieldsFromTotalDigit

func (totaldigitDB *TotalDigitDB) CopyBasicFieldsFromTotalDigit(totaldigit *models.TotalDigit)

CopyBasicFieldsFromTotalDigit

func (*TotalDigitDB) CopyBasicFieldsFromTotalDigitWOP

func (totaldigitDB *TotalDigitDB) CopyBasicFieldsFromTotalDigitWOP(totaldigit *TotalDigitWOP)

CopyBasicFieldsFromTotalDigitWOP

func (*TotalDigitDB) CopyBasicFieldsFromTotalDigit_WOP

func (totaldigitDB *TotalDigitDB) CopyBasicFieldsFromTotalDigit_WOP(totaldigit *models.TotalDigit_WOP)

CopyBasicFieldsFromTotalDigit_WOP

func (*TotalDigitDB) CopyBasicFieldsToTotalDigit

func (totaldigitDB *TotalDigitDB) CopyBasicFieldsToTotalDigit(totaldigit *models.TotalDigit)

CopyBasicFieldsToTotalDigit

func (*TotalDigitDB) CopyBasicFieldsToTotalDigitWOP

func (totaldigitDB *TotalDigitDB) CopyBasicFieldsToTotalDigitWOP(totaldigit *TotalDigitWOP)

CopyBasicFieldsToTotalDigitWOP

func (*TotalDigitDB) CopyBasicFieldsToTotalDigit_WOP

func (totaldigitDB *TotalDigitDB) CopyBasicFieldsToTotalDigit_WOP(totaldigit *models.TotalDigit_WOP)

CopyBasicFieldsToTotalDigit_WOP

func (*TotalDigitDB) DecodePointers

func (totaldigitDB *TotalDigitDB) DecodePointers(backRepo *BackRepoStruct, totaldigit *models.TotalDigit)

type TotalDigitDBResponse

type TotalDigitDBResponse struct {
	TotalDigitDB
}

TotalDigitDBResponse provides response swagger:response totaldigitDBResponse

type TotalDigitDBs

type TotalDigitDBs []TotalDigitDB

TotalDigitDBs arrays totaldigitDBs swagger:response totaldigitDBsResponse

type TotalDigitPointersEncoding

type TotalDigitPointersEncoding struct {

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

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

type TotalDigitWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

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

type UnionAPI

type UnionAPI struct {
	gorm.Model

	models.Union_WOP

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

UnionAPI 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 unionAPI

type UnionDB

type UnionDB struct {
	gorm.Model

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

	// Declation for basic field unionDB.MemberTypes
	MemberTypes_Data sql.NullString

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

UnionDB describes a union 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 unionDB

func (*UnionDB) CopyBasicFieldsFromUnion

func (unionDB *UnionDB) CopyBasicFieldsFromUnion(union *models.Union)

CopyBasicFieldsFromUnion

func (*UnionDB) CopyBasicFieldsFromUnionWOP

func (unionDB *UnionDB) CopyBasicFieldsFromUnionWOP(union *UnionWOP)

CopyBasicFieldsFromUnionWOP

func (*UnionDB) CopyBasicFieldsFromUnion_WOP

func (unionDB *UnionDB) CopyBasicFieldsFromUnion_WOP(union *models.Union_WOP)

CopyBasicFieldsFromUnion_WOP

func (*UnionDB) CopyBasicFieldsToUnion

func (unionDB *UnionDB) CopyBasicFieldsToUnion(union *models.Union)

CopyBasicFieldsToUnion

func (*UnionDB) CopyBasicFieldsToUnionWOP

func (unionDB *UnionDB) CopyBasicFieldsToUnionWOP(union *UnionWOP)

CopyBasicFieldsToUnionWOP

func (*UnionDB) CopyBasicFieldsToUnion_WOP

func (unionDB *UnionDB) CopyBasicFieldsToUnion_WOP(union *models.Union_WOP)

CopyBasicFieldsToUnion_WOP

func (*UnionDB) DecodePointers

func (unionDB *UnionDB) DecodePointers(backRepo *BackRepoStruct, union *models.Union)

type UnionDBResponse

type UnionDBResponse struct {
	UnionDB
}

UnionDBResponse provides response swagger:response unionDBResponse

type UnionDBs

type UnionDBs []UnionDB

UnionDBs arrays unionDBs swagger:response unionDBsResponse

type UnionPointersEncoding

type UnionPointersEncoding struct {

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

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

type UnionWOP

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

	Name string `xlsx:"1"`

	MemberTypes string `xlsx:"2"`
}

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

type WhiteSpaceAPI

type WhiteSpaceAPI struct {
	gorm.Model

	models.WhiteSpace_WOP

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

WhiteSpaceAPI 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 whitespaceAPI

type WhiteSpaceDB

type WhiteSpaceDB struct {
	gorm.Model

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

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

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

WhiteSpaceDB describes a whitespace 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 whitespaceDB

func (*WhiteSpaceDB) CopyBasicFieldsFromWhiteSpace

func (whitespaceDB *WhiteSpaceDB) CopyBasicFieldsFromWhiteSpace(whitespace *models.WhiteSpace)

CopyBasicFieldsFromWhiteSpace

func (*WhiteSpaceDB) CopyBasicFieldsFromWhiteSpaceWOP

func (whitespaceDB *WhiteSpaceDB) CopyBasicFieldsFromWhiteSpaceWOP(whitespace *WhiteSpaceWOP)

CopyBasicFieldsFromWhiteSpaceWOP

func (*WhiteSpaceDB) CopyBasicFieldsFromWhiteSpace_WOP

func (whitespaceDB *WhiteSpaceDB) CopyBasicFieldsFromWhiteSpace_WOP(whitespace *models.WhiteSpace_WOP)

CopyBasicFieldsFromWhiteSpace_WOP

func (*WhiteSpaceDB) CopyBasicFieldsToWhiteSpace

func (whitespaceDB *WhiteSpaceDB) CopyBasicFieldsToWhiteSpace(whitespace *models.WhiteSpace)

CopyBasicFieldsToWhiteSpace

func (*WhiteSpaceDB) CopyBasicFieldsToWhiteSpaceWOP

func (whitespaceDB *WhiteSpaceDB) CopyBasicFieldsToWhiteSpaceWOP(whitespace *WhiteSpaceWOP)

CopyBasicFieldsToWhiteSpaceWOP

func (*WhiteSpaceDB) CopyBasicFieldsToWhiteSpace_WOP

func (whitespaceDB *WhiteSpaceDB) CopyBasicFieldsToWhiteSpace_WOP(whitespace *models.WhiteSpace_WOP)

CopyBasicFieldsToWhiteSpace_WOP

func (*WhiteSpaceDB) DecodePointers

func (whitespaceDB *WhiteSpaceDB) DecodePointers(backRepo *BackRepoStruct, whitespace *models.WhiteSpace)

type WhiteSpaceDBResponse

type WhiteSpaceDBResponse struct {
	WhiteSpaceDB
}

WhiteSpaceDBResponse provides response swagger:response whitespaceDBResponse

type WhiteSpaceDBs

type WhiteSpaceDBs []WhiteSpaceDB

WhiteSpaceDBs arrays whitespaceDBs swagger:response whitespaceDBsResponse

type WhiteSpacePointersEncoding

type WhiteSpacePointersEncoding struct {

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

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

type WhiteSpaceWOP

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

	Name string `xlsx:"1"`

	Value string `xlsx:"2"`
}

WhiteSpaceWOP is a WhiteSpace 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