Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PartnerExists(exec boil.Executor, iD uint) (bool, error)
- func Partners(mods ...qm.QueryMod) partnerQuery
- type M
- type Partner
- func (o *Partner) Delete(exec boil.Executor) error
- func (o *Partner) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *Partner) Reload(exec boil.Executor) error
- func (o *Partner) Update(exec boil.Executor, columns boil.Columns) error
- func (o *Partner) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error
- type PartnerSlice
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 PartnerColumns = struct { ID string Email string PhoneNumber string EncryptedPassword string DepartmentID string Title string Name string Surname string PPURL string Birthday string FirmID string PhoneNumberS string CreatedAt string UpdatedAt string DeletedAt string ReactivatedAt string CurrentSignInAt string IsActive string IsConfirmed string ConfirmedBy string LastIP string SignInCount string ForcePasswordChange string IsBlocked string IsVerified string }{ ID: "id", Email: "email", PhoneNumber: "phone_number", EncryptedPassword: "encrypted_password", DepartmentID: "department_id", Title: "title", Name: "name", Surname: "surname", PPURL: "pp_url", Birthday: "birthday", FirmID: "firm_id", PhoneNumberS: "phone_number_s", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", ReactivatedAt: "reactivated_at", CurrentSignInAt: "current_sign_in_at", IsActive: "is_active", IsConfirmed: "is_confirmed", ConfirmedBy: "confirmed_by", LastIP: "last_ip", SignInCount: "sign_in_count", ForcePasswordChange: "force_password_change", IsBlocked: "is_blocked", IsVerified: "is_verified", }
var PartnerRels = struct {
}{}
PartnerRels is where relationship names are stored.
var PartnerWhere = struct { ID whereHelperuint Email whereHelperstring PhoneNumber whereHelperstring EncryptedPassword whereHelperstring DepartmentID whereHelperint Title whereHelperstring Name whereHelperstring Surname whereHelperstring PPURL whereHelpernull_String Birthday whereHelpertime_Time FirmID whereHelpernull_Int PhoneNumberS whereHelpernull_String CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time ReactivatedAt whereHelpernull_Time CurrentSignInAt whereHelpernull_Time IsActive whereHelperbool IsConfirmed whereHelperbool ConfirmedBy whereHelperint LastIP whereHelpernull_String SignInCount whereHelperint ForcePasswordChange whereHelperbool IsBlocked whereHelperbool IsVerified whereHelperbool }{ ID: whereHelperuint{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, PhoneNumber: whereHelperstring{/* contains filtered or unexported fields */}, EncryptedPassword: whereHelperstring{/* contains filtered or unexported fields */}, DepartmentID: whereHelperint{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Surname: whereHelperstring{/* contains filtered or unexported fields */}, PPURL: whereHelpernull_String{/* contains filtered or unexported fields */}, Birthday: whereHelpertime_Time{/* contains filtered or unexported fields */}, FirmID: whereHelpernull_Int{/* contains filtered or unexported fields */}, PhoneNumberS: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, ReactivatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, CurrentSignInAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, IsActive: whereHelperbool{/* contains filtered or unexported fields */}, IsConfirmed: whereHelperbool{/* contains filtered or unexported fields */}, ConfirmedBy: whereHelperint{/* contains filtered or unexported fields */}, LastIP: whereHelpernull_String{/* contains filtered or unexported fields */}, SignInCount: whereHelperint{/* contains filtered or unexported fields */}, ForcePasswordChange: whereHelperbool{/* contains filtered or unexported fields */}, IsBlocked: whereHelperbool{/* contains filtered or unexported fields */}, IsVerified: whereHelperbool{/* contains filtered or unexported fields */}, }
var TableNames = struct { Partners string }{ Partners: "partners", }
Functions ¶
func PartnerExists ¶
PartnerExists checks if the Partner row exists.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Partner ¶
type Partner struct { ID uint `boil:"id" json:"id" toml:"id" yaml:"id"` Email string `boil:"email" json:"email" toml:"email" yaml:"email"` PhoneNumber string `boil:"phone_number" json:"phone_number" toml:"phone_number" yaml:"phone_number"` EncryptedPassword string `boil:"encrypted_password" json:"encrypted_password" toml:"encrypted_password" yaml:"encrypted_password"` DepartmentID int `boil:"department_id" json:"department_id" toml:"department_id" yaml:"department_id"` Title string `boil:"title" json:"title" toml:"title" yaml:"title"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Surname string `boil:"surname" json:"surname" toml:"surname" yaml:"surname"` PPURL null.String `boil:"pp_url" json:"pp_url,omitempty" toml:"pp_url" yaml:"pp_url,omitempty"` Birthday time.Time `boil:"birthday" json:"birthday" toml:"birthday" yaml:"birthday"` FirmID null.Int `boil:"firm_id" json:"firm_id,omitempty" toml:"firm_id" yaml:"firm_id,omitempty"` PhoneNumberS null.String `boil:"phone_number_s" json:"phone_number_s,omitempty" toml:"phone_number_s" yaml:"phone_number_s,omitempty"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` ReactivatedAt null.Time `boil:"reactivated_at" json:"reactivated_at,omitempty" toml:"reactivated_at" yaml:"reactivated_at,omitempty"` CurrentSignInAt null.Time `boil:"current_sign_in_at" json:"current_sign_in_at,omitempty" toml:"current_sign_in_at" yaml:"current_sign_in_at,omitempty"` IsActive bool `boil:"is_active" json:"is_active" toml:"is_active" yaml:"is_active"` IsConfirmed bool `boil:"is_confirmed" json:"is_confirmed" toml:"is_confirmed" yaml:"is_confirmed"` ConfirmedBy int `boil:"confirmed_by" json:"confirmed_by" toml:"confirmed_by" yaml:"confirmed_by"` LastIP null.String `boil:"last_ip" json:"last_ip,omitempty" toml:"last_ip" yaml:"last_ip,omitempty"` SignInCount int `boil:"sign_in_count" json:"sign_in_count" toml:"sign_in_count" yaml:"sign_in_count"` ForcePasswordChange bool `boil:"force_password_change" json:"force_password_change" toml:"force_password_change" yaml:"force_password_change"` IsBlocked bool `boil:"is_blocked" json:"is_blocked" toml:"is_blocked" yaml:"is_blocked"` IsVerified bool `boil:"is_verified" json:"is_verified" toml:"is_verified" yaml:"is_verified"` R *partnerR `boil:"-" json:"-" toml:"-" yaml:"-"` L partnerL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Partner is an object representing the database table.
func FindPartner ¶
FindPartner retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Partner) Delete ¶
Delete deletes a single Partner record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Partner) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Partner) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
type PartnerSlice ¶
type PartnerSlice []*Partner
PartnerSlice is an alias for a slice of pointers to Partner. This should generally be used opposed to []Partner.
func (PartnerSlice) DeleteAll ¶
func (o PartnerSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.