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 genORMTranslation.go
generated from OrmFileSetupTemplate
Index ¶
- func AutoMigrate(db *gorm.DB)
- func GetLastCommitNb() uint
- func ResetDB(db *gorm.DB)
- func SetupModels(logMode bool, filepath string) *gorm.DB
- type BackRepoDependencyStruct
- func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseOne() (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseOneInstance(dependencyDB *DependencyDB) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, dependencyDB *DependencyDB) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseOneInstance(dependency *models.Dependency) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, dependency *models.Dependency) (Error error)
- func (backRepoDependency *BackRepoDependencyStruct) Init(db *gorm.DB) (Error error)
- type BackRepoGanttChartStruct
- func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseOne() (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseOneInstance(ganttchartDB *GanttChartDB) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, ganttchartDB *GanttChartDB) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseOneInstance(ganttchart *models.GanttChart) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ganttchart *models.GanttChart) (Error error)
- func (backRepoGanttChart *BackRepoGanttChartStruct) Init(db *gorm.DB) (Error error)
- type BackRepoRessourceStruct
- func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseOne() (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseOneInstance(ressourceDB *RessourceDB) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, ressourceDB *RessourceDB) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseOneInstance(ressource *models.Ressource) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ressource *models.Ressource) (Error error)
- func (backRepoRessource *BackRepoRessourceStruct) Init(db *gorm.DB) (Error error)
- type BackRepoStruct
- func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)
- func (backRepo *BackRepoStruct) CheckoutDependency(dependency *models.Dependency)
- func (backRepo *BackRepoStruct) CheckoutGanttChart(ganttchart *models.GanttChart)
- func (backRepo *BackRepoStruct) CheckoutRessource(ressource *models.Ressource)
- func (backRepo *BackRepoStruct) CheckoutTask(task *models.Task)
- func (backRepo *BackRepoStruct) Commit(stage *models.StageStruct)
- func (backRepo *BackRepoStruct) CommitDependency(dependency *models.Dependency)
- func (backRepo *BackRepoStruct) CommitGanttChart(ganttchart *models.GanttChart)
- func (backRepo *BackRepoStruct) CommitRessource(ressource *models.Ressource)
- func (backRepo *BackRepoStruct) CommitTask(task *models.Task)
- func (backRepo *BackRepoStruct) GetLastCommitNb() uint
- func (backRepo *BackRepoStruct) IncrementCommitNb() uint
- func (backRepo *BackRepoStruct) Init(db *gorm.DB)
- type BackRepoTaskStruct
- func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseOne() (Error error)
- func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseOneInstance(taskDB *TaskDB) (Error error)
- func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, taskDB *TaskDB) (Error error)
- func (backRepoTask *BackRepoTaskStruct) CommitDeleteInstance(id uint) (Error error)
- func (backRepoTask *BackRepoTaskStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
- func (backRepoTask *BackRepoTaskStruct) CommitPhaseOneInstance(task *models.Task) (Error error)
- func (backRepoTask *BackRepoTaskStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
- func (backRepoTask *BackRepoTaskStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, task *models.Task) (Error error)
- func (backRepoTask *BackRepoTaskStruct) Init(db *gorm.DB) (Error error)
- type DependencyAPI
- type DependencyDB
- type DependencyDBResponse
- type DependencyDBs
- type GanttChartAPI
- type GanttChartDB
- type GanttChartDBResponse
- type GanttChartDBs
- type RessourceAPI
- type RessourceDB
- type RessourceDBResponse
- type RessourceDBs
- type TaskAPI
- type TaskDB
- type TaskDBResponse
- type TaskDBs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastCommitNb ¶
func GetLastCommitNb() uint
Types ¶
type BackRepoDependencyStruct ¶
type BackRepoDependencyStruct struct { // stores DependencyDB according to their gorm ID Map_DependencyDBID_DependencyDB *map[uint]*DependencyDB // stores DependencyDB ID according to Dependency address Map_DependencyPtr_DependencyDBID *map[*models.Dependency]uint // stores Dependency according to their gorm ID Map_DependencyDBID_DependencyPtr *map[uint]*models.Dependency // contains filtered or unexported fields }
func (*BackRepoDependencyStruct) CheckoutPhaseOne ¶
func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseOne() (Error error)
BackRepoDependency.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One is the creation of instance in the stage ¶
NOTE: the is supposed to have been reset before
func (*BackRepoDependencyStruct) CheckoutPhaseOneInstance ¶
func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseOneInstance(dependencyDB *DependencyDB) (Error error)
CheckoutPhaseOneInstance takes a dependencyDB that has been found in the DB, updates the backRepo and stages the models version of the dependencyDB
func (*BackRepoDependencyStruct) CheckoutPhaseTwo ¶
func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDependency.CheckoutPhaseTwo Checkouts all staged instances of Dependency to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDependencyStruct) CheckoutPhaseTwoInstance ¶
func (backRepoDependency *BackRepoDependencyStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, dependencyDB *DependencyDB) (Error error)
BackRepoDependency.CheckoutPhaseTwoInstance Checkouts staged instances of Dependency to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDependencyStruct) CommitDeleteInstance ¶
func (backRepoDependency *BackRepoDependencyStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoDependency.CommitDeleteInstance commits deletion of Dependency to the BackRepo
func (*BackRepoDependencyStruct) CommitPhaseOne ¶
func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoDependency.CommitPhaseOne commits all staged instances of Dependency 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 (*BackRepoDependencyStruct) CommitPhaseOneInstance ¶
func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseOneInstance(dependency *models.Dependency) (Error error)
BackRepoDependency.CommitPhaseOneInstance commits dependency staged instances of Dependency 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 (*BackRepoDependencyStruct) CommitPhaseTwo ¶
func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoDependency.CommitPhaseTwo commits all staged instances of Dependency to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoDependencyStruct) CommitPhaseTwoInstance ¶
func (backRepoDependency *BackRepoDependencyStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, dependency *models.Dependency) (Error error)
BackRepoDependency.CommitPhaseTwoInstance commits {{structname }} of models.Dependency to the BackRepo Phase Two is the update of instance with the field in the database
type BackRepoGanttChartStruct ¶
type BackRepoGanttChartStruct struct { // stores GanttChartDB according to their gorm ID Map_GanttChartDBID_GanttChartDB *map[uint]*GanttChartDB // stores GanttChartDB ID according to GanttChart address Map_GanttChartPtr_GanttChartDBID *map[*models.GanttChart]uint // stores GanttChart according to their gorm ID Map_GanttChartDBID_GanttChartPtr *map[uint]*models.GanttChart // contains filtered or unexported fields }
func (*BackRepoGanttChartStruct) CheckoutPhaseOne ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseOne() (Error error)
BackRepoGanttChart.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One is the creation of instance in the stage ¶
NOTE: the is supposed to have been reset before
func (*BackRepoGanttChartStruct) CheckoutPhaseOneInstance ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseOneInstance(ganttchartDB *GanttChartDB) (Error error)
CheckoutPhaseOneInstance takes a ganttchartDB that has been found in the DB, updates the backRepo and stages the models version of the ganttchartDB
func (*BackRepoGanttChartStruct) CheckoutPhaseTwo ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGanttChart.CheckoutPhaseTwo Checkouts all staged instances of GanttChart to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttChartStruct) CheckoutPhaseTwoInstance ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, ganttchartDB *GanttChartDB) (Error error)
BackRepoGanttChart.CheckoutPhaseTwoInstance Checkouts staged instances of GanttChart to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttChartStruct) CommitDeleteInstance ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoGanttChart.CommitDeleteInstance commits deletion of GanttChart to the BackRepo
func (*BackRepoGanttChartStruct) CommitPhaseOne ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoGanttChart.CommitPhaseOne commits all staged instances of GanttChart 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 (*BackRepoGanttChartStruct) CommitPhaseOneInstance ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseOneInstance(ganttchart *models.GanttChart) (Error error)
BackRepoGanttChart.CommitPhaseOneInstance commits ganttchart staged instances of GanttChart 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 (*BackRepoGanttChartStruct) CommitPhaseTwo ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoGanttChart.CommitPhaseTwo commits all staged instances of GanttChart to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoGanttChartStruct) CommitPhaseTwoInstance ¶
func (backRepoGanttChart *BackRepoGanttChartStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ganttchart *models.GanttChart) (Error error)
BackRepoGanttChart.CommitPhaseTwoInstance commits {{structname }} of models.GanttChart to the BackRepo Phase Two is the update of instance with the field in the database
type BackRepoRessourceStruct ¶
type BackRepoRessourceStruct struct { // stores RessourceDB according to their gorm ID Map_RessourceDBID_RessourceDB *map[uint]*RessourceDB // stores RessourceDB ID according to Ressource address Map_RessourcePtr_RessourceDBID *map[*models.Ressource]uint // stores Ressource according to their gorm ID Map_RessourceDBID_RessourcePtr *map[uint]*models.Ressource // contains filtered or unexported fields }
func (*BackRepoRessourceStruct) CheckoutPhaseOne ¶
func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseOne() (Error error)
BackRepoRessource.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One is the creation of instance in the stage ¶
NOTE: the is supposed to have been reset before
func (*BackRepoRessourceStruct) CheckoutPhaseOneInstance ¶
func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseOneInstance(ressourceDB *RessourceDB) (Error error)
CheckoutPhaseOneInstance takes a ressourceDB that has been found in the DB, updates the backRepo and stages the models version of the ressourceDB
func (*BackRepoRessourceStruct) CheckoutPhaseTwo ¶
func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRessource.CheckoutPhaseTwo Checkouts all staged instances of Ressource to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRessourceStruct) CheckoutPhaseTwoInstance ¶
func (backRepoRessource *BackRepoRessourceStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, ressourceDB *RessourceDB) (Error error)
BackRepoRessource.CheckoutPhaseTwoInstance Checkouts staged instances of Ressource to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRessourceStruct) CommitDeleteInstance ¶
func (backRepoRessource *BackRepoRessourceStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoRessource.CommitDeleteInstance commits deletion of Ressource to the BackRepo
func (*BackRepoRessourceStruct) CommitPhaseOne ¶
func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoRessource.CommitPhaseOne commits all staged instances of Ressource 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 (*BackRepoRessourceStruct) CommitPhaseOneInstance ¶
func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseOneInstance(ressource *models.Ressource) (Error error)
BackRepoRessource.CommitPhaseOneInstance commits ressource staged instances of Ressource 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 (*BackRepoRessourceStruct) CommitPhaseTwo ¶
func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoRessource.CommitPhaseTwo commits all staged instances of Ressource to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoRessourceStruct) CommitPhaseTwoInstance ¶
func (backRepoRessource *BackRepoRessourceStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, ressource *models.Ressource) (Error error)
BackRepoRessource.CommitPhaseTwoInstance commits {{structname }} of models.Ressource to the BackRepo Phase Two is the update of instance with the field in the database
type BackRepoStruct ¶
type BackRepoStruct struct { // insertion point for per struct back repo declarations BackRepoDependency BackRepoDependencyStruct BackRepoGanttChart BackRepoGanttChartStruct BackRepoRessource BackRepoRessourceStruct BackRepoTask BackRepoTaskStruct CommitNb uint // this ng is updated at the BackRepo level but also at the BackRepo<GongStruct> level }
BackRepoStruct supports callback functions
var BackRepo BackRepoStruct
func (*BackRepoStruct) Checkout ¶
func (backRepo *BackRepoStruct) Checkout(stage *models.StageStruct)
Checkout the database into the stage
func (*BackRepoStruct) CheckoutDependency ¶
func (backRepo *BackRepoStruct) CheckoutDependency(dependency *models.Dependency)
CommitDependency allows checkout of a single dependency (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutGanttChart ¶
func (backRepo *BackRepoStruct) CheckoutGanttChart(ganttchart *models.GanttChart)
CommitGanttChart allows checkout of a single ganttchart (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutRessource ¶
func (backRepo *BackRepoStruct) CheckoutRessource(ressource *models.Ressource)
CommitRessource allows checkout of a single ressource (if already staged and with a BackRepo id)
func (*BackRepoStruct) CheckoutTask ¶
func (backRepo *BackRepoStruct) CheckoutTask(task *models.Task)
CommitTask allows checkout of a single task (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) CommitDependency ¶
func (backRepo *BackRepoStruct) CommitDependency(dependency *models.Dependency)
CommitDependency allows commit of a single dependency (if already staged)
func (*BackRepoStruct) CommitGanttChart ¶
func (backRepo *BackRepoStruct) CommitGanttChart(ganttchart *models.GanttChart)
CommitGanttChart allows commit of a single ganttchart (if already staged)
func (*BackRepoStruct) CommitRessource ¶
func (backRepo *BackRepoStruct) CommitRessource(ressource *models.Ressource)
CommitRessource allows commit of a single ressource (if already staged)
func (*BackRepoStruct) CommitTask ¶
func (backRepo *BackRepoStruct) CommitTask(task *models.Task)
CommitTask allows commit of a single task (if already staged)
func (*BackRepoStruct) GetLastCommitNb ¶
func (backRepo *BackRepoStruct) GetLastCommitNb() uint
func (*BackRepoStruct) IncrementCommitNb ¶
func (backRepo *BackRepoStruct) IncrementCommitNb() uint
func (*BackRepoStruct) Init ¶
func (backRepo *BackRepoStruct) Init(db *gorm.DB)
Init the BackRepoStruct inner variables and link to the database
type BackRepoTaskStruct ¶
type BackRepoTaskStruct struct { // stores TaskDB according to their gorm ID Map_TaskDBID_TaskDB *map[uint]*TaskDB // stores TaskDB ID according to Task address Map_TaskPtr_TaskDBID *map[*models.Task]uint // stores Task according to their gorm ID Map_TaskDBID_TaskPtr *map[uint]*models.Task // contains filtered or unexported fields }
func (*BackRepoTaskStruct) CheckoutPhaseOne ¶
func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseOne() (Error error)
BackRepoTask.CheckoutPhaseOne Checkouts all BackRepo instances to the Stage
Phase One is the creation of instance in the stage ¶
NOTE: the is supposed to have been reset before
func (*BackRepoTaskStruct) CheckoutPhaseOneInstance ¶
func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseOneInstance(taskDB *TaskDB) (Error error)
CheckoutPhaseOneInstance takes a taskDB that has been found in the DB, updates the backRepo and stages the models version of the taskDB
func (*BackRepoTaskStruct) CheckoutPhaseTwo ¶
func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTask.CheckoutPhaseTwo Checkouts all staged instances of Task to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTaskStruct) CheckoutPhaseTwoInstance ¶
func (backRepoTask *BackRepoTaskStruct) CheckoutPhaseTwoInstance(backRepo *BackRepoStruct, taskDB *TaskDB) (Error error)
BackRepoTask.CheckoutPhaseTwoInstance Checkouts staged instances of Task to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTaskStruct) CommitDeleteInstance ¶
func (backRepoTask *BackRepoTaskStruct) CommitDeleteInstance(id uint) (Error error)
BackRepoTask.CommitDeleteInstance commits deletion of Task to the BackRepo
func (*BackRepoTaskStruct) CommitPhaseOne ¶
func (backRepoTask *BackRepoTaskStruct) CommitPhaseOne(stage *models.StageStruct) (Error error)
BackRepoTask.CommitPhaseOne commits all staged instances of Task 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 (*BackRepoTaskStruct) CommitPhaseOneInstance ¶
func (backRepoTask *BackRepoTaskStruct) CommitPhaseOneInstance(task *models.Task) (Error error)
BackRepoTask.CommitPhaseOneInstance commits task staged instances of Task 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 (*BackRepoTaskStruct) CommitPhaseTwo ¶
func (backRepoTask *BackRepoTaskStruct) CommitPhaseTwo(backRepo *BackRepoStruct) (Error error)
BackRepoTask.CommitPhaseTwo commits all staged instances of Task to the BackRepo Phase Two is the update of instance with the field in the database
func (*BackRepoTaskStruct) CommitPhaseTwoInstance ¶
func (backRepoTask *BackRepoTaskStruct) CommitPhaseTwoInstance(backRepo *BackRepoStruct, idx uint, task *models.Task) (Error error)
BackRepoTask.CommitPhaseTwoInstance commits {{structname }} of models.Task to the BackRepo Phase Two is the update of instance with the field in the database
type DependencyAPI ¶
type DependencyAPI struct { models.Dependency // insertion for fields declaration // Declation for basic field dependencyDB.Name {{BasicKind}} (to be completed) Name_Data sql.NullString // field Task is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association TaskID sql.NullInt64 // all gong Struct has a Name field, this enables this data to object field TaskName string // Implementation of a reverse ID for field Task{}.Dependencies []*Dependency Task_DependenciesDBID sql.NullInt64 }
DependencyAPI 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 dependencyAPI
type DependencyDB ¶
type DependencyDB struct { gorm.Model DependencyAPI }
DependencyDB describes a dependency in the database
It incorporates all fields : from the model, from the generated field for the API and the GORM ID
swagger:model dependencyDB
type DependencyDBResponse ¶
type DependencyDBResponse struct {
DependencyDB
}
DependencyDBResponse provides response swagger:response dependencyDBResponse
type DependencyDBs ¶
type DependencyDBs []DependencyDB
DependencyDBs arrays dependencyDBs swagger:response dependencyDBsResponse
type GanttChartAPI ¶
type GanttChartAPI struct { models.GanttChart // insertion for fields declaration // Declation for basic field ganttchartDB.Name {{BasicKind}} (to be completed) Name_Data sql.NullString }
GanttChartAPI 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 ganttchartAPI
type GanttChartDB ¶
type GanttChartDB struct { gorm.Model GanttChartAPI }
GanttChartDB describes a ganttchart in the database
It incorporates all fields : from the model, from the generated field for the API and the GORM ID
swagger:model ganttchartDB
type GanttChartDBResponse ¶
type GanttChartDBResponse struct {
GanttChartDB
}
GanttChartDBResponse provides response swagger:response ganttchartDBResponse
type GanttChartDBs ¶
type GanttChartDBs []GanttChartDB
GanttChartDBs arrays ganttchartDBs swagger:response ganttchartDBsResponse
type RessourceAPI ¶
type RessourceAPI struct { models.Ressource // insertion for fields declaration // Declation for basic field ressourceDB.Name {{BasicKind}} (to be completed) Name_Data sql.NullString }
RessourceAPI 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 ressourceAPI
type RessourceDB ¶
type RessourceDB struct { gorm.Model RessourceAPI }
RessourceDB describes a ressource in the database
It incorporates all fields : from the model, from the generated field for the API and the GORM ID
swagger:model ressourceDB
type RessourceDBResponse ¶
type RessourceDBResponse struct {
RessourceDB
}
RessourceDBResponse provides response swagger:response ressourceDBResponse
type RessourceDBs ¶
type RessourceDBs []RessourceDB
RessourceDBs arrays ressourceDBs swagger:response ressourceDBsResponse
type TaskAPI ¶
type TaskAPI struct { models.Task // insertion for fields declaration // Declation for basic field taskDB.Name {{BasicKind}} (to be completed) Name_Data sql.NullString // Declation for basic field taskDB.DisplayedName {{BasicKind}} (to be completed) DisplayedName_Data sql.NullString // field Ressource is a pointer to another Struct (optional or 0..1) // This field is generated into another field to enable AS ONE association RessourceID sql.NullInt64 // all gong Struct has a Name field, this enables this data to object field RessourceName string // Declation for basic field taskDB.Start Start_Data sql.NullTime // Declation for basic field taskDB.End End_Data sql.NullTime // Declation for basic field taskDB.Duration {{BasicKind}} (to be completed) Duration_Data sql.NullInt64 // Declation for basic field taskDB.PercentComplete {{BasicKind}} (to be completed) PercentComplete_Data sql.NullFloat64 // Declation for basic field taskDB.Rank {{BasicKind}} (to be completed) Rank_Data sql.NullInt64 // Implementation of a reverse ID for field GanttChart{}.Tasks []*Task GanttChart_TasksDBID sql.NullInt64 }
TaskAPI 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 taskAPI
type TaskDB ¶
TaskDB describes a task in the database
It incorporates all fields : from the model, from the generated field for the API and the GORM ID
swagger:model taskDB
type TaskDBResponse ¶
type TaskDBResponse struct {
TaskDB
}
TaskDBResponse provides response swagger:response taskDBResponse