models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssignmentColumns = struct {
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
	AssignmentID string
	PoolID       string
	FrontendID   string
	TenantID     string
}{
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	DeletedAt:    "deleted_at",
	AssignmentID: "assignment_id",
	PoolID:       "pool_id",
	FrontendID:   "frontend_id",
	TenantID:     "tenant_id",
}
View Source
var AssignmentRels = struct {
	Pool     string
	Frontend string
}{
	Pool:     "Pool",
	Frontend: "Frontend",
}

AssignmentRels is where relationship names are stored.

View Source
var AssignmentTableColumns = struct {
	CreatedAt    string
	UpdatedAt    string
	DeletedAt    string
	AssignmentID string
	PoolID       string
	FrontendID   string
	TenantID     string
}{
	CreatedAt:    "assignments.created_at",
	UpdatedAt:    "assignments.updated_at",
	DeletedAt:    "assignments.deleted_at",
	AssignmentID: "assignments.assignment_id",
	PoolID:       "assignments.pool_id",
	FrontendID:   "assignments.frontend_id",
	TenantID:     "assignments.tenant_id",
}
View Source
var AssignmentWhere = struct {
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
	DeletedAt    whereHelpernull_Time
	AssignmentID whereHelperstring
	PoolID       whereHelperstring
	FrontendID   whereHelperstring
	TenantID     whereHelperstring
}{
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	AssignmentID: whereHelperstring{/* contains filtered or unexported fields */},
	PoolID:       whereHelperstring{/* contains filtered or unexported fields */},
	FrontendID:   whereHelperstring{/* contains filtered or unexported fields */},
	TenantID:     whereHelperstring{/* contains filtered or unexported fields */},
}
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 FrontendColumns = struct {
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
	FrontendID     string
	LoadBalancerID string
	TenantID       string
	Port           string
	AfInet         string
	DisplayName    string
	Slug           string
	StateChangedAt string
	CurrentState   string
	PreviousState  string
}{
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	DeletedAt:      "deleted_at",
	FrontendID:     "frontend_id",
	LoadBalancerID: "load_balancer_id",
	TenantID:       "tenant_id",
	Port:           "port",
	AfInet:         "af_inet",
	DisplayName:    "display_name",
	Slug:           "slug",
	StateChangedAt: "state_changed_at",
	CurrentState:   "current_state",
	PreviousState:  "previous_state",
}
View Source
var FrontendRels = struct {
	LoadBalancer string
	Assignments  string
}{
	LoadBalancer: "LoadBalancer",
	Assignments:  "Assignments",
}

FrontendRels is where relationship names are stored.

