Documentation ¶
Index ¶
- Variables
- 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 TTechExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TTeches(mods ...qm.QueryMod) tTechQuery
- func TUserDislikeTechExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TUserDislikeTeches(mods ...qm.QueryMod) tUserDislikeTechQuery
- func TUserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TUserLikeTechExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TUserLikeTeches(mods ...qm.QueryMod) tUserLikeTechQuery
- 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 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 TTech
- func (o *TTech) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TTech) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TTech) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TTech) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TTech) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TTechSlice
- 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 TUserDislikeTech
- func (o *TUserDislikeTech) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TUserDislikeTech) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TUserDislikeTech) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TUserDislikeTech) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TUserDislikeTech) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TUserDislikeTechSlice
- func (o TUserDislikeTechSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TUserDislikeTechSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o TUserDislikeTechSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type TUserLikeTech
- func (o *TUserLikeTech) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TUserLikeTech) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *TUserLikeTech) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TUserLikeTech) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *TUserLikeTech) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TUserLikeTechSlice
- func (o TUserLikeTechSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *TUserLikeTechSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o TUserLikeTechSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, 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 TCompanyColumns = struct { ID string Name string CountryID string Address string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", CountryID: "country_id", Address: "address", IsDeleted: "is_deleted", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TCompanyRels = struct {
}{}
TCompanyRels is where relationship names are stored.
var TCompanyTableColumns = struct { ID string Name string CountryID string Address string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "t_company.id", Name: "t_company.name", CountryID: "t_company.country_id", Address: "t_company.address", IsDeleted: "t_company.is_deleted", CreatedAt: "t_company.created_at", UpdatedAt: "t_company.updated_at", }
var TCompanyWhere = struct { ID whereHelperint Name whereHelperstring CountryID whereHelperint16 Address whereHelpernull_String IsDeleted whereHelpernull_String CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, CountryID: whereHelperint16{/* contains filtered or unexported fields */}, Address: whereHelpernull_String{/* contains filtered or unexported fields */}, IsDeleted: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TTechColumns = struct { ID string Name string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", IsDeleted: "is_deleted", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TTechRels = struct {
}{}
TTechRels is where relationship names are stored.
var TTechTableColumns = struct { ID string Name string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "t_tech.id", Name: "t_tech.name", IsDeleted: "t_tech.is_deleted", CreatedAt: "t_tech.created_at", UpdatedAt: "t_tech.updated_at", }
var TTechWhere = struct { ID whereHelperint Name whereHelperstring IsDeleted whereHelpernull_String CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, IsDeleted: whereHelpernull_String{/* 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 UserName string Email string Password string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "id", UserName: "user_name", Email: "email", Password: "password", IsDeleted: "is_deleted", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TUserDislikeTechColumns = struct { ID string UserID string TechID string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "id", UserID: "user_id", TechID: "tech_id", IsDeleted: "is_deleted", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TUserDislikeTechRels = struct {
}{}
TUserDislikeTechRels is where relationship names are stored.
var TUserDislikeTechTableColumns = struct { ID string UserID string TechID string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "t_user_dislike_tech.id", UserID: "t_user_dislike_tech.user_id", TechID: "t_user_dislike_tech.tech_id", IsDeleted: "t_user_dislike_tech.is_deleted", CreatedAt: "t_user_dislike_tech.created_at", UpdatedAt: "t_user_dislike_tech.updated_at", }
var TUserDislikeTechWhere = struct { ID whereHelperint UserID whereHelperint TechID whereHelperint IsDeleted whereHelpernull_String CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, TechID: whereHelperint{/* contains filtered or unexported fields */}, IsDeleted: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TUserLikeTechColumns = struct { ID string UserID string TechID string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "id", UserID: "user_id", TechID: "tech_id", IsDeleted: "is_deleted", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TUserLikeTechRels = struct {
}{}
TUserLikeTechRels is where relationship names are stored.
var TUserLikeTechTableColumns = struct { ID string UserID string TechID string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "t_user_like_tech.id", UserID: "t_user_like_tech.user_id", TechID: "t_user_like_tech.tech_id", IsDeleted: "t_user_like_tech.is_deleted", CreatedAt: "t_user_like_tech.created_at", UpdatedAt: "t_user_like_tech.updated_at", }
var TUserLikeTechWhere = struct { ID whereHelperint UserID whereHelperint TechID whereHelperint IsDeleted whereHelpernull_String CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, TechID: whereHelperint{/* contains filtered or unexported fields */}, IsDeleted: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TUserRels = struct {
}{}
TUserRels is where relationship names are stored.
var TUserTableColumns = struct { ID string UserName string Email string Password string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "t_user.id", UserName: "t_user.user_name", Email: "t_user.email", Password: "t_user.password", IsDeleted: "t_user.is_deleted", CreatedAt: "t_user.created_at", UpdatedAt: "t_user.updated_at", }
var TUserWhere = struct { ID whereHelperint UserName whereHelperstring Email whereHelpernull_String Password whereHelpernull_String IsDeleted whereHelpernull_String CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, UserName: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelpernull_String{/* contains filtered or unexported fields */}, Password: whereHelpernull_String{/* contains filtered or unexported fields */}, IsDeleted: whereHelpernull_String{/* 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 IsDeleted 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", IsDeleted: "is_deleted", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TUserWorkHistoryRels = struct {
}{}
TUserWorkHistoryRels is where relationship names are stored.
var TUserWorkHistoryTableColumns = struct { ID string UserID string CompanyID string Title string Description string TechIds string StartedAt string EndedAt string IsDeleted string CreatedAt string UpdatedAt string }{ ID: "t_user_work_history.id", UserID: "t_user_work_history.user_id", CompanyID: "t_user_work_history.company_id", Title: "t_user_work_history.title", Description: "t_user_work_history.description", TechIds: "t_user_work_history.tech_ids", StartedAt: "t_user_work_history.started_at", EndedAt: "t_user_work_history.ended_at", IsDeleted: "t_user_work_history.is_deleted", CreatedAt: "t_user_work_history.created_at", UpdatedAt: "t_user_work_history.updated_at", }
var TUserWorkHistoryWhere = struct { ID whereHelperint UserID whereHelperint CompanyID whereHelperint Title whereHelperstring Description whereHelpertypes_JSON TechIds whereHelpertypes_JSON StartedAt whereHelpernull_Time EndedAt whereHelpernull_Time IsDeleted whereHelpernull_String 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: whereHelpertypes_JSON{/* 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 */}, IsDeleted: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { TCompany string TTech string TUser string TUserDislikeTech string TUserLikeTech string TUserWorkHistory string }{ TCompany: "t_company", TTech: "t_tech", TUser: "t_user", TUserDislikeTech: "t_user_dislike_tech", TUserLikeTech: "t_user_like_tech", TUserWorkHistory: "t_user_work_history", }
var ViewNames = struct {
}{}
Functions ¶
func TCompanies ¶
TCompanies retrieves all the records using an executor.
func TCompanyExists ¶
TCompanyExists checks if the TCompany row exists.
func TTechExists ¶
TTechExists checks if the TTech row exists.
func TUserDislikeTechExists ¶
TUserDislikeTechExists checks if the TUserDislikeTech row exists.
func TUserDislikeTeches ¶
TUserDislikeTeches retrieves all the records using an executor.
func TUserExists ¶
TUserExists checks if the TUser row exists.
func TUserLikeTechExists ¶
TUserLikeTechExists checks if the TUserLikeTech row exists.
func TUserLikeTeches ¶
TUserLikeTeches retrieves all the records using an executor.
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 TCompany ¶
type TCompany struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` // company name Name string `boil:"name" json:"name" toml:"name" yaml:"name"` // country id CountryID int16 `boil:"country_id" json:"country_id" toml:"country_id" yaml:"country_id"` // address Address null.String `boil:"address" json:"address,omitempty" toml:"address" yaml:"address,omitempty"` // delete flag IsDeleted null.String `boil:"is_deleted" json:"is_deleted,omitempty" toml:"is_deleted" yaml:"is_deleted,omitempty"` // created date CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` // updated date 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 almost always be used instead of []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 TTech ¶
type TTech struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` // tech name Name string `boil:"name" json:"name" toml:"name" yaml:"name"` // delete flag IsDeleted null.String `boil:"is_deleted" json:"is_deleted,omitempty" toml:"is_deleted" yaml:"is_deleted,omitempty"` // created date CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` // updated date UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *tTechR `boil:"-" json:"-" toml:"-" yaml:"-"` L tTechL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TTech is an object representing the database table.
func FindTTech ¶
func FindTTech(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TTech, error)
FindTTech retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TTech) Delete ¶
Delete deletes a single TTech record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TTech) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*TTech) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*TTech) Update ¶
func (o *TTech) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TTech. 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 (*TTech) Upsert ¶
func (o *TTech) 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 TTechSlice ¶
type TTechSlice []*TTech
TTechSlice is an alias for a slice of pointers to TTech. This should almost always be used instead of []TTech.
func (TTechSlice) DeleteAll ¶
func (o TTechSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TTechSlice) ReloadAll ¶
func (o *TTechSlice) 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 (TTechSlice) UpdateAll ¶
func (o TTechSlice) 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"` // user name UserName string `boil:"user_name" json:"user_name" toml:"user_name" yaml:"user_name"` // mail address Email null.String `boil:"email" json:"email,omitempty" toml:"email" yaml:"email,omitempty"` // password Password null.String `boil:"password" json:"password,omitempty" toml:"password" yaml:"password,omitempty"` // delete flag IsDeleted null.String `boil:"is_deleted" json:"is_deleted,omitempty" toml:"is_deleted" yaml:"is_deleted,omitempty"` // created date CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` // updated date 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 TUserDislikeTech ¶
type TUserDislikeTech struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` // user id UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` // tech id TechID int `boil:"tech_id" json:"tech_id" toml:"tech_id" yaml:"tech_id"` // delete flag IsDeleted null.String `boil:"is_deleted" json:"is_deleted,omitempty" toml:"is_deleted" yaml:"is_deleted,omitempty"` // created date CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` // updated date UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *tUserDislikeTechR `boil:"-" json:"-" toml:"-" yaml:"-"` L tUserDislikeTechL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TUserDislikeTech is an object representing the database table.
func FindTUserDislikeTech ¶
func FindTUserDislikeTech(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TUserDislikeTech, error)
FindTUserDislikeTech retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TUserDislikeTech) Delete ¶
func (o *TUserDislikeTech) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TUserDislikeTech record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TUserDislikeTech) Insert ¶
func (o *TUserDislikeTech) 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 (*TUserDislikeTech) Reload ¶
func (o *TUserDislikeTech) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TUserDislikeTech) Update ¶
func (o *TUserDislikeTech) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TUserDislikeTech. 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 (*TUserDislikeTech) Upsert ¶
func (o *TUserDislikeTech) 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 TUserDislikeTechSlice ¶
type TUserDislikeTechSlice []*TUserDislikeTech
TUserDislikeTechSlice is an alias for a slice of pointers to TUserDislikeTech. This should almost always be used instead of []TUserDislikeTech.
func (TUserDislikeTechSlice) DeleteAll ¶
func (o TUserDislikeTechSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TUserDislikeTechSlice) ReloadAll ¶
func (o *TUserDislikeTechSlice) 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 (TUserDislikeTechSlice) UpdateAll ¶
func (o TUserDislikeTechSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type TUserLikeTech ¶
type TUserLikeTech struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` // user id UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` // tech id TechID int `boil:"tech_id" json:"tech_id" toml:"tech_id" yaml:"tech_id"` // delete flag IsDeleted null.String `boil:"is_deleted" json:"is_deleted,omitempty" toml:"is_deleted" yaml:"is_deleted,omitempty"` // created date CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` // updated date UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *tUserLikeTechR `boil:"-" json:"-" toml:"-" yaml:"-"` L tUserLikeTechL `boil:"-" json:"-" toml:"-" yaml:"-"` }
TUserLikeTech is an object representing the database table.
func FindTUserLikeTech ¶
func FindTUserLikeTech(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*TUserLikeTech, error)
FindTUserLikeTech retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*TUserLikeTech) Delete ¶
func (o *TUserLikeTech) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single TUserLikeTech record with an executor. Delete will match against the primary key column to find the record to delete.
func (*TUserLikeTech) Insert ¶
func (o *TUserLikeTech) 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 (*TUserLikeTech) Reload ¶
func (o *TUserLikeTech) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*TUserLikeTech) Update ¶
func (o *TUserLikeTech) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the TUserLikeTech. 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 (*TUserLikeTech) Upsert ¶
func (o *TUserLikeTech) 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 TUserLikeTechSlice ¶
type TUserLikeTechSlice []*TUserLikeTech
TUserLikeTechSlice is an alias for a slice of pointers to TUserLikeTech. This should almost always be used instead of []TUserLikeTech.
func (TUserLikeTechSlice) DeleteAll ¶
func (o TUserLikeTechSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*TUserLikeTechSlice) ReloadAll ¶
func (o *TUserLikeTechSlice) 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 (TUserLikeTechSlice) UpdateAll ¶
func (o TUserLikeTechSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type TUserSlice ¶
type TUserSlice []*TUser
TUserSlice is an alias for a slice of pointers to TUser. This should almost always be used instead of []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"` // user id UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` // company id CompanyID int `boil:"company_id" json:"company_id" toml:"company_id" yaml:"company_id"` // title Title string `boil:"title" json:"title" toml:"title" yaml:"title"` // description Description types.JSON `boil:"description" json:"description" toml:"description" yaml:"description"` // tech ids TechIds types.JSON `boil:"tech_ids" json:"tech_ids" toml:"tech_ids" yaml:"tech_ids"` // started date StartedAt null.Time `boil:"started_at" json:"started_at,omitempty" toml:"started_at" yaml:"started_at,omitempty"` // ended date EndedAt null.Time `boil:"ended_at" json:"ended_at,omitempty" toml:"ended_at" yaml:"ended_at,omitempty"` // delete flag IsDeleted null.String `boil:"is_deleted" json:"is_deleted,omitempty" toml:"is_deleted" yaml:"is_deleted,omitempty"` // created date CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` // updated date 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 almost always be used instead of []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.