Documentation
¶
Overview ¶
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
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 BackRepoBodyStruct
- func (backRepoBody *BackRepoBodyStruct) Backup(dirPath string)
- func (backRepoBody *BackRepoBodyStruct) BackupXL(file *xlsx.File)
- func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseOne() (Error error)
- func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseOneInstance(bodyDB *BodyDB) (Error error)
- func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, bodyDB *BodyDB) (Error error)
- func (backRepoBody *BackRepoBodyStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoBody *BackRepoBodyStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoBody *BackRepoBodyStruct) CommitPhaseOneInstance(body *models.Body) (Error error)
- func (backRepoBody *BackRepoBodyStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoBody *BackRepoBodyStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, body *models.Body) (Error error)
- func (backRepoBody *BackRepoBodyStruct) GetBodyDBFromBodyPtr(body *models.Body) (bodyDB *BodyDB)
- func (backRepoBody *BackRepoBodyStruct) GetDB() db.DBInterface
- func (backRepoBody *BackRepoBodyStruct) GetStage() (stage *models.StageStruct)
- func (backRepoBody *BackRepoBodyStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoBody *BackRepoBodyStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, body *models.Body) (Error error)
- func (backRepoBody *BackRepoBodyStruct) RestorePhaseOne(dirPath string)
- func (backRepoBody *BackRepoBodyStruct) RestorePhaseTwo()
- func (backRepoBody *BackRepoBodyStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoData
- type BackRepoDocumentStruct
- func (backRepoDocument *BackRepoDocumentStruct) Backup(dirPath string)
- func (backRepoDocument *BackRepoDocumentStruct) BackupXL(file *xlsx.File)
- func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseOne() (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseOneInstance(documentDB *DocumentDB) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, documentDB *DocumentDB) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseOneInstance(document *models.Document) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, document *models.Document) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) GetDB() db.DBInterface
- func (backRepoDocument *BackRepoDocumentStruct) GetDocumentDBFromDocumentPtr(document *models.Document) (documentDB *DocumentDB)
- func (backRepoDocument *BackRepoDocumentStruct) GetStage() (stage *models.StageStruct)
- func (backRepoDocument *BackRepoDocumentStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, document *models.Document) (Error error)
- func (backRepoDocument *BackRepoDocumentStruct) RestorePhaseOne(dirPath string)
- func (backRepoDocument *BackRepoDocumentStruct) RestorePhaseTwo()
- func (backRepoDocument *BackRepoDocumentStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoDocxStruct
- func (backRepoDocx *BackRepoDocxStruct) Backup(dirPath string)
- func (backRepoDocx *BackRepoDocxStruct) BackupXL(file *xlsx.File)
- func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseOne() (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseOneInstance(docxDB *DocxDB) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, docxDB *DocxDB) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CommitPhaseOneInstance(docx *models.Docx) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, docx *models.Docx) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) GetDB() db.DBInterface
- func (backRepoDocx *BackRepoDocxStruct) GetDocxDBFromDocxPtr(docx *models.Docx) (docxDB *DocxDB)
- func (backRepoDocx *BackRepoDocxStruct) GetStage() (stage *models.StageStruct)
- func (backRepoDocx *BackRepoDocxStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, docx *models.Docx) (Error error)
- func (backRepoDocx *BackRepoDocxStruct) RestorePhaseOne(dirPath string)
- func (backRepoDocx *BackRepoDocxStruct) RestorePhaseTwo()
- func (backRepoDocx *BackRepoDocxStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoFileStruct
- func (backRepoFile *BackRepoFileStruct) Backup(dirPath string)
- func (backRepoFile *BackRepoFileStruct) BackupXL(file *xlsx.File)
- func (backRepoFile *BackRepoFileStruct) CheckoutPhaseOne() (Error error)
- func (backRepoFile *BackRepoFileStruct) CheckoutPhaseOneInstance(fileDB *FileDB) (Error error)
- func (backRepoFile *BackRepoFileStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoFile *BackRepoFileStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, fileDB *FileDB) (Error error)
- func (backRepoFile *BackRepoFileStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoFile *BackRepoFileStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoFile *BackRepoFileStruct) CommitPhaseOneInstance(file *models.File) (Error error)
- func (backRepoFile *BackRepoFileStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoFile *BackRepoFileStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, file *models.File) (Error error)
- func (backRepoFile *BackRepoFileStruct) GetDB() db.DBInterface
- func (backRepoFile *BackRepoFileStruct) GetFileDBFromFilePtr(file *models.File) (fileDB *FileDB)
- func (backRepoFile *BackRepoFileStruct) GetStage() (stage *models.StageStruct)
- func (backRepoFile *BackRepoFileStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoFile *BackRepoFileStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, file *models.File) (Error error)
- func (backRepoFile *BackRepoFileStruct) RestorePhaseOne(dirPath string)
- func (backRepoFile *BackRepoFileStruct) RestorePhaseTwo()
- func (backRepoFile *BackRepoFileStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoNodeStruct
- func (backRepoNode *BackRepoNodeStruct) Backup(dirPath string)
- func (backRepoNode *BackRepoNodeStruct) BackupXL(file *xlsx.File)
- func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseOne() (Error error)
- func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseOneInstance(nodeDB *NodeDB) (Error error)
- func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, nodeDB *NodeDB) (Error error)
- func (backRepoNode *BackRepoNodeStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoNode *BackRepoNodeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoNode *BackRepoNodeStruct) CommitPhaseOneInstance(node *models.Node) (Error error)
- func (backRepoNode *BackRepoNodeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoNode *BackRepoNodeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, node *models.Node) (Error error)
- func (backRepoNode *BackRepoNodeStruct) GetDB() db.DBInterface
- func (backRepoNode *BackRepoNodeStruct) GetNodeDBFromNodePtr(node *models.Node) (nodeDB *NodeDB)
- func (backRepoNode *BackRepoNodeStruct) GetStage() (stage *models.StageStruct)
- func (backRepoNode *BackRepoNodeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoNode *BackRepoNodeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, node *models.Node) (Error error)
- func (backRepoNode *BackRepoNodeStruct) RestorePhaseOne(dirPath string)
- func (backRepoNode *BackRepoNodeStruct) RestorePhaseTwo()
- func (backRepoNode *BackRepoNodeStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoParagraphPropertiesStruct
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) Backup(dirPath string)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) BackupXL(file *xlsx.File)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseOne() (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseOneInstance(paragraphpropertiesDB *ParagraphPropertiesDB) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, paragraphpropertiesDB *ParagraphPropertiesDB) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseOneInstance(paragraphproperties *models.ParagraphProperties) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ...) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) GetDB() db.DBInterface
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) GetParagraphPropertiesDBFromParagraphPropertiesPtr(paragraphproperties *models.ParagraphProperties) (paragraphpropertiesDB *ParagraphPropertiesDB)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) GetStage() (stage *models.StageStruct)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, ...) (Error error)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) RestorePhaseOne(dirPath string)
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) RestorePhaseTwo()
- func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoParagraphStruct
- func (backRepoParagraph *BackRepoParagraphStruct) Backup(dirPath string)
- func (backRepoParagraph *BackRepoParagraphStruct) BackupXL(file *xlsx.File)
- func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseOne() (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseOneInstance(paragraphDB *ParagraphDB) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, paragraphDB *ParagraphDB) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseOneInstance(paragraph *models.Paragraph) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, paragraph *models.Paragraph) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) GetDB() db.DBInterface
- func (backRepoParagraph *BackRepoParagraphStruct) GetParagraphDBFromParagraphPtr(paragraph *models.Paragraph) (paragraphDB *ParagraphDB)
- func (backRepoParagraph *BackRepoParagraphStruct) GetStage() (stage *models.StageStruct)
- func (backRepoParagraph *BackRepoParagraphStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, paragraph *models.Paragraph) (Error error)
- func (backRepoParagraph *BackRepoParagraphStruct) RestorePhaseOne(dirPath string)
- func (backRepoParagraph *BackRepoParagraphStruct) RestorePhaseTwo()
- func (backRepoParagraph *BackRepoParagraphStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoParagraphStyleStruct
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) Backup(dirPath string)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) BackupXL(file *xlsx.File)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseOne() (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseOneInstance(paragraphstyleDB *ParagraphStyleDB) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, paragraphstyleDB *ParagraphStyleDB) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseOneInstance(paragraphstyle *models.ParagraphStyle) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, paragraphstyle *models.ParagraphStyle) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) GetDB() db.DBInterface
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) GetParagraphStyleDBFromParagraphStylePtr(paragraphstyle *models.ParagraphStyle) (paragraphstyleDB *ParagraphStyleDB)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) GetStage() (stage *models.StageStruct)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, paragraphstyle *models.ParagraphStyle) (Error error)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) RestorePhaseOne(dirPath string)
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) RestorePhaseTwo()
- func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoRunePropertiesStruct
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) Backup(dirPath string)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) BackupXL(file *xlsx.File)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseOne() (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseOneInstance(runepropertiesDB *RunePropertiesDB) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, runepropertiesDB *RunePropertiesDB) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseOneInstance(runeproperties *models.RuneProperties) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, runeproperties *models.RuneProperties) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) GetDB() db.DBInterface
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) GetRunePropertiesDBFromRunePropertiesPtr(runeproperties *models.RuneProperties) (runepropertiesDB *RunePropertiesDB)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) GetStage() (stage *models.StageStruct)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, runeproperties *models.RuneProperties) (Error error)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) RestorePhaseOne(dirPath string)
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) RestorePhaseTwo()
- func (backRepoRuneProperties *BackRepoRunePropertiesStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoRuneStruct
- func (backRepoRune *BackRepoRuneStruct) Backup(dirPath string)
- func (backRepoRune *BackRepoRuneStruct) BackupXL(file *xlsx.File)
- func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseOne() (Error error)
- func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseOneInstance(runeDB *RuneDB) (Error error)
- func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, runeDB *RuneDB) (Error error)
- func (backRepoRune *BackRepoRuneStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoRune *BackRepoRuneStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoRune *BackRepoRuneStruct) CommitPhaseOneInstance(rune *models.Rune) (Error error)
- func (backRepoRune *BackRepoRuneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRune *BackRepoRuneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, rune *models.Rune) (Error error)
- func (backRepoRune *BackRepoRuneStruct) GetDB() db.DBInterface
- func (backRepoRune *BackRepoRuneStruct) GetRuneDBFromRunePtr(rune *models.Rune) (runeDB *RuneDB)
- func (backRepoRune *BackRepoRuneStruct) GetStage() (stage *models.StageStruct)
- func (backRepoRune *BackRepoRuneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoRune *BackRepoRuneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, rune *models.Rune) (Error error)
- func (backRepoRune *BackRepoRuneStruct) RestorePhaseOne(dirPath string)
- func (backRepoRune *BackRepoRuneStruct) RestorePhaseTwo()
- func (backRepoRune *BackRepoRuneStruct) 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) CheckoutBody(body *models.Body)
- func (backRepo *BackRepoStruct) CheckoutDocument(document *models.Document)
- func (backRepo *BackRepoStruct) CheckoutDocx(docx *models.Docx)
- func (backRepo *BackRepoStruct) CheckoutFile(file *models.File)
- func (backRepo *BackRepoStruct) CheckoutNode(node *models.Node)
- func (backRepo *BackRepoStruct) CheckoutParagraph(paragraph *models.Paragraph)
- func (backRepo *BackRepoStruct) CheckoutParagraphProperties(paragraphproperties *models.ParagraphProperties)
- func (backRepo *BackRepoStruct) CheckoutParagraphStyle(paragraphstyle *models.ParagraphStyle)
- func (backRepo *BackRepoStruct) CheckoutRune(rune *models.Rune)
- func (backRepo *BackRepoStruct) CheckoutRuneProperties(runeproperties *models.RuneProperties)
- func (backRepo *BackRepoStruct) CheckoutTable(table *models.Table)
- func (backRepo *BackRepoStruct) CheckoutTableColumn(tablecolumn *models.TableColumn)
- func (backRepo *BackRepoStruct) CheckoutTableProperties(tableproperties *models.TableProperties)
- func (backRepo *BackRepoStruct) CheckoutTableRow(tablerow *models.TableRow)
- func (backRepo *BackRepoStruct) CheckoutTableStyle(tablestyle *models.TableStyle)
- func (backRepo *BackRepoStruct) CheckoutText(text *models.Text)
- func (backRepo *BackRepoStruct) Commit(stage *models.StageStruct)
- func (backRepo *BackRepoStruct) CommitBody(body *models.Body)
- func (backRepo *BackRepoStruct) CommitDocument(document *models.Document)
- func (backRepo *BackRepoStruct) CommitDocx(docx *models.Docx)
- func (backRepo *BackRepoStruct) CommitFile(file *models.File)
- func (backRepo *BackRepoStruct) CommitNode(node *models.Node)
- func (backRepo *BackRepoStruct) CommitParagraph(paragraph *models.Paragraph)
- func (backRepo *BackRepoStruct) CommitParagraphProperties(paragraphproperties *models.ParagraphProperties)
- func (backRepo *BackRepoStruct) CommitParagraphStyle(paragraphstyle *models.ParagraphStyle)
- func (backRepo *BackRepoStruct) CommitRune(rune *models.Rune)
- func (backRepo *BackRepoStruct) CommitRuneProperties(runeproperties *models.RuneProperties)
- func (backRepo *BackRepoStruct) CommitTable(table *models.Table)
- func (backRepo *BackRepoStruct) CommitTableColumn(tablecolumn *models.TableColumn)
- func (backRepo *BackRepoStruct) CommitTableProperties(tableproperties *models.TableProperties)
- func (backRepo *BackRepoStruct) CommitTableRow(tablerow *models.TableRow)
- func (backRepo *BackRepoStruct) CommitTableStyle(tablestyle *models.TableStyle)
- func (backRepo *BackRepoStruct) CommitText(text *models.Text)
- 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 BackRepoTableColumnStruct
- func (backRepoTableColumn *BackRepoTableColumnStruct) Backup(dirPath string)
- func (backRepoTableColumn *BackRepoTableColumnStruct) BackupXL(file *xlsx.File)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseOneInstance(tablecolumnDB *TableColumnDB) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablecolumnDB *TableColumnDB) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseOneInstance(tablecolumn *models.TableColumn) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tablecolumn *models.TableColumn) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) GetDB() db.DBInterface
- func (backRepoTableColumn *BackRepoTableColumnStruct) GetStage() (stage *models.StageStruct)
- func (backRepoTableColumn *BackRepoTableColumnStruct) GetTableColumnDBFromTableColumnPtr(tablecolumn *models.TableColumn) (tablecolumnDB *TableColumnDB)
- func (backRepoTableColumn *BackRepoTableColumnStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tablecolumn *models.TableColumn) (Error error)
- func (backRepoTableColumn *BackRepoTableColumnStruct) RestorePhaseOne(dirPath string)
- func (backRepoTableColumn *BackRepoTableColumnStruct) RestorePhaseTwo()
- func (backRepoTableColumn *BackRepoTableColumnStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTablePropertiesStruct
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) Backup(dirPath string)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) BackupXL(file *xlsx.File)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseOneInstance(tablepropertiesDB *TablePropertiesDB) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablepropertiesDB *TablePropertiesDB) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseOneInstance(tableproperties *models.TableProperties) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tableproperties *models.TableProperties) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) GetDB() db.DBInterface
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) GetStage() (stage *models.StageStruct)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) GetTablePropertiesDBFromTablePropertiesPtr(tableproperties *models.TableProperties) (tablepropertiesDB *TablePropertiesDB)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tableproperties *models.TableProperties) (Error error)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) RestorePhaseOne(dirPath string)
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) RestorePhaseTwo()
- func (backRepoTableProperties *BackRepoTablePropertiesStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTableRowStruct
- func (backRepoTableRow *BackRepoTableRowStruct) Backup(dirPath string)
- func (backRepoTableRow *BackRepoTableRowStruct) BackupXL(file *xlsx.File)
- func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseOneInstance(tablerowDB *TableRowDB) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablerowDB *TableRowDB) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseOneInstance(tablerow *models.TableRow) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tablerow *models.TableRow) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) GetDB() db.DBInterface
- func (backRepoTableRow *BackRepoTableRowStruct) GetStage() (stage *models.StageStruct)
- func (backRepoTableRow *BackRepoTableRowStruct) GetTableRowDBFromTableRowPtr(tablerow *models.TableRow) (tablerowDB *TableRowDB)
- func (backRepoTableRow *BackRepoTableRowStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tablerow *models.TableRow) (Error error)
- func (backRepoTableRow *BackRepoTableRowStruct) RestorePhaseOne(dirPath string)
- func (backRepoTableRow *BackRepoTableRowStruct) RestorePhaseTwo()
- func (backRepoTableRow *BackRepoTableRowStruct) 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 BackRepoTableStyleStruct
- func (backRepoTableStyle *BackRepoTableStyleStruct) Backup(dirPath string)
- func (backRepoTableStyle *BackRepoTableStyleStruct) BackupXL(file *xlsx.File)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseOneInstance(tablestyleDB *TableStyleDB) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablestyleDB *TableStyleDB) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseOneInstance(tablestyle *models.TableStyle) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tablestyle *models.TableStyle) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) GetDB() db.DBInterface
- func (backRepoTableStyle *BackRepoTableStyleStruct) GetStage() (stage *models.StageStruct)
- func (backRepoTableStyle *BackRepoTableStyleStruct) GetTableStyleDBFromTableStylePtr(tablestyle *models.TableStyle) (tablestyleDB *TableStyleDB)
- func (backRepoTableStyle *BackRepoTableStyleStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tablestyle *models.TableStyle) (Error error)
- func (backRepoTableStyle *BackRepoTableStyleStruct) RestorePhaseOne(dirPath string)
- func (backRepoTableStyle *BackRepoTableStyleStruct) RestorePhaseTwo()
- func (backRepoTableStyle *BackRepoTableStyleStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BackRepoTextStruct
- func (backRepoText *BackRepoTextStruct) Backup(dirPath string)
- func (backRepoText *BackRepoTextStruct) BackupXL(file *xlsx.File)
- func (backRepoText *BackRepoTextStruct) CheckoutPhaseOne() (Error error)
- func (backRepoText *BackRepoTextStruct) CheckoutPhaseOneInstance(textDB *TextDB) (Error error)
- func (backRepoText *BackRepoTextStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoText *BackRepoTextStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, textDB *TextDB) (Error error)
- func (backRepoText *BackRepoTextStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoText *BackRepoTextStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoText *BackRepoTextStruct) CommitPhaseOneInstance(text *models.Text) (Error error)
- func (backRepoText *BackRepoTextStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoText *BackRepoTextStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, text *models.Text) (Error error)
- func (backRepoText *BackRepoTextStruct) GetDB() db.DBInterface
- func (backRepoText *BackRepoTextStruct) GetStage() (stage *models.StageStruct)
- func (backRepoText *BackRepoTextStruct) GetTextDBFromTextPtr(text *models.Text) (textDB *TextDB)
- func (backRepoText *BackRepoTextStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
- func (backRepoText *BackRepoTextStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, text *models.Text) (Error error)
- func (backRepoText *BackRepoTextStruct) RestorePhaseOne(dirPath string)
- func (backRepoText *BackRepoTextStruct) RestorePhaseTwo()
- func (backRepoText *BackRepoTextStruct) RestoreXLPhaseOne(file *xlsx.File)
- type BodyAPI
- type BodyDB
- func (bodyDB *BodyDB) CopyBasicFieldsFromBody(body *models.Body)
- func (bodyDB *BodyDB) CopyBasicFieldsFromBodyWOP(body *BodyWOP)
- func (bodyDB *BodyDB) CopyBasicFieldsFromBody_WOP(body *models.Body_WOP)
- func (bodyDB *BodyDB) CopyBasicFieldsToBody(body *models.Body)
- func (bodyDB *BodyDB) CopyBasicFieldsToBodyWOP(body *BodyWOP)
- func (bodyDB *BodyDB) CopyBasicFieldsToBody_WOP(body *models.Body_WOP)
- func (bodyDB *BodyDB) DecodePointers(backRepo *BackRepoStruct, body *models.Body)
- type BodyDBResponse
- type BodyDBs
- type BodyPointersEncoding
- type BodyWOP
- 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 DocumentAPI
- type DocumentDB
- func (documentDB *DocumentDB) CopyBasicFieldsFromDocument(document *models.Document)
- func (documentDB *DocumentDB) CopyBasicFieldsFromDocumentWOP(document *DocumentWOP)
- func (documentDB *DocumentDB) CopyBasicFieldsFromDocument_WOP(document *models.Document_WOP)
- func (documentDB *DocumentDB) CopyBasicFieldsToDocument(document *models.Document)
- func (documentDB *DocumentDB) CopyBasicFieldsToDocumentWOP(document *DocumentWOP)
- func (documentDB *DocumentDB) CopyBasicFieldsToDocument_WOP(document *models.Document_WOP)
- func (documentDB *DocumentDB) DecodePointers(backRepo *BackRepoStruct, document *models.Document)
- type DocumentDBResponse
- type DocumentDBs
- type DocumentPointersEncoding
- type DocumentWOP
- type DocxAPI
- type DocxDB
- func (docxDB *DocxDB) CopyBasicFieldsFromDocx(docx *models.Docx)
- func (docxDB *DocxDB) CopyBasicFieldsFromDocxWOP(docx *DocxWOP)
- func (docxDB *DocxDB) CopyBasicFieldsFromDocx_WOP(docx *models.Docx_WOP)
- func (docxDB *DocxDB) CopyBasicFieldsToDocx(docx *models.Docx)
- func (docxDB *DocxDB) CopyBasicFieldsToDocxWOP(docx *DocxWOP)
- func (docxDB *DocxDB) CopyBasicFieldsToDocx_WOP(docx *models.Docx_WOP)
- func (docxDB *DocxDB) DecodePointers(backRepo *BackRepoStruct, docx *models.Docx)
- type DocxDBResponse
- type DocxDBs
- type DocxPointersEncoding
- type DocxWOP
- type FileAPI
- type FileDB
- func (fileDB *FileDB) CopyBasicFieldsFromFile(file *models.File)
- func (fileDB *FileDB) CopyBasicFieldsFromFileWOP(file *FileWOP)
- func (fileDB *FileDB) CopyBasicFieldsFromFile_WOP(file *models.File_WOP)
- func (fileDB *FileDB) CopyBasicFieldsToFile(file *models.File)
- func (fileDB *FileDB) CopyBasicFieldsToFileWOP(file *FileWOP)
- func (fileDB *FileDB) CopyBasicFieldsToFile_WOP(file *models.File_WOP)
- func (fileDB *FileDB) DecodePointers(backRepo *BackRepoStruct, file *models.File)
- type FileDBResponse
- type FileDBs
- type FilePointersEncoding
- type FileWOP
- type GongstructDB
- type IntSlice
- type NodeAPI
- type NodeDB
- func (nodeDB *NodeDB) CopyBasicFieldsFromNode(node *models.Node)
- func (nodeDB *NodeDB) CopyBasicFieldsFromNodeWOP(node *NodeWOP)
- func (nodeDB *NodeDB) CopyBasicFieldsFromNode_WOP(node *models.Node_WOP)
- func (nodeDB *NodeDB) CopyBasicFieldsToNode(node *models.Node)
- func (nodeDB *NodeDB) CopyBasicFieldsToNodeWOP(node *NodeWOP)
- func (nodeDB *NodeDB) CopyBasicFieldsToNode_WOP(node *models.Node_WOP)
- func (nodeDB *NodeDB) DecodePointers(backRepo *BackRepoStruct, node *models.Node)
- type NodeDBResponse
- type NodeDBs
- type NodePointersEncoding
- type NodeWOP
- type ParagraphAPI
- type ParagraphDB
- func (paragraphDB *ParagraphDB) CopyBasicFieldsFromParagraph(paragraph *models.Paragraph)
- func (paragraphDB *ParagraphDB) CopyBasicFieldsFromParagraphWOP(paragraph *ParagraphWOP)
- func (paragraphDB *ParagraphDB) CopyBasicFieldsFromParagraph_WOP(paragraph *models.Paragraph_WOP)
- func (paragraphDB *ParagraphDB) CopyBasicFieldsToParagraph(paragraph *models.Paragraph)
- func (paragraphDB *ParagraphDB) CopyBasicFieldsToParagraphWOP(paragraph *ParagraphWOP)
- func (paragraphDB *ParagraphDB) CopyBasicFieldsToParagraph_WOP(paragraph *models.Paragraph_WOP)
- func (paragraphDB *ParagraphDB) DecodePointers(backRepo *BackRepoStruct, paragraph *models.Paragraph)
- type ParagraphDBResponse
- type ParagraphDBs
- type ParagraphPointersEncoding
- type ParagraphPropertiesAPI
- type ParagraphPropertiesDB
- func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsFromParagraphProperties(paragraphproperties *models.ParagraphProperties)
- func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsFromParagraphPropertiesWOP(paragraphproperties *ParagraphPropertiesWOP)
- func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsFromParagraphProperties_WOP(paragraphproperties *models.ParagraphProperties_WOP)
- func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsToParagraphProperties(paragraphproperties *models.ParagraphProperties)
- func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsToParagraphPropertiesWOP(paragraphproperties *ParagraphPropertiesWOP)
- func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsToParagraphProperties_WOP(paragraphproperties *models.ParagraphProperties_WOP)
- func (paragraphpropertiesDB *ParagraphPropertiesDB) DecodePointers(backRepo *BackRepoStruct, paragraphproperties *models.ParagraphProperties)
- type ParagraphPropertiesDBResponse
- type ParagraphPropertiesDBs
- type ParagraphPropertiesPointersEncoding
- type ParagraphPropertiesWOP
- type ParagraphStyleAPI
- type ParagraphStyleDB
- func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsFromParagraphStyle(paragraphstyle *models.ParagraphStyle)
- func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsFromParagraphStyleWOP(paragraphstyle *ParagraphStyleWOP)
- func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsFromParagraphStyle_WOP(paragraphstyle *models.ParagraphStyle_WOP)
- func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsToParagraphStyle(paragraphstyle *models.ParagraphStyle)
- func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsToParagraphStyleWOP(paragraphstyle *ParagraphStyleWOP)
- func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsToParagraphStyle_WOP(paragraphstyle *models.ParagraphStyle_WOP)
- func (paragraphstyleDB *ParagraphStyleDB) DecodePointers(backRepo *BackRepoStruct, paragraphstyle *models.ParagraphStyle)
- type ParagraphStyleDBResponse
- type ParagraphStyleDBs
- type ParagraphStylePointersEncoding
- type ParagraphStyleWOP
- type ParagraphWOP
- type RuneAPI
- type RuneDB
- func (runeDB *RuneDB) CopyBasicFieldsFromRune(rune *models.Rune)
- func (runeDB *RuneDB) CopyBasicFieldsFromRuneWOP(rune *RuneWOP)
- func (runeDB *RuneDB) CopyBasicFieldsFromRune_WOP(rune *models.Rune_WOP)
- func (runeDB *RuneDB) CopyBasicFieldsToRune(rune *models.Rune)
- func (runeDB *RuneDB) CopyBasicFieldsToRuneWOP(rune *RuneWOP)
- func (runeDB *RuneDB) CopyBasicFieldsToRune_WOP(rune *models.Rune_WOP)
- func (runeDB *RuneDB) DecodePointers(backRepo *BackRepoStruct, rune *models.Rune)
- type RuneDBResponse
- type RuneDBs
- type RunePointersEncoding
- type RunePropertiesAPI
- type RunePropertiesDB
- func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsFromRuneProperties(runeproperties *models.RuneProperties)
- func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsFromRunePropertiesWOP(runeproperties *RunePropertiesWOP)
- func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsFromRuneProperties_WOP(runeproperties *models.RuneProperties_WOP)
- func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsToRuneProperties(runeproperties *models.RuneProperties)
- func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsToRunePropertiesWOP(runeproperties *RunePropertiesWOP)
- func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsToRuneProperties_WOP(runeproperties *models.RuneProperties_WOP)
- func (runepropertiesDB *RunePropertiesDB) DecodePointers(backRepo *BackRepoStruct, runeproperties *models.RuneProperties)
- type RunePropertiesDBResponse
- type RunePropertiesDBs
- type RunePropertiesPointersEncoding
- type RunePropertiesWOP
- type RuneWOP
- type TableAPI
- type TableColumnAPI
- type TableColumnDB
- func (tablecolumnDB *TableColumnDB) CopyBasicFieldsFromTableColumn(tablecolumn *models.TableColumn)
- func (tablecolumnDB *TableColumnDB) CopyBasicFieldsFromTableColumnWOP(tablecolumn *TableColumnWOP)
- func (tablecolumnDB *TableColumnDB) CopyBasicFieldsFromTableColumn_WOP(tablecolumn *models.TableColumn_WOP)
- func (tablecolumnDB *TableColumnDB) CopyBasicFieldsToTableColumn(tablecolumn *models.TableColumn)
- func (tablecolumnDB *TableColumnDB) CopyBasicFieldsToTableColumnWOP(tablecolumn *TableColumnWOP)
- func (tablecolumnDB *TableColumnDB) CopyBasicFieldsToTableColumn_WOP(tablecolumn *models.TableColumn_WOP)
- func (tablecolumnDB *TableColumnDB) DecodePointers(backRepo *BackRepoStruct, tablecolumn *models.TableColumn)
- type TableColumnDBResponse
- type TableColumnDBs
- type TableColumnPointersEncoding
- type TableColumnWOP
- 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 TablePropertiesAPI
- type TablePropertiesDB
- func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsFromTableProperties(tableproperties *models.TableProperties)
- func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsFromTablePropertiesWOP(tableproperties *TablePropertiesWOP)
- func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsFromTableProperties_WOP(tableproperties *models.TableProperties_WOP)
- func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsToTableProperties(tableproperties *models.TableProperties)
- func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsToTablePropertiesWOP(tableproperties *TablePropertiesWOP)
- func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsToTableProperties_WOP(tableproperties *models.TableProperties_WOP)
- func (tablepropertiesDB *TablePropertiesDB) DecodePointers(backRepo *BackRepoStruct, tableproperties *models.TableProperties)
- type TablePropertiesDBResponse
- type TablePropertiesDBs
- type TablePropertiesPointersEncoding
- type TablePropertiesWOP
- type TableRowAPI
- type TableRowDB
- func (tablerowDB *TableRowDB) CopyBasicFieldsFromTableRow(tablerow *models.TableRow)
- func (tablerowDB *TableRowDB) CopyBasicFieldsFromTableRowWOP(tablerow *TableRowWOP)
- func (tablerowDB *TableRowDB) CopyBasicFieldsFromTableRow_WOP(tablerow *models.TableRow_WOP)
- func (tablerowDB *TableRowDB) CopyBasicFieldsToTableRow(tablerow *models.TableRow)
- func (tablerowDB *TableRowDB) CopyBasicFieldsToTableRowWOP(tablerow *TableRowWOP)
- func (tablerowDB *TableRowDB) CopyBasicFieldsToTableRow_WOP(tablerow *models.TableRow_WOP)
- func (tablerowDB *TableRowDB) DecodePointers(backRepo *BackRepoStruct, tablerow *models.TableRow)
- type TableRowDBResponse
- type TableRowDBs
- type TableRowPointersEncoding
- type TableRowWOP
- type TableStyleAPI
- type TableStyleDB
- func (tablestyleDB *TableStyleDB) CopyBasicFieldsFromTableStyle(tablestyle *models.TableStyle)
- func (tablestyleDB *TableStyleDB) CopyBasicFieldsFromTableStyleWOP(tablestyle *TableStyleWOP)
- func (tablestyleDB *TableStyleDB) CopyBasicFieldsFromTableStyle_WOP(tablestyle *models.TableStyle_WOP)
- func (tablestyleDB *TableStyleDB) CopyBasicFieldsToTableStyle(tablestyle *models.TableStyle)
- func (tablestyleDB *TableStyleDB) CopyBasicFieldsToTableStyleWOP(tablestyle *TableStyleWOP)
- func (tablestyleDB *TableStyleDB) CopyBasicFieldsToTableStyle_WOP(tablestyle *models.TableStyle_WOP)
- func (tablestyleDB *TableStyleDB) DecodePointers(backRepo *BackRepoStruct, tablestyle *models.TableStyle)
- type TableStyleDBResponse
- type TableStyleDBs
- type TableStylePointersEncoding
- type TableStyleWOP
- type TableWOP
- type TextAPI
- type TextDB
- func (textDB *TextDB) CopyBasicFieldsFromText(text *models.Text)
- func (textDB *TextDB) CopyBasicFieldsFromTextWOP(text *TextWOP)
- func (textDB *TextDB) CopyBasicFieldsFromText_WOP(text *models.Text_WOP)
- func (textDB *TextDB) CopyBasicFieldsToText(text *models.Text)
- func (textDB *TextDB) CopyBasicFieldsToTextWOP(text *TextWOP)
- func (textDB *TextDB) CopyBasicFieldsToText_WOP(text *models.Text_WOP)
- func (textDB *TextDB) DecodePointers(backRepo *BackRepoStruct, text *models.Text)
- type TextDBResponse
- type TextDBs
- type TextPointersEncoding
- type TextWOP
Constants ¶
This section is empty.
Variables ¶
var BackRepoBodyid_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 BackRepoDocumentid_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 BackRepoDocxid_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 BackRepoFileid_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 BackRepoNodeid_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 BackRepoParagraphPropertiesid_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 BackRepoParagraphStyleid_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 BackRepoParagraphid_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 BackRepoRunePropertiesid_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 BackRepoRuneid_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 BackRepoTableColumnid_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 BackRepoTablePropertiesid_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 BackRepoTableRowid_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 BackRepoTableStyleid_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 BackRepoTextid_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 Body_Fields = []string{
"ID",
"Name",
}
var Document_Fields = []string{
"ID",
"Name",
}
var Docx_Fields = []string{
"ID",
"Name",
}
var File_Fields = []string{
"ID",
"Name",
}
var Node_Fields = []string{
"ID",
"Name",
}
var ParagraphProperties_Fields = []string{
"ID",
"Name",
"Content",
}
var ParagraphStyle_Fields = []string{
"ID",
"Name",
"Content",
"ValAttr",
}
var Paragraph_Fields = []string{
"ID",
"Name",
"Content",
"Text",
}
var RuneProperties_Fields = []string{
"ID",
"Name",
"IsBold",
"IsStrike",
"IsItalic",
"Content",
}
var Rune_Fields = []string{
"ID",
"Name",
"Content",
}
var TableColumn_Fields = []string{
"ID",
"Name",
"Content",
}
var TableProperties_Fields = []string{
"ID",
"Name",
"Content",
}
var TableRow_Fields = []string{
"ID",
"Name",
"Content",
}
var TableStyle_Fields = []string{
"ID",
"Name",
"Content",
"Val",
}
var Table_Fields = []string{
"ID",
"Name",
"Content",
}
var Text_Fields = []string{
"ID",
"Name",
"Content",
"PreserveWhiteSpace",
}
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 BackRepoBodyStruct ¶
type BackRepoBodyStruct struct {
// stores BodyDB according to their gorm ID
Map_BodyDBID_BodyDB map[uint]*BodyDB
// stores BodyDB ID according to Body address
Map_BodyPtr_BodyDBID map[*models.Body]uint
// stores Body according to their gorm ID
Map_BodyDBID_BodyPtr map[uint]*models.Body
// contains filtered or unexported fields
}
func (*BackRepoBodyStruct) Backup ¶
func (backRepoBody *BackRepoBodyStruct) Backup(dirPath string)
Backup generates a json file from a slice of all BodyDB instances in the backrepo
func (*BackRepoBodyStruct) BackupXL ¶
func (backRepoBody *BackRepoBodyStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all BodyDB instances in the backrepo
func (*BackRepoBodyStruct) CheckoutPhaseOne ¶
func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseOne() (Error error)
BackRepoBody.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 (*BackRepoBodyStruct) CheckoutPhaseOneInstance ¶
func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseOneInstance(bodyDB *BodyDB) (Error error)
CheckoutPhaseOneInstance takes a bodyDB that has been found in the DB, updates the backRepo and stages the models version of the bodyDB
func (*BackRepoBodyStruct) CheckoutPhaseTwo ¶
func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoBody.CheckoutPhaseTwo Checkouts all staged instances of Body to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBodyStruct) CheckoutPhaseTwoInstance ¶
func (backRepoBody *BackRepoBodyStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, bodyDB *BodyDB) (Error error)
BackRepoBody.CheckoutPhaseTwoInstance Checkouts staged instances of Body to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBodyStruct) CommitDeleteInstance ¶
func (backRepoBody *BackRepoBodyStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoBody.CommitDeleteInstance commits deletion of Body to the BackRepo
func (*BackRepoBodyStruct) CommitPhaseOne ¶
func (backRepoBody *BackRepoBodyStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoBody.CommitPhaseOne commits all staged instances of Body 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 (*BackRepoBodyStruct) CommitPhaseOneInstance ¶
func (backRepoBody *BackRepoBodyStruct) CommitPhaseOneInstance(body *models.Body) (Error error)
BackRepoBody.CommitPhaseOneInstance commits body staged instances of Body 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 (*BackRepoBodyStruct) CommitPhaseTwo ¶
func (backRepoBody *BackRepoBodyStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoBody.CommitPhaseTwo commits all staged instances of Body to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBodyStruct) CommitPhaseTwoInstance ¶
func (backRepoBody *BackRepoBodyStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, body *models.Body) (Error error)
BackRepoBody.CommitPhaseTwoInstance commits {{structname }} of models.Body to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBodyStruct) GetBodyDBFromBodyPtr ¶
func (backRepoBody *BackRepoBodyStruct) GetBodyDBFromBodyPtr(body *models.Body) (bodyDB *BodyDB)
GetBodyDBFromBodyPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoBodyStruct) GetDB ¶
func (backRepoBody *BackRepoBodyStruct) GetDB() db.DBInterface
func (*BackRepoBodyStruct) GetStage ¶
func (backRepoBody *BackRepoBodyStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoBodyStruct) ResetReversePointers ¶
func (backRepoBody *BackRepoBodyStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoBody.ResetReversePointers commits all staged instances of Body to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoBodyStruct) ResetReversePointersInstance ¶
func (backRepoBody *BackRepoBodyStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, body *models.Body) (Error error)
func (*BackRepoBodyStruct) RestorePhaseOne ¶
func (backRepoBody *BackRepoBodyStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "BodyDB.json" in dirPath that stores an array of BodyDB and stores it in the database the map BackRepoBodyid_atBckpTime_newID is updated accordingly
func (*BackRepoBodyStruct) RestorePhaseTwo ¶
func (backRepoBody *BackRepoBodyStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Body>id_atBckpTime_newID to compute new index
func (*BackRepoBodyStruct) RestoreXLPhaseOne ¶
func (backRepoBody *BackRepoBodyStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Body" sheet all BodyDB instances
type BackRepoData ¶
type BackRepoData struct {
BodyAPIs []*BodyAPI
DocumentAPIs []*DocumentAPI
DocxAPIs []*DocxAPI
FileAPIs []*FileAPI
NodeAPIs []*NodeAPI
ParagraphAPIs []*ParagraphAPI
ParagraphPropertiesAPIs []*ParagraphPropertiesAPI
ParagraphStyleAPIs []*ParagraphStyleAPI
RuneAPIs []*RuneAPI
RunePropertiesAPIs []*RunePropertiesAPI
TableAPIs []*TableAPI
TableColumnAPIs []*TableColumnAPI
TablePropertiesAPIs []*TablePropertiesAPI
TableRowAPIs []*TableRowAPI
TableStyleAPIs []*TableStyleAPI
TextAPIs []*TextAPI
}
type BackRepoDocumentStruct ¶
type BackRepoDocumentStruct struct {
// stores DocumentDB according to their gorm ID
Map_DocumentDBID_DocumentDB map[uint]*DocumentDB
// stores DocumentDB ID according to Document address
Map_DocumentPtr_DocumentDBID map[*models.Document]uint
// stores Document according to their gorm ID
Map_DocumentDBID_DocumentPtr map[uint]*models.Document
// contains filtered or unexported fields
}
func (*BackRepoDocumentStruct) Backup ¶
func (backRepoDocument *BackRepoDocumentStruct) Backup(dirPath string)
Backup generates a json file from a slice of all DocumentDB instances in the backrepo
func (*BackRepoDocumentStruct) BackupXL ¶
func (backRepoDocument *BackRepoDocumentStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all DocumentDB instances in the backrepo
func (*BackRepoDocumentStruct) CheckoutPhaseOne ¶
func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseOne() (Error error)
BackRepoDocument.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 (*BackRepoDocumentStruct) CheckoutPhaseOneInstance ¶
func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseOneInstance(documentDB *DocumentDB) (Error error)
CheckoutPhaseOneInstance takes a documentDB that has been found in the DB, updates the backRepo and stages the models version of the documentDB
func (*BackRepoDocumentStruct) CheckoutPhaseTwo ¶
func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDocument.CheckoutPhaseTwo Checkouts all staged instances of Document to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocumentStruct) CheckoutPhaseTwoInstance ¶
func (backRepoDocument *BackRepoDocumentStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, documentDB *DocumentDB) (Error error)
BackRepoDocument.CheckoutPhaseTwoInstance Checkouts staged instances of Document to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocumentStruct) CommitDeleteInstance ¶
func (backRepoDocument *BackRepoDocumentStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoDocument.CommitDeleteInstance commits deletion of Document to the BackRepo
func (*BackRepoDocumentStruct) CommitPhaseOne ¶
func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoDocument.CommitPhaseOne commits all staged instances of Document 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 (*BackRepoDocumentStruct) CommitPhaseOneInstance ¶
func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseOneInstance(document *models.Document) (Error error)
BackRepoDocument.CommitPhaseOneInstance commits document staged instances of Document 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 (*BackRepoDocumentStruct) CommitPhaseTwo ¶
func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDocument.CommitPhaseTwo commits all staged instances of Document to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocumentStruct) CommitPhaseTwoInstance ¶
func (backRepoDocument *BackRepoDocumentStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, document *models.Document) (Error error)
BackRepoDocument.CommitPhaseTwoInstance commits {{structname }} of models.Document to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocumentStruct) GetDB ¶
func (backRepoDocument *BackRepoDocumentStruct) GetDB() db.DBInterface
func (*BackRepoDocumentStruct) GetDocumentDBFromDocumentPtr ¶
func (backRepoDocument *BackRepoDocumentStruct) GetDocumentDBFromDocumentPtr(document *models.Document) (documentDB *DocumentDB)
GetDocumentDBFromDocumentPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoDocumentStruct) GetStage ¶
func (backRepoDocument *BackRepoDocumentStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoDocumentStruct) ResetReversePointers ¶
func (backRepoDocument *BackRepoDocumentStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoDocument.ResetReversePointers commits all staged instances of Document to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocumentStruct) ResetReversePointersInstance ¶
func (backRepoDocument *BackRepoDocumentStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, document *models.Document) (Error error)
func (*BackRepoDocumentStruct) RestorePhaseOne ¶
func (backRepoDocument *BackRepoDocumentStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "DocumentDB.json" in dirPath that stores an array of DocumentDB and stores it in the database the map BackRepoDocumentid_atBckpTime_newID is updated accordingly
func (*BackRepoDocumentStruct) RestorePhaseTwo ¶
func (backRepoDocument *BackRepoDocumentStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Document>id_atBckpTime_newID to compute new index
func (*BackRepoDocumentStruct) RestoreXLPhaseOne ¶
func (backRepoDocument *BackRepoDocumentStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Document" sheet all DocumentDB instances
type BackRepoDocxStruct ¶
type BackRepoDocxStruct struct {
// stores DocxDB according to their gorm ID
Map_DocxDBID_DocxDB map[uint]*DocxDB
// stores DocxDB ID according to Docx address
Map_DocxPtr_DocxDBID map[*models.Docx]uint
// stores Docx according to their gorm ID
Map_DocxDBID_DocxPtr map[uint]*models.Docx
// contains filtered or unexported fields
}
func (*BackRepoDocxStruct) Backup ¶
func (backRepoDocx *BackRepoDocxStruct) Backup(dirPath string)
Backup generates a json file from a slice of all DocxDB instances in the backrepo
func (*BackRepoDocxStruct) BackupXL ¶
func (backRepoDocx *BackRepoDocxStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all DocxDB instances in the backrepo
func (*BackRepoDocxStruct) CheckoutPhaseOne ¶
func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseOne() (Error error)
BackRepoDocx.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 (*BackRepoDocxStruct) CheckoutPhaseOneInstance ¶
func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseOneInstance(docxDB *DocxDB) (Error error)
CheckoutPhaseOneInstance takes a docxDB that has been found in the DB, updates the backRepo and stages the models version of the docxDB
func (*BackRepoDocxStruct) CheckoutPhaseTwo ¶
func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDocx.CheckoutPhaseTwo Checkouts all staged instances of Docx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocxStruct) CheckoutPhaseTwoInstance ¶
func (backRepoDocx *BackRepoDocxStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, docxDB *DocxDB) (Error error)
BackRepoDocx.CheckoutPhaseTwoInstance Checkouts staged instances of Docx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocxStruct) CommitDeleteInstance ¶
func (backRepoDocx *BackRepoDocxStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoDocx.CommitDeleteInstance commits deletion of Docx to the BackRepo
func (*BackRepoDocxStruct) CommitPhaseOne ¶
func (backRepoDocx *BackRepoDocxStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoDocx.CommitPhaseOne commits all staged instances of Docx 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 (*BackRepoDocxStruct) CommitPhaseOneInstance ¶
func (backRepoDocx *BackRepoDocxStruct) CommitPhaseOneInstance(docx *models.Docx) (Error error)
BackRepoDocx.CommitPhaseOneInstance commits docx staged instances of Docx 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 (*BackRepoDocxStruct) CommitPhaseTwo ¶
func (backRepoDocx *BackRepoDocxStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDocx.CommitPhaseTwo commits all staged instances of Docx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocxStruct) CommitPhaseTwoInstance ¶
func (backRepoDocx *BackRepoDocxStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, docx *models.Docx) (Error error)
BackRepoDocx.CommitPhaseTwoInstance commits {{structname }} of models.Docx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocxStruct) GetDB ¶
func (backRepoDocx *BackRepoDocxStruct) GetDB() db.DBInterface
func (*BackRepoDocxStruct) GetDocxDBFromDocxPtr ¶
func (backRepoDocx *BackRepoDocxStruct) GetDocxDBFromDocxPtr(docx *models.Docx) (docxDB *DocxDB)
GetDocxDBFromDocxPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoDocxStruct) GetStage ¶
func (backRepoDocx *BackRepoDocxStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoDocxStruct) ResetReversePointers ¶
func (backRepoDocx *BackRepoDocxStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoDocx.ResetReversePointers commits all staged instances of Docx to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDocxStruct) ResetReversePointersInstance ¶
func (backRepoDocx *BackRepoDocxStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, docx *models.Docx) (Error error)
func (*BackRepoDocxStruct) RestorePhaseOne ¶
func (backRepoDocx *BackRepoDocxStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "DocxDB.json" in dirPath that stores an array of DocxDB and stores it in the database the map BackRepoDocxid_atBckpTime_newID is updated accordingly
func (*BackRepoDocxStruct) RestorePhaseTwo ¶
func (backRepoDocx *BackRepoDocxStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Docx>id_atBckpTime_newID to compute new index
func (*BackRepoDocxStruct) RestoreXLPhaseOne ¶
func (backRepoDocx *BackRepoDocxStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Docx" sheet all DocxDB instances
type BackRepoFileStruct ¶
type BackRepoFileStruct struct {
// stores FileDB according to their gorm ID
Map_FileDBID_FileDB map[uint]*FileDB
// stores FileDB ID according to File address
Map_FilePtr_FileDBID map[*models.File]uint
// stores File according to their gorm ID
Map_FileDBID_FilePtr map[uint]*models.File
// contains filtered or unexported fields
}
func (*BackRepoFileStruct) Backup ¶
func (backRepoFile *BackRepoFileStruct) Backup(dirPath string)
Backup generates a json file from a slice of all FileDB instances in the backrepo
func (*BackRepoFileStruct) BackupXL ¶
func (backRepoFile *BackRepoFileStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all FileDB instances in the backrepo
func (*BackRepoFileStruct) CheckoutPhaseOne ¶
func (backRepoFile *BackRepoFileStruct) CheckoutPhaseOne() (Error error)
BackRepoFile.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 (*BackRepoFileStruct) CheckoutPhaseOneInstance ¶
func (backRepoFile *BackRepoFileStruct) CheckoutPhaseOneInstance(fileDB *FileDB) (Error error)
CheckoutPhaseOneInstance takes a fileDB that has been found in the DB, updates the backRepo and stages the models version of the fileDB
func (*BackRepoFileStruct) CheckoutPhaseTwo ¶
func (backRepoFile *BackRepoFileStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoFile.CheckoutPhaseTwo Checkouts all staged instances of File to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFileStruct) CheckoutPhaseTwoInstance ¶
func (backRepoFile *BackRepoFileStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, fileDB *FileDB) (Error error)
BackRepoFile.CheckoutPhaseTwoInstance Checkouts staged instances of File to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFileStruct) CommitDeleteInstance ¶
func (backRepoFile *BackRepoFileStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoFile.CommitDeleteInstance commits deletion of File to the BackRepo
func (*BackRepoFileStruct) CommitPhaseOne ¶
func (backRepoFile *BackRepoFileStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoFile.CommitPhaseOne commits all staged instances of File 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 (*BackRepoFileStruct) CommitPhaseOneInstance ¶
func (backRepoFile *BackRepoFileStruct) CommitPhaseOneInstance(file *models.File) (Error error)
BackRepoFile.CommitPhaseOneInstance commits file staged instances of File 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 (*BackRepoFileStruct) CommitPhaseTwo ¶
func (backRepoFile *BackRepoFileStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoFile.CommitPhaseTwo commits all staged instances of File to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFileStruct) CommitPhaseTwoInstance ¶
func (backRepoFile *BackRepoFileStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, file *models.File) (Error error)
BackRepoFile.CommitPhaseTwoInstance commits {{structname }} of models.File to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFileStruct) GetDB ¶
func (backRepoFile *BackRepoFileStruct) GetDB() db.DBInterface
func (*BackRepoFileStruct) GetFileDBFromFilePtr ¶
func (backRepoFile *BackRepoFileStruct) GetFileDBFromFilePtr(file *models.File) (fileDB *FileDB)
GetFileDBFromFilePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoFileStruct) GetStage ¶
func (backRepoFile *BackRepoFileStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoFileStruct) ResetReversePointers ¶
func (backRepoFile *BackRepoFileStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoFile.ResetReversePointers commits all staged instances of File to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoFileStruct) ResetReversePointersInstance ¶
func (backRepoFile *BackRepoFileStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, file *models.File) (Error error)
func (*BackRepoFileStruct) RestorePhaseOne ¶
func (backRepoFile *BackRepoFileStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "FileDB.json" in dirPath that stores an array of FileDB and stores it in the database the map BackRepoFileid_atBckpTime_newID is updated accordingly
func (*BackRepoFileStruct) RestorePhaseTwo ¶
func (backRepoFile *BackRepoFileStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<File>id_atBckpTime_newID to compute new index
func (*BackRepoFileStruct) RestoreXLPhaseOne ¶
func (backRepoFile *BackRepoFileStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "File" sheet all FileDB instances
type BackRepoNodeStruct ¶
type BackRepoNodeStruct struct {
// stores NodeDB according to their gorm ID
Map_NodeDBID_NodeDB map[uint]*NodeDB
// stores NodeDB ID according to Node address
Map_NodePtr_NodeDBID map[*models.Node]uint
// stores Node according to their gorm ID
Map_NodeDBID_NodePtr map[uint]*models.Node
// contains filtered or unexported fields
}
func (*BackRepoNodeStruct) Backup ¶
func (backRepoNode *BackRepoNodeStruct) Backup(dirPath string)
Backup generates a json file from a slice of all NodeDB instances in the backrepo
func (*BackRepoNodeStruct) BackupXL ¶
func (backRepoNode *BackRepoNodeStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all NodeDB instances in the backrepo
func (*BackRepoNodeStruct) CheckoutPhaseOne ¶
func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseOne() (Error error)
BackRepoNode.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 (*BackRepoNodeStruct) CheckoutPhaseOneInstance ¶
func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseOneInstance(nodeDB *NodeDB) (Error error)
CheckoutPhaseOneInstance takes a nodeDB that has been found in the DB, updates the backRepo and stages the models version of the nodeDB
func (*BackRepoNodeStruct) CheckoutPhaseTwo ¶
func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoNode.CheckoutPhaseTwo Checkouts all staged instances of Node to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoNodeStruct) CheckoutPhaseTwoInstance ¶
func (backRepoNode *BackRepoNodeStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, nodeDB *NodeDB) (Error error)
BackRepoNode.CheckoutPhaseTwoInstance Checkouts staged instances of Node to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoNodeStruct) CommitDeleteInstance ¶
func (backRepoNode *BackRepoNodeStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoNode.CommitDeleteInstance commits deletion of Node to the BackRepo
func (*BackRepoNodeStruct) CommitPhaseOne ¶
func (backRepoNode *BackRepoNodeStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoNode.CommitPhaseOne commits all staged instances of Node 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 (*BackRepoNodeStruct) CommitPhaseOneInstance ¶
func (backRepoNode *BackRepoNodeStruct) CommitPhaseOneInstance(node *models.Node) (Error error)
BackRepoNode.CommitPhaseOneInstance commits node staged instances of Node 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 (*BackRepoNodeStruct) CommitPhaseTwo ¶
func (backRepoNode *BackRepoNodeStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoNode.CommitPhaseTwo commits all staged instances of Node to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoNodeStruct) CommitPhaseTwoInstance ¶
func (backRepoNode *BackRepoNodeStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, node *models.Node) (Error error)
BackRepoNode.CommitPhaseTwoInstance commits {{structname }} of models.Node to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoNodeStruct) GetDB ¶
func (backRepoNode *BackRepoNodeStruct) GetDB() db.DBInterface
func (*BackRepoNodeStruct) GetNodeDBFromNodePtr ¶
func (backRepoNode *BackRepoNodeStruct) GetNodeDBFromNodePtr(node *models.Node) (nodeDB *NodeDB)
GetNodeDBFromNodePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoNodeStruct) GetStage ¶
func (backRepoNode *BackRepoNodeStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoNodeStruct) ResetReversePointers ¶
func (backRepoNode *BackRepoNodeStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoNode.ResetReversePointers commits all staged instances of Node to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoNodeStruct) ResetReversePointersInstance ¶
func (backRepoNode *BackRepoNodeStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, node *models.Node) (Error error)
func (*BackRepoNodeStruct) RestorePhaseOne ¶
func (backRepoNode *BackRepoNodeStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "NodeDB.json" in dirPath that stores an array of NodeDB and stores it in the database the map BackRepoNodeid_atBckpTime_newID is updated accordingly
func (*BackRepoNodeStruct) RestorePhaseTwo ¶
func (backRepoNode *BackRepoNodeStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Node>id_atBckpTime_newID to compute new index
func (*BackRepoNodeStruct) RestoreXLPhaseOne ¶
func (backRepoNode *BackRepoNodeStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Node" sheet all NodeDB instances
type BackRepoParagraphPropertiesStruct ¶
type BackRepoParagraphPropertiesStruct struct {
// stores ParagraphPropertiesDB according to their gorm ID
Map_ParagraphPropertiesDBID_ParagraphPropertiesDB map[uint]*ParagraphPropertiesDB
// stores ParagraphPropertiesDB ID according to ParagraphProperties address
Map_ParagraphPropertiesPtr_ParagraphPropertiesDBID map[*models.ParagraphProperties]uint
// stores ParagraphProperties according to their gorm ID
Map_ParagraphPropertiesDBID_ParagraphPropertiesPtr map[uint]*models.ParagraphProperties
// contains filtered or unexported fields
}
func (*BackRepoParagraphPropertiesStruct) Backup ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ParagraphPropertiesDB instances in the backrepo
func (*BackRepoParagraphPropertiesStruct) BackupXL ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ParagraphPropertiesDB instances in the backrepo
func (*BackRepoParagraphPropertiesStruct) CheckoutPhaseOne ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseOne() (Error error)
BackRepoParagraphProperties.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 (*BackRepoParagraphPropertiesStruct) CheckoutPhaseOneInstance ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseOneInstance(paragraphpropertiesDB *ParagraphPropertiesDB) (Error error)
CheckoutPhaseOneInstance takes a paragraphpropertiesDB that has been found in the DB, updates the backRepo and stages the models version of the paragraphpropertiesDB
func (*BackRepoParagraphPropertiesStruct) CheckoutPhaseTwo ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoParagraphProperties.CheckoutPhaseTwo Checkouts all staged instances of ParagraphProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphPropertiesStruct) CheckoutPhaseTwoInstance ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, paragraphpropertiesDB *ParagraphPropertiesDB) (Error error)
BackRepoParagraphProperties.CheckoutPhaseTwoInstance Checkouts staged instances of ParagraphProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphPropertiesStruct) CommitDeleteInstance ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoParagraphProperties.CommitDeleteInstance commits deletion of ParagraphProperties to the BackRepo
func (*BackRepoParagraphPropertiesStruct) CommitPhaseOne ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoParagraphProperties.CommitPhaseOne commits all staged instances of ParagraphProperties 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 (*BackRepoParagraphPropertiesStruct) CommitPhaseOneInstance ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseOneInstance(paragraphproperties *models.ParagraphProperties) (Error error)
BackRepoParagraphProperties.CommitPhaseOneInstance commits paragraphproperties staged instances of ParagraphProperties 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 (*BackRepoParagraphPropertiesStruct) CommitPhaseTwo ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoParagraphProperties.CommitPhaseTwo commits all staged instances of ParagraphProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphPropertiesStruct) CommitPhaseTwoInstance ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, paragraphproperties *models.ParagraphProperties) (Error error)
BackRepoParagraphProperties.CommitPhaseTwoInstance commits {{structname }} of models.ParagraphProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphPropertiesStruct) GetDB ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) GetDB() db.DBInterface
func (*BackRepoParagraphPropertiesStruct) GetParagraphPropertiesDBFromParagraphPropertiesPtr ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) GetParagraphPropertiesDBFromParagraphPropertiesPtr(paragraphproperties *models.ParagraphProperties) (paragraphpropertiesDB *ParagraphPropertiesDB)
GetParagraphPropertiesDBFromParagraphPropertiesPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoParagraphPropertiesStruct) GetStage ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoParagraphPropertiesStruct) ResetReversePointers ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoParagraphProperties.ResetReversePointers commits all staged instances of ParagraphProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphPropertiesStruct) ResetReversePointersInstance ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, paragraphproperties *models.ParagraphProperties) (Error error)
func (*BackRepoParagraphPropertiesStruct) RestorePhaseOne ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ParagraphPropertiesDB.json" in dirPath that stores an array of ParagraphPropertiesDB and stores it in the database the map BackRepoParagraphPropertiesid_atBckpTime_newID is updated accordingly
func (*BackRepoParagraphPropertiesStruct) RestorePhaseTwo ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<ParagraphProperties>id_atBckpTime_newID to compute new index
func (*BackRepoParagraphPropertiesStruct) RestoreXLPhaseOne ¶
func (backRepoParagraphProperties *BackRepoParagraphPropertiesStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "ParagraphProperties" sheet all ParagraphPropertiesDB instances
type BackRepoParagraphStruct ¶
type BackRepoParagraphStruct struct {
// stores ParagraphDB according to their gorm ID
Map_ParagraphDBID_ParagraphDB map[uint]*ParagraphDB
// stores ParagraphDB ID according to Paragraph address
Map_ParagraphPtr_ParagraphDBID map[*models.Paragraph]uint
// stores Paragraph according to their gorm ID
Map_ParagraphDBID_ParagraphPtr map[uint]*models.Paragraph
// contains filtered or unexported fields
}
func (*BackRepoParagraphStruct) Backup ¶
func (backRepoParagraph *BackRepoParagraphStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ParagraphDB instances in the backrepo
func (*BackRepoParagraphStruct) BackupXL ¶
func (backRepoParagraph *BackRepoParagraphStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ParagraphDB instances in the backrepo
func (*BackRepoParagraphStruct) CheckoutPhaseOne ¶
func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseOne() (Error error)
BackRepoParagraph.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 (*BackRepoParagraphStruct) CheckoutPhaseOneInstance ¶
func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseOneInstance(paragraphDB *ParagraphDB) (Error error)
CheckoutPhaseOneInstance takes a paragraphDB that has been found in the DB, updates the backRepo and stages the models version of the paragraphDB
func (*BackRepoParagraphStruct) CheckoutPhaseTwo ¶
func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoParagraph.CheckoutPhaseTwo Checkouts all staged instances of Paragraph to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStruct) CheckoutPhaseTwoInstance ¶
func (backRepoParagraph *BackRepoParagraphStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, paragraphDB *ParagraphDB) (Error error)
BackRepoParagraph.CheckoutPhaseTwoInstance Checkouts staged instances of Paragraph to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStruct) CommitDeleteInstance ¶
func (backRepoParagraph *BackRepoParagraphStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoParagraph.CommitDeleteInstance commits deletion of Paragraph to the BackRepo
func (*BackRepoParagraphStruct) CommitPhaseOne ¶
func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoParagraph.CommitPhaseOne commits all staged instances of Paragraph 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 (*BackRepoParagraphStruct) CommitPhaseOneInstance ¶
func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseOneInstance(paragraph *models.Paragraph) (Error error)
BackRepoParagraph.CommitPhaseOneInstance commits paragraph staged instances of Paragraph 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 (*BackRepoParagraphStruct) CommitPhaseTwo ¶
func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoParagraph.CommitPhaseTwo commits all staged instances of Paragraph to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStruct) CommitPhaseTwoInstance ¶
func (backRepoParagraph *BackRepoParagraphStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, paragraph *models.Paragraph) (Error error)
BackRepoParagraph.CommitPhaseTwoInstance commits {{structname }} of models.Paragraph to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStruct) GetDB ¶
func (backRepoParagraph *BackRepoParagraphStruct) GetDB() db.DBInterface
func (*BackRepoParagraphStruct) GetParagraphDBFromParagraphPtr ¶
func (backRepoParagraph *BackRepoParagraphStruct) GetParagraphDBFromParagraphPtr(paragraph *models.Paragraph) (paragraphDB *ParagraphDB)
GetParagraphDBFromParagraphPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoParagraphStruct) GetStage ¶
func (backRepoParagraph *BackRepoParagraphStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoParagraphStruct) ResetReversePointers ¶
func (backRepoParagraph *BackRepoParagraphStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoParagraph.ResetReversePointers commits all staged instances of Paragraph to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStruct) ResetReversePointersInstance ¶
func (backRepoParagraph *BackRepoParagraphStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, paragraph *models.Paragraph) (Error error)
func (*BackRepoParagraphStruct) RestorePhaseOne ¶
func (backRepoParagraph *BackRepoParagraphStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ParagraphDB.json" in dirPath that stores an array of ParagraphDB and stores it in the database the map BackRepoParagraphid_atBckpTime_newID is updated accordingly
func (*BackRepoParagraphStruct) RestorePhaseTwo ¶
func (backRepoParagraph *BackRepoParagraphStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Paragraph>id_atBckpTime_newID to compute new index
func (*BackRepoParagraphStruct) RestoreXLPhaseOne ¶
func (backRepoParagraph *BackRepoParagraphStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Paragraph" sheet all ParagraphDB instances
type BackRepoParagraphStyleStruct ¶
type BackRepoParagraphStyleStruct struct {
// stores ParagraphStyleDB according to their gorm ID
Map_ParagraphStyleDBID_ParagraphStyleDB map[uint]*ParagraphStyleDB
// stores ParagraphStyleDB ID according to ParagraphStyle address
Map_ParagraphStylePtr_ParagraphStyleDBID map[*models.ParagraphStyle]uint
// stores ParagraphStyle according to their gorm ID
Map_ParagraphStyleDBID_ParagraphStylePtr map[uint]*models.ParagraphStyle
// contains filtered or unexported fields
}
func (*BackRepoParagraphStyleStruct) Backup ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) Backup(dirPath string)
Backup generates a json file from a slice of all ParagraphStyleDB instances in the backrepo
func (*BackRepoParagraphStyleStruct) BackupXL ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all ParagraphStyleDB instances in the backrepo
func (*BackRepoParagraphStyleStruct) CheckoutPhaseOne ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseOne() (Error error)
BackRepoParagraphStyle.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 (*BackRepoParagraphStyleStruct) CheckoutPhaseOneInstance ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseOneInstance(paragraphstyleDB *ParagraphStyleDB) (Error error)
CheckoutPhaseOneInstance takes a paragraphstyleDB that has been found in the DB, updates the backRepo and stages the models version of the paragraphstyleDB
func (*BackRepoParagraphStyleStruct) CheckoutPhaseTwo ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoParagraphStyle.CheckoutPhaseTwo Checkouts all staged instances of ParagraphStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStyleStruct) CheckoutPhaseTwoInstance ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, paragraphstyleDB *ParagraphStyleDB) (Error error)
BackRepoParagraphStyle.CheckoutPhaseTwoInstance Checkouts staged instances of ParagraphStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStyleStruct) CommitDeleteInstance ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoParagraphStyle.CommitDeleteInstance commits deletion of ParagraphStyle to the BackRepo
func (*BackRepoParagraphStyleStruct) CommitPhaseOne ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoParagraphStyle.CommitPhaseOne commits all staged instances of ParagraphStyle 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 (*BackRepoParagraphStyleStruct) CommitPhaseOneInstance ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseOneInstance(paragraphstyle *models.ParagraphStyle) (Error error)
BackRepoParagraphStyle.CommitPhaseOneInstance commits paragraphstyle staged instances of ParagraphStyle 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 (*BackRepoParagraphStyleStruct) CommitPhaseTwo ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoParagraphStyle.CommitPhaseTwo commits all staged instances of ParagraphStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStyleStruct) CommitPhaseTwoInstance ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, paragraphstyle *models.ParagraphStyle) (Error error)
BackRepoParagraphStyle.CommitPhaseTwoInstance commits {{structname }} of models.ParagraphStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStyleStruct) GetDB ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) GetDB() db.DBInterface
func (*BackRepoParagraphStyleStruct) GetParagraphStyleDBFromParagraphStylePtr ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) GetParagraphStyleDBFromParagraphStylePtr(paragraphstyle *models.ParagraphStyle) (paragraphstyleDB *ParagraphStyleDB)
GetParagraphStyleDBFromParagraphStylePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoParagraphStyleStruct) GetStage ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoParagraphStyleStruct) ResetReversePointers ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoParagraphStyle.ResetReversePointers commits all staged instances of ParagraphStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoParagraphStyleStruct) ResetReversePointersInstance ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, paragraphstyle *models.ParagraphStyle) (Error error)
func (*BackRepoParagraphStyleStruct) RestorePhaseOne ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "ParagraphStyleDB.json" in dirPath that stores an array of ParagraphStyleDB and stores it in the database the map BackRepoParagraphStyleid_atBckpTime_newID is updated accordingly
func (*BackRepoParagraphStyleStruct) RestorePhaseTwo ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<ParagraphStyle>id_atBckpTime_newID to compute new index
func (*BackRepoParagraphStyleStruct) RestoreXLPhaseOne ¶
func (backRepoParagraphStyle *BackRepoParagraphStyleStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "ParagraphStyle" sheet all ParagraphStyleDB instances
type BackRepoRunePropertiesStruct ¶
type BackRepoRunePropertiesStruct struct {
// stores RunePropertiesDB according to their gorm ID
Map_RunePropertiesDBID_RunePropertiesDB map[uint]*RunePropertiesDB
// stores RunePropertiesDB ID according to RuneProperties address
Map_RunePropertiesPtr_RunePropertiesDBID map[*models.RuneProperties]uint
// stores RuneProperties according to their gorm ID
Map_RunePropertiesDBID_RunePropertiesPtr map[uint]*models.RuneProperties
// contains filtered or unexported fields
}
func (*BackRepoRunePropertiesStruct) Backup ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) Backup(dirPath string)
Backup generates a json file from a slice of all RunePropertiesDB instances in the backrepo
func (*BackRepoRunePropertiesStruct) BackupXL ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all RunePropertiesDB instances in the backrepo
func (*BackRepoRunePropertiesStruct) CheckoutPhaseOne ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseOne() (Error error)
BackRepoRuneProperties.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 (*BackRepoRunePropertiesStruct) CheckoutPhaseOneInstance ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseOneInstance(runepropertiesDB *RunePropertiesDB) (Error error)
CheckoutPhaseOneInstance takes a runepropertiesDB that has been found in the DB, updates the backRepo and stages the models version of the runepropertiesDB
func (*BackRepoRunePropertiesStruct) CheckoutPhaseTwo ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRuneProperties.CheckoutPhaseTwo Checkouts all staged instances of RuneProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRunePropertiesStruct) CheckoutPhaseTwoInstance ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, runepropertiesDB *RunePropertiesDB) (Error error)
BackRepoRuneProperties.CheckoutPhaseTwoInstance Checkouts staged instances of RuneProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRunePropertiesStruct) CommitDeleteInstance ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoRuneProperties.CommitDeleteInstance commits deletion of RuneProperties to the BackRepo
func (*BackRepoRunePropertiesStruct) CommitPhaseOne ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoRuneProperties.CommitPhaseOne commits all staged instances of RuneProperties 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 (*BackRepoRunePropertiesStruct) CommitPhaseOneInstance ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseOneInstance(runeproperties *models.RuneProperties) (Error error)
BackRepoRuneProperties.CommitPhaseOneInstance commits runeproperties staged instances of RuneProperties 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 (*BackRepoRunePropertiesStruct) CommitPhaseTwo ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRuneProperties.CommitPhaseTwo commits all staged instances of RuneProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRunePropertiesStruct) CommitPhaseTwoInstance ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, runeproperties *models.RuneProperties) (Error error)
BackRepoRuneProperties.CommitPhaseTwoInstance commits {{structname }} of models.RuneProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRunePropertiesStruct) GetDB ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) GetDB() db.DBInterface
func (*BackRepoRunePropertiesStruct) GetRunePropertiesDBFromRunePropertiesPtr ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) GetRunePropertiesDBFromRunePropertiesPtr(runeproperties *models.RuneProperties) (runepropertiesDB *RunePropertiesDB)
GetRunePropertiesDBFromRunePropertiesPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoRunePropertiesStruct) GetStage ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoRunePropertiesStruct) ResetReversePointers ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoRuneProperties.ResetReversePointers commits all staged instances of RuneProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRunePropertiesStruct) ResetReversePointersInstance ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, runeproperties *models.RuneProperties) (Error error)
func (*BackRepoRunePropertiesStruct) RestorePhaseOne ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "RunePropertiesDB.json" in dirPath that stores an array of RunePropertiesDB and stores it in the database the map BackRepoRunePropertiesid_atBckpTime_newID is updated accordingly
func (*BackRepoRunePropertiesStruct) RestorePhaseTwo ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<RuneProperties>id_atBckpTime_newID to compute new index
func (*BackRepoRunePropertiesStruct) RestoreXLPhaseOne ¶
func (backRepoRuneProperties *BackRepoRunePropertiesStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "RuneProperties" sheet all RunePropertiesDB instances
type BackRepoRuneStruct ¶
type BackRepoRuneStruct struct {
// stores RuneDB according to their gorm ID
Map_RuneDBID_RuneDB map[uint]*RuneDB
// stores RuneDB ID according to Rune address
Map_RunePtr_RuneDBID map[*models.Rune]uint
// stores Rune according to their gorm ID
Map_RuneDBID_RunePtr map[uint]*models.Rune
// contains filtered or unexported fields
}
func (*BackRepoRuneStruct) Backup ¶
func (backRepoRune *BackRepoRuneStruct) Backup(dirPath string)
Backup generates a json file from a slice of all RuneDB instances in the backrepo
func (*BackRepoRuneStruct) BackupXL ¶
func (backRepoRune *BackRepoRuneStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all RuneDB instances in the backrepo
func (*BackRepoRuneStruct) CheckoutPhaseOne ¶
func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseOne() (Error error)
BackRepoRune.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 (*BackRepoRuneStruct) CheckoutPhaseOneInstance ¶
func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseOneInstance(runeDB *RuneDB) (Error error)
CheckoutPhaseOneInstance takes a runeDB that has been found in the DB, updates the backRepo and stages the models version of the runeDB
func (*BackRepoRuneStruct) CheckoutPhaseTwo ¶
func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRune.CheckoutPhaseTwo Checkouts all staged instances of Rune to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRuneStruct) CheckoutPhaseTwoInstance ¶
func (backRepoRune *BackRepoRuneStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, runeDB *RuneDB) (Error error)
BackRepoRune.CheckoutPhaseTwoInstance Checkouts staged instances of Rune to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRuneStruct) CommitDeleteInstance ¶
func (backRepoRune *BackRepoRuneStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoRune.CommitDeleteInstance commits deletion of Rune to the BackRepo
func (*BackRepoRuneStruct) CommitPhaseOne ¶
func (backRepoRune *BackRepoRuneStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoRune.CommitPhaseOne commits all staged instances of Rune 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 (*BackRepoRuneStruct) CommitPhaseOneInstance ¶
func (backRepoRune *BackRepoRuneStruct) CommitPhaseOneInstance(rune *models.Rune) (Error error)
BackRepoRune.CommitPhaseOneInstance commits rune staged instances of Rune 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 (*BackRepoRuneStruct) CommitPhaseTwo ¶
func (backRepoRune *BackRepoRuneStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRune.CommitPhaseTwo commits all staged instances of Rune to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRuneStruct) CommitPhaseTwoInstance ¶
func (backRepoRune *BackRepoRuneStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, rune *models.Rune) (Error error)
BackRepoRune.CommitPhaseTwoInstance commits {{structname }} of models.Rune to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRuneStruct) GetDB ¶
func (backRepoRune *BackRepoRuneStruct) GetDB() db.DBInterface
func (*BackRepoRuneStruct) GetRuneDBFromRunePtr ¶
func (backRepoRune *BackRepoRuneStruct) GetRuneDBFromRunePtr(rune *models.Rune) (runeDB *RuneDB)
GetRuneDBFromRunePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoRuneStruct) GetStage ¶
func (backRepoRune *BackRepoRuneStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoRuneStruct) ResetReversePointers ¶
func (backRepoRune *BackRepoRuneStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoRune.ResetReversePointers commits all staged instances of Rune to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRuneStruct) ResetReversePointersInstance ¶
func (backRepoRune *BackRepoRuneStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, rune *models.Rune) (Error error)
func (*BackRepoRuneStruct) RestorePhaseOne ¶
func (backRepoRune *BackRepoRuneStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "RuneDB.json" in dirPath that stores an array of RuneDB and stores it in the database the map BackRepoRuneid_atBckpTime_newID is updated accordingly
func (*BackRepoRuneStruct) RestorePhaseTwo ¶
func (backRepoRune *BackRepoRuneStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Rune>id_atBckpTime_newID to compute new index
func (*BackRepoRuneStruct) RestoreXLPhaseOne ¶
func (backRepoRune *BackRepoRuneStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Rune" sheet all RuneDB instances
type BackRepoStruct ¶
type BackRepoStruct struct {
// insertion point for per struct back repo declarations
BackRepoBody BackRepoBodyStruct
BackRepoDocument BackRepoDocumentStruct
BackRepoDocx BackRepoDocxStruct
BackRepoFile BackRepoFileStruct
BackRepoNode BackRepoNodeStruct
BackRepoParagraph BackRepoParagraphStruct
BackRepoParagraphProperties BackRepoParagraphPropertiesStruct
BackRepoParagraphStyle BackRepoParagraphStyleStruct
BackRepoRune BackRepoRuneStruct
BackRepoRuneProperties BackRepoRunePropertiesStruct
BackRepoTable BackRepoTableStruct
BackRepoTableColumn BackRepoTableColumnStruct
BackRepoTableProperties BackRepoTablePropertiesStruct
BackRepoTableRow BackRepoTableRowStruct
BackRepoTableStyle BackRepoTableStyleStruct
BackRepoText BackRepoTextStruct
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) CheckoutBody ¶
func (backRepo *BackRepoStruct) CheckoutBody(body *models.Body)
CommitBody allows checkout of a single body (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutDocument ¶
func (backRepo *BackRepoStruct) CheckoutDocument(document *models.Document)
CommitDocument allows checkout of a single document (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutDocx ¶
func (backRepo *BackRepoStruct) CheckoutDocx(docx *models.Docx)
CommitDocx allows checkout of a single docx (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutFile ¶
func (backRepo *BackRepoStruct) CheckoutFile(file *models.File)
CommitFile allows checkout of a single file (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutNode ¶
func (backRepo *BackRepoStruct) CheckoutNode(node *models.Node)
CommitNode allows checkout of a single node (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutParagraph ¶
func (backRepo *BackRepoStruct) CheckoutParagraph(paragraph *models.Paragraph)
CommitParagraph allows checkout of a single paragraph (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutParagraphProperties ¶
func (backRepo *BackRepoStruct) CheckoutParagraphProperties(paragraphproperties *models.ParagraphProperties)
CommitParagraphProperties allows checkout of a single paragraphproperties (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutParagraphStyle ¶
func (backRepo *BackRepoStruct) CheckoutParagraphStyle(paragraphstyle *models.ParagraphStyle)
CommitParagraphStyle allows checkout of a single paragraphstyle (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutRune ¶
func (backRepo *BackRepoStruct) CheckoutRune(rune *models.Rune)
CommitRune allows checkout of a single rune (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutRuneProperties ¶
func (backRepo *BackRepoStruct) CheckoutRuneProperties(runeproperties *models.RuneProperties)
CommitRuneProperties allows checkout of a single runeproperties (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) CheckoutTableColumn ¶
func (backRepo *BackRepoStruct) CheckoutTableColumn(tablecolumn *models.TableColumn)
CommitTableColumn allows checkout of a single tablecolumn (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTableProperties ¶
func (backRepo *BackRepoStruct) CheckoutTableProperties(tableproperties *models.TableProperties)
CommitTableProperties allows checkout of a single tableproperties (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTableRow ¶
func (backRepo *BackRepoStruct) CheckoutTableRow(tablerow *models.TableRow)
CommitTableRow allows checkout of a single tablerow (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTableStyle ¶
func (backRepo *BackRepoStruct) CheckoutTableStyle(tablestyle *models.TableStyle)
CommitTableStyle allows checkout of a single tablestyle (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutText ¶
func (backRepo *BackRepoStruct) CheckoutText(text *models.Text)
CommitText allows checkout of a single text (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) CommitBody ¶
func (backRepo *BackRepoStruct) CommitBody(body *models.Body)
CommitBody allows commit of a single body (if already staged)
func (*BackRepoStruct) CommitDocument ¶
func (backRepo *BackRepoStruct) CommitDocument(document *models.Document)
CommitDocument allows commit of a single document (if already staged)
func (*BackRepoStruct) CommitDocx ¶
func (backRepo *BackRepoStruct) CommitDocx(docx *models.Docx)
CommitDocx allows commit of a single docx (if already staged)
func (*BackRepoStruct) CommitFile ¶
func (backRepo *BackRepoStruct) CommitFile(file *models.File)
CommitFile allows commit of a single file (if already staged)
func (*BackRepoStruct) CommitNode ¶
func (backRepo *BackRepoStruct) CommitNode(node *models.Node)
CommitNode allows commit of a single node (if already staged)
func (*BackRepoStruct) CommitParagraph ¶
func (backRepo *BackRepoStruct) CommitParagraph(paragraph *models.Paragraph)
CommitParagraph allows commit of a single paragraph (if already staged)
func (*BackRepoStruct) CommitParagraphProperties ¶
func (backRepo *BackRepoStruct) CommitParagraphProperties(paragraphproperties *models.ParagraphProperties)
CommitParagraphProperties allows commit of a single paragraphproperties (if already staged)
func (*BackRepoStruct) CommitParagraphStyle ¶
func (backRepo *BackRepoStruct) CommitParagraphStyle(paragraphstyle *models.ParagraphStyle)
CommitParagraphStyle allows commit of a single paragraphstyle (if already staged)
func (*BackRepoStruct) CommitRune ¶
func (backRepo *BackRepoStruct) CommitRune(rune *models.Rune)
CommitRune allows commit of a single rune (if already staged)
func (*BackRepoStruct) CommitRuneProperties ¶
func (backRepo *BackRepoStruct) CommitRuneProperties(runeproperties *models.RuneProperties)
CommitRuneProperties allows commit of a single runeproperties (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) CommitTableColumn ¶
func (backRepo *BackRepoStruct) CommitTableColumn(tablecolumn *models.TableColumn)
CommitTableColumn allows commit of a single tablecolumn (if already staged)
func (*BackRepoStruct) CommitTableProperties ¶
func (backRepo *BackRepoStruct) CommitTableProperties(tableproperties *models.TableProperties)
CommitTableProperties allows commit of a single tableproperties (if already staged)
func (*BackRepoStruct) CommitTableRow ¶
func (backRepo *BackRepoStruct) CommitTableRow(tablerow *models.TableRow)
CommitTableRow allows commit of a single tablerow (if already staged)
func (*BackRepoStruct) CommitTableStyle ¶
func (backRepo *BackRepoStruct) CommitTableStyle(tablestyle *models.TableStyle)
CommitTableStyle allows commit of a single tablestyle (if already staged)
func (*BackRepoStruct) CommitText ¶
func (backRepo *BackRepoStruct) CommitText(text *models.Text)
CommitText allows commit of a single text (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 BackRepoTableColumnStruct ¶
type BackRepoTableColumnStruct struct {
// stores TableColumnDB according to their gorm ID
Map_TableColumnDBID_TableColumnDB map[uint]*TableColumnDB
// stores TableColumnDB ID according to TableColumn address
Map_TableColumnPtr_TableColumnDBID map[*models.TableColumn]uint
// stores TableColumn according to their gorm ID
Map_TableColumnDBID_TableColumnPtr map[uint]*models.TableColumn
// contains filtered or unexported fields
}
func (*BackRepoTableColumnStruct) Backup ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TableColumnDB instances in the backrepo
func (*BackRepoTableColumnStruct) BackupXL ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TableColumnDB instances in the backrepo
func (*BackRepoTableColumnStruct) CheckoutPhaseOne ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseOne() (Error error)
BackRepoTableColumn.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 (*BackRepoTableColumnStruct) CheckoutPhaseOneInstance ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseOneInstance(tablecolumnDB *TableColumnDB) (Error error)
CheckoutPhaseOneInstance takes a tablecolumnDB that has been found in the DB, updates the backRepo and stages the models version of the tablecolumnDB
func (*BackRepoTableColumnStruct) CheckoutPhaseTwo ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableColumn.CheckoutPhaseTwo Checkouts all staged instances of TableColumn to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableColumnStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablecolumnDB *TableColumnDB) (Error error)
BackRepoTableColumn.CheckoutPhaseTwoInstance Checkouts staged instances of TableColumn to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableColumnStruct) CommitDeleteInstance ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTableColumn.CommitDeleteInstance commits deletion of TableColumn to the BackRepo
func (*BackRepoTableColumnStruct) CommitPhaseOne ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoTableColumn.CommitPhaseOne commits all staged instances of TableColumn 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 (*BackRepoTableColumnStruct) CommitPhaseOneInstance ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseOneInstance(tablecolumn *models.TableColumn) (Error error)
BackRepoTableColumn.CommitPhaseOneInstance commits tablecolumn staged instances of TableColumn 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 (*BackRepoTableColumnStruct) CommitPhaseTwo ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableColumn.CommitPhaseTwo commits all staged instances of TableColumn to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableColumnStruct) CommitPhaseTwoInstance ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tablecolumn *models.TableColumn) (Error error)
BackRepoTableColumn.CommitPhaseTwoInstance commits {{structname }} of models.TableColumn to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableColumnStruct) GetDB ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) GetDB() db.DBInterface
func (*BackRepoTableColumnStruct) GetStage ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoTableColumnStruct) GetTableColumnDBFromTableColumnPtr ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) GetTableColumnDBFromTableColumnPtr(tablecolumn *models.TableColumn) (tablecolumnDB *TableColumnDB)
GetTableColumnDBFromTableColumnPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTableColumnStruct) ResetReversePointers ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTableColumn.ResetReversePointers commits all staged instances of TableColumn to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableColumnStruct) ResetReversePointersInstance ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tablecolumn *models.TableColumn) (Error error)
func (*BackRepoTableColumnStruct) RestorePhaseOne ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TableColumnDB.json" in dirPath that stores an array of TableColumnDB and stores it in the database the map BackRepoTableColumnid_atBckpTime_newID is updated accordingly
func (*BackRepoTableColumnStruct) RestorePhaseTwo ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<TableColumn>id_atBckpTime_newID to compute new index
func (*BackRepoTableColumnStruct) RestoreXLPhaseOne ¶
func (backRepoTableColumn *BackRepoTableColumnStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "TableColumn" sheet all TableColumnDB instances
type BackRepoTablePropertiesStruct ¶
type BackRepoTablePropertiesStruct struct {
// stores TablePropertiesDB according to their gorm ID
Map_TablePropertiesDBID_TablePropertiesDB map[uint]*TablePropertiesDB
// stores TablePropertiesDB ID according to TableProperties address
Map_TablePropertiesPtr_TablePropertiesDBID map[*models.TableProperties]uint
// stores TableProperties according to their gorm ID
Map_TablePropertiesDBID_TablePropertiesPtr map[uint]*models.TableProperties
// contains filtered or unexported fields
}
func (*BackRepoTablePropertiesStruct) Backup ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TablePropertiesDB instances in the backrepo
func (*BackRepoTablePropertiesStruct) BackupXL ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TablePropertiesDB instances in the backrepo
func (*BackRepoTablePropertiesStruct) CheckoutPhaseOne ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseOne() (Error error)
BackRepoTableProperties.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 (*BackRepoTablePropertiesStruct) CheckoutPhaseOneInstance ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseOneInstance(tablepropertiesDB *TablePropertiesDB) (Error error)
CheckoutPhaseOneInstance takes a tablepropertiesDB that has been found in the DB, updates the backRepo and stages the models version of the tablepropertiesDB
func (*BackRepoTablePropertiesStruct) CheckoutPhaseTwo ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableProperties.CheckoutPhaseTwo Checkouts all staged instances of TableProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTablePropertiesStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablepropertiesDB *TablePropertiesDB) (Error error)
BackRepoTableProperties.CheckoutPhaseTwoInstance Checkouts staged instances of TableProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTablePropertiesStruct) CommitDeleteInstance ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTableProperties.CommitDeleteInstance commits deletion of TableProperties to the BackRepo
func (*BackRepoTablePropertiesStruct) CommitPhaseOne ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoTableProperties.CommitPhaseOne commits all staged instances of TableProperties 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 (*BackRepoTablePropertiesStruct) CommitPhaseOneInstance ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseOneInstance(tableproperties *models.TableProperties) (Error error)
BackRepoTableProperties.CommitPhaseOneInstance commits tableproperties staged instances of TableProperties 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 (*BackRepoTablePropertiesStruct) CommitPhaseTwo ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableProperties.CommitPhaseTwo commits all staged instances of TableProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTablePropertiesStruct) CommitPhaseTwoInstance ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tableproperties *models.TableProperties) (Error error)
BackRepoTableProperties.CommitPhaseTwoInstance commits {{structname }} of models.TableProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTablePropertiesStruct) GetDB ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) GetDB() db.DBInterface
func (*BackRepoTablePropertiesStruct) GetStage ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoTablePropertiesStruct) GetTablePropertiesDBFromTablePropertiesPtr ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) GetTablePropertiesDBFromTablePropertiesPtr(tableproperties *models.TableProperties) (tablepropertiesDB *TablePropertiesDB)
GetTablePropertiesDBFromTablePropertiesPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTablePropertiesStruct) ResetReversePointers ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTableProperties.ResetReversePointers commits all staged instances of TableProperties to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTablePropertiesStruct) ResetReversePointersInstance ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tableproperties *models.TableProperties) (Error error)
func (*BackRepoTablePropertiesStruct) RestorePhaseOne ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TablePropertiesDB.json" in dirPath that stores an array of TablePropertiesDB and stores it in the database the map BackRepoTablePropertiesid_atBckpTime_newID is updated accordingly
func (*BackRepoTablePropertiesStruct) RestorePhaseTwo ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<TableProperties>id_atBckpTime_newID to compute new index
func (*BackRepoTablePropertiesStruct) RestoreXLPhaseOne ¶
func (backRepoTableProperties *BackRepoTablePropertiesStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "TableProperties" sheet all TablePropertiesDB instances
type BackRepoTableRowStruct ¶
type BackRepoTableRowStruct struct {
// stores TableRowDB according to their gorm ID
Map_TableRowDBID_TableRowDB map[uint]*TableRowDB
// stores TableRowDB ID according to TableRow address
Map_TableRowPtr_TableRowDBID map[*models.TableRow]uint
// stores TableRow according to their gorm ID
Map_TableRowDBID_TableRowPtr map[uint]*models.TableRow
// contains filtered or unexported fields
}
func (*BackRepoTableRowStruct) Backup ¶
func (backRepoTableRow *BackRepoTableRowStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TableRowDB instances in the backrepo
func (*BackRepoTableRowStruct) BackupXL ¶
func (backRepoTableRow *BackRepoTableRowStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TableRowDB instances in the backrepo
func (*BackRepoTableRowStruct) CheckoutPhaseOne ¶
func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseOne() (Error error)
BackRepoTableRow.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 (*BackRepoTableRowStruct) CheckoutPhaseOneInstance ¶
func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseOneInstance(tablerowDB *TableRowDB) (Error error)
CheckoutPhaseOneInstance takes a tablerowDB that has been found in the DB, updates the backRepo and stages the models version of the tablerowDB
func (*BackRepoTableRowStruct) CheckoutPhaseTwo ¶
func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableRow.CheckoutPhaseTwo Checkouts all staged instances of TableRow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableRowStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTableRow *BackRepoTableRowStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablerowDB *TableRowDB) (Error error)
BackRepoTableRow.CheckoutPhaseTwoInstance Checkouts staged instances of TableRow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableRowStruct) CommitDeleteInstance ¶
func (backRepoTableRow *BackRepoTableRowStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTableRow.CommitDeleteInstance commits deletion of TableRow to the BackRepo
func (*BackRepoTableRowStruct) CommitPhaseOne ¶
func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoTableRow.CommitPhaseOne commits all staged instances of TableRow 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 (*BackRepoTableRowStruct) CommitPhaseOneInstance ¶
func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseOneInstance(tablerow *models.TableRow) (Error error)
BackRepoTableRow.CommitPhaseOneInstance commits tablerow staged instances of TableRow 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 (*BackRepoTableRowStruct) CommitPhaseTwo ¶
func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableRow.CommitPhaseTwo commits all staged instances of TableRow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableRowStruct) CommitPhaseTwoInstance ¶
func (backRepoTableRow *BackRepoTableRowStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tablerow *models.TableRow) (Error error)
BackRepoTableRow.CommitPhaseTwoInstance commits {{structname }} of models.TableRow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableRowStruct) GetDB ¶
func (backRepoTableRow *BackRepoTableRowStruct) GetDB() db.DBInterface
func (*BackRepoTableRowStruct) GetStage ¶
func (backRepoTableRow *BackRepoTableRowStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoTableRowStruct) GetTableRowDBFromTableRowPtr ¶
func (backRepoTableRow *BackRepoTableRowStruct) GetTableRowDBFromTableRowPtr(tablerow *models.TableRow) (tablerowDB *TableRowDB)
GetTableRowDBFromTableRowPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTableRowStruct) ResetReversePointers ¶
func (backRepoTableRow *BackRepoTableRowStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTableRow.ResetReversePointers commits all staged instances of TableRow to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableRowStruct) ResetReversePointersInstance ¶
func (backRepoTableRow *BackRepoTableRowStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tablerow *models.TableRow) (Error error)
func (*BackRepoTableRowStruct) RestorePhaseOne ¶
func (backRepoTableRow *BackRepoTableRowStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TableRowDB.json" in dirPath that stores an array of TableRowDB and stores it in the database the map BackRepoTableRowid_atBckpTime_newID is updated accordingly
func (*BackRepoTableRowStruct) RestorePhaseTwo ¶
func (backRepoTableRow *BackRepoTableRowStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<TableRow>id_atBckpTime_newID to compute new index
func (*BackRepoTableRowStruct) RestoreXLPhaseOne ¶
func (backRepoTableRow *BackRepoTableRowStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "TableRow" sheet all TableRowDB 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 BackRepoTableStyleStruct ¶
type BackRepoTableStyleStruct struct {
// stores TableStyleDB according to their gorm ID
Map_TableStyleDBID_TableStyleDB map[uint]*TableStyleDB
// stores TableStyleDB ID according to TableStyle address
Map_TableStylePtr_TableStyleDBID map[*models.TableStyle]uint
// stores TableStyle according to their gorm ID
Map_TableStyleDBID_TableStylePtr map[uint]*models.TableStyle
// contains filtered or unexported fields
}
func (*BackRepoTableStyleStruct) Backup ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TableStyleDB instances in the backrepo
func (*BackRepoTableStyleStruct) BackupXL ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TableStyleDB instances in the backrepo
func (*BackRepoTableStyleStruct) CheckoutPhaseOne ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseOne() (Error error)
BackRepoTableStyle.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 (*BackRepoTableStyleStruct) CheckoutPhaseOneInstance ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseOneInstance(tablestyleDB *TableStyleDB) (Error error)
CheckoutPhaseOneInstance takes a tablestyleDB that has been found in the DB, updates the backRepo and stages the models version of the tablestyleDB
func (*BackRepoTableStyleStruct) CheckoutPhaseTwo ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableStyle.CheckoutPhaseTwo Checkouts all staged instances of TableStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStyleStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, tablestyleDB *TableStyleDB) (Error error)
BackRepoTableStyle.CheckoutPhaseTwoInstance Checkouts staged instances of TableStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStyleStruct) CommitDeleteInstance ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTableStyle.CommitDeleteInstance commits deletion of TableStyle to the BackRepo
func (*BackRepoTableStyleStruct) CommitPhaseOne ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoTableStyle.CommitPhaseOne commits all staged instances of TableStyle 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 (*BackRepoTableStyleStruct) CommitPhaseOneInstance ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseOneInstance(tablestyle *models.TableStyle) (Error error)
BackRepoTableStyle.CommitPhaseOneInstance commits tablestyle staged instances of TableStyle 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 (*BackRepoTableStyleStruct) CommitPhaseTwo ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTableStyle.CommitPhaseTwo commits all staged instances of TableStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStyleStruct) CommitPhaseTwoInstance ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, tablestyle *models.TableStyle) (Error error)
BackRepoTableStyle.CommitPhaseTwoInstance commits {{structname }} of models.TableStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStyleStruct) GetDB ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) GetDB() db.DBInterface
func (*BackRepoTableStyleStruct) GetStage ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoTableStyleStruct) GetTableStyleDBFromTableStylePtr ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) GetTableStyleDBFromTableStylePtr(tablestyle *models.TableStyle) (tablestyleDB *TableStyleDB)
GetTableStyleDBFromTableStylePtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTableStyleStruct) ResetReversePointers ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoTableStyle.ResetReversePointers commits all staged instances of TableStyle to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTableStyleStruct) ResetReversePointersInstance ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, tablestyle *models.TableStyle) (Error error)
func (*BackRepoTableStyleStruct) RestorePhaseOne ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TableStyleDB.json" in dirPath that stores an array of TableStyleDB and stores it in the database the map BackRepoTableStyleid_atBckpTime_newID is updated accordingly
func (*BackRepoTableStyleStruct) RestorePhaseTwo ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<TableStyle>id_atBckpTime_newID to compute new index
func (*BackRepoTableStyleStruct) RestoreXLPhaseOne ¶
func (backRepoTableStyle *BackRepoTableStyleStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "TableStyle" sheet all TableStyleDB instances
type BackRepoTextStruct ¶
type BackRepoTextStruct struct {
// stores TextDB according to their gorm ID
Map_TextDBID_TextDB map[uint]*TextDB
// stores TextDB ID according to Text address
Map_TextPtr_TextDBID map[*models.Text]uint
// stores Text according to their gorm ID
Map_TextDBID_TextPtr map[uint]*models.Text
// contains filtered or unexported fields
}
func (*BackRepoTextStruct) Backup ¶
func (backRepoText *BackRepoTextStruct) Backup(dirPath string)
Backup generates a json file from a slice of all TextDB instances in the backrepo
func (*BackRepoTextStruct) BackupXL ¶
func (backRepoText *BackRepoTextStruct) BackupXL(file *xlsx.File)
Backup generates a json file from a slice of all TextDB instances in the backrepo
func (*BackRepoTextStruct) CheckoutPhaseOne ¶
func (backRepoText *BackRepoTextStruct) CheckoutPhaseOne() (Error error)
BackRepoText.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 (*BackRepoTextStruct) CheckoutPhaseOneInstance ¶
func (backRepoText *BackRepoTextStruct) CheckoutPhaseOneInstance(textDB *TextDB) (Error error)
CheckoutPhaseOneInstance takes a textDB that has been found in the DB, updates the backRepo and stages the models version of the textDB
func (*BackRepoTextStruct) CheckoutPhaseTwo ¶
func (backRepoText *BackRepoTextStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoText.CheckoutPhaseTwo Checkouts all staged instances of Text to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTextStruct) CheckoutPhaseTwoInstance ¶
func (backRepoText *BackRepoTextStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, textDB *TextDB) (Error error)
BackRepoText.CheckoutPhaseTwoInstance Checkouts staged instances of Text to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTextStruct) CommitDeleteInstance ¶
func (backRepoText *BackRepoTextStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoText.CommitDeleteInstance commits deletion of Text to the BackRepo
func (*BackRepoTextStruct) CommitPhaseOne ¶
func (backRepoText *BackRepoTextStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoText.CommitPhaseOne commits all staged instances of Text 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 (*BackRepoTextStruct) CommitPhaseOneInstance ¶
func (backRepoText *BackRepoTextStruct) CommitPhaseOneInstance(text *models.Text) (Error error)
BackRepoText.CommitPhaseOneInstance commits text staged instances of Text 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 (*BackRepoTextStruct) CommitPhaseTwo ¶
func (backRepoText *BackRepoTextStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoText.CommitPhaseTwo commits all staged instances of Text to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTextStruct) CommitPhaseTwoInstance ¶
func (backRepoText *BackRepoTextStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, text *models.Text) (Error error)
BackRepoText.CommitPhaseTwoInstance commits {{structname }} of models.Text to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTextStruct) GetDB ¶
func (backRepoText *BackRepoTextStruct) GetDB() db.DBInterface
func (*BackRepoTextStruct) GetStage ¶
func (backRepoText *BackRepoTextStruct) GetStage() (stage *models.StageStruct)
func (*BackRepoTextStruct) GetTextDBFromTextPtr ¶
func (backRepoText *BackRepoTextStruct) GetTextDBFromTextPtr(text *models.Text) (textDB *TextDB)
GetTextDBFromTextPtr is a handy function to access the back repo instance from the stage instance
func (*BackRepoTextStruct) ResetReversePointers ¶
func (backRepoText *BackRepoTextStruct) ResetReversePointers(backRepo *BackRepoStruct) (Error error)
BackRepoText.ResetReversePointers commits all staged instances of Text to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTextStruct) ResetReversePointersInstance ¶
func (backRepoText *BackRepoTextStruct) ResetReversePointersInstance(backRepo *BackRepoStruct, idx uint, text *models.Text) (Error error)
func (*BackRepoTextStruct) RestorePhaseOne ¶
func (backRepoText *BackRepoTextStruct) RestorePhaseOne(dirPath string)
RestorePhaseOne read the file "TextDB.json" in dirPath that stores an array of TextDB and stores it in the database the map BackRepoTextid_atBckpTime_newID is updated accordingly
func (*BackRepoTextStruct) RestorePhaseTwo ¶
func (backRepoText *BackRepoTextStruct) RestorePhaseTwo()
RestorePhaseTwo uses all map BackRepo<Text>id_atBckpTime_newID to compute new index
func (*BackRepoTextStruct) RestoreXLPhaseOne ¶
func (backRepoText *BackRepoTextStruct) RestoreXLPhaseOne(file *xlsx.File)
RestoreXL from the "Text" sheet all TextDB instances
type BodyAPI ¶
type BodyAPI struct {
gorm.Model
models.Body_WOP
// encoding of pointers
// for API, it cannot be embedded
BodyPointersEncoding BodyPointersEncoding
}
BodyAPI 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 bodyAPI
type BodyDB ¶
type BodyDB struct {
gorm.Model
// Declation for basic field bodyDB.Name
Name_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
BodyPointersEncoding
}
BodyDB describes a body 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 bodyDB
func (*BodyDB) CopyBasicFieldsFromBody ¶
CopyBasicFieldsFromBody
func (*BodyDB) CopyBasicFieldsFromBodyWOP ¶
CopyBasicFieldsFromBodyWOP
func (*BodyDB) CopyBasicFieldsFromBody_WOP ¶
CopyBasicFieldsFromBody_WOP
func (*BodyDB) CopyBasicFieldsToBody ¶
CopyBasicFieldsToBody
func (*BodyDB) CopyBasicFieldsToBodyWOP ¶
CopyBasicFieldsToBodyWOP
func (*BodyDB) CopyBasicFieldsToBody_WOP ¶
CopyBasicFieldsToBody_WOP
func (*BodyDB) DecodePointers ¶
func (bodyDB *BodyDB) DecodePointers(backRepo *BackRepoStruct, body *models.Body)
type BodyDBResponse ¶
type BodyDBResponse struct {
BodyDB
}
BodyDBResponse provides response swagger:response bodyDBResponse
type BodyPointersEncoding ¶
type BodyPointersEncoding struct {
// field Paragraphs is a slice of pointers to another Struct (optional or 0..1)
Paragraphs IntSlice `gorm:"type:TEXT"`
// field Tables is a slice of pointers to another Struct (optional or 0..1)
Tables IntSlice `gorm:"type:TEXT"`
// field LastParagraph is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
LastParagraphID sql.NullInt64
}
BodyPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type BodyWOP ¶
BodyWOP is a Body without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type DBLite ¶
type DBLite struct {
// contains filtered or unexported fields
}
DBLite is an in-memory database implementation of DBInterface
func (*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 DocumentAPI ¶
type DocumentAPI struct {
gorm.Model
models.Document_WOP
// encoding of pointers
// for API, it cannot be embedded
DocumentPointersEncoding DocumentPointersEncoding
}
DocumentAPI 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 documentAPI
type DocumentDB ¶
type DocumentDB struct {
gorm.Model
// Declation for basic field documentDB.Name
Name_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
DocumentPointersEncoding
}
DocumentDB describes a document 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 documentDB
func (*DocumentDB) CopyBasicFieldsFromDocument ¶
func (documentDB *DocumentDB) CopyBasicFieldsFromDocument(document *models.Document)
CopyBasicFieldsFromDocument
func (*DocumentDB) CopyBasicFieldsFromDocumentWOP ¶
func (documentDB *DocumentDB) CopyBasicFieldsFromDocumentWOP(document *DocumentWOP)
CopyBasicFieldsFromDocumentWOP
func (*DocumentDB) CopyBasicFieldsFromDocument_WOP ¶
func (documentDB *DocumentDB) CopyBasicFieldsFromDocument_WOP(document *models.Document_WOP)
CopyBasicFieldsFromDocument_WOP
func (*DocumentDB) CopyBasicFieldsToDocument ¶
func (documentDB *DocumentDB) CopyBasicFieldsToDocument(document *models.Document)
CopyBasicFieldsToDocument
func (*DocumentDB) CopyBasicFieldsToDocumentWOP ¶
func (documentDB *DocumentDB) CopyBasicFieldsToDocumentWOP(document *DocumentWOP)
CopyBasicFieldsToDocumentWOP
func (*DocumentDB) CopyBasicFieldsToDocument_WOP ¶
func (documentDB *DocumentDB) CopyBasicFieldsToDocument_WOP(document *models.Document_WOP)
CopyBasicFieldsToDocument_WOP
func (*DocumentDB) DecodePointers ¶
func (documentDB *DocumentDB) DecodePointers(backRepo *BackRepoStruct, document *models.Document)
type DocumentDBResponse ¶
type DocumentDBResponse struct {
DocumentDB
}
DocumentDBResponse provides response swagger:response documentDBResponse
type DocumentDBs ¶
type DocumentDBs []DocumentDB
DocumentDBs arrays documentDBs swagger:response documentDBsResponse
type DocumentPointersEncoding ¶
type DocumentPointersEncoding struct {
// field File is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
FileID sql.NullInt64
// field Root is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
RootID sql.NullInt64
// field Body is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
BodyID sql.NullInt64
}
DocumentPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type DocumentWOP ¶
DocumentWOP is a Document without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type DocxAPI ¶
type DocxAPI struct {
gorm.Model
models.Docx_WOP
// encoding of pointers
// for API, it cannot be embedded
DocxPointersEncoding DocxPointersEncoding
}
DocxAPI 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 docxAPI
type DocxDB ¶
type DocxDB struct {
gorm.Model
// Declation for basic field docxDB.Name
Name_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
DocxPointersEncoding
}
DocxDB describes a docx 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 docxDB
func (*DocxDB) CopyBasicFieldsFromDocx ¶
CopyBasicFieldsFromDocx
func (*DocxDB) CopyBasicFieldsFromDocxWOP ¶
CopyBasicFieldsFromDocxWOP
func (*DocxDB) CopyBasicFieldsFromDocx_WOP ¶
CopyBasicFieldsFromDocx_WOP
func (*DocxDB) CopyBasicFieldsToDocx ¶
CopyBasicFieldsToDocx
func (*DocxDB) CopyBasicFieldsToDocxWOP ¶
CopyBasicFieldsToDocxWOP
func (*DocxDB) CopyBasicFieldsToDocx_WOP ¶
CopyBasicFieldsToDocx_WOP
func (*DocxDB) DecodePointers ¶
func (docxDB *DocxDB) DecodePointers(backRepo *BackRepoStruct, docx *models.Docx)
type DocxDBResponse ¶
type DocxDBResponse struct {
DocxDB
}
DocxDBResponse provides response swagger:response docxDBResponse
type DocxPointersEncoding ¶
type DocxPointersEncoding struct {
// field Files is a slice of pointers to another Struct (optional or 0..1)
Files IntSlice `gorm:"type:TEXT"`
// field Document is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
DocumentID sql.NullInt64
}
DocxPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type DocxWOP ¶
DocxWOP is a Docx without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type FileAPI ¶
type FileAPI struct {
gorm.Model
models.File_WOP
// encoding of pointers
// for API, it cannot be embedded
FilePointersEncoding FilePointersEncoding
}
FileAPI 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 fileAPI
type FileDB ¶
type FileDB struct {
gorm.Model
// Declation for basic field fileDB.Name
Name_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
FilePointersEncoding
}
FileDB describes a file 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 fileDB
func (*FileDB) CopyBasicFieldsFromFile ¶
CopyBasicFieldsFromFile
func (*FileDB) CopyBasicFieldsFromFileWOP ¶
CopyBasicFieldsFromFileWOP
func (*FileDB) CopyBasicFieldsFromFile_WOP ¶
CopyBasicFieldsFromFile_WOP
func (*FileDB) CopyBasicFieldsToFile ¶
CopyBasicFieldsToFile
func (*FileDB) CopyBasicFieldsToFileWOP ¶
CopyBasicFieldsToFileWOP
func (*FileDB) CopyBasicFieldsToFile_WOP ¶
CopyBasicFieldsToFile_WOP
func (*FileDB) DecodePointers ¶
func (fileDB *FileDB) DecodePointers(backRepo *BackRepoStruct, file *models.File)
type FileDBResponse ¶
type FileDBResponse struct {
FileDB
}
FileDBResponse provides response swagger:response fileDBResponse
type FilePointersEncoding ¶
type FilePointersEncoding struct {
}
FilePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type FileWOP ¶
FileWOP is a File 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 NodeAPI ¶
type NodeAPI struct {
gorm.Model
models.Node_WOP
// encoding of pointers
// for API, it cannot be embedded
NodePointersEncoding NodePointersEncoding
}
NodeAPI 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 nodeAPI
type NodeDB ¶
type NodeDB struct {
gorm.Model
// Declation for basic field nodeDB.Name
Name_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
NodePointersEncoding
}
NodeDB describes a node 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 nodeDB
func (*NodeDB) CopyBasicFieldsFromNode ¶
CopyBasicFieldsFromNode
func (*NodeDB) CopyBasicFieldsFromNodeWOP ¶
CopyBasicFieldsFromNodeWOP
func (*NodeDB) CopyBasicFieldsFromNode_WOP ¶
CopyBasicFieldsFromNode_WOP
func (*NodeDB) CopyBasicFieldsToNode ¶
CopyBasicFieldsToNode
func (*NodeDB) CopyBasicFieldsToNodeWOP ¶
CopyBasicFieldsToNodeWOP
func (*NodeDB) CopyBasicFieldsToNode_WOP ¶
CopyBasicFieldsToNode_WOP
func (*NodeDB) DecodePointers ¶
func (nodeDB *NodeDB) DecodePointers(backRepo *BackRepoStruct, node *models.Node)
type NodeDBResponse ¶
type NodeDBResponse struct {
NodeDB
}
NodeDBResponse provides response swagger:response nodeDBResponse
type NodePointersEncoding ¶
type NodePointersEncoding struct {
// field Nodes is a slice of pointers to another Struct (optional or 0..1)
Nodes IntSlice `gorm:"type:TEXT"`
}
NodePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type NodeWOP ¶
NodeWOP is a Node without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type ParagraphAPI ¶
type ParagraphAPI struct {
gorm.Model
models.Paragraph_WOP
// encoding of pointers
// for API, it cannot be embedded
ParagraphPointersEncoding ParagraphPointersEncoding
}
ParagraphAPI 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 paragraphAPI
type ParagraphDB ¶
type ParagraphDB struct {
gorm.Model
// Declation for basic field paragraphDB.Name
Name_Data sql.NullString
// Declation for basic field paragraphDB.Content
Content_Data sql.NullString
// Declation for basic field paragraphDB.Text
Text_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
ParagraphPointersEncoding
}
ParagraphDB describes a paragraph 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 paragraphDB
func (*ParagraphDB) CopyBasicFieldsFromParagraph ¶
func (paragraphDB *ParagraphDB) CopyBasicFieldsFromParagraph(paragraph *models.Paragraph)
CopyBasicFieldsFromParagraph
func (*ParagraphDB) CopyBasicFieldsFromParagraphWOP ¶
func (paragraphDB *ParagraphDB) CopyBasicFieldsFromParagraphWOP(paragraph *ParagraphWOP)
CopyBasicFieldsFromParagraphWOP
func (*ParagraphDB) CopyBasicFieldsFromParagraph_WOP ¶
func (paragraphDB *ParagraphDB) CopyBasicFieldsFromParagraph_WOP(paragraph *models.Paragraph_WOP)
CopyBasicFieldsFromParagraph_WOP
func (*ParagraphDB) CopyBasicFieldsToParagraph ¶
func (paragraphDB *ParagraphDB) CopyBasicFieldsToParagraph(paragraph *models.Paragraph)
CopyBasicFieldsToParagraph
func (*ParagraphDB) CopyBasicFieldsToParagraphWOP ¶
func (paragraphDB *ParagraphDB) CopyBasicFieldsToParagraphWOP(paragraph *ParagraphWOP)
CopyBasicFieldsToParagraphWOP
func (*ParagraphDB) CopyBasicFieldsToParagraph_WOP ¶
func (paragraphDB *ParagraphDB) CopyBasicFieldsToParagraph_WOP(paragraph *models.Paragraph_WOP)
CopyBasicFieldsToParagraph_WOP
func (*ParagraphDB) DecodePointers ¶
func (paragraphDB *ParagraphDB) DecodePointers(backRepo *BackRepoStruct, paragraph *models.Paragraph)
type ParagraphDBResponse ¶
type ParagraphDBResponse struct {
ParagraphDB
}
ParagraphDBResponse provides response swagger:response paragraphDBResponse
type ParagraphDBs ¶
type ParagraphDBs []ParagraphDB
ParagraphDBs arrays paragraphDBs swagger:response paragraphDBsResponse
type ParagraphPointersEncoding ¶
type ParagraphPointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
// field ParagraphProperties is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
ParagraphPropertiesID sql.NullInt64
// field Runes is a slice of pointers to another Struct (optional or 0..1)
Runes IntSlice `gorm:"type:TEXT"`
// field Next is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NextID sql.NullInt64
// field Previous is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
PreviousID sql.NullInt64
// field EnclosingBody is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
EnclosingBodyID sql.NullInt64
// field EnclosingTableColumn is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
EnclosingTableColumnID sql.NullInt64
}
ParagraphPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ParagraphPropertiesAPI ¶
type ParagraphPropertiesAPI struct {
gorm.Model
models.ParagraphProperties_WOP
// encoding of pointers
// for API, it cannot be embedded
ParagraphPropertiesPointersEncoding ParagraphPropertiesPointersEncoding
}
ParagraphPropertiesAPI 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 paragraphpropertiesAPI
type ParagraphPropertiesDB ¶
type ParagraphPropertiesDB struct {
gorm.Model
// Declation for basic field paragraphpropertiesDB.Name
Name_Data sql.NullString
// Declation for basic field paragraphpropertiesDB.Content
Content_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
ParagraphPropertiesPointersEncoding
}
ParagraphPropertiesDB describes a paragraphproperties 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 paragraphpropertiesDB
func (*ParagraphPropertiesDB) CopyBasicFieldsFromParagraphProperties ¶
func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsFromParagraphProperties(paragraphproperties *models.ParagraphProperties)
CopyBasicFieldsFromParagraphProperties
func (*ParagraphPropertiesDB) CopyBasicFieldsFromParagraphPropertiesWOP ¶
func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsFromParagraphPropertiesWOP(paragraphproperties *ParagraphPropertiesWOP)
CopyBasicFieldsFromParagraphPropertiesWOP
func (*ParagraphPropertiesDB) CopyBasicFieldsFromParagraphProperties_WOP ¶
func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsFromParagraphProperties_WOP(paragraphproperties *models.ParagraphProperties_WOP)
CopyBasicFieldsFromParagraphProperties_WOP
func (*ParagraphPropertiesDB) CopyBasicFieldsToParagraphProperties ¶
func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsToParagraphProperties(paragraphproperties *models.ParagraphProperties)
CopyBasicFieldsToParagraphProperties
func (*ParagraphPropertiesDB) CopyBasicFieldsToParagraphPropertiesWOP ¶
func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsToParagraphPropertiesWOP(paragraphproperties *ParagraphPropertiesWOP)
CopyBasicFieldsToParagraphPropertiesWOP
func (*ParagraphPropertiesDB) CopyBasicFieldsToParagraphProperties_WOP ¶
func (paragraphpropertiesDB *ParagraphPropertiesDB) CopyBasicFieldsToParagraphProperties_WOP(paragraphproperties *models.ParagraphProperties_WOP)
CopyBasicFieldsToParagraphProperties_WOP
func (*ParagraphPropertiesDB) DecodePointers ¶
func (paragraphpropertiesDB *ParagraphPropertiesDB) DecodePointers(backRepo *BackRepoStruct, paragraphproperties *models.ParagraphProperties)
type ParagraphPropertiesDBResponse ¶
type ParagraphPropertiesDBResponse struct {
ParagraphPropertiesDB
}
ParagraphPropertiesDBResponse provides response swagger:response paragraphpropertiesDBResponse
type ParagraphPropertiesDBs ¶
type ParagraphPropertiesDBs []ParagraphPropertiesDB
ParagraphPropertiesDBs arrays paragraphpropertiesDBs swagger:response paragraphpropertiesDBsResponse
type ParagraphPropertiesPointersEncoding ¶
type ParagraphPropertiesPointersEncoding struct {
// field ParagraphStyle is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
ParagraphStyleID sql.NullInt64
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
}
ParagraphPropertiesPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ParagraphPropertiesWOP ¶
type ParagraphPropertiesWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Content string `xlsx:"2"`
}
ParagraphPropertiesWOP is a ParagraphProperties without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type ParagraphStyleAPI ¶
type ParagraphStyleAPI struct {
gorm.Model
models.ParagraphStyle_WOP
// encoding of pointers
// for API, it cannot be embedded
ParagraphStylePointersEncoding ParagraphStylePointersEncoding
}
ParagraphStyleAPI 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 paragraphstyleAPI
type ParagraphStyleDB ¶
type ParagraphStyleDB struct {
gorm.Model
// Declation for basic field paragraphstyleDB.Name
Name_Data sql.NullString
// Declation for basic field paragraphstyleDB.Content
Content_Data sql.NullString
// Declation for basic field paragraphstyleDB.ValAttr
ValAttr_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
ParagraphStylePointersEncoding
}
ParagraphStyleDB describes a paragraphstyle 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 paragraphstyleDB
func (*ParagraphStyleDB) CopyBasicFieldsFromParagraphStyle ¶
func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsFromParagraphStyle(paragraphstyle *models.ParagraphStyle)
CopyBasicFieldsFromParagraphStyle
func (*ParagraphStyleDB) CopyBasicFieldsFromParagraphStyleWOP ¶
func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsFromParagraphStyleWOP(paragraphstyle *ParagraphStyleWOP)
CopyBasicFieldsFromParagraphStyleWOP
func (*ParagraphStyleDB) CopyBasicFieldsFromParagraphStyle_WOP ¶
func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsFromParagraphStyle_WOP(paragraphstyle *models.ParagraphStyle_WOP)
CopyBasicFieldsFromParagraphStyle_WOP
func (*ParagraphStyleDB) CopyBasicFieldsToParagraphStyle ¶
func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsToParagraphStyle(paragraphstyle *models.ParagraphStyle)
CopyBasicFieldsToParagraphStyle
func (*ParagraphStyleDB) CopyBasicFieldsToParagraphStyleWOP ¶
func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsToParagraphStyleWOP(paragraphstyle *ParagraphStyleWOP)
CopyBasicFieldsToParagraphStyleWOP
func (*ParagraphStyleDB) CopyBasicFieldsToParagraphStyle_WOP ¶
func (paragraphstyleDB *ParagraphStyleDB) CopyBasicFieldsToParagraphStyle_WOP(paragraphstyle *models.ParagraphStyle_WOP)
CopyBasicFieldsToParagraphStyle_WOP
func (*ParagraphStyleDB) DecodePointers ¶
func (paragraphstyleDB *ParagraphStyleDB) DecodePointers(backRepo *BackRepoStruct, paragraphstyle *models.ParagraphStyle)
type ParagraphStyleDBResponse ¶
type ParagraphStyleDBResponse struct {
ParagraphStyleDB
}
ParagraphStyleDBResponse provides response swagger:response paragraphstyleDBResponse
type ParagraphStyleDBs ¶
type ParagraphStyleDBs []ParagraphStyleDB
ParagraphStyleDBs arrays paragraphstyleDBs swagger:response paragraphstyleDBsResponse
type ParagraphStylePointersEncoding ¶
type ParagraphStylePointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
}
ParagraphStylePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type ParagraphStyleWOP ¶
type ParagraphStyleWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Content string `xlsx:"2"`
ValAttr string `xlsx:"3"`
}
ParagraphStyleWOP is a ParagraphStyle without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type ParagraphWOP ¶
type ParagraphWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Content string `xlsx:"2"`
Text string `xlsx:"3"`
}
ParagraphWOP is a Paragraph without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type RuneAPI ¶
type RuneAPI struct {
gorm.Model
models.Rune_WOP
// encoding of pointers
// for API, it cannot be embedded
RunePointersEncoding RunePointersEncoding
}
RuneAPI 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 runeAPI
type RuneDB ¶
type RuneDB struct {
gorm.Model
// Declation for basic field runeDB.Name
Name_Data sql.NullString
// Declation for basic field runeDB.Content
Content_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
RunePointersEncoding
}
RuneDB describes a rune 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 runeDB
func (*RuneDB) CopyBasicFieldsFromRune ¶
CopyBasicFieldsFromRune
func (*RuneDB) CopyBasicFieldsFromRuneWOP ¶
CopyBasicFieldsFromRuneWOP
func (*RuneDB) CopyBasicFieldsFromRune_WOP ¶
CopyBasicFieldsFromRune_WOP
func (*RuneDB) CopyBasicFieldsToRune ¶
CopyBasicFieldsToRune
func (*RuneDB) CopyBasicFieldsToRuneWOP ¶
CopyBasicFieldsToRuneWOP
func (*RuneDB) CopyBasicFieldsToRune_WOP ¶
CopyBasicFieldsToRune_WOP
func (*RuneDB) DecodePointers ¶
func (runeDB *RuneDB) DecodePointers(backRepo *BackRepoStruct, rune *models.Rune)
type RuneDBResponse ¶
type RuneDBResponse struct {
RuneDB
}
RuneDBResponse provides response swagger:response runeDBResponse
type RunePointersEncoding ¶
type RunePointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
// field Text is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
TextID sql.NullInt64
// field RuneProperties is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
RunePropertiesID sql.NullInt64
// field EnclosingParagraph is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
EnclosingParagraphID sql.NullInt64
}
RunePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type RunePropertiesAPI ¶
type RunePropertiesAPI struct {
gorm.Model
models.RuneProperties_WOP
// encoding of pointers
// for API, it cannot be embedded
RunePropertiesPointersEncoding RunePropertiesPointersEncoding
}
RunePropertiesAPI 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 runepropertiesAPI
type RunePropertiesDB ¶
type RunePropertiesDB struct {
gorm.Model
// Declation for basic field runepropertiesDB.Name
Name_Data sql.NullString
// Declation for basic field runepropertiesDB.IsBold
// provide the sql storage for the boolan
IsBold_Data sql.NullBool
// Declation for basic field runepropertiesDB.IsStrike
// provide the sql storage for the boolan
IsStrike_Data sql.NullBool
// Declation for basic field runepropertiesDB.IsItalic
// provide the sql storage for the boolan
IsItalic_Data sql.NullBool
// Declation for basic field runepropertiesDB.Content
Content_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
RunePropertiesPointersEncoding
}
RunePropertiesDB describes a runeproperties 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 runepropertiesDB
func (*RunePropertiesDB) CopyBasicFieldsFromRuneProperties ¶
func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsFromRuneProperties(runeproperties *models.RuneProperties)
CopyBasicFieldsFromRuneProperties
func (*RunePropertiesDB) CopyBasicFieldsFromRunePropertiesWOP ¶
func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsFromRunePropertiesWOP(runeproperties *RunePropertiesWOP)
CopyBasicFieldsFromRunePropertiesWOP
func (*RunePropertiesDB) CopyBasicFieldsFromRuneProperties_WOP ¶
func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsFromRuneProperties_WOP(runeproperties *models.RuneProperties_WOP)
CopyBasicFieldsFromRuneProperties_WOP
func (*RunePropertiesDB) CopyBasicFieldsToRuneProperties ¶
func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsToRuneProperties(runeproperties *models.RuneProperties)
CopyBasicFieldsToRuneProperties
func (*RunePropertiesDB) CopyBasicFieldsToRunePropertiesWOP ¶
func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsToRunePropertiesWOP(runeproperties *RunePropertiesWOP)
CopyBasicFieldsToRunePropertiesWOP
func (*RunePropertiesDB) CopyBasicFieldsToRuneProperties_WOP ¶
func (runepropertiesDB *RunePropertiesDB) CopyBasicFieldsToRuneProperties_WOP(runeproperties *models.RuneProperties_WOP)
CopyBasicFieldsToRuneProperties_WOP
func (*RunePropertiesDB) DecodePointers ¶
func (runepropertiesDB *RunePropertiesDB) DecodePointers(backRepo *BackRepoStruct, runeproperties *models.RuneProperties)
type RunePropertiesDBResponse ¶
type RunePropertiesDBResponse struct {
RunePropertiesDB
}
RunePropertiesDBResponse provides response swagger:response runepropertiesDBResponse
type RunePropertiesDBs ¶
type RunePropertiesDBs []RunePropertiesDB
RunePropertiesDBs arrays runepropertiesDBs swagger:response runepropertiesDBsResponse
type RunePropertiesPointersEncoding ¶
type RunePropertiesPointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
}
RunePropertiesPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type RunePropertiesWOP ¶
type RunePropertiesWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
IsBold bool `xlsx:"2"`
IsStrike bool `xlsx:"3"`
IsItalic bool `xlsx:"4"`
Content string `xlsx:"5"`
}
RunePropertiesWOP is a RuneProperties without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type RuneWOP ¶
RuneWOP is a Rune 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 TableColumnAPI ¶
type TableColumnAPI struct {
gorm.Model
models.TableColumn_WOP
// encoding of pointers
// for API, it cannot be embedded
TableColumnPointersEncoding TableColumnPointersEncoding
}
TableColumnAPI 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 tablecolumnAPI
type TableColumnDB ¶
type TableColumnDB struct {
gorm.Model
// Declation for basic field tablecolumnDB.Name
Name_Data sql.NullString
// Declation for basic field tablecolumnDB.Content
Content_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
TableColumnPointersEncoding
}
TableColumnDB describes a tablecolumn 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 tablecolumnDB
func (*TableColumnDB) CopyBasicFieldsFromTableColumn ¶
func (tablecolumnDB *TableColumnDB) CopyBasicFieldsFromTableColumn(tablecolumn *models.TableColumn)
CopyBasicFieldsFromTableColumn
func (*TableColumnDB) CopyBasicFieldsFromTableColumnWOP ¶
func (tablecolumnDB *TableColumnDB) CopyBasicFieldsFromTableColumnWOP(tablecolumn *TableColumnWOP)
CopyBasicFieldsFromTableColumnWOP
func (*TableColumnDB) CopyBasicFieldsFromTableColumn_WOP ¶
func (tablecolumnDB *TableColumnDB) CopyBasicFieldsFromTableColumn_WOP(tablecolumn *models.TableColumn_WOP)
CopyBasicFieldsFromTableColumn_WOP
func (*TableColumnDB) CopyBasicFieldsToTableColumn ¶
func (tablecolumnDB *TableColumnDB) CopyBasicFieldsToTableColumn(tablecolumn *models.TableColumn)
CopyBasicFieldsToTableColumn
func (*TableColumnDB) CopyBasicFieldsToTableColumnWOP ¶
func (tablecolumnDB *TableColumnDB) CopyBasicFieldsToTableColumnWOP(tablecolumn *TableColumnWOP)
CopyBasicFieldsToTableColumnWOP
func (*TableColumnDB) CopyBasicFieldsToTableColumn_WOP ¶
func (tablecolumnDB *TableColumnDB) CopyBasicFieldsToTableColumn_WOP(tablecolumn *models.TableColumn_WOP)
CopyBasicFieldsToTableColumn_WOP
func (*TableColumnDB) DecodePointers ¶
func (tablecolumnDB *TableColumnDB) DecodePointers(backRepo *BackRepoStruct, tablecolumn *models.TableColumn)
type TableColumnDBResponse ¶
type TableColumnDBResponse struct {
TableColumnDB
}
TableColumnDBResponse provides response swagger:response tablecolumnDBResponse
type TableColumnDBs ¶
type TableColumnDBs []TableColumnDB
TableColumnDBs arrays tablecolumnDBs swagger:response tablecolumnDBsResponse
type TableColumnPointersEncoding ¶
type TableColumnPointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
// field Paragraphs is a slice of pointers to another Struct (optional or 0..1)
Paragraphs IntSlice `gorm:"type:TEXT"`
}
TableColumnPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TableColumnWOP ¶
TableColumnWOP is a TableColumn without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TableDB ¶
type TableDB struct {
gorm.Model
// Declation for basic field tableDB.Name
Name_Data sql.NullString
// Declation for basic field tableDB.Content
Content_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 {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
// field TableProperties is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
TablePropertiesID sql.NullInt64
// field TableRows is a slice of pointers to another Struct (optional or 0..1)
TableRows IntSlice `gorm:"type:TEXT"`
}
TablePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TablePropertiesAPI ¶
type TablePropertiesAPI struct {
gorm.Model
models.TableProperties_WOP
// encoding of pointers
// for API, it cannot be embedded
TablePropertiesPointersEncoding TablePropertiesPointersEncoding
}
TablePropertiesAPI 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 tablepropertiesAPI
type TablePropertiesDB ¶
type TablePropertiesDB struct {
gorm.Model
// Declation for basic field tablepropertiesDB.Name
Name_Data sql.NullString
// Declation for basic field tablepropertiesDB.Content
Content_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
TablePropertiesPointersEncoding
}
TablePropertiesDB describes a tableproperties 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 tablepropertiesDB
func (*TablePropertiesDB) CopyBasicFieldsFromTableProperties ¶
func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsFromTableProperties(tableproperties *models.TableProperties)
CopyBasicFieldsFromTableProperties
func (*TablePropertiesDB) CopyBasicFieldsFromTablePropertiesWOP ¶
func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsFromTablePropertiesWOP(tableproperties *TablePropertiesWOP)
CopyBasicFieldsFromTablePropertiesWOP
func (*TablePropertiesDB) CopyBasicFieldsFromTableProperties_WOP ¶
func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsFromTableProperties_WOP(tableproperties *models.TableProperties_WOP)
CopyBasicFieldsFromTableProperties_WOP
func (*TablePropertiesDB) CopyBasicFieldsToTableProperties ¶
func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsToTableProperties(tableproperties *models.TableProperties)
CopyBasicFieldsToTableProperties
func (*TablePropertiesDB) CopyBasicFieldsToTablePropertiesWOP ¶
func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsToTablePropertiesWOP(tableproperties *TablePropertiesWOP)
CopyBasicFieldsToTablePropertiesWOP
func (*TablePropertiesDB) CopyBasicFieldsToTableProperties_WOP ¶
func (tablepropertiesDB *TablePropertiesDB) CopyBasicFieldsToTableProperties_WOP(tableproperties *models.TableProperties_WOP)
CopyBasicFieldsToTableProperties_WOP
func (*TablePropertiesDB) DecodePointers ¶
func (tablepropertiesDB *TablePropertiesDB) DecodePointers(backRepo *BackRepoStruct, tableproperties *models.TableProperties)
type TablePropertiesDBResponse ¶
type TablePropertiesDBResponse struct {
TablePropertiesDB
}
TablePropertiesDBResponse provides response swagger:response tablepropertiesDBResponse
type TablePropertiesDBs ¶
type TablePropertiesDBs []TablePropertiesDB
TablePropertiesDBs arrays tablepropertiesDBs swagger:response tablepropertiesDBsResponse
type TablePropertiesPointersEncoding ¶
type TablePropertiesPointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
// field TableStyle is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
TableStyleID sql.NullInt64
}
TablePropertiesPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TablePropertiesWOP ¶
type TablePropertiesWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Content string `xlsx:"2"`
}
TablePropertiesWOP is a TableProperties without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TableRowAPI ¶
type TableRowAPI struct {
gorm.Model
models.TableRow_WOP
// encoding of pointers
// for API, it cannot be embedded
TableRowPointersEncoding TableRowPointersEncoding
}
TableRowAPI 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 tablerowAPI
type TableRowDB ¶
type TableRowDB struct {
gorm.Model
// Declation for basic field tablerowDB.Name
Name_Data sql.NullString
// Declation for basic field tablerowDB.Content
Content_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
TableRowPointersEncoding
}
TableRowDB describes a tablerow 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 tablerowDB
func (*TableRowDB) CopyBasicFieldsFromTableRow ¶
func (tablerowDB *TableRowDB) CopyBasicFieldsFromTableRow(tablerow *models.TableRow)
CopyBasicFieldsFromTableRow
func (*TableRowDB) CopyBasicFieldsFromTableRowWOP ¶
func (tablerowDB *TableRowDB) CopyBasicFieldsFromTableRowWOP(tablerow *TableRowWOP)
CopyBasicFieldsFromTableRowWOP
func (*TableRowDB) CopyBasicFieldsFromTableRow_WOP ¶
func (tablerowDB *TableRowDB) CopyBasicFieldsFromTableRow_WOP(tablerow *models.TableRow_WOP)
CopyBasicFieldsFromTableRow_WOP
func (*TableRowDB) CopyBasicFieldsToTableRow ¶
func (tablerowDB *TableRowDB) CopyBasicFieldsToTableRow(tablerow *models.TableRow)
CopyBasicFieldsToTableRow
func (*TableRowDB) CopyBasicFieldsToTableRowWOP ¶
func (tablerowDB *TableRowDB) CopyBasicFieldsToTableRowWOP(tablerow *TableRowWOP)
CopyBasicFieldsToTableRowWOP
func (*TableRowDB) CopyBasicFieldsToTableRow_WOP ¶
func (tablerowDB *TableRowDB) CopyBasicFieldsToTableRow_WOP(tablerow *models.TableRow_WOP)
CopyBasicFieldsToTableRow_WOP
func (*TableRowDB) DecodePointers ¶
func (tablerowDB *TableRowDB) DecodePointers(backRepo *BackRepoStruct, tablerow *models.TableRow)
type TableRowDBResponse ¶
type TableRowDBResponse struct {
TableRowDB
}
TableRowDBResponse provides response swagger:response tablerowDBResponse
type TableRowDBs ¶
type TableRowDBs []TableRowDB
TableRowDBs arrays tablerowDBs swagger:response tablerowDBsResponse
type TableRowPointersEncoding ¶
type TableRowPointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
// field TableColumns is a slice of pointers to another Struct (optional or 0..1)
TableColumns IntSlice `gorm:"type:TEXT"`
}
TableRowPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TableRowWOP ¶
TableRowWOP is a TableRow without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TableStyleAPI ¶
type TableStyleAPI struct {
gorm.Model
models.TableStyle_WOP
// encoding of pointers
// for API, it cannot be embedded
TableStylePointersEncoding TableStylePointersEncoding
}
TableStyleAPI 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 tablestyleAPI
type TableStyleDB ¶
type TableStyleDB struct {
gorm.Model
// Declation for basic field tablestyleDB.Name
Name_Data sql.NullString
// Declation for basic field tablestyleDB.Content
Content_Data sql.NullString
// Declation for basic field tablestyleDB.Val
Val_Data sql.NullString
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
TableStylePointersEncoding
}
TableStyleDB describes a tablestyle 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 tablestyleDB
func (*TableStyleDB) CopyBasicFieldsFromTableStyle ¶
func (tablestyleDB *TableStyleDB) CopyBasicFieldsFromTableStyle(tablestyle *models.TableStyle)
CopyBasicFieldsFromTableStyle
func (*TableStyleDB) CopyBasicFieldsFromTableStyleWOP ¶
func (tablestyleDB *TableStyleDB) CopyBasicFieldsFromTableStyleWOP(tablestyle *TableStyleWOP)
CopyBasicFieldsFromTableStyleWOP
func (*TableStyleDB) CopyBasicFieldsFromTableStyle_WOP ¶
func (tablestyleDB *TableStyleDB) CopyBasicFieldsFromTableStyle_WOP(tablestyle *models.TableStyle_WOP)
CopyBasicFieldsFromTableStyle_WOP
func (*TableStyleDB) CopyBasicFieldsToTableStyle ¶
func (tablestyleDB *TableStyleDB) CopyBasicFieldsToTableStyle(tablestyle *models.TableStyle)
CopyBasicFieldsToTableStyle
func (*TableStyleDB) CopyBasicFieldsToTableStyleWOP ¶
func (tablestyleDB *TableStyleDB) CopyBasicFieldsToTableStyleWOP(tablestyle *TableStyleWOP)
CopyBasicFieldsToTableStyleWOP
func (*TableStyleDB) CopyBasicFieldsToTableStyle_WOP ¶
func (tablestyleDB *TableStyleDB) CopyBasicFieldsToTableStyle_WOP(tablestyle *models.TableStyle_WOP)
CopyBasicFieldsToTableStyle_WOP
func (*TableStyleDB) DecodePointers ¶
func (tablestyleDB *TableStyleDB) DecodePointers(backRepo *BackRepoStruct, tablestyle *models.TableStyle)
type TableStyleDBResponse ¶
type TableStyleDBResponse struct {
TableStyleDB
}
TableStyleDBResponse provides response swagger:response tablestyleDBResponse
type TableStyleDBs ¶
type TableStyleDBs []TableStyleDB
TableStyleDBs arrays tablestyleDBs swagger:response tablestyleDBsResponse
type TableStylePointersEncoding ¶
type TableStylePointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
}
TableStylePointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
type TableStyleWOP ¶
type TableStyleWOP struct {
ID int `xlsx:"0"`
Name string `xlsx:"1"`
Content string `xlsx:"2"`
Val string `xlsx:"3"`
}
TableStyleWOP is a TableStyle without pointers (WOP is an acronym for "Without Pointers") it holds the same basic fields but pointers are encoded into uint
type TableWOP ¶
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 TextAPI ¶
type TextAPI struct {
gorm.Model
models.Text_WOP
// encoding of pointers
// for API, it cannot be embedded
TextPointersEncoding TextPointersEncoding
}
TextAPI 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 textAPI
type TextDB ¶
type TextDB struct {
gorm.Model
// Declation for basic field textDB.Name
Name_Data sql.NullString
// Declation for basic field textDB.Content
Content_Data sql.NullString
// Declation for basic field textDB.PreserveWhiteSpace
// provide the sql storage for the boolan
PreserveWhiteSpace_Data sql.NullBool
// encoding of pointers
// for GORM serialization, it is necessary to embed to Pointer Encoding declaration
TextPointersEncoding
}
TextDB describes a text 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 textDB
func (*TextDB) CopyBasicFieldsFromText ¶
CopyBasicFieldsFromText
func (*TextDB) CopyBasicFieldsFromTextWOP ¶
CopyBasicFieldsFromTextWOP
func (*TextDB) CopyBasicFieldsFromText_WOP ¶
CopyBasicFieldsFromText_WOP
func (*TextDB) CopyBasicFieldsToText ¶
CopyBasicFieldsToText
func (*TextDB) CopyBasicFieldsToTextWOP ¶
CopyBasicFieldsToTextWOP
func (*TextDB) CopyBasicFieldsToText_WOP ¶
CopyBasicFieldsToText_WOP
func (*TextDB) DecodePointers ¶
func (textDB *TextDB) DecodePointers(backRepo *BackRepoStruct, text *models.Text)
type TextDBResponse ¶
type TextDBResponse struct {
TextDB
}
TextDBResponse provides response swagger:response textDBResponse
type TextPointersEncoding ¶
type TextPointersEncoding struct {
// field Node is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
NodeID sql.NullInt64
// field EnclosingRune is a pointer to another Struct (optional or 0..1)
// This field is generated into another field to enable AS ONE association
EnclosingRuneID sql.NullInt64
}
TextPointersEncoding encodes pointers to Struct and reverse pointers of slice of poitners to Struct
Source Files
¶
- BodyDB.go
- DocumentDB.go
- DocxDB.go
- FileDB.go
- NodeDB.go
- ParagraphDB.go
- ParagraphPropertiesDB.go
- ParagraphStyleDB.go
- RuneDB.go
- RunePropertiesDB.go
- TableColumnDB.go
- TableDB.go
- TablePropertiesDB.go
- TableRowDB.go
- TableStyleDB.go
- TextDB.go
- back_repo.go
- back_repo_data.go
- db.go
- get_instance_db_from_instance.go
- get_reverse_field_owner_name.go
- int_slice.go