Documentation
¶
Index ¶
- Variables
- func AddServiceEndpointDependencyHook(hookPoint boil.HookPoint, ...)
- func AddServiceEndpointHook(hookPoint boil.HookPoint, serviceEndpointHook ServiceEndpointHook)
- func AddServiceHook(hookPoint boil.HookPoint, serviceHook ServiceHook)
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func ServiceEndpointDependencies(mods ...qm.QueryMod) serviceEndpointDependencyQuery
- func ServiceEndpointDependencyExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ServiceEndpointExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ServiceEndpoints(mods ...qm.QueryMod) serviceEndpointQuery
- func ServiceExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Services(mods ...qm.QueryMod) serviceQuery
- type M
- type Service
- func (o *Service) AddServiceEndpoints(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Service) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Service) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Service) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Service) ServiceEndpoints(mods ...qm.QueryMod) serviceEndpointQuery
- func (o *Service) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Service) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ServiceEndpoint
- func (o *ServiceEndpoint) AddDependencyServiceEndpointServiceEndpointDependencies(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ServiceEndpoint) AddServiceEndpointDependencies(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ServiceEndpoint) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ServiceEndpoint) DependencyServiceEndpointServiceEndpointDependencies(mods ...qm.QueryMod) serviceEndpointDependencyQuery
- func (o *ServiceEndpoint) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ServiceEndpoint) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServiceEndpoint) Service(mods ...qm.QueryMod) serviceQuery
- func (o *ServiceEndpoint) ServiceEndpointDependencies(mods ...qm.QueryMod) serviceEndpointDependencyQuery
- func (o *ServiceEndpoint) SetService(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Service) error
- func (o *ServiceEndpoint) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ServiceEndpoint) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ServiceEndpointDependency
- func (o *ServiceEndpointDependency) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ServiceEndpointDependency) DependencyServiceEndpoint(mods ...qm.QueryMod) serviceEndpointQuery
- func (o *ServiceEndpointDependency) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ServiceEndpointDependency) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ServiceEndpointDependency) ServiceEndpoint(mods ...qm.QueryMod) serviceEndpointQuery
- func (o *ServiceEndpointDependency) SetDependencyServiceEndpoint(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ServiceEndpointDependency) SetServiceEndpoint(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ServiceEndpointDependency) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ServiceEndpointDependency) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ServiceEndpointDependencyHook
- type ServiceEndpointDependencySlice
- func (o ServiceEndpointDependencySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ServiceEndpointDependencySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ServiceEndpointDependencySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ServiceEndpointHook
- type ServiceEndpointSlice
- func (o ServiceEndpointSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ServiceEndpointSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ServiceEndpointSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ServiceHook
- type ServiceSlice
Constants ¶
This section is empty.
Variables ¶
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.
var ServiceColumns = struct { ID string Code string Name string }{ ID: "id", Code: "code", Name: "name", }
var ServiceEndpointColumns = struct { ID string ServiceID string Code string Name string }{ ID: "id", ServiceID: "service_id", Code: "code", Name: "name", }
var ServiceEndpointDependencyColumns = struct { ID string ServiceEndpointID string DependencyServiceEndpointID string }{ ID: "id", ServiceEndpointID: "service_endpoint_id", DependencyServiceEndpointID: "dependency_service_endpoint_id", }
var ServiceEndpointDependencyRels = struct { DependencyServiceEndpoint string ServiceEndpoint string }{ DependencyServiceEndpoint: "DependencyServiceEndpoint", ServiceEndpoint: "ServiceEndpoint", }
ServiceEndpointDependencyRels is where relationship names are stored.
var ServiceEndpointDependencyWhere = struct { ID whereHelperint64 ServiceEndpointID whereHelperint64 DependencyServiceEndpointID whereHelperint64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, ServiceEndpointID: whereHelperint64{/* contains filtered or unexported fields */}, DependencyServiceEndpointID: whereHelperint64{/* contains filtered or unexported fields */}, }
var ServiceEndpointRels = struct { Service string DependencyServiceEndpointServiceEndpointDependencies string ServiceEndpointDependencies string }{ Service: "Service", DependencyServiceEndpointServiceEndpointDependencies: "DependencyServiceEndpointServiceEndpointDependencies", ServiceEndpointDependencies: "ServiceEndpointDependencies", }
ServiceEndpointRels is where relationship names are stored.
var ServiceEndpointWhere = struct { ID whereHelperint64 ServiceID whereHelperint64 Code whereHelperstring Name whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, ServiceID: whereHelperint64{/* contains filtered or unexported fields */}, Code: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var ServiceRels = struct { ServiceEndpoints string }{ ServiceEndpoints: "ServiceEndpoints", }
ServiceRels is where relationship names are stored.
var ServiceWhere = struct { ID whereHelperint64 Code whereHelperstring Name whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Code: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var TableNames = struct { Service string ServiceEndpoint string ServiceEndpointDependency string }{ Service: "service", ServiceEndpoint: "service_endpoint", ServiceEndpointDependency: "service_endpoint_dependency", }
Functions ¶
func AddServiceEndpointDependencyHook ¶
func AddServiceEndpointDependencyHook(hookPoint boil.HookPoint, serviceEndpointDependencyHook ServiceEndpointDependencyHook)
AddServiceEndpointDependencyHook registers your hook function for all future operations.
func AddServiceEndpointHook ¶
func AddServiceEndpointHook(hookPoint boil.HookPoint, serviceEndpointHook ServiceEndpointHook)
AddServiceEndpointHook registers your hook function for all future operations.
func AddServiceHook ¶
func AddServiceHook(hookPoint boil.HookPoint, serviceHook ServiceHook)
AddServiceHook registers your hook function for all future operations.
func ServiceEndpointDependencies ¶
ServiceEndpointDependencies retrieves all the records using an executor.
func ServiceEndpointDependencyExists ¶
func ServiceEndpointDependencyExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
ServiceEndpointDependencyExists checks if the ServiceEndpointDependency row exists.
func ServiceEndpointExists ¶
ServiceEndpointExists checks if the ServiceEndpoint row exists.
func ServiceEndpoints ¶
ServiceEndpoints retrieves all the records using an executor.
func ServiceExists ¶
ServiceExists checks if the Service row exists.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Service ¶
type Service struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Code string `boil:"code" json:"code" toml:"code" yaml:"code"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *serviceR `boil:"-" json:"-" toml:"-" yaml:"-"` L serviceL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Service is an object representing the database table.
func FindService ¶
func FindService(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Service, error)
FindService retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Service) AddServiceEndpoints ¶
func (o *Service) AddServiceEndpoints(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ServiceEndpoint) error
AddServiceEndpoints adds the given related objects to the existing relationships of the service, optionally inserting them as new records. Appends related to o.R.ServiceEndpoints. Sets related.R.Service appropriately.
func (*Service) Delete ¶
Delete deletes a single Service record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Service) Insert ¶
func (o *Service) 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 (*Service) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Service) ServiceEndpoints ¶
ServiceEndpoints retrieves all the service_endpoint's ServiceEndpoints with an executor.
func (*Service) Update ¶
func (o *Service) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Service. 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 (*Service) Upsert ¶
func (o *Service) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ServiceEndpoint ¶
type ServiceEndpoint struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` ServiceID int64 `boil:"service_id" json:"service_id" toml:"service_id" yaml:"service_id"` Code string `boil:"code" json:"code" toml:"code" yaml:"code"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *serviceEndpointR `boil:"-" json:"-" toml:"-" yaml:"-"` L serviceEndpointL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ServiceEndpoint is an object representing the database table.
func FindServiceEndpoint ¶
func FindServiceEndpoint(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ServiceEndpoint, error)
FindServiceEndpoint retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ServiceEndpoint) AddDependencyServiceEndpointServiceEndpointDependencies ¶
func (o *ServiceEndpoint) AddDependencyServiceEndpointServiceEndpointDependencies(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ServiceEndpointDependency) error
AddDependencyServiceEndpointServiceEndpointDependencies adds the given related objects to the existing relationships of the service_endpoint, optionally inserting them as new records. Appends related to o.R.DependencyServiceEndpointServiceEndpointDependencies. Sets related.R.DependencyServiceEndpoint appropriately.
func (*ServiceEndpoint) AddServiceEndpointDependencies ¶
func (o *ServiceEndpoint) AddServiceEndpointDependencies(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ServiceEndpointDependency) error
AddServiceEndpointDependencies adds the given related objects to the existing relationships of the service_endpoint, optionally inserting them as new records. Appends related to o.R.ServiceEndpointDependencies. Sets related.R.ServiceEndpoint appropriately.
func (*ServiceEndpoint) Delete ¶
func (o *ServiceEndpoint) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ServiceEndpoint record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ServiceEndpoint) DependencyServiceEndpointServiceEndpointDependencies ¶
func (o *ServiceEndpoint) DependencyServiceEndpointServiceEndpointDependencies(mods ...qm.QueryMod) serviceEndpointDependencyQuery
DependencyServiceEndpointServiceEndpointDependencies retrieves all the service_endpoint_dependency's ServiceEndpointDependencies with an executor via dependency_service_endpoint_id column.
func (*ServiceEndpoint) Insert ¶
func (o *ServiceEndpoint) 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 (*ServiceEndpoint) Reload ¶
func (o *ServiceEndpoint) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ServiceEndpoint) Service ¶
func (o *ServiceEndpoint) Service(mods ...qm.QueryMod) serviceQuery
Service pointed to by the foreign key.
func (*ServiceEndpoint) ServiceEndpointDependencies ¶
func (o *ServiceEndpoint) ServiceEndpointDependencies(mods ...qm.QueryMod) serviceEndpointDependencyQuery
ServiceEndpointDependencies retrieves all the service_endpoint_dependency's ServiceEndpointDependencies with an executor.
func (*ServiceEndpoint) SetService ¶
func (o *ServiceEndpoint) SetService(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Service) error
SetService of the serviceEndpoint to the related item. Sets o.R.Service to related. Adds o to related.R.ServiceEndpoints.
func (*ServiceEndpoint) Update ¶
func (o *ServiceEndpoint) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ServiceEndpoint. 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 (*ServiceEndpoint) Upsert ¶
func (o *ServiceEndpoint) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ServiceEndpointDependency ¶
type ServiceEndpointDependency struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` ServiceEndpointID int64 `boil:"service_endpoint_id" json:"service_endpoint_id" toml:"service_endpoint_id" yaml:"service_endpoint_id"` DependencyServiceEndpointID int64 `` /* 151-byte string literal not displayed */ R *serviceEndpointDependencyR `boil:"-" json:"-" toml:"-" yaml:"-"` L serviceEndpointDependencyL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ServiceEndpointDependency is an object representing the database table.
func FindServiceEndpointDependency ¶
func FindServiceEndpointDependency(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ServiceEndpointDependency, error)
FindServiceEndpointDependency retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ServiceEndpointDependency) Delete ¶
func (o *ServiceEndpointDependency) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ServiceEndpointDependency record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ServiceEndpointDependency) DependencyServiceEndpoint ¶
func (o *ServiceEndpointDependency) DependencyServiceEndpoint(mods ...qm.QueryMod) serviceEndpointQuery
DependencyServiceEndpoint pointed to by the foreign key.
func (*ServiceEndpointDependency) Insert ¶
func (o *ServiceEndpointDependency) 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 (*ServiceEndpointDependency) Reload ¶
func (o *ServiceEndpointDependency) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ServiceEndpointDependency) ServiceEndpoint ¶
func (o *ServiceEndpointDependency) ServiceEndpoint(mods ...qm.QueryMod) serviceEndpointQuery
ServiceEndpoint pointed to by the foreign key.
func (*ServiceEndpointDependency) SetDependencyServiceEndpoint ¶
func (o *ServiceEndpointDependency) SetDependencyServiceEndpoint(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ServiceEndpoint) error
SetDependencyServiceEndpoint of the serviceEndpointDependency to the related item. Sets o.R.DependencyServiceEndpoint to related. Adds o to related.R.DependencyServiceEndpointServiceEndpointDependencies.
func (*ServiceEndpointDependency) SetServiceEndpoint ¶
func (o *ServiceEndpointDependency) SetServiceEndpoint(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ServiceEndpoint) error
SetServiceEndpoint of the serviceEndpointDependency to the related item. Sets o.R.ServiceEndpoint to related. Adds o to related.R.ServiceEndpointDependencies.
func (*ServiceEndpointDependency) Update ¶
func (o *ServiceEndpointDependency) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ServiceEndpointDependency. 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 (*ServiceEndpointDependency) Upsert ¶
func (o *ServiceEndpointDependency) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ServiceEndpointDependencyHook ¶
type ServiceEndpointDependencyHook func(context.Context, boil.ContextExecutor, *ServiceEndpointDependency) error
ServiceEndpointDependencyHook is the signature for custom ServiceEndpointDependency hook methods
type ServiceEndpointDependencySlice ¶
type ServiceEndpointDependencySlice []*ServiceEndpointDependency
ServiceEndpointDependencySlice is an alias for a slice of pointers to ServiceEndpointDependency. This should generally be used opposed to []ServiceEndpointDependency.
func (ServiceEndpointDependencySlice) DeleteAll ¶
func (o ServiceEndpointDependencySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ServiceEndpointDependencySlice) ReloadAll ¶
func (o *ServiceEndpointDependencySlice) 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 (ServiceEndpointDependencySlice) UpdateAll ¶
func (o ServiceEndpointDependencySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ServiceEndpointHook ¶
type ServiceEndpointHook func(context.Context, boil.ContextExecutor, *ServiceEndpoint) error
ServiceEndpointHook is the signature for custom ServiceEndpoint hook methods
type ServiceEndpointSlice ¶
type ServiceEndpointSlice []*ServiceEndpoint
ServiceEndpointSlice is an alias for a slice of pointers to ServiceEndpoint. This should generally be used opposed to []ServiceEndpoint.
func (ServiceEndpointSlice) DeleteAll ¶
func (o ServiceEndpointSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ServiceEndpointSlice) ReloadAll ¶
func (o *ServiceEndpointSlice) 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 (ServiceEndpointSlice) UpdateAll ¶
func (o ServiceEndpointSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ServiceHook ¶
ServiceHook is the signature for custom Service hook methods
type ServiceSlice ¶
type ServiceSlice []*Service
ServiceSlice is an alias for a slice of pointers to Service. This should generally be used opposed to []Service.
func (ServiceSlice) DeleteAll ¶
func (o ServiceSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ServiceSlice) ReloadAll ¶
func (o *ServiceSlice) 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 (ServiceSlice) UpdateAll ¶
func (o ServiceSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.