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
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 ¶
- Variables
- func CopyBackRepoToBackRepoData(backRepo *BackRepoStruct, backRepoData *BackRepoData)
- func GetID[T models.Gongstruct](stage *models.StageStruct, backRepo *BackRepoStruct, instance *T) (id int)
- func GetIDPointer[T models.PointerToGongstruct](stage *models.StageStruct, backRepo *BackRepoStruct, instance T) (id int)
- func GetInstanceDBFromInstance[T models.Gongstruct, T2 GongstructDB](stage *models.StageStruct, backRepo *BackRepoStruct, instance *T) (ret *T2)
- func GetReverseFieldOwner[T models.Gongstruct](stage *models.StageStruct, backRepo *BackRepoStruct, instance *T, ...) (res any)
- func GetReverseFieldOwnerName(stage *models.StageStruct, backRepo *BackRepoStruct, instance any, ...) (res string)
- type AsSplitAPI
- type AsSplitAreaAPI
- type AsSplitAreaDB
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea(assplitarea *models.AsSplitArea)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea(assplitarea *models.AsSplitArea)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
- func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
- func (assplitareaDB *AsSplitAreaDB) DecodePointers(backRepo *BackRepoStruct, assplitarea *models.AsSplitArea)
- type AsSplitAreaDBResponse
- type AsSplitAreaDBs
- type AsSplitAreaPointersEncoding
- type AsSplitAreaWOP
- type AsSplitDB
- func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplit(assplit *models.AsSplit)
- func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplitWOP(assplit *AsSplitWOP)
- func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplit_WOP(assplit *models.AsSplit_WOP)
- func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplit(assplit *models.AsSplit)
- func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplitWOP(assplit *AsSplitWOP)
- func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplit_WOP(assplit *models.AsSplit_WOP)
- func (assplitDB *AsSplitDB) DecodePointers(backRepo *BackRepoStruct, assplit *models.AsSplit)
- type AsSplitDBResponse
- type AsSplitDBs
- type AsSplitPointersEncoding
- type AsSplitWOP
- type BackRepoAsSplitAreaStruct
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) Backup(dirPath string)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) BackupXL(file *xlsx.File)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOne() (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOneInstance(assplitareaDB *AsSplitAreaDB) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitareaDB *AsSplitAreaDB) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOneInstance(assplitarea *models.AsSplitArea) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetAsSplitAreaDBFromAsSplitAreaPtr(assplitarea *models.AsSplitArea) (assplitareaDB *AsSplitAreaDB)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetDB() db.DBInterface
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetStage() (stage *models.StageStruct)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseOne(dirPath string)
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseTwo()
- func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoAsSplitStruct
- func (backRepoAsSplit *BackRepoAsSplitStruct) Backup(dirPath string)
- func (backRepoAsSplit *BackRepoAsSplitStruct) BackupXL(file *xlsx.File)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOne() (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOneInstance(assplitDB *AsSplitDB) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitDB *AsSplitDB) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOneInstance(assplit *models.AsSplit) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) GetAsSplitDBFromAsSplitPtr(assplit *models.AsSplit) (assplitDB *AsSplitDB)
- func (backRepoAsSplit *BackRepoAsSplitStruct) GetDB() db.DBInterface
- func (backRepoAsSplit *BackRepoAsSplitStruct) GetStage() (stage *models.StageStruct)
- func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
- func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseOne(dirPath string)
- func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseTwo()
- func (backRepoAsSplit *BackRepoAsSplitStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoData
- type BackRepoDocStruct
- func (backRepoDoc *BackRepoDocStruct) Backup(dirPath string)
- func (backRepoDoc *BackRepoDocStruct) BackupXL(file *xlsx.File)
- func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseOne() (Error error)
- func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseOneInstance(docDB *DocDB) (Error error)
- func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, docDB *DocDB) (Error error)
- func (backRepoDoc *BackRepoDocStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoDoc *BackRepoDocStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoDoc *BackRepoDocStruct) CommitPhaseOneInstance(doc *models.Doc) (Error error)
- func (backRepoDoc *BackRepoDocStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDoc *BackRepoDocStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, doc *models.Doc) (Error error)
- func (backRepoDoc *BackRepoDocStruct) GetDB() db.DBInterface
- func (backRepoDoc *BackRepoDocStruct) GetDocDBFromDocPtr(doc *models.Doc) (docDB *DocDB)
- func (backRepoDoc *BackRepoDocStruct) GetStage() (stage *models.StageStruct)
- func (backRepoDoc *BackRepoDocStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoDoc *BackRepoDocStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, doc *models.Doc) (Error error)
- func (backRepoDoc *BackRepoDocStruct) RestorePhaseOne(dirPath string)
- func (backRepoDoc *BackRepoDocStruct) RestorePhaseTwo()
- func (backRepoDoc *BackRepoDocStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoFormStruct
- func (backRepoForm *BackRepoFormStruct) Backup(dirPath string)
- func (backRepoForm *BackRepoFormStruct) BackupXL(file *xlsx.File)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOne() (Error error)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOneInstance(formDB *FormDB) (Error error)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, formDB *FormDB) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseOneInstance(form *models.Form) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoForm *BackRepoFormStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
- func (backRepoForm *BackRepoFormStruct) GetDB() db.DBInterface
- func (backRepoForm *BackRepoFormStruct) GetFormDBFromFormPtr(form *models.Form) (formDB *FormDB)
- func (backRepoForm *BackRepoFormStruct) GetStage() (stage *models.StageStruct)
- func (backRepoForm *BackRepoFormStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoForm *BackRepoFormStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
- func (backRepoForm *BackRepoFormStruct) RestorePhaseOne(dirPath string)
- func (backRepoForm *BackRepoFormStruct) RestorePhaseTwo()
- func (backRepoForm *BackRepoFormStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoStruct
- func (backRepo *BackRepoStruct) Backup(stage *models.StageStruct, dirPath string)
- func (backRepo *BackRepoStruct) BackupXL(stage *models.StageStruct, dirPath string)
- func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)
- func (backRepo *BackRepoStruct) CheckoutAsSplit(assplit *models.AsSplit)
- func (backRepo *BackRepoStruct) CheckoutAsSplitArea(assplitarea *models.AsSplitArea)
- func (backRepo *BackRepoStruct) CheckoutDoc(doc *models.Doc)
- func (backRepo *BackRepoStruct) CheckoutForm(form *models.Form)
- func (backRepo *BackRepoStruct) CheckoutSvg(svg *models.Svg)
- func (backRepo *BackRepoStruct) CheckoutTable(table *models.Table)
- func (backRepo *BackRepoStruct) CheckoutTree(tree *models.Tree)
- func (backRepo *BackRepoStruct) CheckoutView(view *models.View)
- func (backRepo *BackRepoStruct) Commit(stage *models.StageStruct)
- func (backRepo *BackRepoStruct) CommitAsSplit(assplit *models.AsSplit)
- func (backRepo *BackRepoStruct) CommitAsSplitArea(assplitarea *models.AsSplitArea)
- func (backRepo *BackRepoStruct) CommitDoc(doc *models.Doc)
- func (backRepo *BackRepoStruct) CommitForm(form *models.Form)
- func (backRepo *BackRepoStruct) CommitSvg(svg *models.Svg)
- func (backRepo *BackRepoStruct) CommitTable(table *models.Table)
- func (backRepo *BackRepoStruct) CommitTree(tree *models.Tree)
- func (backRepo *BackRepoStruct) CommitView(view *models.View)
- func (backRepo *BackRepoStruct) GetLastCommitFromBackNb() uint
- func (backRepo *BackRepoStruct) GetLastPushFromFrontNb() uint
- func (backRepo *BackRepoStruct) GetStage() (stage *models.StageStruct)
- func (backRepo *BackRepoStruct) IncrementCommitFromBackNb() uint
- func (backRepo *BackRepoStruct) IncrementPushFromFrontNb() uint
- func (backRepo *BackRepoStruct) Restore(stage *models.StageStruct, dirPath string)
- func (backRepo *BackRepoStruct) RestoreXL(stage *models.StageStruct, dirPath string)
- func (backRepoStruct *BackRepoStruct) SubscribeToCommitNb(ctx context.Context) <-chan int
- type BackRepoSvgStruct
- func (backRepoSvg *BackRepoSvgStruct) Backup(dirPath string)
- func (backRepoSvg *BackRepoSvgStruct) BackupXL(file *xlsx.File)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOne() (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOneInstance(svgDB *SvgDB) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, svgDB *SvgDB) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOneInstance(svg *models.Svg) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) GetDB() db.DBInterface
- func (backRepoSvg *BackRepoSvgStruct) GetStage() (stage *models.StageStruct)
- func (backRepoSvg *BackRepoSvgStruct) GetSvgDBFromSvgPtr(svg *models.Svg) (svgDB *SvgDB)
- func (backRepoSvg *BackRepoSvgStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
- func (backRepoSvg *BackRepoSvgStruct) RestorePhaseOne(dirPath string)
- func (backRepoSvg *BackRepoSvgStruct) RestorePhaseTwo()
- func (backRepoSvg *BackRepoSvgStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTableStruct
- func (backRepoTable *BackRepoTableStruct) Backup(dirPath string)
- func (backRepoTable *BackRepoTableStruct) BackupXL(file *xlsx.File)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOneInstance(tableDB *TableDB) (Error error)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tableDB *TableDB) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseOneInstance(table *models.Table) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTable *BackRepoTableStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
- func (backRepoTable *BackRepoTableStruct) GetDB() db.DBInterface
- func (backRepoTable *BackRepoTableStruct) GetStage() (stage *models.StageStruct)
- func (backRepoTable *BackRepoTableStruct) GetTableDBFromTablePtr(table *models.Table) (tableDB *TableDB)
- func (backRepoTable *BackRepoTableStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTable *BackRepoTableStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
- func (backRepoTable *BackRepoTableStruct) RestorePhaseOne(dirPath string)
- func (backRepoTable *BackRepoTableStruct) RestorePhaseTwo()
- func (backRepoTable *BackRepoTableStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTreeStruct
- func (backRepoTree *BackRepoTreeStruct) Backup(dirPath string)
- func (backRepoTree *BackRepoTreeStruct) BackupXL(file *xlsx.File)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOneInstance(treeDB *TreeDB) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, treeDB *TreeDB) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseOneInstance(tree *models.Tree) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
- func (backRepoTree *BackRepoTreeStruct) GetDB() db.DBInterface
- func (backRepoTree *BackRepoTreeStruct) GetStage() (stage *models.StageStruct)
- func (backRepoTree *BackRepoTreeStruct) GetTreeDBFromTreePtr(tree *models.Tree) (treeDB *TreeDB)
- func (backRepoTree *BackRepoTreeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTree *BackRepoTreeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
- func (backRepoTree *BackRepoTreeStruct) RestorePhaseOne(dirPath string)
- func (backRepoTree *BackRepoTreeStruct) RestorePhaseTwo()
- func (backRepoTree *BackRepoTreeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoViewStruct
- func (backRepoView *BackRepoViewStruct) Backup(dirPath string)
- func (backRepoView *BackRepoViewStruct) BackupXL(file *xlsx.File)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseOne() (Error error)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseOneInstance(viewDB *ViewDB) (Error error)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, viewDB *ViewDB) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseOneInstance(view *models.View) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoView *BackRepoViewStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
- func (backRepoView *BackRepoViewStruct) GetDB() db.DBInterface
- func (backRepoView *BackRepoViewStruct) GetStage() (stage *models.StageStruct)
- func (backRepoView *BackRepoViewStruct) GetViewDBFromViewPtr(view *models.View) (viewDB *ViewDB)
- func (backRepoView *BackRepoViewStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoView *BackRepoViewStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
- func (backRepoView *BackRepoViewStruct) RestorePhaseOne(dirPath string)
- func (backRepoView *BackRepoViewStruct) RestorePhaseTwo()
- func (backRepoView *BackRepoViewStruct) RestoreXLPhaseOne(file *xlsx.File)
- type DBLite
- func (db *DBLite) Create(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Delete(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Find(instanceDBs any) (db.DBInterface, error)
- func (db *DBLite) First(instanceDB any, conds ...any) (db.DBInterface, error)
- func (db *DBLite) Model(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Save(instanceDB any) (db.DBInterface, error)
- func (db *DBLite) Unscoped() (db.DBInterface, error)
- func (db *DBLite) Updates(instanceDB any) (db.DBInterface, error)
- type DocAPI
- type DocDB
- func (docDB *DocDB) CopyBasicFieldsFromDoc(doc *models.Doc)
- func (docDB *DocDB) CopyBasicFieldsFromDocWOP(doc *DocWOP)
- func (docDB *DocDB) CopyBasicFieldsFromDoc_WOP(doc *models.Doc_WOP)
- func (docDB *DocDB) CopyBasicFieldsToDoc(doc *models.Doc)
- func (docDB *DocDB) CopyBasicFieldsToDocWOP(doc *DocWOP)
- func (docDB *DocDB) CopyBasicFieldsToDoc_WOP(doc *models.Doc_WOP)
- func (docDB *DocDB) DecodePointers(backRepo *BackRepoStruct, doc *models.Doc)
- type DocDBResponse
- type DocDBs
- type DocPointersEncoding
- type DocWOP
- type FormAPI
- type FormDB
- func (formDB *FormDB) CopyBasicFieldsFromForm(form *models.Form)
- func (formDB *FormDB) CopyBasicFieldsFromFormWOP(form *FormWOP)
- func (formDB *FormDB) CopyBasicFieldsFromForm_WOP(form *models.Form_WOP)
- func (formDB *FormDB) CopyBasicFieldsToForm(form *models.Form)
- func (formDB *FormDB) CopyBasicFieldsToFormWOP(form *FormWOP)
- func (formDB *FormDB) CopyBasicFieldsToForm_WOP(form *models.Form_WOP)
- func (formDB *FormDB) DecodePointers(backRepo *BackRepoStruct, form *models.Form)
- type FormDBResponse
- type FormDBs
- type FormPointersEncoding
- type FormWOP
- type GongstructDB
- type IntSlice
- type SvgAPI
- type SvgDB
- func (svgDB *SvgDB) CopyBasicFieldsFromSvg(svg *models.Svg)
- func (svgDB *SvgDB) CopyBasicFieldsFromSvgWOP(svg *SvgWOP)
- func (svgDB *SvgDB) CopyBasicFieldsFromSvg_WOP(svg *models.Svg_WOP)
- func (svgDB *SvgDB) CopyBasicFieldsToSvg(svg *models.Svg)
- func (svgDB *SvgDB) CopyBasicFieldsToSvgWOP(svg *SvgWOP)
- func (svgDB *SvgDB) CopyBasicFieldsToSvg_WOP(svg *models.Svg_WOP)
- func (svgDB *SvgDB) DecodePointers(backRepo *BackRepoStruct, svg *models.Svg)
- type SvgDBResponse
- type SvgDBs
- type SvgPointersEncoding
- type SvgWOP
- type TableAPI
- type TableDB
- func (tableDB *TableDB) CopyBasicFieldsFromTable(table *models.Table)
- func (tableDB *TableDB) CopyBasicFieldsFromTableWOP(table *TableWOP)
- func (tableDB *TableDB) CopyBasicFieldsFromTable_WOP(table *models.Table_WOP)
- func (tableDB *TableDB) CopyBasicFieldsToTable(table *models.Table)
- func (tableDB *TableDB) CopyBasicFieldsToTableWOP(table *TableWOP)
- func (tableDB *TableDB) CopyBasicFieldsToTable_WOP(table *models.Table_WOP)
- func (tableDB *TableDB) DecodePointers(backRepo *BackRepoStruct, table *models.Table)
- type TableDBResponse
- type TableDBs
- type TablePointersEncoding
- type TableWOP
- type TreeAPI
- type TreeDB
- func (treeDB *TreeDB) CopyBasicFieldsFromTree(tree *models.Tree)
- func (treeDB *TreeDB) CopyBasicFieldsFromTreeWOP(tree *TreeWOP)
- func (treeDB *TreeDB) CopyBasicFieldsFromTree_WOP(tree *models.Tree_WOP)
- func (treeDB *TreeDB) CopyBasicFieldsToTree(tree *models.Tree)
- func (treeDB *TreeDB) CopyBasicFieldsToTreeWOP(tree *TreeWOP)
- func (treeDB *TreeDB) CopyBasicFieldsToTree_WOP(tree *models.Tree_WOP)
- func (treeDB *TreeDB) DecodePointers(backRepo *BackRepoStruct, tree *models.Tree)
- type TreeDBResponse
- type TreeDBs
- type TreePointersEncoding
- type TreeWOP
- type ViewAPI
- type ViewDB
- func (viewDB *ViewDB) CopyBasicFieldsFromView(view *models.View)
- func (viewDB *ViewDB) CopyBasicFieldsFromViewWOP(view *ViewWOP)
- func (viewDB *ViewDB) CopyBasicFieldsFromView_WOP(view *models.View_WOP)
- func (viewDB *ViewDB) CopyBasicFieldsToView(view *models.View)
- func (viewDB *ViewDB) CopyBasicFieldsToViewWOP(view *ViewWOP)
- func (viewDB *ViewDB) CopyBasicFieldsToView_WOP(view *models.View_WOP)
- func (viewDB *ViewDB) DecodePointers(backRepo *BackRepoStruct, view *models.View)
- type ViewDBResponse
- type ViewDBs
- type ViewPointersEncoding
- type ViewWOP
Constants ¶
This section is empty.
Variables ¶
var AsSplitArea_Fields = []string{
"ID",
"Name",
"Size",
"IsAny",
}
var AsSplit_Fields = []string{
"ID",
"Name",
"Direction",
}
var BackRepoAsSplitAreaid_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
var BackRepoAsSplitid_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
var BackRepoDocid_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
var BackRepoFormid_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
var BackRepoSvgid_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
var BackRepoTableid_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
var BackRepoTreeid_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
var BackRepoViewid_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
var Doc_Fields = []string{
"ID",
"Name",
"StackName",
}
var Form_Fields = []string{
"ID",
"Name",
"StackName",
"FormName",
}
var Svg_Fields = []string{
"ID",
"Name",
"StackName",
}
var Table_Fields = []string{
"ID",
"Name",
"StackName",
"TableName",
}
var Tree_Fields = []string{
"ID",
"Name",
"StackName",
"TreeName",
}
var View_Fields = []string{
"ID",
"Name",
}
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( stage *models.StageStruct, backRepo *BackRepoStruct, instance any, reverseField *models.ReverseField) (res string)
Types ¶
type AsSplitAPI ¶
type AsSplitAPI struct { gorm.Model models.AsSplit_WOP // encoding of pointers // for API, it cannot be embedded AsSplitPointersEncoding AsSplitPointersEncoding }
AsSplitAPI 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 assplitAPI
type AsSplitAreaAPI ¶
type AsSplitAreaAPI struct { gorm.Model models.AsSplitArea_WOP // encoding of pointers // for API, it cannot be embedded AsSplitAreaPointersEncoding AsSplitAreaPointersEncoding }
AsSplitAreaAPI 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 assplitareaAPI
type AsSplitAreaDB ¶
type AsSplitAreaDB struct { gorm.Model // Declation for basic field assplitareaDB.Name Name_Data sql.NullString // Declation for basic field assplitareaDB.Size Size_Data sql.NullFloat64 // Declation for basic field assplitareaDB.IsAny // provide the sql storage for the boolan IsAny_Data sql.NullBool // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration AsSplitAreaPointersEncoding }
AsSplitAreaDB describes a assplitarea 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 assplitareaDB
func (*AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea(assplitarea *models.AsSplitArea)
CopyBasicFieldsFromAsSplitArea
func (*AsSplitAreaDB) CopyBasicFieldsFromAsSplitAreaWOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
CopyBasicFieldsFromAsSplitAreaWOP
func (*AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea_WOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsFromAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
CopyBasicFieldsFromAsSplitArea_WOP
func (*AsSplitAreaDB) CopyBasicFieldsToAsSplitArea ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea(assplitarea *models.AsSplitArea)
CopyBasicFieldsToAsSplitArea
func (*AsSplitAreaDB) CopyBasicFieldsToAsSplitAreaWOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitAreaWOP(assplitarea *AsSplitAreaWOP)
CopyBasicFieldsToAsSplitAreaWOP
func (*AsSplitAreaDB) CopyBasicFieldsToAsSplitArea_WOP ¶
func (assplitareaDB *AsSplitAreaDB) CopyBasicFieldsToAsSplitArea_WOP(assplitarea *models.AsSplitArea_WOP)
CopyBasicFieldsToAsSplitArea_WOP
func (*AsSplitAreaDB) DecodePointers ¶
func (assplitareaDB *AsSplitAreaDB) DecodePointers(backRepo *BackRepoStruct, assplitarea *models.AsSplitArea)
type AsSplitAreaDBResponse ¶
type AsSplitAreaDBResponse struct {
AsSplitAreaDB
}
AsSplitAreaDBResponse provides response swagger:response assplitareaDBResponse
type AsSplitAreaDBs ¶
type AsSplitAreaDBs []AsSplitAreaDB
AsSplitAreaDBs arrays assplitareaDBs swagger:response assplitareaDBsResponse
type AsSplitAreaPointersEncoding ¶
type AsSplitAreaPointersEncoding struct { // field AsSplits is a slice of pointers to another Struct (optional or 0..1) AsSplits IntSlice `gorm:"type:TEXT"` // field Tree is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association TreeID sql.NullInt64 // field Table is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association TableID sql.NullInt64 // field Form is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association FormID sql.NullInt64 // field Svg is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association SvgID sql.NullInt64 // field Doc is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association DocID sql.NullInt64 }
AsSplitAreaPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type AsSplitAreaWOP ¶
type AsSplitAreaWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Size float64 `xlsx:"2"` IsAny bool `xlsx:"3"` }
AsSplitAreaWOP is a AsSplitArea without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type AsSplitDB ¶
type AsSplitDB struct { gorm.Model // Declation for basic field assplitDB.Name Name_Data sql.NullString // Declation for basic field assplitDB.Direction Direction_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration AsSplitPointersEncoding }
AsSplitDB describes a assplit 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 assplitDB
func (*AsSplitDB) CopyBasicFieldsFromAsSplit ¶
CopyBasicFieldsFromAsSplit
func (*AsSplitDB) CopyBasicFieldsFromAsSplitWOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplitWOP(assplit *AsSplitWOP)
CopyBasicFieldsFromAsSplitWOP
func (*AsSplitDB) CopyBasicFieldsFromAsSplit_WOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsFromAsSplit_WOP(assplit *models.AsSplit_WOP)
CopyBasicFieldsFromAsSplit_WOP
func (*AsSplitDB) CopyBasicFieldsToAsSplit ¶
CopyBasicFieldsToAsSplit
func (*AsSplitDB) CopyBasicFieldsToAsSplitWOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplitWOP(assplit *AsSplitWOP)
CopyBasicFieldsToAsSplitWOP
func (*AsSplitDB) CopyBasicFieldsToAsSplit_WOP ¶
func (assplitDB *AsSplitDB) CopyBasicFieldsToAsSplit_WOP(assplit *models.AsSplit_WOP)
CopyBasicFieldsToAsSplit_WOP
func (*AsSplitDB) DecodePointers ¶
func (assplitDB *AsSplitDB) DecodePointers(backRepo *BackRepoStruct, assplit *models.AsSplit)
type AsSplitDBResponse ¶
type AsSplitDBResponse struct {
AsSplitDB
}
AsSplitDBResponse provides response swagger:response assplitDBResponse
type AsSplitDBs ¶
type AsSplitDBs []AsSplitDB
AsSplitDBs arrays assplitDBs swagger:response assplitDBsResponse
type AsSplitPointersEncoding ¶
type AsSplitPointersEncoding struct { // field AsSplitAreas is a slice of pointers to another Struct (optional or 0..1) AsSplitAreas IntSlice `gorm:"type:TEXT"` }
AsSplitPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type AsSplitWOP ¶
type AsSplitWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` Direction models.Direction `xlsx:"2"` }
AsSplitWOP is a AsSplit without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type BackRepoAsSplitAreaStruct ¶
type BackRepoAsSplitAreaStruct struct { // stores AsSplitAreaDB according to their gorm ID Map_AsSplitAreaDBID_AsSplitAreaDB map[uint]*AsSplitAreaDB // stores AsSplitAreaDB ID according to AsSplitArea address Map_AsSplitAreaPtr_AsSplitAreaDBID map[*models.AsSplitArea]uint // stores AsSplitArea according to their gorm ID Map_AsSplitAreaDBID_AsSplitAreaPtr map[uint]*models.AsSplitArea // contains filtered or unexported fields }
func (*BackRepoAsSplitAreaStruct) Backup ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) Backup(dirPath string)
Backup generates a json file from a slice of all AsSplitAreaDB instances in the backrepo
func (*BackRepoAsSplitAreaStruct) BackupXL ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all AsSplitAreaDB instances in the backrepo
func (*BackRepoAsSplitAreaStruct) CheckoutPhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOne() (Error error)
BackRepoAsSplitArea.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 (*BackRepoAsSplitAreaStruct) CheckoutPhaseOneInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseOneInstance(assplitareaDB *AsSplitAreaDB) (Error error)
CheckoutPhaseOneInstance takes a assplitareaDB that has been found in the DB, updates the backRepo and stages the models version of the assplitareaDB
func (*BackRepoAsSplitAreaStruct) CheckoutPhaseTwo ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplitArea.CheckoutPhaseTwo Checkouts all staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) CheckoutPhaseTwoInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitareaDB *AsSplitAreaDB) (Error error)
BackRepoAsSplitArea.CheckoutPhaseTwoInstance Checkouts staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) CommitDeleteInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoAsSplitArea.CommitDeleteInstance commits deletion of AsSplitArea to the BackRepo
func (*BackRepoAsSplitAreaStruct) CommitPhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoAsSplitArea.CommitPhaseOne commits all staged instances of AsSplitArea 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 (*BackRepoAsSplitAreaStruct) CommitPhaseOneInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseOneInstance(assplitarea *models.AsSplitArea) (Error error)
BackRepoAsSplitArea.CommitPhaseOneInstance commits assplitarea staged instances of AsSplitArea 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 (*BackRepoAsSplitAreaStruct) CommitPhaseTwo ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplitArea.CommitPhaseTwo commits all staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) CommitPhaseTwoInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
BackRepoAsSplitArea.CommitPhaseTwoInstance commits {{structname }} of models.AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) GetAsSplitAreaDBFromAsSplitAreaPtr ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetAsSplitAreaDBFromAsSplitAreaPtr(assplitarea *models.AsSplitArea) (assplitareaDB *AsSplitAreaDB)
GetAsSplitAreaDBFromAsSplitAreaPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoAsSplitAreaStruct) GetDB ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetDB() db.DBInterface
func (*BackRepoAsSplitAreaStruct) GetStage ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoAsSplitAreaStruct) ResetReversePointers ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplitArea.ResetReversePointers commits all staged instances of AsSplitArea to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitAreaStruct) ResetReversePointersInstance ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplitarea *models.AsSplitArea) (Error error)
func (*BackRepoAsSplitAreaStruct) RestorePhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "AsSplitAreaDB.json" in dirPath that stores an array of AsSplitAreaDB and stores it in the database the map BackRepoAsSplitAreaid_atBckpTime_newID is updated accordingly
func (*BackRepoAsSplitAreaStruct) RestorePhaseTwo ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<AsSplitArea>id_atBckpTime_newID to compute new index
func (*BackRepoAsSplitAreaStruct) RestoreXLPhaseOne ¶
func (backRepoAsSplitArea *BackRepoAsSplitAreaStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "AsSplitArea" sheet all AsSplitAreaDB instances
type BackRepoAsSplitStruct ¶
type BackRepoAsSplitStruct struct { // stores AsSplitDB according to their gorm ID Map_AsSplitDBID_AsSplitDB map[uint]*AsSplitDB // stores AsSplitDB ID according to AsSplit address Map_AsSplitPtr_AsSplitDBID map[*models.AsSplit]uint // stores AsSplit according to their gorm ID Map_AsSplitDBID_AsSplitPtr map[uint]*models.AsSplit // contains filtered or unexported fields }
func (*BackRepoAsSplitStruct) Backup ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) Backup(dirPath string)
Backup generates a json file from a slice of all AsSplitDB instances in the backrepo
func (*BackRepoAsSplitStruct) BackupXL ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all AsSplitDB instances in the backrepo
func (*BackRepoAsSplitStruct) CheckoutPhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOne() (Error error)
BackRepoAsSplit.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 (*BackRepoAsSplitStruct) CheckoutPhaseOneInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseOneInstance(assplitDB *AsSplitDB) (Error error)
CheckoutPhaseOneInstance takes a assplitDB that has been found in the DB, updates the backRepo and stages the models version of the assplitDB
func (*BackRepoAsSplitStruct) CheckoutPhaseTwo ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplit.CheckoutPhaseTwo Checkouts all staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) CheckoutPhaseTwoInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, assplitDB *AsSplitDB) (Error error)
BackRepoAsSplit.CheckoutPhaseTwoInstance Checkouts staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) CommitDeleteInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoAsSplit.CommitDeleteInstance commits deletion of AsSplit to the BackRepo
func (*BackRepoAsSplitStruct) CommitPhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoAsSplit.CommitPhaseOne commits all staged instances of AsSplit 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 (*BackRepoAsSplitStruct) CommitPhaseOneInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseOneInstance(assplit *models.AsSplit) (Error error)
BackRepoAsSplit.CommitPhaseOneInstance commits assplit staged instances of AsSplit 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 (*BackRepoAsSplitStruct) CommitPhaseTwo ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplit.CommitPhaseTwo commits all staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) CommitPhaseTwoInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
BackRepoAsSplit.CommitPhaseTwoInstance commits {{structname }} of models.AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) GetAsSplitDBFromAsSplitPtr ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) GetAsSplitDBFromAsSplitPtr(assplit *models.AsSplit) (assplitDB *AsSplitDB)
GetAsSplitDBFromAsSplitPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoAsSplitStruct) GetDB ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) GetDB() db.DBInterface
func (*BackRepoAsSplitStruct) GetStage ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoAsSplitStruct) ResetReversePointers ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoAsSplit.ResetReversePointers commits all staged instances of AsSplit to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoAsSplitStruct) ResetReversePointersInstance ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, assplit *models.AsSplit) (Error error)
func (*BackRepoAsSplitStruct) RestorePhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "AsSplitDB.json" in dirPath that stores an array of AsSplitDB and stores it in the database the map BackRepoAsSplitid_atBckpTime_newID is updated accordingly
func (*BackRepoAsSplitStruct) RestorePhaseTwo ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<AsSplit>id_atBckpTime_newID to compute new index
func (*BackRepoAsSplitStruct) RestoreXLPhaseOne ¶
func (backRepoAsSplit *BackRepoAsSplitStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "AsSplit" sheet all AsSplitDB instances
type BackRepoData ¶
type BackRepoData struct { AsSplitAPIs []*AsSplitAPI AsSplitAreaAPIs []*AsSplitAreaAPI DocAPIs []*DocAPI FormAPIs []*FormAPI SvgAPIs []*SvgAPI TableAPIs []*TableAPI TreeAPIs []*TreeAPI ViewAPIs []*ViewAPI // index of the web socket for this stack type (unique among all stack instances) GONG__Index int }
type BackRepoDocStruct ¶
type BackRepoDocStruct struct { // stores DocDB according to their gorm ID Map_DocDBID_DocDB map[uint]*DocDB // stores DocDB ID according to Doc address Map_DocPtr_DocDBID map[*models.Doc]uint // stores Doc according to their gorm ID Map_DocDBID_DocPtr map[uint]*models.Doc // contains filtered or unexported fields }
func (*BackRepoDocStruct) Backup ¶
func (backRepoDoc *BackRepoDocStruct) Backup(dirPath string)
Backup generates a json file from a slice of all DocDB instances in the backrepo
func (*BackRepoDocStruct) BackupXL ¶
func (backRepoDoc *BackRepoDocStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all DocDB instances in the backrepo
func (*BackRepoDocStruct) CheckoutPhaseOne ¶
func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseOne() (Error error)
BackRepoDoc.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 (*BackRepoDocStruct) CheckoutPhaseOneInstance ¶
func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseOneInstance(docDB *DocDB) (Error error)
CheckoutPhaseOneInstance takes a docDB that has been found in the DB, updates the backRepo and stages the models version of the docDB
func (*BackRepoDocStruct) CheckoutPhaseTwo ¶
func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDoc.CheckoutPhaseTwo Checkouts all staged instances of Doc to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocStruct) CheckoutPhaseTwoInstance ¶
func (backRepoDoc *BackRepoDocStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, docDB *DocDB) (Error error)
BackRepoDoc.CheckoutPhaseTwoInstance Checkouts staged instances of Doc to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocStruct) CommitDeleteInstance ¶
func (backRepoDoc *BackRepoDocStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoDoc.CommitDeleteInstance commits deletion of Doc to the BackRepo
func (*BackRepoDocStruct) CommitPhaseOne ¶
func (backRepoDoc *BackRepoDocStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoDoc.CommitPhaseOne commits all staged instances of Doc 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 (*BackRepoDocStruct) CommitPhaseOneInstance ¶
func (backRepoDoc *BackRepoDocStruct) CommitPhaseOneInstance(doc *models.Doc) (Error error)
BackRepoDoc.CommitPhaseOneInstance commits doc staged instances of Doc 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 (*BackRepoDocStruct) CommitPhaseTwo ¶
func (backRepoDoc *BackRepoDocStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDoc.CommitPhaseTwo commits all staged instances of Doc to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocStruct) CommitPhaseTwoInstance ¶
func (backRepoDoc *BackRepoDocStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, doc *models.Doc) (Error error)
BackRepoDoc.CommitPhaseTwoInstance commits {{structname }} of models.Doc to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocStruct) GetDB ¶
func (backRepoDoc *BackRepoDocStruct) GetDB() db.DBInterface
func (*BackRepoDocStruct) GetDocDBFromDocPtr ¶
func (backRepoDoc *BackRepoDocStruct) GetDocDBFromDocPtr(doc *models.Doc) (docDB *DocDB)
GetDocDBFromDocPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoDocStruct) GetStage ¶
func (backRepoDoc *BackRepoDocStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoDocStruct) ResetReversePointers ¶
func (backRepoDoc *BackRepoDocStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoDoc.ResetReversePointers commits all staged instances of Doc to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocStruct) ResetReversePointersInstance ¶
func (backRepoDoc *BackRepoDocStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, doc *models.Doc) (Error error)
func (*BackRepoDocStruct) RestorePhaseOne ¶
func (backRepoDoc *BackRepoDocStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "DocDB.json" in dirPath that stores an array of DocDB and stores it in the database the map BackRepoDocid_atBckpTime_newID is updated accordingly
func (*BackRepoDocStruct) RestorePhaseTwo ¶
func (backRepoDoc *BackRepoDocStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Doc>id_atBckpTime_newID to compute new index
func (*BackRepoDocStruct) RestoreXLPhaseOne ¶
func (backRepoDoc *BackRepoDocStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Doc" sheet all DocDB instances
type BackRepoFormStruct ¶
type BackRepoFormStruct struct { // stores FormDB according to their gorm ID Map_FormDBID_FormDB map[uint]*FormDB // stores FormDB ID according to Form address Map_FormPtr_FormDBID map[*models.Form]uint // stores Form according to their gorm ID Map_FormDBID_FormPtr map[uint]*models.Form // contains filtered or unexported fields }
func (*BackRepoFormStruct) Backup ¶
func (backRepoForm *BackRepoFormStruct) Backup(dirPath string)
Backup generates a json file from a slice of all FormDB instances in the backrepo
func (*BackRepoFormStruct) BackupXL ¶
func (backRepoForm *BackRepoFormStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all FormDB instances in the backrepo
func (*BackRepoFormStruct) CheckoutPhaseOne ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOne() (Error error)
BackRepoForm.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 (*BackRepoFormStruct) CheckoutPhaseOneInstance ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseOneInstance(formDB *FormDB) (Error error)
CheckoutPhaseOneInstance takes a formDB that has been found in the DB, updates the backRepo and stages the models version of the formDB
func (*BackRepoFormStruct) CheckoutPhaseTwo ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoForm.CheckoutPhaseTwo Checkouts all staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) CheckoutPhaseTwoInstance ¶
func (backRepoForm *BackRepoFormStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, formDB *FormDB) (Error error)
BackRepoForm.CheckoutPhaseTwoInstance Checkouts staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) CommitDeleteInstance ¶
func (backRepoForm *BackRepoFormStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoForm.CommitDeleteInstance commits deletion of Form to the BackRepo
func (*BackRepoFormStruct) CommitPhaseOne ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoForm.CommitPhaseOne commits all staged instances of Form 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 (*BackRepoFormStruct) CommitPhaseOneInstance ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseOneInstance(form *models.Form) (Error error)
BackRepoForm.CommitPhaseOneInstance commits form staged instances of Form 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 (*BackRepoFormStruct) CommitPhaseTwo ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoForm.CommitPhaseTwo commits all staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) CommitPhaseTwoInstance ¶
func (backRepoForm *BackRepoFormStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
BackRepoForm.CommitPhaseTwoInstance commits {{structname }} of models.Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) GetDB ¶
func (backRepoForm *BackRepoFormStruct) GetDB() db.DBInterface
func (*BackRepoFormStruct) GetFormDBFromFormPtr ¶
func (backRepoForm *BackRepoFormStruct) GetFormDBFromFormPtr(form *models.Form) (formDB *FormDB)
GetFormDBFromFormPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoFormStruct) GetStage ¶
func (backRepoForm *BackRepoFormStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoFormStruct) ResetReversePointers ¶
func (backRepoForm *BackRepoFormStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoForm.ResetReversePointers commits all staged instances of Form to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFormStruct) ResetReversePointersInstance ¶
func (backRepoForm *BackRepoFormStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, form *models.Form) (Error error)
func (*BackRepoFormStruct) RestorePhaseOne ¶
func (backRepoForm *BackRepoFormStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "FormDB.json" in dirPath that stores an array of FormDB and stores it in the database the map BackRepoFormid_atBckpTime_newID is updated accordingly
func (*BackRepoFormStruct) RestorePhaseTwo ¶
func (backRepoForm *BackRepoFormStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Form>id_atBckpTime_newID to compute new index
func (*BackRepoFormStruct) RestoreXLPhaseOne ¶
func (backRepoForm *BackRepoFormStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Form" sheet all FormDB instances
type BackRepoStruct ¶
type BackRepoStruct struct { // insertion point for per struct back repo declarations BackRepoAsSplit BackRepoAsSplitStruct BackRepoAsSplitArea BackRepoAsSplitAreaStruct BackRepoDoc BackRepoDocStruct BackRepoForm BackRepoFormStruct BackRepoSvg BackRepoSvgStruct BackRepoTable BackRepoTableStruct BackRepoTree BackRepoTreeStruct BackRepoView BackRepoViewStruct 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) CheckoutAsSplit ¶
func (backRepo *BackRepoStruct) CheckoutAsSplit(assplit *models.AsSplit)
CommitAsSplit allows checkout of a single assplit (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutAsSplitArea ¶
func (backRepo *BackRepoStruct) CheckoutAsSplitArea(assplitarea *models.AsSplitArea)
CommitAsSplitArea allows checkout of a single assplitarea (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutDoc ¶
func (backRepo *BackRepoStruct) CheckoutDoc(doc *models.Doc)
CommitDoc allows checkout of a single doc (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutForm ¶
func (backRepo *BackRepoStruct) CheckoutForm(form *models.Form)
CommitForm allows checkout of a single form (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutSvg ¶
func (backRepo *BackRepoStruct) CheckoutSvg(svg *models.Svg)
CommitSvg allows checkout of a single svg (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTable ¶
func (backRepo *BackRepoStruct) CheckoutTable(table *models.Table)
CommitTable allows checkout of a single table (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTree ¶
func (backRepo *BackRepoStruct) CheckoutTree(tree *models.Tree)
CommitTree allows checkout of a single tree (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutView ¶
func (backRepo *BackRepoStruct) CheckoutView(view *models.View)
CommitView allows checkout of a single view (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) CommitAsSplit ¶
func (backRepo *BackRepoStruct) CommitAsSplit(assplit *models.AsSplit)
CommitAsSplit allows commit of a single assplit (if already staged)
func (*BackRepoStruct) CommitAsSplitArea ¶
func (backRepo *BackRepoStruct) CommitAsSplitArea(assplitarea *models.AsSplitArea)
CommitAsSplitArea allows commit of a single assplitarea (if already staged)
func (*BackRepoStruct) CommitDoc ¶
func (backRepo *BackRepoStruct) CommitDoc(doc *models.Doc)
CommitDoc allows commit of a single doc (if already staged)
func (*BackRepoStruct) CommitForm ¶
func (backRepo *BackRepoStruct) CommitForm(form *models.Form)
CommitForm allows commit of a single form (if already staged)
func (*BackRepoStruct) CommitSvg ¶
func (backRepo *BackRepoStruct) CommitSvg(svg *models.Svg)
CommitSvg allows commit of a single svg (if already staged)
func (*BackRepoStruct) CommitTable ¶
func (backRepo *BackRepoStruct) CommitTable(table *models.Table)
CommitTable allows commit of a single table (if already staged)
func (*BackRepoStruct) CommitTree ¶
func (backRepo *BackRepoStruct) CommitTree(tree *models.Tree)
CommitTree allows commit of a single tree (if already staged)
func (*BackRepoStruct) CommitView ¶
func (backRepo *BackRepoStruct) CommitView(view *models.View)
CommitView allows commit of a single view (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 BackRepoSvgStruct ¶
type BackRepoSvgStruct struct { // stores SvgDB according to their gorm ID Map_SvgDBID_SvgDB map[uint]*SvgDB // stores SvgDB ID according to Svg address Map_SvgPtr_SvgDBID map[*models.Svg]uint // stores Svg according to their gorm ID Map_SvgDBID_SvgPtr map[uint]*models.Svg // contains filtered or unexported fields }
func (*BackRepoSvgStruct) Backup ¶
func (backRepoSvg *BackRepoSvgStruct) Backup(dirPath string)
Backup generates a json file from a slice of all SvgDB instances in the backrepo
func (*BackRepoSvgStruct) BackupXL ¶
func (backRepoSvg *BackRepoSvgStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all SvgDB instances in the backrepo
func (*BackRepoSvgStruct) CheckoutPhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOne() (Error error)
BackRepoSvg.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 (*BackRepoSvgStruct) CheckoutPhaseOneInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseOneInstance(svgDB *SvgDB) (Error error)
CheckoutPhaseOneInstance takes a svgDB that has been found in the DB, updates the backRepo and stages the models version of the svgDB
func (*BackRepoSvgStruct) CheckoutPhaseTwo ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSvg.CheckoutPhaseTwo Checkouts all staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) CheckoutPhaseTwoInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, svgDB *SvgDB) (Error error)
BackRepoSvg.CheckoutPhaseTwoInstance Checkouts staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) CommitDeleteInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoSvg.CommitDeleteInstance commits deletion of Svg to the BackRepo
func (*BackRepoSvgStruct) CommitPhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoSvg.CommitPhaseOne commits all staged instances of Svg 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 (*BackRepoSvgStruct) CommitPhaseOneInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseOneInstance(svg *models.Svg) (Error error)
BackRepoSvg.CommitPhaseOneInstance commits svg staged instances of Svg 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 (*BackRepoSvgStruct) CommitPhaseTwo ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoSvg.CommitPhaseTwo commits all staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) CommitPhaseTwoInstance ¶
func (backRepoSvg *BackRepoSvgStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
BackRepoSvg.CommitPhaseTwoInstance commits {{structname }} of models.Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) GetDB ¶
func (backRepoSvg *BackRepoSvgStruct) GetDB() db.DBInterface
func (*BackRepoSvgStruct) GetStage ¶
func (backRepoSvg *BackRepoSvgStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoSvgStruct) GetSvgDBFromSvgPtr ¶
func (backRepoSvg *BackRepoSvgStruct) GetSvgDBFromSvgPtr(svg *models.Svg) (svgDB *SvgDB)
GetSvgDBFromSvgPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoSvgStruct) ResetReversePointers ¶
func (backRepoSvg *BackRepoSvgStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoSvg.ResetReversePointers commits all staged instances of Svg to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoSvgStruct) ResetReversePointersInstance ¶
func (backRepoSvg *BackRepoSvgStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, svg *models.Svg) (Error error)
func (*BackRepoSvgStruct) RestorePhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "SvgDB.json" in dirPath that stores an array of SvgDB and stores it in the database the map BackRepoSvgid_atBckpTime_newID is updated accordingly
func (*BackRepoSvgStruct) RestorePhaseTwo ¶
func (backRepoSvg *BackRepoSvgStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Svg>id_atBckpTime_newID to compute new index
func (*BackRepoSvgStruct) RestoreXLPhaseOne ¶
func (backRepoSvg *BackRepoSvgStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Svg" sheet all SvgDB instances
type BackRepoTableStruct ¶
type BackRepoTableStruct struct { // stores TableDB according to their gorm ID Map_TableDBID_TableDB map[uint]*TableDB // stores TableDB ID according to Table address Map_TablePtr_TableDBID map[*models.Table]uint // stores Table according to their gorm ID Map_TableDBID_TablePtr map[uint]*models.Table // contains filtered or unexported fields }
func (*BackRepoTableStruct) Backup ¶
func (backRepoTable *BackRepoTableStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TableDB instances in the backrepo
func (*BackRepoTableStruct) BackupXL ¶
func (backRepoTable *BackRepoTableStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TableDB instances in the backrepo
func (*BackRepoTableStruct) CheckoutPhaseOne ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOne() (Error error)
BackRepoTable.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 (*BackRepoTableStruct) CheckoutPhaseOneInstance ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseOneInstance(tableDB *TableDB) (Error error)
CheckoutPhaseOneInstance takes a tableDB that has been found in the DB, updates the backRepo and stages the models version of the tableDB
func (*BackRepoTableStruct) CheckoutPhaseTwo ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTable.CheckoutPhaseTwo Checkouts all staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTable *BackRepoTableStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tableDB *TableDB) (Error error)
BackRepoTable.CheckoutPhaseTwoInstance Checkouts staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) CommitDeleteInstance ¶
func (backRepoTable *BackRepoTableStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTable.CommitDeleteInstance commits deletion of Table to the BackRepo
func (*BackRepoTableStruct) CommitPhaseOne ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoTable.CommitPhaseOne commits all staged instances of Table 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 (*BackRepoTableStruct) CommitPhaseOneInstance ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseOneInstance(table *models.Table) (Error error)
BackRepoTable.CommitPhaseOneInstance commits table staged instances of Table 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 (*BackRepoTableStruct) CommitPhaseTwo ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTable.CommitPhaseTwo commits all staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) CommitPhaseTwoInstance ¶
func (backRepoTable *BackRepoTableStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
BackRepoTable.CommitPhaseTwoInstance commits {{structname }} of models.Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) GetDB ¶
func (backRepoTable *BackRepoTableStruct) GetDB() db.DBInterface
func (*BackRepoTableStruct) GetStage ¶
func (backRepoTable *BackRepoTableStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoTableStruct) GetTableDBFromTablePtr ¶
func (backRepoTable *BackRepoTableStruct) GetTableDBFromTablePtr(table *models.Table) (tableDB *TableDB)
GetTableDBFromTablePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTableStruct) ResetReversePointers ¶
func (backRepoTable *BackRepoTableStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTable.ResetReversePointers commits all staged instances of Table to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStruct) ResetReversePointersInstance ¶
func (backRepoTable *BackRepoTableStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, table *models.Table) (Error error)
func (*BackRepoTableStruct) RestorePhaseOne ¶
func (backRepoTable *BackRepoTableStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TableDB.json" in dirPath that stores an array of TableDB and stores it in the database the map BackRepoTableid_atBckpTime_newID is updated accordingly
func (*BackRepoTableStruct) RestorePhaseTwo ¶
func (backRepoTable *BackRepoTableStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Table>id_atBckpTime_newID to compute new index
func (*BackRepoTableStruct) RestoreXLPhaseOne ¶
func (backRepoTable *BackRepoTableStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Table" sheet all TableDB instances
type BackRepoTreeStruct ¶
type BackRepoTreeStruct struct { // stores TreeDB according to their gorm ID Map_TreeDBID_TreeDB map[uint]*TreeDB // stores TreeDB ID according to Tree address Map_TreePtr_TreeDBID map[*models.Tree]uint // stores Tree according to their gorm ID Map_TreeDBID_TreePtr map[uint]*models.Tree // contains filtered or unexported fields }
func (*BackRepoTreeStruct) Backup ¶
func (backRepoTree *BackRepoTreeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TreeDB instances in the backrepo
func (*BackRepoTreeStruct) BackupXL ¶
func (backRepoTree *BackRepoTreeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TreeDB instances in the backrepo
func (*BackRepoTreeStruct) CheckoutPhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOne() (Error error)
BackRepoTree.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 (*BackRepoTreeStruct) CheckoutPhaseOneInstance ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseOneInstance(treeDB *TreeDB) (Error error)
CheckoutPhaseOneInstance takes a treeDB that has been found in the DB, updates the backRepo and stages the models version of the treeDB
func (*BackRepoTreeStruct) CheckoutPhaseTwo ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTree.CheckoutPhaseTwo Checkouts all staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTree *BackRepoTreeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, treeDB *TreeDB) (Error error)
BackRepoTree.CheckoutPhaseTwoInstance Checkouts staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) CommitDeleteInstance ¶
func (backRepoTree *BackRepoTreeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTree.CommitDeleteInstance commits deletion of Tree to the BackRepo
func (*BackRepoTreeStruct) CommitPhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoTree.CommitPhaseOne commits all staged instances of Tree 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 (*BackRepoTreeStruct) CommitPhaseOneInstance ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseOneInstance(tree *models.Tree) (Error error)
BackRepoTree.CommitPhaseOneInstance commits tree staged instances of Tree 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 (*BackRepoTreeStruct) CommitPhaseTwo ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTree.CommitPhaseTwo commits all staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) CommitPhaseTwoInstance ¶
func (backRepoTree *BackRepoTreeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
BackRepoTree.CommitPhaseTwoInstance commits {{structname }} of models.Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) GetDB ¶
func (backRepoTree *BackRepoTreeStruct) GetDB() db.DBInterface
func (*BackRepoTreeStruct) GetStage ¶
func (backRepoTree *BackRepoTreeStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoTreeStruct) GetTreeDBFromTreePtr ¶
func (backRepoTree *BackRepoTreeStruct) GetTreeDBFromTreePtr(tree *models.Tree) (treeDB *TreeDB)
GetTreeDBFromTreePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTreeStruct) ResetReversePointers ¶
func (backRepoTree *BackRepoTreeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTree.ResetReversePointers commits all staged instances of Tree to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTreeStruct) ResetReversePointersInstance ¶
func (backRepoTree *BackRepoTreeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tree *models.Tree) (Error error)
func (*BackRepoTreeStruct) RestorePhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TreeDB.json" in dirPath that stores an array of TreeDB and stores it in the database the map BackRepoTreeid_atBckpTime_newID is updated accordingly
func (*BackRepoTreeStruct) RestorePhaseTwo ¶
func (backRepoTree *BackRepoTreeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Tree>id_atBckpTime_newID to compute new index
func (*BackRepoTreeStruct) RestoreXLPhaseOne ¶
func (backRepoTree *BackRepoTreeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Tree" sheet all TreeDB instances
type BackRepoViewStruct ¶
type BackRepoViewStruct struct { // stores ViewDB according to their gorm ID Map_ViewDBID_ViewDB map[uint]*ViewDB // stores ViewDB ID according to View address Map_ViewPtr_ViewDBID map[*models.View]uint // stores View according to their gorm ID Map_ViewDBID_ViewPtr map[uint]*models.View // contains filtered or unexported fields }
func (*BackRepoViewStruct) Backup ¶
func (backRepoView *BackRepoViewStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ViewDB instances in the backrepo
func (*BackRepoViewStruct) BackupXL ¶
func (backRepoView *BackRepoViewStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ViewDB instances in the backrepo
func (*BackRepoViewStruct) CheckoutPhaseOne ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseOne() (Error error)
BackRepoView.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 (*BackRepoViewStruct) CheckoutPhaseOneInstance ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseOneInstance(viewDB *ViewDB) (Error error)
CheckoutPhaseOneInstance takes a viewDB that has been found in the DB, updates the backRepo and stages the models version of the viewDB
func (*BackRepoViewStruct) CheckoutPhaseTwo ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoView.CheckoutPhaseTwo Checkouts all staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) CheckoutPhaseTwoInstance ¶
func (backRepoView *BackRepoViewStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, viewDB *ViewDB) (Error error)
BackRepoView.CheckoutPhaseTwoInstance Checkouts staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) CommitDeleteInstance ¶
func (backRepoView *BackRepoViewStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoView.CommitDeleteInstance commits deletion of View to the BackRepo
func (*BackRepoViewStruct) CommitPhaseOne ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoView.CommitPhaseOne commits all staged instances of View 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 (*BackRepoViewStruct) CommitPhaseOneInstance ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseOneInstance(view *models.View) (Error error)
BackRepoView.CommitPhaseOneInstance commits view staged instances of View 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 (*BackRepoViewStruct) CommitPhaseTwo ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoView.CommitPhaseTwo commits all staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) CommitPhaseTwoInstance ¶
func (backRepoView *BackRepoViewStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
BackRepoView.CommitPhaseTwoInstance commits {{structname }} of models.View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) GetDB ¶
func (backRepoView *BackRepoViewStruct) GetDB() db.DBInterface
func (*BackRepoViewStruct) GetStage ¶
func (backRepoView *BackRepoViewStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoViewStruct) GetViewDBFromViewPtr ¶
func (backRepoView *BackRepoViewStruct) GetViewDBFromViewPtr(view *models.View) (viewDB *ViewDB)
GetViewDBFromViewPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoViewStruct) ResetReversePointers ¶
func (backRepoView *BackRepoViewStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoView.ResetReversePointers commits all staged instances of View to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoViewStruct) ResetReversePointersInstance ¶
func (backRepoView *BackRepoViewStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, view *models.View) (Error error)
func (*BackRepoViewStruct) RestorePhaseOne ¶
func (backRepoView *BackRepoViewStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ViewDB.json" in dirPath that stores an array of ViewDB and stores it in the database the map BackRepoViewid_atBckpTime_newID is updated accordingly
func (*BackRepoViewStruct) RestorePhaseTwo ¶
func (backRepoView *BackRepoViewStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<View>id_atBckpTime_newID to compute new index
func (*BackRepoViewStruct) RestoreXLPhaseOne ¶
func (backRepoView *BackRepoViewStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "View" sheet all ViewDB instances
type DBLite ¶
type DBLite struct {
// contains filtered or unexported fields
}
DBLite is an in-memory database implementation of DBInterface
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) 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
type DocAPI ¶
type DocAPI struct { gorm.Model models.Doc_WOP // encoding of pointers // for API, it cannot be embedded DocPointersEncoding DocPointersEncoding }
DocAPI 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 docAPI
type DocDB ¶
type DocDB struct { gorm.Model // Declation for basic field docDB.Name Name_Data sql.NullString // Declation for basic field docDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration DocPointersEncoding }
DocDB describes a doc 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 docDB
func (*DocDB) CopyBasicFieldsFromDoc ¶
CopyBasicFieldsFromDoc
func (*DocDB) CopyBasicFieldsFromDocWOP ¶
CopyBasicFieldsFromDocWOP
func (*DocDB) CopyBasicFieldsFromDoc_WOP ¶
CopyBasicFieldsFromDoc_WOP
func (*DocDB) CopyBasicFieldsToDoc ¶
CopyBasicFieldsToDoc
func (*DocDB) CopyBasicFieldsToDocWOP ¶
CopyBasicFieldsToDocWOP
func (*DocDB) CopyBasicFieldsToDoc_WOP ¶
CopyBasicFieldsToDoc_WOP
func (*DocDB) DecodePointers ¶
func (docDB *DocDB) DecodePointers(backRepo *BackRepoStruct, doc *models.Doc)
type DocDBResponse ¶
type DocDBResponse struct {
DocDB
}
DocDBResponse provides response swagger:response docDBResponse
type DocPointersEncoding ¶
type DocPointersEncoding struct { }
DocPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type DocWOP ¶
DocWOP is a Doc without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type FormAPI ¶
type FormAPI struct { gorm.Model models.Form_WOP // encoding of pointers // for API, it cannot be embedded FormPointersEncoding FormPointersEncoding }
FormAPI 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 formAPI
type FormDB ¶
type FormDB struct { gorm.Model // Declation for basic field formDB.Name Name_Data sql.NullString // Declation for basic field formDB.StackName StackName_Data sql.NullString // Declation for basic field formDB.FormName FormName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration FormPointersEncoding }
FormDB describes a form 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 formDB
func (*FormDB) CopyBasicFieldsFromForm ¶
CopyBasicFieldsFromForm
func (*FormDB) CopyBasicFieldsFromFormWOP ¶
CopyBasicFieldsFromFormWOP
func (*FormDB) CopyBasicFieldsFromForm_WOP ¶
CopyBasicFieldsFromForm_WOP
func (*FormDB) CopyBasicFieldsToForm ¶
CopyBasicFieldsToForm
func (*FormDB) CopyBasicFieldsToFormWOP ¶
CopyBasicFieldsToFormWOP
func (*FormDB) CopyBasicFieldsToForm_WOP ¶
CopyBasicFieldsToForm_WOP
func (*FormDB) DecodePointers ¶
func (formDB *FormDB) DecodePointers(backRepo *BackRepoStruct, form *models.Form)
type FormDBResponse ¶
type FormDBResponse struct {
FormDB
}
FormDBResponse provides response swagger:response formDBResponse
type FormPointersEncoding ¶
type FormPointersEncoding struct { }
FormPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type FormWOP ¶
type FormWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` StackName string `xlsx:"2"` FormName string `xlsx:"3"` }
FormWOP is a Form without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type GongstructDB ¶
type GongstructDB interface { }
type IntSlice ¶
type IntSlice []int
type SvgAPI ¶
type SvgAPI struct { gorm.Model models.Svg_WOP // encoding of pointers // for API, it cannot be embedded SvgPointersEncoding SvgPointersEncoding }
SvgAPI 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 svgAPI
type SvgDB ¶
type SvgDB struct { gorm.Model // Declation for basic field svgDB.Name Name_Data sql.NullString // Declation for basic field svgDB.StackName StackName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration SvgPointersEncoding }
SvgDB describes a svg 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 svgDB
func (*SvgDB) CopyBasicFieldsFromSvg ¶
CopyBasicFieldsFromSvg
func (*SvgDB) CopyBasicFieldsFromSvgWOP ¶
CopyBasicFieldsFromSvgWOP
func (*SvgDB) CopyBasicFieldsFromSvg_WOP ¶
CopyBasicFieldsFromSvg_WOP
func (*SvgDB) CopyBasicFieldsToSvg ¶
CopyBasicFieldsToSvg
func (*SvgDB) CopyBasicFieldsToSvgWOP ¶
CopyBasicFieldsToSvgWOP
func (*SvgDB) CopyBasicFieldsToSvg_WOP ¶
CopyBasicFieldsToSvg_WOP
func (*SvgDB) DecodePointers ¶
func (svgDB *SvgDB) DecodePointers(backRepo *BackRepoStruct, svg *models.Svg)
type SvgDBResponse ¶
type SvgDBResponse struct {
SvgDB
}
SvgDBResponse provides response swagger:response svgDBResponse
type SvgPointersEncoding ¶
type SvgPointersEncoding struct { }
SvgPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type SvgWOP ¶
SvgWOP is a Svg without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TableAPI ¶
type TableAPI struct { gorm.Model models.Table_WOP // encoding of pointers // for API, it cannot be embedded TablePointersEncoding TablePointersEncoding }
TableAPI 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 tableAPI
type TableDB ¶
type TableDB struct { gorm.Model // Declation for basic field tableDB.Name Name_Data sql.NullString // Declation for basic field tableDB.StackName StackName_Data sql.NullString // Declation for basic field tableDB.TableName TableName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration TablePointersEncoding }
TableDB describes a table 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 tableDB
func (*TableDB) CopyBasicFieldsFromTable ¶
CopyBasicFieldsFromTable
func (*TableDB) CopyBasicFieldsFromTableWOP ¶
CopyBasicFieldsFromTableWOP
func (*TableDB) CopyBasicFieldsFromTable_WOP ¶
CopyBasicFieldsFromTable_WOP
func (*TableDB) CopyBasicFieldsToTable ¶
CopyBasicFieldsToTable
func (*TableDB) CopyBasicFieldsToTableWOP ¶
CopyBasicFieldsToTableWOP
func (*TableDB) CopyBasicFieldsToTable_WOP ¶
CopyBasicFieldsToTable_WOP
func (*TableDB) DecodePointers ¶
func (tableDB *TableDB) DecodePointers(backRepo *BackRepoStruct, table *models.Table)
type TableDBResponse ¶
type TableDBResponse struct {
TableDB
}
TableDBResponse provides response swagger:response tableDBResponse
type TablePointersEncoding ¶
type TablePointersEncoding struct { }
TablePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TableWOP ¶
type TableWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` StackName string `xlsx:"2"` TableName string `xlsx:"3"` }
TableWOP is a Table without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TreeAPI ¶
type TreeAPI struct { gorm.Model models.Tree_WOP // encoding of pointers // for API, it cannot be embedded TreePointersEncoding TreePointersEncoding }
TreeAPI 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 treeAPI
type TreeDB ¶
type TreeDB struct { gorm.Model // Declation for basic field treeDB.Name Name_Data sql.NullString // Declation for basic field treeDB.StackName StackName_Data sql.NullString // Declation for basic field treeDB.TreeName TreeName_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration TreePointersEncoding }
TreeDB describes a tree 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 treeDB
func (*TreeDB) CopyBasicFieldsFromTree ¶
CopyBasicFieldsFromTree
func (*TreeDB) CopyBasicFieldsFromTreeWOP ¶
CopyBasicFieldsFromTreeWOP
func (*TreeDB) CopyBasicFieldsFromTree_WOP ¶
CopyBasicFieldsFromTree_WOP
func (*TreeDB) CopyBasicFieldsToTree ¶
CopyBasicFieldsToTree
func (*TreeDB) CopyBasicFieldsToTreeWOP ¶
CopyBasicFieldsToTreeWOP
func (*TreeDB) CopyBasicFieldsToTree_WOP ¶
CopyBasicFieldsToTree_WOP
func (*TreeDB) DecodePointers ¶
func (treeDB *TreeDB) DecodePointers(backRepo *BackRepoStruct, tree *models.Tree)
type TreeDBResponse ¶
type TreeDBResponse struct {
TreeDB
}
TreeDBResponse provides response swagger:response treeDBResponse
type TreePointersEncoding ¶
type TreePointersEncoding struct { }
TreePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TreeWOP ¶
type TreeWOP struct { ID int `xlsx:"0"` Name string `xlsx:"1"` StackName string `xlsx:"2"` TreeName string `xlsx:"3"` }
TreeWOP is a Tree without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type ViewAPI ¶
type ViewAPI struct { gorm.Model models.View_WOP // encoding of pointers // for API, it cannot be embedded ViewPointersEncoding ViewPointersEncoding }
ViewAPI 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 viewAPI
type ViewDB ¶
type ViewDB struct { gorm.Model // Declation for basic field viewDB.Name Name_Data sql.NullString // encoding of pointers // for GORM serialization, it is necessary to embed to Pointer Encoding declaration ViewPointersEncoding }
ViewDB describes a view 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 viewDB
func (*ViewDB) CopyBasicFieldsFromView ¶
CopyBasicFieldsFromView
func (*ViewDB) CopyBasicFieldsFromViewWOP ¶
CopyBasicFieldsFromViewWOP
func (*ViewDB) CopyBasicFieldsFromView_WOP ¶
CopyBasicFieldsFromView_WOP
func (*ViewDB) CopyBasicFieldsToView ¶
CopyBasicFieldsToView
func (*ViewDB) CopyBasicFieldsToViewWOP ¶
CopyBasicFieldsToViewWOP
func (*ViewDB) CopyBasicFieldsToView_WOP ¶
CopyBasicFieldsToView_WOP
func (*ViewDB) DecodePointers ¶
func (viewDB *ViewDB) DecodePointers(backRepo *BackRepoStruct, view *models.View)
type ViewDBResponse ¶
type ViewDBResponse struct {
ViewDB
}
ViewDBResponse provides response swagger:response viewDBResponse
type ViewPointersEncoding ¶
type ViewPointersEncoding struct { // field RootAsSplitAreas is a slice of pointers to another Struct (optional or 0..1) RootAsSplitAreas IntSlice `gorm:"type:TEXT"` }
ViewPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct