Documentation ¶
Index ¶
- Variables
- func MCountries(mods ...qm.QueryMod) mCountryQuery
- func MCountryExists(ctx context.Context, exec boil.ContextExecutor, iD int16) (bool, error)
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func TCompanies(mods ...qm.QueryMod) tCompanyQuery
- func TCompanyExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TUserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TUserWorkHistories(mods ...qm.QueryMod) tUserWorkHistoryQuery
- func TUserWorkHistoryExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TUsers(mods ...qm.QueryMod) tUserQuery
- type M
- type MCountry
- func (o *MCountry) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *MCountry) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *MCountry) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *MCountry) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *MCountry) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type MCountrySlice
- type TCompany
- func (o *TCompany) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TCompany) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TCompany) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TCompany) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TCompany) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TCompanySlice
- type TUser
- func (o *TUser) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TUser) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TUser) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TUser) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TUser) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TUserSlice
- type TUserWorkHistory
- func (o *TUserWorkHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TUserWorkHistory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TUserWorkHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TUserWorkHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TUserWorkHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TUserWorkHistorySlice
- func (o TUserWorkHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TUserWorkHistorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o TUserWorkHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
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 MCountryColumns = struct { ID string CountryCode string Name string CreatedAt string UpdatedAt string }{ ID: "id", CountryCode: "country_code", Name: "name", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var MCountryRels = struct {
}{}
MCountryRels is where relationship names are stored.
var MCountryWhere = struct { ID whereHelperint16 CountryCode whereHelperstring Name whereHelperstring CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint16{/* contains filtered or unexported fields */}, CountryCode: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TCompanyColumns = struct { ID string Name string CountryID string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", CountryID: "country_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TCompanyRels = struct {
}{}
TCompanyRels is where relationship names are stored.
var TCompanyWhere = struct { ID whereHelperint Name whereHelperstring CountryID whereHelperuint8 CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, CountryID: whereHelperuint8{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TUserColumns = struct { ID string Name string Age string CountryID string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", Age: "age", CountryID: "country_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TUserRels = struct {
}{}
TUserRels is where relationship names are stored.
var TUserWhere = struct { ID whereHelperint Name whereHelperstring Age whereHelperuint8 CountryID whereHelperuint8 CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Age: whereHelperuint8{/* contains filtered or unexported fields */}, CountryID: whereHelperuint8{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TUserWorkHistoryColumns = struct { ID string UserID string CompanyID string Title string Description string TechIds string StartedAt string EndedAt string CreatedAt string UpdatedAt string }{ ID: "id", UserID: "user_id", CompanyID: "company_id", Title: "title", Description: "description", TechIds: "tech_ids", StartedAt: "started_at", EndedAt: "ended_at", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TUserWorkHistoryRels = struct {
}{}
TUserWorkHistoryRels is where relationship names are stored.
var TUserWorkHistoryWhere = struct { ID whereHelperint UserID whereHelperint CompanyID whereHelperint Title whereHelperstring Description whereHelperstring TechIds whereHelpertypes_JSON StartedAt whereHelpernull_Time EndedAt whereHelpernull_Time CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, CompanyID: whereHelperint{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, Description: whereHelperstring{/* contains filtered or unexported fields */}, TechIds: whereHelpertypes_JSON{/* contains filtered or unexported fields */}, StartedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, EndedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { MCountry string TCompany string TUser string TUserWorkHistory string }{ MCountry: "m_country", TCompany: "t_company", TUser: "t_user", TUserWorkHistory: "t_user_work_history", }
Functions ¶
func MCountries ¶
MCountries retrieves all the records using an executor.
func MCountryExists ¶
MCountryExists checks if the MCountry row exists.
func TCompanies ¶
TCompanies retrieves all the records using an executor.
func TCompanyExists ¶
TCompanyExists checks if the TCompany row exists.
func TUserExists ¶
TUserExists checks if the TUser row exists.
func TUserWorkHistories ¶
TUserWorkHistories retrieves all the records using an executor.
func TUserWorkHistoryExists ¶
TUserWorkHistoryExists checks if the TUserWorkHistory row exists.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type MCountry ¶
type MCountry struct { ID int16 `boil:"id" json:"id" toml:"id" yaml:"id"` CountryCode string `boil:"country_code" json:"country_code" toml:"country_code" yaml:"country_code"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *mCountryR `boil:"-" json:"-" toml:"-" yaml:"-"` L mCountryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
MCountry is an object representing the database table.
func FindMCountry ¶
func FindMCountry(ctx context.Context, exec boil.ContextExecutor, iD int16, selectCols ...string) (*MCountry, error)
FindMCountry retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*MCountry) Delete ¶
Delete deletes a single MCountry record with an executor. Delete will match against the primary key column to find the record to delete.
func (*MCountry) Insert ¶
func (o *MCountry) 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 (*MCountry) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*MCountry) Update ¶
func (o *MCountry) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the MCountry. 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 (*MCountry) Upsert ¶
func (o *MCountry) 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 MCountrySlice ¶
type MCountrySlice []*MCountry
MCountrySlice is an alias for a slice of pointers to MCountry. This should generally be used opposed to []MCountry.
func (MCountrySlice) DeleteAll ¶
func (o MCountrySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*MCountrySlice) ReloadAll ¶
func (o *MCountrySlice) 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 (MCountrySlice) UpdateAll ¶
func (o MCountrySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type TCompany ¶
type TCompany struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` CountryID uint8 `boil:"country_id" json:"country_id" toml:"country_id" yaml:"country_id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *tCompanyR `boil:"-" json:"-" toml:"-" yaml:"-"` L tCompanyL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TCompany is an object representing the database table.
func FindTCompany ¶
func FindTCompany(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TCompany, error)
FindTCompany retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TCompany) Delete ¶
Delete deletes a single TCompany record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TCompany) Insert ¶
func (o *TCompany) 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 (*TCompany) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*TCompany) Update ¶
func (o *TCompany) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TCompany. 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 (*TCompany) Upsert ¶
func (o *TCompany) 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 TCompanySlice ¶
type TCompanySlice []*TCompany
TCompanySlice is an alias for a slice of pointers to TCompany. This should generally be used opposed to []TCompany.
func (TCompanySlice) DeleteAll ¶
func (o TCompanySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TCompanySlice) ReloadAll ¶
func (o *TCompanySlice) 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 (TCompanySlice) UpdateAll ¶
func (o TCompanySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type TUser ¶
type TUser struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Age uint8 `boil:"age" json:"age" toml:"age" yaml:"age"` CountryID uint8 `boil:"country_id" json:"country_id" toml:"country_id" yaml:"country_id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *tUserR `boil:"-" json:"-" toml:"-" yaml:"-"` L tUserL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TUser is an object representing the database table.
func FindTUser ¶
func FindTUser(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TUser, error)
FindTUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TUser) Delete ¶
Delete deletes a single TUser record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TUser) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*TUser) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*TUser) Update ¶
func (o *TUser) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TUser. 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 (*TUser) Upsert ¶
func (o *TUser) 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 TUserSlice ¶
type TUserSlice []*TUser
TUserSlice is an alias for a slice of pointers to TUser. This should generally be used opposed to []TUser.
func (TUserSlice) DeleteAll ¶
func (o TUserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TUserSlice) ReloadAll ¶
func (o *TUserSlice) 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 (TUserSlice) UpdateAll ¶
func (o TUserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type TUserWorkHistory ¶
type TUserWorkHistory struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` CompanyID int `boil:"company_id" json:"company_id" toml:"company_id" yaml:"company_id"` Title string `boil:"title" json:"title" toml:"title" yaml:"title"` Description string `boil:"description" json:"description" toml:"description" yaml:"description"` TechIds types.JSON `boil:"tech_ids" json:"tech_ids" toml:"tech_ids" yaml:"tech_ids"` StartedAt null.Time `boil:"started_at" json:"started_at,omitempty" toml:"started_at" yaml:"started_at,omitempty"` EndedAt null.Time `boil:"ended_at" json:"ended_at,omitempty" toml:"ended_at" yaml:"ended_at,omitempty"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *tUserWorkHistoryR `boil:"-" json:"-" toml:"-" yaml:"-"` L tUserWorkHistoryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TUserWorkHistory is an object representing the database table.
func FindTUserWorkHistory ¶
func FindTUserWorkHistory(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TUserWorkHistory, error)
FindTUserWorkHistory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TUserWorkHistory) Delete ¶
func (o *TUserWorkHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TUserWorkHistory record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TUserWorkHistory) Insert ¶
func (o *TUserWorkHistory) 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 (*TUserWorkHistory) Reload ¶
func (o *TUserWorkHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TUserWorkHistory) Update ¶
func (o *TUserWorkHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TUserWorkHistory. 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 (*TUserWorkHistory) Upsert ¶
func (o *TUserWorkHistory) 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 TUserWorkHistorySlice ¶
type TUserWorkHistorySlice []*TUserWorkHistory
TUserWorkHistorySlice is an alias for a slice of pointers to TUserWorkHistory. This should generally be used opposed to []TUserWorkHistory.
func (TUserWorkHistorySlice) DeleteAll ¶
func (o TUserWorkHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TUserWorkHistorySlice) ReloadAll ¶
func (o *TUserWorkHistorySlice) 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 (TUserWorkHistorySlice) UpdateAll ¶
func (o TUserWorkHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.