View Source
var FrontendTableColumns = struct {
	CreatedAt      string
	UpdatedAt      string
	DeletedAt      string
	FrontendID     string
	LoadBalancerID string
	TenantID       string
	Port           string
	AfInet         string
	DisplayName    string
	Slug           string
	StateChangedAt string
	CurrentState   string
	PreviousState  string
}{
	CreatedAt:      "frontends.created_at",
	UpdatedAt:      "frontends.updated_at",
	DeletedAt:      "frontends.deleted_at",
	FrontendID:     "frontends.frontend_id",
	LoadBalancerID: "frontends.load_balancer_id",
	TenantID:       "frontends.tenant_id",
	Port:           "frontends.port",
	AfInet:         "frontends.af_inet",
	DisplayName:    "frontends.display_name",
	Slug:           "frontends.slug",
	StateChangedAt: "frontends.state_changed_at",
	CurrentState:   "frontends.current_state",
	PreviousState:  "frontends.previous_state",
}
View Source
var FrontendWhere = struct {
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	DeletedAt      whereHelpernull_Time
	FrontendID     whereHelperstring
	LoadBalancerID whereHelperstring
	TenantID       whereHelperstring
	Port           whereHelperint64
	AfInet         whereHelperstring
	DisplayName    whereHelperstring
	Slug           whereHelperstring
	StateChangedAt whereHelpernull_Time
	CurrentState   whereHelperstring
	PreviousState  whereHelperstring
}{
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
	FrontendID:     whereHelperstring{/* contains filtered or unexported fields */},
	LoadBalancerID: whereHelperstring{/* contains filtered or unexported fields */},
	TenantID:       whereHelperstring{/* contains filtered or unexported fields */},
	Port:           whereHelperint64{/* contains filtered or unexported fields */},
	AfInet:         whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName:    whereHelperstring{/* contains filtered or unexported fields */},
	Slug:           whereHelperstring{/* contains filtered or unexported fields */},
	StateChangedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	CurrentState:   whereHelperstring{/* contains filtered or unexported fields */},
	PreviousState:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var GooseDBVersionColumns = struct {
	ID        string
	VersionID string
	IsApplied string
	Tstamp    string
}{
	ID:        "id",
	VersionID: "version_id",
	IsApplied: "is_applied",
	Tstamp:    "tstamp",
}
View Source
var GooseDBVersionRels = struct {
}{}

GooseDBVersionRels is where relationship names are stored.

View Source
var GooseDBVersionTableColumns = struct {
	ID        string
	VersionID string
	IsApplied string
	Tstamp    string
}{
	ID:        "goose_db_version.id",
	VersionID: "goose_db_version.version_id",
	IsApplied: "goose_db_version.is_applied",
	Tstamp:    "goose_db_version.tstamp",
}
View Source
var GooseDBVersionWhere = struct {
	ID        whereHelperint64
	VersionID whereHelperint64
	IsApplied whereHelperbool
	Tstamp    whereHelpernull_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	VersionID: whereHelperint64{/* contains filtered or unexported fields */},
	IsApplied: whereHelperbool{/* contains filtered or unexported fields */},
	Tstamp:    whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var LoadBalancerColumns = struct {
	CreatedAt        string
	UpdatedAt        string
	DeletedAt        string
	LoadBalancerID   string
	LocationID       string
	TenantID         string
	IPAddr           string
	DisplayName      string
	Slug             string
	LoadBalancerSize string
	LoadBalancerType string
	StateChangedAt   string
	CurrentState     string
	PreviousState    string
}{
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
	DeletedAt:        "deleted_at",
	LoadBalancerID:   "load_balancer_id",
	LocationID:       "location_id",
	TenantID:         "tenant_id",
	IPAddr:           "ip_addr",
	DisplayName:      "display_name",
	Slug:             "slug",
	LoadBalancerSize: "load_balancer_size",
	LoadBalancerType: "load_balancer_type",
	StateChangedAt:   "state_changed_at",
	CurrentState:     "current_state",
	PreviousState:    "previous_state",
}
View Source
var LoadBalancerRels = struct {
	Frontends string
}{
	Frontends: "Frontends",
}

LoadBalancerRels is where relationship names are stored.

View Source
var LoadBalancerTableColumns = struct {
	CreatedAt        string
	UpdatedAt        string
	DeletedAt        string
	LoadBalancerID   string
	LocationID       string
	TenantID         string
	IPAddr           string
	DisplayName      string
	Slug             string
	LoadBalancerSize string
	LoadBalancerType string
	StateChangedAt   string
	CurrentState     string
	PreviousState    string
}{
	CreatedAt:        "load_balancers.created_at",
	UpdatedAt:        "load_balancers.updated_at",
	DeletedAt:        "load_balancers.deleted_at",
	LoadBalancerID:   "load_balancers.load_balancer_id",
	LocationID:       "load_balancers.location_id",
	TenantID:         "load_balancers.tenant_id",
	IPAddr:           "load_balancers.ip_addr",
	DisplayName:      "load_balancers.display_name",
	Slug:             "load_balancers.slug",
	LoadBalancerSize: "load_balancers.load_balancer_size",
	LoadBalancerType: "load_balancers.load_balancer_type",
	StateChangedAt:   "load_balancers.state_changed_at",
	CurrentState:     "load_balancers.current_state",
	PreviousState:    "load_balancers.previous_state",
}
View Source
var LoadBalancerWhere = struct {
	CreatedAt        whereHelpertime_Time
	UpdatedAt        whereHelpertime_Time
	DeletedAt        whereHelpernull_Time
	LoadBalancerID   whereHelperstring
	LocationID       whereHelperstring
	TenantID         whereHelperstring
	IPAddr           whereHelperstring
	DisplayName      whereHelperstring
	Slug             whereHelperstring
	LoadBalancerSize whereHelperstring
	LoadBalancerType whereHelperstring
	StateChangedAt   whereHelpernull_Time
	CurrentState     whereHelperstring
	PreviousState    whereHelperstring
}{
	CreatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:        whereHelpernull_Time{/* contains filtered or unexported fields */},
	LoadBalancerID:   whereHelperstring{/* contains filtered or unexported fields */},
	LocationID:       whereHelperstring{/* contains filtered or unexported fields */},
	TenantID:         whereHelperstring{/* contains filtered or unexported fields */},
	IPAddr:           whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName:      whereHelperstring{/* contains filtered or unexported fields */},
	Slug:             whereHelperstring{/* contains filtered or unexported fields */},
	LoadBalancerSize: whereHelperstring{/* contains filtered or unexported fields */},
	LoadBalancerType: whereHelperstring{/* contains filtered or unexported fields */},
	StateChangedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	CurrentState:     whereHelperstring{/* contains filtered or unexported fields */},
	PreviousState:    whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var OriginColumns = struct {
	CreatedAt                 string
	UpdatedAt                 string
	DeletedAt                 string
	OriginID                  string
	PoolID                    string
	OriginTarget              string
	Port                      string
	TenantID                  string
	DisplayName               string
	Slug                      string
	OriginUserSettingDisabled string
	StateChangedAt            string
	CurrentState              string
	PreviousState             string
}{
	CreatedAt:                 "created_at",
	UpdatedAt:                 "updated_at",
	DeletedAt:                 "deleted_at",
	OriginID:                  "origin_id",
	PoolID:                    "pool_id",
	OriginTarget:              "origin_target",
	Port:                      "port",
	TenantID:                  "tenant_id",
	DisplayName:               "display_name",
	Slug:                      "slug",
	OriginUserSettingDisabled: "origin_user_setting_disabled",
	StateChangedAt:            "state_changed_at",
	CurrentState:              "current_state",
	PreviousState:             "previous_state",
}
View Source
var OriginRels = struct {
	Pool string
}{
	Pool: "Pool",
}

OriginRels is where relationship names are stored.

View Source
var OriginTableColumns = struct {
	CreatedAt                 string
	UpdatedAt                 string
	DeletedAt                 string
	OriginID                  string
	PoolID                    string
	OriginTarget              string
	Port                      string
	TenantID                  string
	DisplayName               string
	Slug                      string
	OriginUserSettingDisabled string
	StateChangedAt            string
	CurrentState              string
	PreviousState             string
}{
	CreatedAt:                 "origins.created_at",
	UpdatedAt:                 "origins.updated_at",
	DeletedAt:                 "origins.deleted_at",
	OriginID:                  "origins.origin_id",
	PoolID:                    "origins.pool_id",
	OriginTarget:              "origins.origin_target",
	Port:                      "origins.port",
	TenantID:                  "origins.tenant_id",
	DisplayName:               "origins.display_name",
	Slug:                      "origins.slug",
	OriginUserSettingDisabled: "origins.origin_user_setting_disabled",
	StateChangedAt:            "origins.state_changed_at",
	CurrentState:              "origins.current_state",
	PreviousState:             "origins.previous_state",
}
View Source
var OriginWhere = struct {
	CreatedAt                 whereHelpertime_Time
	UpdatedAt                 whereHelpertime_Time
	DeletedAt                 whereHelpernull_Time
	OriginID                  whereHelperstring
	PoolID                    whereHelperstring
	OriginTarget              whereHelperstring
	Port                      whereHelperint64
	TenantID                  whereHelperstring
	DisplayName               whereHelperstring
	Slug                      whereHelperstring
	OriginUserSettingDisabled whereHelperbool
	StateChangedAt            whereHelpernull_Time
	CurrentState              whereHelperstring
	PreviousState             whereHelperstring
}{
	CreatedAt:                 whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:                 whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:                 whereHelpernull_Time{/* contains filtered or unexported fields */},
	OriginID:                  whereHelperstring{/* contains filtered or unexported fields */},
	PoolID:                    whereHelperstring{/* contains filtered or unexported fields */},
	OriginTarget:              whereHelperstring{/* contains filtered or unexported fields */},
	Port:                      whereHelperint64{/* contains filtered or unexported fields */},
	TenantID:                  whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName:               whereHelperstring{/* contains filtered or unexported fields */},
	Slug:                      whereHelperstring{/* contains filtered or unexported fields */},
	OriginUserSettingDisabled: whereHelperbool{/* contains filtered or unexported fields */},
	StateChangedAt:            whereHelpernull_Time{/* contains filtered or unexported fields */},
	CurrentState:              whereHelperstring{/* contains filtered or unexported fields */},
	PreviousState:             whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var PoolColumns = struct {
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
	PoolID      string
	Protocol    string
	DisplayName string
	Slug        string
	TenantID    string
}{
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
	PoolID:      "pool_id",
	Protocol:    "protocol",
	DisplayName: "display_name",
	Slug:        "slug",
	TenantID:    "tenant_id",
}
View Source
var PoolRels = struct {
	Assignments string
	Origins     string
}{
	Assignments: "Assignments",
	Origins:     "Origins",
}

PoolRels is where relationship names are stored.

View Source
var PoolTableColumns = struct {
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
	PoolID      string
	Protocol    string
	DisplayName string
	Slug        string
	TenantID    string
}{
	CreatedAt:   "pools.created_at",
	UpdatedAt:   "pools.updated_at",
	DeletedAt:   "pools.deleted_at",
	PoolID:      "pools.pool_id",
	Protocol:    "pools.protocol",
	DisplayName: "pools.display_name",
	Slug:        "pools.slug",
	TenantID:    "pools.tenant_id",
}
View Source
var PoolWhere = struct {
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
	DeletedAt   whereHelpernull_Time
	PoolID      whereHelperstring
	Protocol    whereHelperstring
	DisplayName whereHelperstring
	Slug        whereHelperstring
	TenantID    whereHelperstring
}{
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	PoolID:      whereHelperstring{/* contains filtered or unexported fields */},
	Protocol:    whereHelperstring{/* contains filtered or unexported fields */},
	DisplayName: whereHelperstring{/* contains filtered or unexported fields */},
	Slug:        whereHelperstring{/* contains filtered or unexported fields */},
	TenantID:    whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Assignments    string
	Frontends      string
	GooseDBVersion string
	LoadBalancers  string
	Origins        string
	Pools          string
}{
	Assignments:    "assignments",
	Frontends:      "frontends",
	GooseDBVersion: "goose_db_version",
	LoadBalancers:  "load_balancers",
	Origins:        "origins",
	Pools:          "pools",
}
View Source
var ViewNames = struct {
}{}

Functions

func AddAssignmentHook

func AddAssignmentHook(hookPoint boil.HookPoint, assignmentHook AssignmentHook)

AddAssignmentHook registers your hook function for all future operations.

func AddFrontendHook

func AddFrontendHook(hookPoint boil.HookPoint, frontendHook FrontendHook)

AddFrontendHook registers your hook function for all future operations.

func AddGooseDBVersionHook

func AddGooseDBVersionHook(hookPoint boil.HookPoint, gooseDBVersionHook GooseDBVersionHook)

AddGooseDBVersionHook registers your hook function for all future operations.

func AddLoadBalancerHook

func AddLoadBalancerHook(hookPoint boil.HookPoint, loadBalancerHook LoadBalancerHook)

AddLoadBalancerHook registers your hook function for all future operations.

func AddOriginHook

func AddOriginHook(hookPoint boil.HookPoint, originHook OriginHook)

AddOriginHook registers your hook function for all future operations.

func AddPoolHook

func AddPoolHook(hookPoint boil.HookPoint, poolHook PoolHook)

AddPoolHook registers your hook function for all future operations.

func AssignmentExists

func AssignmentExists(ctx context.Context, exec boil.ContextExecutor, assignmentID string) (bool, error)

AssignmentExists checks if the Assignment row exists.

func Assignments

func Assignments(mods ...qm.QueryMod) assignmentQuery

Assignments retrieves all the records using an executor.

func FrontendExists

func FrontendExists(ctx context.Context, exec boil.ContextExecutor, frontendID string) (bool, error)

FrontendExists checks if the Frontend row exists.

func Frontends

func Frontends(mods ...qm.QueryMod) frontendQuery

Frontends retrieves all the records using an executor.

func GooseDBVersionExists

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

GooseDBVersionExists checks if the GooseDBVersion row exists.

func GooseDBVersions

func GooseDBVersions(mods ...qm.QueryMod) gooseDBVersionQuery

GooseDBVersions retrieves all the records using an executor.

func LoadBalancerExists

func LoadBalancerExists(ctx context.Context, exec boil.ContextExecutor, loadBalancerID string) (bool, error)

LoadBalancerExists checks if the LoadBalancer row exists.

func LoadBalancers

func LoadBalancers(mods ...qm.QueryMod) loadBalancerQuery

LoadBalancers 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 OriginExists

func OriginExists(ctx context.Context, exec boil.ContextExecutor, originID string) (bool, error)

OriginExists checks if the Origin row exists.

func Origins

func Origins(mods ...qm.QueryMod) originQuery

Origins retrieves all the records using an executor.

func PoolExists

func PoolExists(ctx context.Context, exec boil.ContextExecutor, poolID string) (bool, error)

PoolExists checks if the Pool row exists.

func Pools

func Pools(mods ...qm.QueryMod) poolQuery

Pools retrieves all the records using an executor.

Types

type Assignment

type Assignment struct {
	CreatedAt    time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt    time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt    null.Time `` /* 129-byte string literal not displayed */
	AssignmentID string    `` /* 127-byte string literal not displayed */
	PoolID       string    `query:"pool_id" param:"pool_id" boil:"pool_id" json:"pool_id" toml:"pool_id" yaml:"pool_id"`
	FrontendID   string    `query:"frontend_id" param:"frontend_id" boil:"frontend_id" json:"frontend_id" toml:"frontend_id" yaml:"frontend_id"`
	TenantID     string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`

	R *assignmentR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L assignmentL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Assignment is an object representing the database table.

func FindAssignment

func FindAssignment(ctx context.Context, exec boil.ContextExecutor, assignmentID string, selectCols ...string) (*Assignment, error)

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

func (*Assignment) Delete

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

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

func (*Assignment) Exists

func (o *Assignment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Assignment row exists.

func (*Assignment) Frontend

func (o *Assignment) Frontend(mods ...qm.QueryMod) frontendQuery

Frontend pointed to by the foreign key.

func (*Assignment) Insert

func (o *Assignment) 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 (*Assignment) Pool

func (o *Assignment) Pool(mods ...qm.QueryMod) poolQuery

Pool pointed to by the foreign key.

func (*Assignment) Reload

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

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

func (*Assignment) SetFrontend

func (o *Assignment) SetFrontend(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Frontend) error

SetFrontend of the assignment to the related item. Sets o.R.Frontend to related. Adds o to related.R.Assignments.

func (*Assignment) SetPool

func (o *Assignment) SetPool(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Pool) error

SetPool of the assignment to the related item. Sets o.R.Pool to related. Adds o to related.R.Assignments.

func (*Assignment) Update

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

Update uses an executor to update the Assignment. 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.

func (*Assignment) Upsert

func (o *Assignment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type AssignmentHook

type AssignmentHook func(context.Context, boil.ContextExecutor, *Assignment) error

AssignmentHook is the signature for custom Assignment hook methods

type AssignmentSlice

type AssignmentSlice []*Assignment

AssignmentSlice is an alias for a slice of pointers to Assignment. This should almost always be used instead of []Assignment.

func (AssignmentSlice) DeleteAll

func (o AssignmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AssignmentSlice) ReloadAll

func (o *AssignmentSlice) 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 (AssignmentSlice) UpdateAll

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

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

type Frontend

type Frontend struct {
	CreatedAt      time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      null.Time `` /* 129-byte string literal not displayed */
	FrontendID     string    `query:"frontend_id" param:"frontend_id" boil:"frontend_id" json:"frontend_id" toml:"frontend_id" yaml:"frontend_id"`
	LoadBalancerID string    `` /* 145-byte string literal not displayed */
	TenantID       string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`
	Port           int64     `query:"port" param:"port" boil:"port" json:"port" toml:"port" yaml:"port"`
	AfInet         string    `query:"af_inet" param:"af_inet" boil:"af_inet" json:"af_inet" toml:"af_inet" yaml:"af_inet"`
	DisplayName    string    `query:"display_name" param:"display_name" boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	Slug           string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	StateChangedAt null.Time `` /* 165-byte string literal not displayed */
	CurrentState   string    `` /* 127-byte string literal not displayed */
	PreviousState  string    `` /* 133-byte string literal not displayed */

	R *frontendR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L frontendL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Frontend is an object representing the database table.

func FindFrontend

func FindFrontend(ctx context.Context, exec boil.ContextExecutor, frontendID string, selectCols ...string) (*Frontend, error)

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

func (*Frontend) AddAssignments

func (o *Frontend) AddAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Assignment) error

AddAssignments adds the given related objects to the existing relationships of the frontend, optionally inserting them as new records. Appends related to o.R.Assignments. Sets related.R.Frontend appropriately.

func (*Frontend) Assignments

func (o *Frontend) Assignments(mods ...qm.QueryMod) assignmentQuery

Assignments retrieves all the assignment's Assignments with an executor.

func (*Frontend) Delete

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

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

func (*Frontend) Exists

func (o *Frontend) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Frontend row exists.

func (*Frontend) Insert

func (o *Frontend) 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 (*Frontend) LoadBalancer

func (o *Frontend) LoadBalancer(mods ...qm.QueryMod) loadBalancerQuery

LoadBalancer pointed to by the foreign key.

func (*Frontend) Reload

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

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

func (*Frontend) SetLoadBalancer

func (o *Frontend) SetLoadBalancer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *LoadBalancer) error

SetLoadBalancer of the frontend to the related item. Sets o.R.LoadBalancer to related. Adds o to related.R.Frontends.

func (*Frontend) Update

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

Update uses an executor to update the Frontend. 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.

func (*Frontend) Upsert

func (o *Frontend) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type FrontendHook

type FrontendHook func(context.Context, boil.ContextExecutor, *Frontend) error

FrontendHook is the signature for custom Frontend hook methods

type FrontendSlice

type FrontendSlice []*Frontend

FrontendSlice is an alias for a slice of pointers to Frontend. This should almost always be used instead of []Frontend.

func (FrontendSlice) DeleteAll

func (o FrontendSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*FrontendSlice) ReloadAll

func (o *FrontendSlice) 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 (FrontendSlice) UpdateAll

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

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

type GooseDBVersion

type GooseDBVersion struct {
	ID        int64     `query:"id" param:"id" boil:"id" json:"id" toml:"id" yaml:"id"`
	VersionID int64     `query:"version_id" param:"version_id" boil:"version_id" json:"version_id" toml:"version_id" yaml:"version_id"`
	IsApplied bool      `query:"is_applied" param:"is_applied" boil:"is_applied" json:"is_applied" toml:"is_applied" yaml:"is_applied"`
	Tstamp    null.Time `query:"tstamp" param:"tstamp" boil:"tstamp" json:"tstamp,omitempty" toml:"tstamp" yaml:"tstamp,omitempty"`

	R *gooseDBVersionR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L gooseDBVersionL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

GooseDBVersion is an object representing the database table.

func FindGooseDBVersion

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

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

func (*GooseDBVersion) Delete

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

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

func (*GooseDBVersion) Exists

func (o *GooseDBVersion) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the GooseDBVersion row exists.

func (*GooseDBVersion) Insert

func (o *GooseDBVersion) 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 (*GooseDBVersion) Reload

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

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

func (*GooseDBVersion) Update

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

Update uses an executor to update the GooseDBVersion. 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.

func (*GooseDBVersion) Upsert

func (o *GooseDBVersion) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GooseDBVersionHook

type GooseDBVersionHook func(context.Context, boil.ContextExecutor, *GooseDBVersion) error

GooseDBVersionHook is the signature for custom GooseDBVersion hook methods

type GooseDBVersionSlice

type GooseDBVersionSlice []*GooseDBVersion

GooseDBVersionSlice is an alias for a slice of pointers to GooseDBVersion. This should almost always be used instead of []GooseDBVersion.

func (GooseDBVersionSlice) DeleteAll

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

func (*GooseDBVersionSlice) ReloadAll

func (o *GooseDBVersionSlice) 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 (GooseDBVersionSlice) UpdateAll

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

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

type LoadBalancer

type LoadBalancer struct {
	CreatedAt        time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt        time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt        null.Time `` /* 129-byte string literal not displayed */
	LoadBalancerID   string    `` /* 145-byte string literal not displayed */
	LocationID       string    `query:"location_id" param:"location_id" boil:"location_id" json:"location_id" toml:"location_id" yaml:"location_id"`
	TenantID         string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`
	IPAddr           string    `query:"ip_addr" param:"ip_addr" boil:"ip_addr" json:"ip_addr" toml:"ip_addr" yaml:"ip_addr"`
	DisplayName      string    `query:"display_name" param:"display_name" boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	Slug             string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	LoadBalancerSize string    `` /* 157-byte string literal not displayed */
	LoadBalancerType string    `` /* 157-byte string literal not displayed */
	StateChangedAt   null.Time `` /* 165-byte string literal not displayed */
	CurrentState     string    `` /* 127-byte string literal not displayed */
	PreviousState    string    `` /* 133-byte string literal not displayed */

	R *loadBalancerR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L loadBalancerL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

LoadBalancer is an object representing the database table.

func FindLoadBalancer

func FindLoadBalancer(ctx context.Context, exec boil.ContextExecutor, loadBalancerID string, selectCols ...string) (*LoadBalancer, error)

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

func (*LoadBalancer) AddFrontends

func (o *LoadBalancer) AddFrontends(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Frontend) error

AddFrontends adds the given related objects to the existing relationships of the load_balancer, optionally inserting them as new records. Appends related to o.R.Frontends. Sets related.R.LoadBalancer appropriately.

func (*LoadBalancer) Delete

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

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

func (*LoadBalancer) Exists

func (o *LoadBalancer) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the LoadBalancer row exists.

func (*LoadBalancer) Frontends

func (o *LoadBalancer) Frontends(mods ...qm.QueryMod) frontendQuery

Frontends retrieves all the frontend's Frontends with an executor.

func (*LoadBalancer) Insert

func (o *LoadBalancer) 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 (*LoadBalancer) Reload

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

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

func (*LoadBalancer) Update

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

Update uses an executor to update the LoadBalancer. 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.

func (*LoadBalancer) Upsert

func (o *LoadBalancer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type LoadBalancerHook

type LoadBalancerHook func(context.Context, boil.ContextExecutor, *LoadBalancer) error

LoadBalancerHook is the signature for custom LoadBalancer hook methods

type LoadBalancerSlice

type LoadBalancerSlice []*LoadBalancer

LoadBalancerSlice is an alias for a slice of pointers to LoadBalancer. This should almost always be used instead of []LoadBalancer.

func (LoadBalancerSlice) DeleteAll

func (o LoadBalancerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*LoadBalancerSlice) ReloadAll

func (o *LoadBalancerSlice) 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 (LoadBalancerSlice) UpdateAll

func (o LoadBalancerSlice) 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 Origin

type Origin struct {
	CreatedAt                 time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt                 time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt                 null.Time `` /* 129-byte string literal not displayed */
	OriginID                  string    `query:"origin_id" param:"origin_id" boil:"origin_id" json:"origin_id" toml:"origin_id" yaml:"origin_id"`
	PoolID                    string    `query:"pool_id" param:"pool_id" boil:"pool_id" json:"pool_id" toml:"pool_id" yaml:"pool_id"`
	OriginTarget              string    `` /* 127-byte string literal not displayed */
	Port                      int64     `query:"port" param:"port" boil:"port" json:"port" toml:"port" yaml:"port"`
	TenantID                  string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`
	DisplayName               string    `query:"display_name" param:"display_name" boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	Slug                      string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	OriginUserSettingDisabled bool      `` /* 217-byte string literal not displayed */
	StateChangedAt            null.Time `` /* 165-byte string literal not displayed */
	CurrentState              string    `` /* 127-byte string literal not displayed */
	PreviousState             string    `` /* 133-byte string literal not displayed */

	R *originR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L originL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Origin is an object representing the database table.

func FindOrigin

func FindOrigin(ctx context.Context, exec boil.ContextExecutor, originID string, selectCols ...string) (*Origin, error)

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

func (*Origin) Delete

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

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

func (*Origin) Exists

func (o *Origin) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Origin row exists.

func (*Origin) Insert

func (o *Origin) 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 (*Origin) Pool

func (o *Origin) Pool(mods ...qm.QueryMod) poolQuery

Pool pointed to by the foreign key.

func (*Origin) Reload

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

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

func (*Origin) SetPool

func (o *Origin) SetPool(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Pool) error

SetPool of the origin to the related item. Sets o.R.Pool to related. Adds o to related.R.Origins.

func (*Origin) Update

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

Update uses an executor to update the Origin. 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.

func (*Origin) Upsert

func (o *Origin) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type OriginHook

type OriginHook func(context.Context, boil.ContextExecutor, *Origin) error

OriginHook is the signature for custom Origin hook methods

type OriginSlice

type OriginSlice []*Origin

OriginSlice is an alias for a slice of pointers to Origin. This should almost always be used instead of []Origin.

func (OriginSlice) DeleteAll

func (o OriginSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*OriginSlice) ReloadAll

func (o *OriginSlice) 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 (OriginSlice) UpdateAll

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

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

type Pool

type Pool struct {
	CreatedAt   time.Time `query:"created_at" param:"created_at" boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt   time.Time `query:"updated_at" param:"updated_at" boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt   null.Time `` /* 129-byte string literal not displayed */
	PoolID      string    `query:"pool_id" param:"pool_id" boil:"pool_id" json:"pool_id" toml:"pool_id" yaml:"pool_id"`
	Protocol    string    `query:"protocol" param:"protocol" boil:"protocol" json:"protocol" toml:"protocol" yaml:"protocol"`
	DisplayName string    `query:"display_name" param:"display_name" boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
	Slug        string    `query:"slug" param:"slug" boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	TenantID    string    `query:"tenant_id" param:"tenant_id" boil:"tenant_id" json:"tenant_id" toml:"tenant_id" yaml:"tenant_id"`

	R *poolR `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
	L poolL  `query:"-" param:"-" boil:"-" json:"-" toml:"-" yaml:"-"`
}

Pool is an object representing the database table.

func FindPool

func FindPool(ctx context.Context, exec boil.ContextExecutor, poolID string, selectCols ...string) (*Pool, error)

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

func (*Pool) AddAssignments

func (o *Pool) AddAssignments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Assignment) error

AddAssignments adds the given related objects to the existing relationships of the pool, optionally inserting them as new records. Appends related to o.R.Assignments. Sets related.R.Pool appropriately.

func (*Pool) AddOrigins

func (o *Pool) AddOrigins(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Origin) error

AddOrigins adds the given related objects to the existing relationships of the pool, optionally inserting them as new records. Appends related to o.R.Origins. Sets related.R.Pool appropriately.

func (*Pool) Assignments

func (o *Pool) Assignments(mods ...qm.QueryMod) assignmentQuery

Assignments retrieves all the assignment's Assignments with an executor.

func (*Pool) Delete

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

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

func (*Pool) Exists

func (o *Pool) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Pool row exists.

func (*Pool) Insert

func (o *Pool) 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 (*Pool) Origins

func (o *Pool) Origins(mods ...qm.QueryMod) originQuery

Origins retrieves all the origin's Origins with an executor.

func (*Pool) Reload

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

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

func (*Pool) Update

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

Update uses an executor to update the Pool. 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.

func (*Pool) Upsert

func (o *Pool) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type PoolHook

type PoolHook func(context.Context, boil.ContextExecutor, *Pool) error

PoolHook is the signature for custom Pool hook methods

type PoolSlice

type PoolSlice []*Pool

PoolSlice is an alias for a slice of pointers to Pool. This should almost always be used instead of []Pool.

func (PoolSlice) DeleteAll

func (o PoolSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*PoolSlice) ReloadAll

func (o *PoolSlice) 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 (PoolSlice) UpdateAll

func (o PoolSlice) 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