models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var IssueColumns = struct {
	ID             string
	ProjectID      string
	IssueKey       string
	KeyID          string
	IssueTypeID    string
	Summary        string
	Description    string
	ResolutionID   string
	PriorityID     string
	StatusID       string
	AssigneeID     string
	StartDate      string
	DueDate        string
	EstimatedHours string
	ActualHours    string
	ParentIssueID  string
	CreatedUserID  string
	UpdatedUserID  string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "id",
	ProjectID:      "project_id",
	IssueKey:       "issue_key",
	KeyID:          "key_id",
	IssueTypeID:    "issue_type_id",
	Summary:        "summary",
	Description:    "description",
	ResolutionID:   "resolution_id",
	PriorityID:     "priority_id",
	StatusID:       "status_id",
	AssigneeID:     "assignee_id",
	StartDate:      "start_date",
	DueDate:        "due_date",
	EstimatedHours: "estimated_hours",
	ActualHours:    "actual_hours",
	ParentIssueID:  "parent_issue_id",
	CreatedUserID:  "created_user_id",
	UpdatedUserID:  "updated_user_id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
}
View Source
var IssueRels = struct {
}{}

IssueRels is where relationship names are stored.

View Source
var IssueTypeColumns = struct {
	ID           string
	ProjectID    string
	Name         string
	Color        string
	DisplayOrder string
	CreatedAt    string
	UpdatedAt    string
}{
	ID:           "id",
	ProjectID:    "project_id",
	Name:         "name",
	Color:        "color",
	DisplayOrder: "display_order",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var IssueTypeRels = struct {
}{}

IssueTypeRels is where relationship names are stored.

View Source
var IssueTypeWhere = struct {
	ID           whereHelperint64
	ProjectID    whereHelperint64
	Name         whereHelperstring
	Color        whereHelperstring
	DisplayOrder whereHelperint64
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	ProjectID:    whereHelperint64{/* contains filtered or unexported fields */},
	Name:         whereHelperstring{/* contains filtered or unexported fields */},
	Color:        whereHelperstring{/* contains filtered or unexported fields */},
	DisplayOrder: whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var IssueWhere = struct {
	ID             whereHelperint64
	ProjectID      whereHelpernull_Int64
	IssueKey       whereHelperstring
	KeyID          whereHelperint64
	IssueTypeID    whereHelpernull_Int64
	Summary        whereHelperstring
	Description    whereHelperstring
	ResolutionID   whereHelpernull_Int64
	PriorityID     whereHelpernull_Int64
	StatusID       whereHelpernull_Int64
	AssigneeID     whereHelpernull_Int64
	StartDate      whereHelpernull_Time
	DueDate        whereHelpernull_Time
	EstimatedHours whereHelpernull_Float64
	ActualHours    whereHelpernull_Float64
	ParentIssueID  whereHelpernull_Int64
	CreatedUserID  whereHelperint64
	UpdatedUserID  whereHelperint64
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	ProjectID:      whereHelpernull_Int64{/* contains filtered or unexported fields */},
	IssueKey:       whereHelperstring{/* contains filtered or unexported fields */},
	KeyID:          whereHelperint64{/* contains filtered or unexported fields */},
	IssueTypeID:    whereHelpernull_Int64{/* contains filtered or unexported fields */},
	Summary:        whereHelperstring{/* contains filtered or unexported fields */},
	Description:    whereHelperstring{/* contains filtered or unexported fields */},
	ResolutionID:   whereHelpernull_Int64{/* contains filtered or unexported fields */},
	PriorityID:     whereHelpernull_Int64{/* contains filtered or unexported fields */},
	StatusID:       whereHelpernull_Int64{/* contains filtered or unexported fields */},
	AssigneeID:     whereHelpernull_Int64{/* contains filtered or unexported fields */},
	StartDate:      whereHelpernull_Time{/* contains filtered or unexported fields */},
	DueDate:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	EstimatedHours: whereHelpernull_Float64{/* contains filtered or unexported fields */},
	ActualHours:    whereHelpernull_Float64{/* contains filtered or unexported fields */},
	ParentIssueID:  whereHelpernull_Int64{/* contains filtered or unexported fields */},
	CreatedUserID:  whereHelperint64{/* contains filtered or unexported fields */},
	UpdatedUserID:  whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var PriorityColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PriorityRels = struct {
}{}

PriorityRels is where relationship names are stored.

View Source
var PriorityWhere = struct {
	ID        whereHelperint64
	Name      whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ProjectColumns = struct {
	ID                                string
	ProjectKey                        string
	Name                              string
	ChartEnabled                      string
	SubtaskingEnabled                 string
	ProjectLeaderCanEditProjectLeader string
	TextFormattingRule                string
	Archived                          string
	CreatedAt                         string
	UpdatedAt                         string
}{
	ID:                                "id",
	ProjectKey:                        "project_key",
	Name:                              "name",
	ChartEnabled:                      "chart_enabled",
	SubtaskingEnabled:                 "subtasking_enabled",
	ProjectLeaderCanEditProjectLeader: "project_leader_can_edit_project_leader",
	TextFormattingRule:                "text_formatting_rule",
	Archived:                          "archived",
	CreatedAt:                         "created_at",
	UpdatedAt:                         "updated_at",
}
View Source
var ProjectRels = struct {
}{}

ProjectRels is where relationship names are stored.

View Source
var ProjectStatusColumns = struct {
	ID           string
	ProjectID    string
	Name         string
	Color        string
	DisplayOrder string
	CreatedAt    string
	UpdatedAt    string
}{
	ID:           "id",
	ProjectID:    "project_id",
	Name:         "name",
	Color:        "color",
	DisplayOrder: "display_order",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var ProjectStatusRels = struct {
}{}

ProjectStatusRels is where relationship names are stored.

View Source
var ProjectStatusWhere = struct {
	ID           whereHelperint64
	ProjectID    whereHelperint64
	Name         whereHelperstring
	Color        whereHelperstring
	DisplayOrder whereHelperint64
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
}{
	ID:           whereHelperint64{/* contains filtered or unexported fields */},
	ProjectID:    whereHelperint64{/* contains filtered or unexported fields */},
	Name:         whereHelperstring{/* contains filtered or unexported fields */},
	Color:        whereHelperstring{/* contains filtered or unexported fields */},
	DisplayOrder: whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ProjectWhere = struct {
	ID                                whereHelperint64
	ProjectKey                        whereHelperstring
	Name                              whereHelperstring
	ChartEnabled                      whereHelperbool
	SubtaskingEnabled                 whereHelperbool
	ProjectLeaderCanEditProjectLeader whereHelperbool
	TextFormattingRule                whereHelperstring
	Archived                          whereHelperbool
	CreatedAt                         whereHelpertime_Time
	UpdatedAt                         whereHelpertime_Time
}{
	ID:                                whereHelperint64{/* contains filtered or unexported fields */},
	ProjectKey:                        whereHelperstring{/* contains filtered or unexported fields */},
	Name:                              whereHelperstring{/* contains filtered or unexported fields */},
	ChartEnabled:                      whereHelperbool{/* contains filtered or unexported fields */},
	SubtaskingEnabled:                 whereHelperbool{/* contains filtered or unexported fields */},
	ProjectLeaderCanEditProjectLeader: whereHelperbool{/* contains filtered or unexported fields */},
	TextFormattingRule:                whereHelperstring{/* contains filtered or unexported fields */},
	Archived:                          whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt:                         whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:                         whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Issue         string
	IssueType     string
	Priority      string
	Project       string
	ProjectStatus string
	User          string
	Wiki          string
}{
	Issue:         "issue",
	IssueType:     "issue_type",
	Priority:      "priority",
	Project:       "project",
	ProjectStatus: "project_status",
	User:          "user",
	Wiki:          "wiki",
}
View Source
var UserColumns = struct {
	ID             string
	UserID         string
	Name           string
	RoleType       string
	Language       string
	Email          string
	NulabAccountID string
	IsMyself       string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "id",
	UserID:         "user_id",
	Name:           "name",
	RoleType:       "role_type",
	Language:       "language",
	Email:          "email",
	NulabAccountID: "nulab_account_id",
	IsMyself:       "is_myself",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID             whereHelperint64
	UserID         whereHelperstring
	Name           whereHelperstring
	RoleType       whereHelperint64
	Language       whereHelperstring
	Email          whereHelperstring
	NulabAccountID whereHelpernull_Int64
	IsMyself       whereHelperbool
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	UserID:         whereHelperstring{/* contains filtered or unexported fields */},
	Name:           whereHelperstring{/* contains filtered or unexported fields */},
	RoleType:       whereHelperint64{/* contains filtered or unexported fields */},
	Language:       whereHelperstring{/* contains filtered or unexported fields */},
	Email:          whereHelperstring{/* contains filtered or unexported fields */},
	NulabAccountID: whereHelpernull_Int64{/* contains filtered or unexported fields */},
	IsMyself:       whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var WikiColumns = struct {
	ID            string
	ProjectID     string
	Name          string
	Content       string
	CreatedUserID string
	UpdatedUserID string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "id",
	ProjectID:     "project_id",
	Name:          "name",
	Content:       "content",
	CreatedUserID: "created_user_id",
	UpdatedUserID: "updated_user_id",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var WikiRels = struct {
}{}

WikiRels is where relationship names are stored.

View Source
var WikiWhere = struct {
	ID            whereHelperint64
	ProjectID     whereHelperint64
	Name          whereHelperstring
	Content       whereHelperstring
	CreatedUserID whereHelperint64
	UpdatedUserID whereHelperint64
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	ProjectID:     whereHelperint64{/* contains filtered or unexported fields */},
	Name:          whereHelperstring{/* contains filtered or unexported fields */},
	Content:       whereHelperstring{/* contains filtered or unexported fields */},
	CreatedUserID: whereHelperint64{/* contains filtered or unexported fields */},
	UpdatedUserID: whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}

Functions

func AddIssueHook

func AddIssueHook(hookPoint boil.HookPoint, issueHook IssueHook)

AddIssueHook registers your hook function for all future operations.

func AddIssueTypeHook

func AddIssueTypeHook(hookPoint boil.HookPoint, issueTypeHook IssueTypeHook)

AddIssueTypeHook registers your hook function for all future operations.

func AddPriorityHook

func AddPriorityHook(hookPoint boil.HookPoint, priorityHook PriorityHook)

AddPriorityHook registers your hook function for all future operations.

func AddProjectHook

func AddProjectHook(hookPoint boil.HookPoint, projectHook ProjectHook)

AddProjectHook registers your hook function for all future operations.

func AddProjectStatusHook

func AddProjectStatusHook(hookPoint boil.HookPoint, projectStatusHook ProjectStatusHook)

AddProjectStatusHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func AddWikiHook added in v0.1.1

func AddWikiHook(hookPoint boil.HookPoint, wikiHook WikiHook)

AddWikiHook registers your hook function for all future operations.

func IssueExists

func IssueExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

IssueExists checks if the Issue row exists.

func IssueTypeExists

func IssueTypeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

IssueTypeExists checks if the IssueType row exists.

func IssueTypes

func IssueTypes(mods ...qm.QueryMod) issueTypeQuery

IssueTypes retrieves all the records using an executor.

func Issues

func Issues(mods ...qm.QueryMod) issueQuery

Issues retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func Priorities

func Priorities(mods ...qm.QueryMod) priorityQuery

Priorities retrieves all the records using an executor.

func PriorityExists

func PriorityExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

PriorityExists checks if the Priority row exists.

func ProjectExists

func ProjectExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

ProjectExists checks if the Project row exists.

func ProjectStatusExists

func ProjectStatusExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

ProjectStatusExists checks if the ProjectStatus row exists.

func ProjectStatuses

func ProjectStatuses(mods ...qm.QueryMod) projectStatusQuery

ProjectStatuses retrieves all the records using an executor.

func Projects

func Projects(mods ...qm.QueryMod) projectQuery

Projects retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

UserExists checks if the User row exists.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

func WikiExists added in v0.1.1

func WikiExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

WikiExists checks if the Wiki row exists.

func Wikis added in v0.1.1

func Wikis(mods ...qm.QueryMod) wikiQuery

Wikis retrieves all the records using an executor.

Types

type Issue

type Issue struct {
	ID             int64        `boil:"id" json:"id" toml:"id" yaml:"id"`
	ProjectID      null.Int64   `boil:"project_id" json:"project_id,omitempty" toml:"project_id" yaml:"project_id,omitempty"`
	IssueKey       string       `boil:"issue_key" json:"issue_key" toml:"issue_key" yaml:"issue_key"`
	KeyID          int64        `boil:"key_id" json:"key_id" toml:"key_id" yaml:"key_id"`
	IssueTypeID    null.Int64   `boil:"issue_type_id" json:"issue_type_id,omitempty" toml:"issue_type_id" yaml:"issue_type_id,omitempty"`
	Summary        string       `boil:"summary" json:"summary" toml:"summary" yaml:"summary"`
	Description    string       `boil:"description" json:"description" toml:"description" yaml:"description"`
	ResolutionID   null.Int64   `boil:"resolution_id" json:"resolution_id,omitempty" toml:"resolution_id" yaml:"resolution_id,omitempty"`
	PriorityID     null.Int64   `boil:"priority_id" json:"priority_id,omitempty" toml:"priority_id" yaml:"priority_id,omitempty"`
	StatusID       null.Int64   `boil:"status_id" json:"status_id,omitempty" toml:"status_id" yaml:"status_id,omitempty"`
	AssigneeID     null.Int64   `boil:"assignee_id" json:"assignee_id,omitempty" toml:"assignee_id" yaml:"assignee_id,omitempty"`
	StartDate      null.Time    `boil:"start_date" json:"start_date,omitempty" toml:"start_date" yaml:"start_date,omitempty"`
	DueDate        null.Time    `boil:"due_date" json:"due_date,omitempty" toml:"due_date" yaml:"due_date,omitempty"`
	EstimatedHours null.Float64 `boil:"estimated_hours" json:"estimated_hours,omitempty" toml:"estimated_hours" yaml:"estimated_hours,omitempty"`
	ActualHours    null.Float64 `boil:"actual_hours" json:"actual_hours,omitempty" toml:"actual_hours" yaml:"actual_hours,omitempty"`
	ParentIssueID  null.Int64   `boil:"parent_issue_id" json:"parent_issue_id,omitempty" toml:"parent_issue_id" yaml:"parent_issue_id,omitempty"`
	CreatedUserID  int64        `boil:"created_user_id" json:"created_user_id" toml:"created_user_id" yaml:"created_user_id"`
	UpdatedUserID  int64        `boil:"updated_user_id" json:"updated_user_id" toml:"updated_user_id" yaml:"updated_user_id"`
	CreatedAt      time.Time    `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time    `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *issueR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L issueL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Issue is an object representing the database table.

func FindIssue

func FindIssue(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Issue, error)

FindIssue retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Issue) Delete

func (o *Issue) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Issue record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Issue) Insert

func (o *Issue) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Issue) Reload

func (o *Issue) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Issue) Update

func (o *Issue) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Issue. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type IssueHook

type IssueHook func(context.Context, boil.ContextExecutor, *Issue) error

IssueHook is the signature for custom Issue hook methods

type IssueSlice

type IssueSlice []*Issue

IssueSlice is an alias for a slice of pointers to Issue. This should generally be used opposed to []Issue.

func (IssueSlice) DeleteAll

func (o IssueSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*IssueSlice) ReloadAll

func (o *IssueSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (IssueSlice) UpdateAll

func (o IssueSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type IssueType

type IssueType struct {
	ID           int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	ProjectID    int64     `boil:"project_id" json:"project_id" toml:"project_id" yaml:"project_id"`
	Name         string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Color        string    `boil:"color" json:"color" toml:"color" yaml:"color"`
	DisplayOrder int64     `boil:"display_order" json:"display_order" toml:"display_order" yaml:"display_order"`
	CreatedAt    time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt    time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *issueTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L issueTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

IssueType is an object representing the database table.

func FindIssueType

func FindIssueType(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*IssueType, error)

FindIssueType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*IssueType) Delete

func (o *IssueType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single IssueType record with an executor. Delete will match against the primary key column to find the record to delete.

func (*IssueType) Insert

func (o *IssueType) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*IssueType) Reload

func (o *IssueType) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*IssueType) Update

func (o *IssueType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the IssueType. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type IssueTypeHook

type IssueTypeHook func(context.Context, boil.ContextExecutor, *IssueType) error

IssueTypeHook is the signature for custom IssueType hook methods

type IssueTypeSlice

type IssueTypeSlice []*IssueType

IssueTypeSlice is an alias for a slice of pointers to IssueType. This should generally be used opposed to []IssueType.

func (IssueTypeSlice) DeleteAll

func (o IssueTypeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*IssueTypeSlice) ReloadAll

func (o *IssueTypeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (IssueTypeSlice) UpdateAll

func (o IssueTypeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Priority

type Priority struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *priorityR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L priorityL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Priority is an object representing the database table.

func FindPriority

func FindPriority(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Priority, error)

FindPriority retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Priority) Delete

func (o *Priority) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Priority record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Priority) Insert

func (o *Priority) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Priority) Reload

func (o *Priority) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Priority) Update

func (o *Priority) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Priority. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type PriorityHook

type PriorityHook func(context.Context, boil.ContextExecutor, *Priority) error

PriorityHook is the signature for custom Priority hook methods

type PrioritySlice

type PrioritySlice []*Priority

PrioritySlice is an alias for a slice of pointers to Priority. This should generally be used opposed to []Priority.

func (PrioritySlice) DeleteAll

func (o PrioritySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*PrioritySlice) ReloadAll

func (o *PrioritySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (PrioritySlice) UpdateAll

func (o PrioritySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Project

type Project struct {
	ID                                int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	ProjectKey                        string    `boil:"project_key" json:"project_key" toml:"project_key" yaml:"project_key"`
	Name                              string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	ChartEnabled                      bool      `boil:"chart_enabled" json:"chart_enabled" toml:"chart_enabled" yaml:"chart_enabled"`
	SubtaskingEnabled                 bool      `boil:"subtasking_enabled" json:"subtasking_enabled" toml:"subtasking_enabled" yaml:"subtasking_enabled"`
	ProjectLeaderCanEditProjectLeader bool      `` /* 183-byte string literal not displayed */
	TextFormattingRule                string    `boil:"text_formatting_rule" json:"text_formatting_rule" toml:"text_formatting_rule" yaml:"text_formatting_rule"`
	Archived                          bool      `boil:"archived" json:"archived" toml:"archived" yaml:"archived"`
	CreatedAt                         time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt                         time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *projectR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L projectL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Project is an object representing the database table.

func FindProject

func FindProject(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Project, error)

FindProject retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Project) Delete

func (o *Project) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Project record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Project) Insert

func (o *Project) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Project) Reload

func (o *Project) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Project) Update

func (o *Project) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Project. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type ProjectHook

type ProjectHook func(context.Context, boil.ContextExecutor, *Project) error

ProjectHook is the signature for custom Project hook methods

type ProjectSlice

type ProjectSlice []*Project

ProjectSlice is an alias for a slice of pointers to Project. This should generally be used opposed to []Project.

func (ProjectSlice) DeleteAll

func (o ProjectSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ProjectSlice) ReloadAll

func (o *ProjectSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ProjectSlice) UpdateAll

func (o ProjectSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type ProjectStatus

type ProjectStatus struct {
	ID           int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	ProjectID    int64     `boil:"project_id" json:"project_id" toml:"project_id" yaml:"project_id"`
	Name         string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Color        string    `boil:"color" json:"color" toml:"color" yaml:"color"`
	DisplayOrder int64     `boil:"display_order" json:"display_order" toml:"display_order" yaml:"display_order"`
	CreatedAt    time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt    time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *projectStatusR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L projectStatusL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ProjectStatus is an object representing the database table.

func FindProjectStatus

func FindProjectStatus(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ProjectStatus, error)

FindProjectStatus retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*ProjectStatus) Delete

func (o *ProjectStatus) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single ProjectStatus record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ProjectStatus) Insert

func (o *ProjectStatus) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ProjectStatus) Reload

func (o *ProjectStatus) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ProjectStatus) Update

func (o *ProjectStatus) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the ProjectStatus. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type ProjectStatusHook

type ProjectStatusHook func(context.Context, boil.ContextExecutor, *ProjectStatus) error

ProjectStatusHook is the signature for custom ProjectStatus hook methods

type ProjectStatusSlice

type ProjectStatusSlice []*ProjectStatus

ProjectStatusSlice is an alias for a slice of pointers to ProjectStatus. This should generally be used opposed to []ProjectStatus.

func (ProjectStatusSlice) DeleteAll

func (o ProjectStatusSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ProjectStatusSlice) ReloadAll

func (o *ProjectStatusSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ProjectStatusSlice) UpdateAll

func (o ProjectStatusSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type User

type User struct {
	ID             int64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID         string     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Name           string     `boil:"name" json:"name" toml:"name" yaml:"name"`
	RoleType       int64      `boil:"role_type" json:"role_type" toml:"role_type" yaml:"role_type"`
	Language       string     `boil:"language" json:"language" toml:"language" yaml:"language"`
	Email          string     `boil:"email" json:"email" toml:"email" yaml:"email"`
	NulabAccountID null.Int64 `boil:"nulab_account_id" json:"nulab_account_id,omitempty" toml:"nulab_account_id" yaml:"nulab_account_id,omitempty"`
	IsMyself       bool       `boil:"is_myself" json:"is_myself" toml:"is_myself" yaml:"is_myself"`
	CreatedAt      time.Time  `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time  `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) Insert

func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) Update

func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Wiki added in v0.1.1

type Wiki struct {
	ID            int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	ProjectID     int64     `boil:"project_id" json:"project_id" toml:"project_id" yaml:"project_id"`
	Name          string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Content       string    `boil:"content" json:"content" toml:"content" yaml:"content"`
	CreatedUserID int64     `boil:"created_user_id" json:"created_user_id" toml:"created_user_id" yaml:"created_user_id"`
	UpdatedUserID int64     `boil:"updated_user_id" json:"updated_user_id" toml:"updated_user_id" yaml:"updated_user_id"`
	CreatedAt     time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt     time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *wikiR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L wikiL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Wiki is an object representing the database table.

func FindWiki added in v0.1.1

func FindWiki(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Wiki, error)

FindWiki retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Wiki) Delete added in v0.1.1

func (o *Wiki) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Wiki record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Wiki) Insert added in v0.1.1

func (o *Wiki) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Wiki) Reload added in v0.1.1

func (o *Wiki) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Wiki) Update added in v0.1.1

func (o *Wiki) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Wiki. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

type WikiHook added in v0.1.1

type WikiHook func(context.Context, boil.ContextExecutor, *Wiki) error

WikiHook is the signature for custom Wiki hook methods

type WikiSlice added in v0.1.1

type WikiSlice []*Wiki

WikiSlice is an alias for a slice of pointers to Wiki. This should generally be used opposed to []Wiki.

func (WikiSlice) DeleteAll added in v0.1.1

func (o WikiSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*WikiSlice) ReloadAll added in v0.1.1

func (o *WikiSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (WikiSlice) UpdateAll added in v0.1.1

func (o WikiSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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