Documentation ¶
Index ¶
- Variables
- func AddAllocationHook(hookPoint boil.HookPoint, allocationHook AllocationHook)
- func AddAllocationItemHook(hookPoint boil.HookPoint, allocationItemHook AllocationItemHook)
- func AddDonationHook(hookPoint boil.HookPoint, donationHook DonationHook)
- func AddDonationItemHook(hookPoint boil.HookPoint, donationItemHook DonationItemHook)
- func AddItemHook(hookPoint boil.HookPoint, itemHook ItemHook)
- func AddPasswordResetRequestHook(hookPoint boil.HookPoint, passwordResetRequestHook PasswordResetRequestHook)
- func AddRequestHook(hookPoint boil.HookPoint, requestHook RequestHook)
- func AddRequestItemAllocationHook(hookPoint boil.HookPoint, requestItemAllocationHook RequestItemAllocationHook)
- func AddRequestItemHook(hookPoint boil.HookPoint, requestItemHook RequestItemHook)
- func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)
- func AddStockHook(hookPoint boil.HookPoint, stockHook StockHook)
- func AddUnitHook(hookPoint boil.HookPoint, unitHook UnitHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AllocationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func AllocationItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func AllocationItems(mods ...qm.QueryMod) allocationItemQuery
- func Allocations(mods ...qm.QueryMod) allocationQuery
- func DonationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func DonationItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func DonationItems(mods ...qm.QueryMod) donationItemQuery
- func Donations(mods ...qm.QueryMod) donationQuery
- func ItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Items(mods ...qm.QueryMod) itemQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PasswordResetRequestExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func PasswordResetRequests(mods ...qm.QueryMod) passwordResetRequestQuery
- func RequestExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func RequestItemAllocationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func RequestItemAllocations(mods ...qm.QueryMod) requestItemAllocationQuery
- func RequestItemExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func RequestItems(mods ...qm.QueryMod) requestItemQuery
- func Requests(mods ...qm.QueryMod) requestQuery
- func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)
- func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery
- func StockExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Stocks(mods ...qm.QueryMod) stockQuery
- func UnitExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Units(mods ...qm.QueryMod) unitQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type Allocation
- func (o *Allocation) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Allocation) AllocationItems(mods ...qm.QueryMod) allocationItemQuery
- func (o *Allocation) Allocator(mods ...qm.QueryMod) userQuery
- func (o *Allocation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Allocation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Allocation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Allocation) Request(mods ...qm.QueryMod) requestQuery
- func (o *Allocation) SetAllocator(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Allocation) SetRequest(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Request) error
- func (o *Allocation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Allocation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type AllocationHook
- type AllocationItem
- func (o *AllocationItem) Allocation(mods ...qm.QueryMod) allocationQuery
- func (o *AllocationItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AllocationItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AllocationItem) Item(mods ...qm.QueryMod) itemQuery
- func (o *AllocationItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AllocationItem) SetAllocation(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AllocationItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *AllocationItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
- func (o *AllocationItem) Unit(mods ...qm.QueryMod) unitQuery
- func (o *AllocationItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AllocationItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type AllocationItemHook
- type AllocationItemSlice
- func (o AllocationItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AllocationItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o AllocationItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type AllocationSlice
- type Donation
- func (o *Donation) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Donation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Donation) DonationItems(mods ...qm.QueryMod) donationItemQuery
- func (o *Donation) Donator(mods ...qm.QueryMod) userQuery
- func (o *Donation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Donation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Donation) SetDonator(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Donation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Donation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type DonationHook
- type DonationItem
- func (o *DonationItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DonationItem) Donation(mods ...qm.QueryMod) donationQuery
- func (o *DonationItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DonationItem) Item(mods ...qm.QueryMod) itemQuery
- func (o *DonationItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DonationItem) SetDonation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Donation) error
- func (o *DonationItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *DonationItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
- func (o *DonationItem) Unit(mods ...qm.QueryMod) unitQuery
- func (o *DonationItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *DonationItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type DonationItemHook
- type DonationItemSlice
- type DonationSlice
- type Item
- func (o *Item) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Item) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Item) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Item) AddStocks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Stock) error
- func (o *Item) AllocationItems(mods ...qm.QueryMod) allocationItemQuery
- func (o *Item) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Item) DonationItems(mods ...qm.QueryMod) donationItemQuery
- func (o *Item) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Item) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Item) RequestItems(mods ...qm.QueryMod) requestItemQuery
- func (o *Item) Stocks(mods ...qm.QueryMod) stockQuery
- func (o *Item) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Item) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ItemHook
- type ItemSlice
- type M
- type PasswordResetRequest
- func (o *PasswordResetRequest) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PasswordResetRequest) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PasswordResetRequest) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PasswordResetRequest) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PasswordResetRequest) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PasswordResetRequest) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PasswordResetRequest) User(mods ...qm.QueryMod) userQuery
- type PasswordResetRequestHook
- type PasswordResetRequestSlice
- func (o PasswordResetRequestSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PasswordResetRequestSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o PasswordResetRequestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Request
- func (o *Request) AddAllocations(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Request) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Request) Allocations(mods ...qm.QueryMod) allocationQuery
- func (o *Request) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Request) DonationApplicant(mods ...qm.QueryMod) userQuery
- func (o *Request) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Request) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Request) RequestItems(mods ...qm.QueryMod) requestItemQuery
- func (o *Request) SetDonationApplicant(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Request) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Request) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RequestHook
- type RequestItem
- func (o *RequestItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RequestItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RequestItem) Item(mods ...qm.QueryMod) itemQuery
- func (o *RequestItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RequestItem) Request(mods ...qm.QueryMod) requestQuery
- func (o *RequestItem) RequestItemAllocation(mods ...qm.QueryMod) requestItemAllocationQuery
- func (o *RequestItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *RequestItem) SetRequest(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Request) error
- func (o *RequestItem) SetRequestItemAllocation(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RequestItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
- func (o *RequestItem) Unit(mods ...qm.QueryMod) unitQuery
- func (o *RequestItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RequestItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RequestItemAllocation
- func (o *RequestItemAllocation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RequestItemAllocation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RequestItemAllocation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RequestItemAllocation) RequestItem(mods ...qm.QueryMod) requestItemQuery
- func (o *RequestItemAllocation) SetRequestItem(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *RequestItemAllocation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RequestItemAllocation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RequestItemAllocationHook
- type RequestItemAllocationSlice
- func (o RequestItemAllocationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RequestItemAllocationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o RequestItemAllocationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type RequestItemHook
- type RequestItemSlice
- type RequestSlice
- type SchemaMigration
- func (o *SchemaMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SchemaMigration) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SchemaMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SchemaMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type SchemaMigrationHook
- type SchemaMigrationSlice
- func (o SchemaMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SchemaMigrationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o SchemaMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Stock
- func (o *Stock) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Stock) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Stock) Item(mods ...qm.QueryMod) itemQuery
- func (o *Stock) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Stock) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *Stock) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
- func (o *Stock) Unit(mods ...qm.QueryMod) unitQuery
- func (o *Stock) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Stock) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type StockHook
- type StockSlice
- type Unit
- func (o *Unit) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Unit) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Unit) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Unit) AddStocks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Stock) error
- func (o *Unit) AllocationItems(mods ...qm.QueryMod) allocationItemQuery
- func (o *Unit) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Unit) DonationItems(mods ...qm.QueryMod) donationItemQuery
- func (o *Unit) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Unit) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Unit) RequestItems(mods ...qm.QueryMod) requestItemQuery
- func (o *Unit) Stocks(mods ...qm.QueryMod) stockQuery
- func (o *Unit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Unit) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type UnitHook
- type UnitSlice
- type User
- func (o *User) AddAllocatorAllocations(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddDonationApplicantRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddDonatorDonations(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddPasswordResetRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AllocatorAllocations(mods ...qm.QueryMod) allocationQuery
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) DonationApplicantRequests(mods ...qm.QueryMod) requestQuery
- func (o *User) DonatorDonations(mods ...qm.QueryMod) donationQuery
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) PasswordResetRequests(mods ...qm.QueryMod) passwordResetRequestQuery
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type UserHook
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
var AllocationColumns = struct { ID string RequestID string Date string PhotoURL string AllocatorID string }{ ID: "id", RequestID: "request_id", Date: "date", PhotoURL: "photo_url", AllocatorID: "allocator_id", }
var AllocationItemColumns = struct { ID string AllocationID string ItemID string UnitID string Quantity string }{ ID: "id", AllocationID: "allocation_id", ItemID: "item_id", UnitID: "unit_id", Quantity: "quantity", }
var AllocationItemRels = struct { Allocation string Item string Unit string }{ Allocation: "Allocation", Item: "Item", Unit: "Unit", }
AllocationItemRels is where relationship names are stored.
var AllocationItemWhere = struct { ID whereHelperstring AllocationID whereHelperstring ItemID whereHelperstring UnitID whereHelperstring Quantity whereHelpertypes_Decimal }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AllocationID: whereHelperstring{/* contains filtered or unexported fields */}, ItemID: whereHelperstring{/* contains filtered or unexported fields */}, UnitID: whereHelperstring{/* contains filtered or unexported fields */}, Quantity: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, }
var AllocationRels = struct { Request string Allocator string AllocationItems string }{ Request: "Request", Allocator: "Allocator", AllocationItems: "AllocationItems", }
AllocationRels is where relationship names are stored.
var AllocationWhere = struct { ID whereHelperstring RequestID whereHelperstring Date whereHelpertime_Time PhotoURL whereHelpernull_String AllocatorID whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, RequestID: whereHelperstring{/* contains filtered or unexported fields */}, Date: whereHelpertime_Time{/* contains filtered or unexported fields */}, PhotoURL: whereHelpernull_String{/* contains filtered or unexported fields */}, AllocatorID: whereHelperstring{/* contains filtered or unexported fields */}, }
var DonationColumns = struct { ID string Date string IsAccepted string IsDonated string DonatorID string }{ ID: "id", Date: "date", IsAccepted: "is_accepted", IsDonated: "is_donated", DonatorID: "donator_id", }
var DonationItemColumns = struct { ID string DonationID string ItemID string UnitID string Quantity string }{ ID: "id", DonationID: "donation_id", ItemID: "item_id", UnitID: "unit_id", Quantity: "quantity", }
var DonationItemRels = struct { Donation string Item string Unit string }{ Donation: "Donation", Item: "Item", Unit: "Unit", }
DonationItemRels is where relationship names are stored.
var DonationItemWhere = struct { ID whereHelperstring DonationID whereHelperstring ItemID whereHelperstring UnitID whereHelperstring Quantity whereHelpertypes_Decimal }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, DonationID: whereHelperstring{/* contains filtered or unexported fields */}, ItemID: whereHelperstring{/* contains filtered or unexported fields */}, UnitID: whereHelperstring{/* contains filtered or unexported fields */}, Quantity: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, }
var DonationRels = struct { Donator string DonationItems string }{ Donator: "Donator", DonationItems: "DonationItems", }
DonationRels is where relationship names are stored.
var DonationWhere = struct { ID whereHelperstring Date whereHelpertime_Time IsAccepted whereHelperbool IsDonated whereHelperbool DonatorID whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Date: whereHelpertime_Time{/* contains filtered or unexported fields */}, IsAccepted: whereHelperbool{/* contains filtered or unexported fields */}, IsDonated: whereHelperbool{/* contains filtered or unexported fields */}, DonatorID: whereHelperstring{/* contains filtered or unexported fields */}, }
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 ItemColumns = struct { ID string Name string }{ ID: "id", Name: "name", }
var ItemRels = struct { AllocationItems string DonationItems string RequestItems string Stocks string }{ AllocationItems: "AllocationItems", DonationItems: "DonationItems", RequestItems: "RequestItems", Stocks: "Stocks", }
ItemRels is where relationship names are stored.
var ItemWhere = struct { ID whereHelperstring Name whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var PasswordResetRequestColumns = struct { ID string UserID string Date string }{ ID: "id", UserID: "user_id", Date: "date", }
var PasswordResetRequestRels = struct { User string }{ User: "User", }
PasswordResetRequestRels is where relationship names are stored.
var PasswordResetRequestWhere = struct { ID whereHelperstring UserID whereHelperstring Date whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, Date: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var RequestColumns = struct { ID string Date string IsFulfilled string DonationApplicantID string }{ ID: "id", Date: "date", IsFulfilled: "is_fulfilled", DonationApplicantID: "donation_applicant_id", }
var RequestItemAllocationColumns = struct { ID string RequestItemID string AllocationDate string Description string }{ ID: "id", RequestItemID: "request_item_id", AllocationDate: "allocation_date", Description: "description", }
var RequestItemAllocationRels = struct { RequestItem string }{ RequestItem: "RequestItem", }
RequestItemAllocationRels is where relationship names are stored.
var RequestItemAllocationWhere = struct { ID whereHelperstring RequestItemID whereHelperstring AllocationDate whereHelpertime_Time Description whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, RequestItemID: whereHelperstring{/* contains filtered or unexported fields */}, AllocationDate: whereHelpertime_Time{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var RequestItemColumns = struct { ID string ItemID string UnitID string Quantity string RequestID string }{ ID: "id", ItemID: "item_id", UnitID: "unit_id", Quantity: "quantity", RequestID: "request_id", }
var RequestItemRels = struct { Item string Request string Unit string RequestItemAllocation string }{ Item: "Item", Request: "Request", Unit: "Unit", RequestItemAllocation: "RequestItemAllocation", }
RequestItemRels is where relationship names are stored.
var RequestItemWhere = struct { ID whereHelperstring ItemID whereHelperstring UnitID whereHelperstring Quantity whereHelpertypes_Decimal RequestID whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, ItemID: whereHelperstring{/* contains filtered or unexported fields */}, UnitID: whereHelperstring{/* contains filtered or unexported fields */}, Quantity: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, RequestID: whereHelperstring{/* contains filtered or unexported fields */}, }
var RequestRels = struct { DonationApplicant string Allocations string RequestItems string }{ DonationApplicant: "DonationApplicant", Allocations: "Allocations", RequestItems: "RequestItems", }
RequestRels is where relationship names are stored.
var RequestWhere = struct { ID whereHelperstring Date whereHelpertime_Time IsFulfilled whereHelperbool DonationApplicantID whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Date: whereHelpertime_Time{/* contains filtered or unexported fields */}, IsFulfilled: whereHelperbool{/* contains filtered or unexported fields */}, DonationApplicantID: whereHelperstring{/* contains filtered or unexported fields */}, }
var SchemaMigrationColumns = struct { Version string Dirty string }{ Version: "version", Dirty: "dirty", }
var SchemaMigrationRels = struct {
}{}
SchemaMigrationRels is where relationship names are stored.
var SchemaMigrationWhere = struct { Version whereHelperint64 Dirty whereHelperbool }{ Version: whereHelperint64{/* contains filtered or unexported fields */}, Dirty: whereHelperbool{/* contains filtered or unexported fields */}, }
var StockColumns = struct { ID string ItemID string UnitID string Quantity string }{ ID: "id", ItemID: "item_id", UnitID: "unit_id", Quantity: "quantity", }
var StockRels = struct { Item string Unit string }{ Item: "Item", Unit: "Unit", }
StockRels is where relationship names are stored.
var StockWhere = struct { ID whereHelperstring ItemID whereHelperstring UnitID whereHelperstring Quantity whereHelpertypes_Decimal }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, ItemID: whereHelperstring{/* contains filtered or unexported fields */}, UnitID: whereHelperstring{/* contains filtered or unexported fields */}, Quantity: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, }
var TableNames = struct { AllocationItems string Allocations string DonationItems string Donations string Items string PasswordResetRequests string RequestItemAllocation string RequestItems string Requests string SchemaMigrations string Stocks string Units string Users string }{ AllocationItems: "allocation_items", Allocations: "allocations", DonationItems: "donation_items", Donations: "donations", Items: "items", PasswordResetRequests: "password_reset_requests", RequestItemAllocation: "request_item_allocation", RequestItems: "request_items", Requests: "requests", SchemaMigrations: "schema_migrations", Stocks: "stocks", Units: "units", Users: "users", }
var UnitColumns = struct { ID string Name string }{ ID: "id", Name: "name", }
var UnitRels = struct { AllocationItems string DonationItems string RequestItems string Stocks string }{ AllocationItems: "AllocationItems", DonationItems: "DonationItems", RequestItems: "RequestItems", Stocks: "Stocks", }
UnitRels is where relationship names are stored.
var UnitWhere = struct { ID whereHelperstring Name whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var UserColumns = struct { ID string Email string Password string Name string ContactPerson string ContactNumber string Role string }{ ID: "id", Email: "email", Password: "password", Name: "name", ContactPerson: "contact_person", ContactNumber: "contact_number", Role: "role", }
var UserRels = struct { AllocatorAllocations string DonatorDonations string PasswordResetRequests string DonationApplicantRequests string }{ AllocatorAllocations: "AllocatorAllocations", DonatorDonations: "DonatorDonations", PasswordResetRequests: "PasswordResetRequests", DonationApplicantRequests: "DonationApplicantRequests", }
UserRels is where relationship names are stored.
var UserWhere = struct { ID whereHelperstring Email whereHelperstring Password whereHelperstring Name whereHelperstring ContactPerson whereHelpernull_String ContactNumber whereHelpernull_String Role whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, Password: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, ContactPerson: whereHelpernull_String{/* contains filtered or unexported fields */}, ContactNumber: whereHelpernull_String{/* contains filtered or unexported fields */}, Role: whereHelperstring{/* contains filtered or unexported fields */}, }
Functions ¶
func AddAllocationHook ¶
func AddAllocationHook(hookPoint boil.HookPoint, allocationHook AllocationHook)
AddAllocationHook registers your hook function for all future operations.
func AddAllocationItemHook ¶
func AddAllocationItemHook(hookPoint boil.HookPoint, allocationItemHook AllocationItemHook)
AddAllocationItemHook registers your hook function for all future operations.
func AddDonationHook ¶
func AddDonationHook(hookPoint boil.HookPoint, donationHook DonationHook)
AddDonationHook registers your hook function for all future operations.
func AddDonationItemHook ¶
func AddDonationItemHook(hookPoint boil.HookPoint, donationItemHook DonationItemHook)
AddDonationItemHook registers your hook function for all future operations.
func AddItemHook ¶
AddItemHook registers your hook function for all future operations.
func AddPasswordResetRequestHook ¶
func AddPasswordResetRequestHook(hookPoint boil.HookPoint, passwordResetRequestHook PasswordResetRequestHook)
AddPasswordResetRequestHook registers your hook function for all future operations.
func AddRequestHook ¶
func AddRequestHook(hookPoint boil.HookPoint, requestHook RequestHook)
AddRequestHook registers your hook function for all future operations.
func AddRequestItemAllocationHook ¶
func AddRequestItemAllocationHook(hookPoint boil.HookPoint, requestItemAllocationHook RequestItemAllocationHook)
AddRequestItemAllocationHook registers your hook function for all future operations.
func AddRequestItemHook ¶
func AddRequestItemHook(hookPoint boil.HookPoint, requestItemHook RequestItemHook)
AddRequestItemHook registers your hook function for all future operations.
func AddSchemaMigrationHook ¶
func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)
AddSchemaMigrationHook registers your hook function for all future operations.
func AddStockHook ¶
AddStockHook registers your hook function for all future operations.
func AddUnitHook ¶
AddUnitHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func AllocationExists ¶
AllocationExists checks if the Allocation row exists.
func AllocationItemExists ¶
AllocationItemExists checks if the AllocationItem row exists.
func AllocationItems ¶
AllocationItems retrieves all the records using an executor.
func Allocations ¶
Allocations retrieves all the records using an executor.
func DonationExists ¶
DonationExists checks if the Donation row exists.
func DonationItemExists ¶
DonationItemExists checks if the DonationItem row exists.
func DonationItems ¶
DonationItems retrieves all the records using an executor.
func ItemExists ¶
ItemExists checks if the Item row exists.
func PasswordResetRequestExists ¶
func PasswordResetRequestExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
PasswordResetRequestExists checks if the PasswordResetRequest row exists.
func PasswordResetRequests ¶
PasswordResetRequests retrieves all the records using an executor.
func RequestExists ¶
RequestExists checks if the Request row exists.
func RequestItemAllocationExists ¶
func RequestItemAllocationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
RequestItemAllocationExists checks if the RequestItemAllocation row exists.
func RequestItemAllocations ¶
RequestItemAllocations retrieves all the records using an executor.
func RequestItemExists ¶
RequestItemExists checks if the RequestItem row exists.
func RequestItems ¶
RequestItems retrieves all the records using an executor.
func SchemaMigrationExists ¶
func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)
SchemaMigrationExists checks if the SchemaMigration row exists.
func SchemaMigrations ¶
SchemaMigrations retrieves all the records using an executor.
func StockExists ¶
StockExists checks if the Stock row exists.
func UnitExists ¶
UnitExists checks if the Unit row exists.
func UserExists ¶
UserExists checks if the User row exists.
Types ¶
type Allocation ¶
type Allocation struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` RequestID string `boil:"request_id" json:"request_id" toml:"request_id" yaml:"request_id"` Date time.Time `boil:"date" json:"date" toml:"date" yaml:"date"` PhotoURL null.String `boil:"photo_url" json:"photo_url,omitempty" toml:"photo_url" yaml:"photo_url,omitempty"` AllocatorID string `boil:"allocator_id" json:"allocator_id" toml:"allocator_id" yaml:"allocator_id"` R *allocationR `boil:"-" json:"-" toml:"-" yaml:"-"` L allocationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Allocation is an object representing the database table.
func FindAllocation ¶
func FindAllocation(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Allocation, error)
FindAllocation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Allocation) AddAllocationItems ¶
func (o *Allocation) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AllocationItem) error
AddAllocationItems adds the given related objects to the existing relationships of the allocation, optionally inserting them as new records. Appends related to o.R.AllocationItems. Sets related.R.Allocation appropriately.
func (*Allocation) AllocationItems ¶
func (o *Allocation) AllocationItems(mods ...qm.QueryMod) allocationItemQuery
AllocationItems retrieves all the allocation_item's AllocationItems with an executor.
func (*Allocation) Allocator ¶
func (o *Allocation) Allocator(mods ...qm.QueryMod) userQuery
Allocator pointed to by the foreign key.
func (*Allocation) Delete ¶
func (o *Allocation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single Allocation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Allocation) Insert ¶
func (o *Allocation) 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 (*Allocation) Reload ¶
func (o *Allocation) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Allocation) Request ¶
func (o *Allocation) Request(mods ...qm.QueryMod) requestQuery
Request pointed to by the foreign key.
func (*Allocation) SetAllocator ¶
func (o *Allocation) SetAllocator(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetAllocator of the allocation to the related item. Sets o.R.Allocator to related. Adds o to related.R.AllocatorAllocations.
func (*Allocation) SetRequest ¶
func (o *Allocation) SetRequest(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Request) error
SetRequest of the allocation to the related item. Sets o.R.Request to related. Adds o to related.R.Allocations.
func (*Allocation) Update ¶
func (o *Allocation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Allocation. 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 (*Allocation) Upsert ¶
func (o *Allocation) 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 AllocationHook ¶
type AllocationHook func(context.Context, boil.ContextExecutor, *Allocation) error
AllocationHook is the signature for custom Allocation hook methods
type AllocationItem ¶
type AllocationItem struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AllocationID string `boil:"allocation_id" json:"allocation_id" toml:"allocation_id" yaml:"allocation_id"` ItemID string `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"` UnitID string `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"` Quantity types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"` R *allocationItemR `boil:"-" json:"-" toml:"-" yaml:"-"` L allocationItemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
AllocationItem is an object representing the database table.
func FindAllocationItem ¶
func FindAllocationItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*AllocationItem, error)
FindAllocationItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*AllocationItem) Allocation ¶
func (o *AllocationItem) Allocation(mods ...qm.QueryMod) allocationQuery
Allocation pointed to by the foreign key.
func (*AllocationItem) Delete ¶
func (o *AllocationItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single AllocationItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*AllocationItem) Insert ¶
func (o *AllocationItem) 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 (*AllocationItem) Item ¶
func (o *AllocationItem) Item(mods ...qm.QueryMod) itemQuery
Item pointed to by the foreign key.
func (*AllocationItem) Reload ¶
func (o *AllocationItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*AllocationItem) SetAllocation ¶
func (o *AllocationItem) SetAllocation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Allocation) error
SetAllocation of the allocationItem to the related item. Sets o.R.Allocation to related. Adds o to related.R.AllocationItems.
func (*AllocationItem) SetItem ¶
func (o *AllocationItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetItem of the allocationItem to the related item. Sets o.R.Item to related. Adds o to related.R.AllocationItems.
func (*AllocationItem) SetUnit ¶
func (o *AllocationItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
SetUnit of the allocationItem to the related item. Sets o.R.Unit to related. Adds o to related.R.AllocationItems.
func (*AllocationItem) Unit ¶
func (o *AllocationItem) Unit(mods ...qm.QueryMod) unitQuery
Unit pointed to by the foreign key.
func (*AllocationItem) Update ¶
func (o *AllocationItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the AllocationItem. 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 (*AllocationItem) Upsert ¶
func (o *AllocationItem) 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 AllocationItemHook ¶
type AllocationItemHook func(context.Context, boil.ContextExecutor, *AllocationItem) error
AllocationItemHook is the signature for custom AllocationItem hook methods
type AllocationItemSlice ¶
type AllocationItemSlice []*AllocationItem
AllocationItemSlice is an alias for a slice of pointers to AllocationItem. This should generally be used opposed to []AllocationItem.
func (AllocationItemSlice) DeleteAll ¶
func (o AllocationItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AllocationItemSlice) ReloadAll ¶
func (o *AllocationItemSlice) 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 (AllocationItemSlice) UpdateAll ¶
func (o AllocationItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type AllocationSlice ¶
type AllocationSlice []*Allocation
AllocationSlice is an alias for a slice of pointers to Allocation. This should generally be used opposed to []Allocation.
func (AllocationSlice) DeleteAll ¶
func (o AllocationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AllocationSlice) ReloadAll ¶
func (o *AllocationSlice) 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 (AllocationSlice) UpdateAll ¶
func (o AllocationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Donation ¶
type Donation struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Date time.Time `boil:"date" json:"date" toml:"date" yaml:"date"` IsAccepted bool `boil:"is_accepted" json:"is_accepted" toml:"is_accepted" yaml:"is_accepted"` IsDonated bool `boil:"is_donated" json:"is_donated" toml:"is_donated" yaml:"is_donated"` DonatorID string `boil:"donator_id" json:"donator_id" toml:"donator_id" yaml:"donator_id"` R *donationR `boil:"-" json:"-" toml:"-" yaml:"-"` L donationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Donation is an object representing the database table.
func FindDonation ¶
func FindDonation(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Donation, error)
FindDonation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Donation) AddDonationItems ¶
func (o *Donation) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DonationItem) error
AddDonationItems adds the given related objects to the existing relationships of the donation, optionally inserting them as new records. Appends related to o.R.DonationItems. Sets related.R.Donation appropriately.
func (*Donation) Delete ¶
Delete deletes a single Donation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Donation) DonationItems ¶
DonationItems retrieves all the donation_item's DonationItems with an executor.
func (*Donation) Insert ¶
func (o *Donation) 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 (*Donation) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Donation) SetDonator ¶
func (o *Donation) SetDonator(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetDonator of the donation to the related item. Sets o.R.Donator to related. Adds o to related.R.DonatorDonations.
func (*Donation) Update ¶
func (o *Donation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Donation. 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 (*Donation) Upsert ¶
func (o *Donation) 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 DonationHook ¶
DonationHook is the signature for custom Donation hook methods
type DonationItem ¶
type DonationItem struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` DonationID string `boil:"donation_id" json:"donation_id" toml:"donation_id" yaml:"donation_id"` ItemID string `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"` UnitID string `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"` Quantity types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"` R *donationItemR `boil:"-" json:"-" toml:"-" yaml:"-"` L donationItemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
DonationItem is an object representing the database table.
func FindDonationItem ¶
func FindDonationItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*DonationItem, error)
FindDonationItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*DonationItem) Delete ¶
func (o *DonationItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single DonationItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DonationItem) Donation ¶
func (o *DonationItem) Donation(mods ...qm.QueryMod) donationQuery
Donation pointed to by the foreign key.
func (*DonationItem) Insert ¶
func (o *DonationItem) 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 (*DonationItem) Item ¶
func (o *DonationItem) Item(mods ...qm.QueryMod) itemQuery
Item pointed to by the foreign key.
func (*DonationItem) Reload ¶
func (o *DonationItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*DonationItem) SetDonation ¶
func (o *DonationItem) SetDonation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Donation) error
SetDonation of the donationItem to the related item. Sets o.R.Donation to related. Adds o to related.R.DonationItems.
func (*DonationItem) SetItem ¶
func (o *DonationItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetItem of the donationItem to the related item. Sets o.R.Item to related. Adds o to related.R.DonationItems.
func (*DonationItem) SetUnit ¶
func (o *DonationItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
SetUnit of the donationItem to the related item. Sets o.R.Unit to related. Adds o to related.R.DonationItems.
func (*DonationItem) Unit ¶
func (o *DonationItem) Unit(mods ...qm.QueryMod) unitQuery
Unit pointed to by the foreign key.
func (*DonationItem) Update ¶
func (o *DonationItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the DonationItem. 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 (*DonationItem) Upsert ¶
func (o *DonationItem) 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 DonationItemHook ¶
type DonationItemHook func(context.Context, boil.ContextExecutor, *DonationItem) error
DonationItemHook is the signature for custom DonationItem hook methods
type DonationItemSlice ¶
type DonationItemSlice []*DonationItem
DonationItemSlice is an alias for a slice of pointers to DonationItem. This should generally be used opposed to []DonationItem.
func (DonationItemSlice) DeleteAll ¶
func (o DonationItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DonationItemSlice) ReloadAll ¶
func (o *DonationItemSlice) 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 (DonationItemSlice) UpdateAll ¶
func (o DonationItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type DonationSlice ¶
type DonationSlice []*Donation
DonationSlice is an alias for a slice of pointers to Donation. This should generally be used opposed to []Donation.
func (DonationSlice) DeleteAll ¶
func (o DonationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DonationSlice) ReloadAll ¶
func (o *DonationSlice) 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 (DonationSlice) UpdateAll ¶
func (o DonationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Item ¶
type Item struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *itemR `boil:"-" json:"-" toml:"-" yaml:"-"` L itemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Item is an object representing the database table.
func FindItem ¶
func FindItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Item, error)
FindItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Item) AddAllocationItems ¶
func (o *Item) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AllocationItem) error
AddAllocationItems adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.AllocationItems. Sets related.R.Item appropriately.
func (*Item) AddDonationItems ¶
func (o *Item) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DonationItem) error
AddDonationItems adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.DonationItems. Sets related.R.Item appropriately.
func (*Item) AddRequestItems ¶
func (o *Item) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RequestItem) error
AddRequestItems adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.RequestItems. Sets related.R.Item appropriately.
func (*Item) AddStocks ¶
func (o *Item) AddStocks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Stock) error
AddStocks adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Item appropriately.
func (*Item) AllocationItems ¶
AllocationItems retrieves all the allocation_item's AllocationItems with an executor.
func (*Item) Delete ¶
Delete deletes a single Item record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Item) DonationItems ¶
DonationItems retrieves all the donation_item's DonationItems with an executor.
func (*Item) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Item) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Item) RequestItems ¶
RequestItems retrieves all the request_item's RequestItems with an executor.
func (*Item) Update ¶
func (o *Item) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Item. 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 (*Item) Upsert ¶
func (o *Item) 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 ItemSlice ¶
type ItemSlice []*Item
ItemSlice is an alias for a slice of pointers to Item. This should generally be used opposed to []Item.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type PasswordResetRequest ¶
type PasswordResetRequest struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Date time.Time `boil:"date" json:"date" toml:"date" yaml:"date"` R *passwordResetRequestR `boil:"-" json:"-" toml:"-" yaml:"-"` L passwordResetRequestL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PasswordResetRequest is an object representing the database table.
func FindPasswordResetRequest ¶
func FindPasswordResetRequest(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*PasswordResetRequest, error)
FindPasswordResetRequest retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*PasswordResetRequest) Delete ¶
func (o *PasswordResetRequest) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single PasswordResetRequest record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PasswordResetRequest) Insert ¶
func (o *PasswordResetRequest) 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 (*PasswordResetRequest) Reload ¶
func (o *PasswordResetRequest) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*PasswordResetRequest) SetUser ¶
func (o *PasswordResetRequest) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the passwordResetRequest to the related item. Sets o.R.User to related. Adds o to related.R.PasswordResetRequests.
func (*PasswordResetRequest) Update ¶
func (o *PasswordResetRequest) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PasswordResetRequest. 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 (*PasswordResetRequest) Upsert ¶
func (o *PasswordResetRequest) 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.
func (*PasswordResetRequest) User ¶
func (o *PasswordResetRequest) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type PasswordResetRequestHook ¶
type PasswordResetRequestHook func(context.Context, boil.ContextExecutor, *PasswordResetRequest) error
PasswordResetRequestHook is the signature for custom PasswordResetRequest hook methods
type PasswordResetRequestSlice ¶
type PasswordResetRequestSlice []*PasswordResetRequest
PasswordResetRequestSlice is an alias for a slice of pointers to PasswordResetRequest. This should generally be used opposed to []PasswordResetRequest.
func (PasswordResetRequestSlice) DeleteAll ¶
func (o PasswordResetRequestSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PasswordResetRequestSlice) ReloadAll ¶
func (o *PasswordResetRequestSlice) 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 (PasswordResetRequestSlice) UpdateAll ¶
func (o PasswordResetRequestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Request ¶
type Request struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Date time.Time `boil:"date" json:"date" toml:"date" yaml:"date"` IsFulfilled bool `boil:"is_fulfilled" json:"is_fulfilled" toml:"is_fulfilled" yaml:"is_fulfilled"` DonationApplicantID string `boil:"donation_applicant_id" json:"donation_applicant_id" toml:"donation_applicant_id" yaml:"donation_applicant_id"` R *requestR `boil:"-" json:"-" toml:"-" yaml:"-"` L requestL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Request is an object representing the database table.
func FindRequest ¶
func FindRequest(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Request, error)
FindRequest retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Request) AddAllocations ¶
func (o *Request) AddAllocations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Allocation) error
AddAllocations adds the given related objects to the existing relationships of the request, optionally inserting them as new records. Appends related to o.R.Allocations. Sets related.R.Request appropriately.
func (*Request) AddRequestItems ¶
func (o *Request) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RequestItem) error
AddRequestItems adds the given related objects to the existing relationships of the request, optionally inserting them as new records. Appends related to o.R.RequestItems. Sets related.R.Request appropriately.
func (*Request) Allocations ¶
Allocations retrieves all the allocation's Allocations with an executor.
func (*Request) Delete ¶
Delete deletes a single Request record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Request) DonationApplicant ¶
DonationApplicant pointed to by the foreign key.
func (*Request) Insert ¶
func (o *Request) 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 (*Request) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Request) RequestItems ¶
RequestItems retrieves all the request_item's RequestItems with an executor.
func (*Request) SetDonationApplicant ¶
func (o *Request) SetDonationApplicant(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetDonationApplicant of the request to the related item. Sets o.R.DonationApplicant to related. Adds o to related.R.DonationApplicantRequests.
func (*Request) Update ¶
func (o *Request) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Request. 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 (*Request) Upsert ¶
func (o *Request) 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 RequestHook ¶
RequestHook is the signature for custom Request hook methods
type RequestItem ¶
type RequestItem struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` ItemID string `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"` UnitID string `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"` Quantity types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"` RequestID string `boil:"request_id" json:"request_id" toml:"request_id" yaml:"request_id"` R *requestItemR `boil:"-" json:"-" toml:"-" yaml:"-"` L requestItemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RequestItem is an object representing the database table.
func FindRequestItem ¶
func FindRequestItem(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RequestItem, error)
FindRequestItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RequestItem) Delete ¶
func (o *RequestItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RequestItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RequestItem) Insert ¶
func (o *RequestItem) 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 (*RequestItem) Item ¶
func (o *RequestItem) Item(mods ...qm.QueryMod) itemQuery
Item pointed to by the foreign key.
func (*RequestItem) Reload ¶
func (o *RequestItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RequestItem) Request ¶
func (o *RequestItem) Request(mods ...qm.QueryMod) requestQuery
Request pointed to by the foreign key.
func (*RequestItem) RequestItemAllocation ¶
func (o *RequestItem) RequestItemAllocation(mods ...qm.QueryMod) requestItemAllocationQuery
RequestItemAllocation pointed to by the foreign key.
func (*RequestItem) SetItem ¶
func (o *RequestItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetItem of the requestItem to the related item. Sets o.R.Item to related. Adds o to related.R.RequestItems.
func (*RequestItem) SetRequest ¶
func (o *RequestItem) SetRequest(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Request) error
SetRequest of the requestItem to the related item. Sets o.R.Request to related. Adds o to related.R.RequestItems.
func (*RequestItem) SetRequestItemAllocation ¶
func (o *RequestItem) SetRequestItemAllocation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RequestItemAllocation) error
SetRequestItemAllocation of the requestItem to the related item. Sets o.R.RequestItemAllocation to related. Adds o to related.R.RequestItem.
func (*RequestItem) SetUnit ¶
func (o *RequestItem) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
SetUnit of the requestItem to the related item. Sets o.R.Unit to related. Adds o to related.R.RequestItems.
func (*RequestItem) Unit ¶
func (o *RequestItem) Unit(mods ...qm.QueryMod) unitQuery
Unit pointed to by the foreign key.
func (*RequestItem) Update ¶
func (o *RequestItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RequestItem. 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 (*RequestItem) Upsert ¶
func (o *RequestItem) 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 RequestItemAllocation ¶
type RequestItemAllocation struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` RequestItemID string `boil:"request_item_id" json:"request_item_id" toml:"request_item_id" yaml:"request_item_id"` AllocationDate time.Time `boil:"allocation_date" json:"allocation_date" toml:"allocation_date" yaml:"allocation_date"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` R *requestItemAllocationR `boil:"-" json:"-" toml:"-" yaml:"-"` L requestItemAllocationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RequestItemAllocation is an object representing the database table.
func FindRequestItemAllocation ¶
func FindRequestItemAllocation(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RequestItemAllocation, error)
FindRequestItemAllocation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RequestItemAllocation) Delete ¶
func (o *RequestItemAllocation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RequestItemAllocation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RequestItemAllocation) Insert ¶
func (o *RequestItemAllocation) 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 (*RequestItemAllocation) Reload ¶
func (o *RequestItemAllocation) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RequestItemAllocation) RequestItem ¶
func (o *RequestItemAllocation) RequestItem(mods ...qm.QueryMod) requestItemQuery
RequestItem pointed to by the foreign key.
func (*RequestItemAllocation) SetRequestItem ¶
func (o *RequestItemAllocation) SetRequestItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RequestItem) error
SetRequestItem of the requestItemAllocation to the related item. Sets o.R.RequestItem to related. Adds o to related.R.RequestItemAllocation.
func (*RequestItemAllocation) Update ¶
func (o *RequestItemAllocation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RequestItemAllocation. 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 (*RequestItemAllocation) Upsert ¶
func (o *RequestItemAllocation) 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 RequestItemAllocationHook ¶
type RequestItemAllocationHook func(context.Context, boil.ContextExecutor, *RequestItemAllocation) error
RequestItemAllocationHook is the signature for custom RequestItemAllocation hook methods
type RequestItemAllocationSlice ¶
type RequestItemAllocationSlice []*RequestItemAllocation
RequestItemAllocationSlice is an alias for a slice of pointers to RequestItemAllocation. This should generally be used opposed to []RequestItemAllocation.
func (RequestItemAllocationSlice) DeleteAll ¶
func (o RequestItemAllocationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RequestItemAllocationSlice) ReloadAll ¶
func (o *RequestItemAllocationSlice) 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 (RequestItemAllocationSlice) UpdateAll ¶
func (o RequestItemAllocationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type RequestItemHook ¶
type RequestItemHook func(context.Context, boil.ContextExecutor, *RequestItem) error
RequestItemHook is the signature for custom RequestItem hook methods
type RequestItemSlice ¶
type RequestItemSlice []*RequestItem
RequestItemSlice is an alias for a slice of pointers to RequestItem. This should generally be used opposed to []RequestItem.
func (RequestItemSlice) DeleteAll ¶
func (o RequestItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RequestItemSlice) ReloadAll ¶
func (o *RequestItemSlice) 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 (RequestItemSlice) UpdateAll ¶
func (o RequestItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type RequestSlice ¶
type RequestSlice []*Request
RequestSlice is an alias for a slice of pointers to Request. This should generally be used opposed to []Request.
func (RequestSlice) DeleteAll ¶
func (o RequestSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RequestSlice) ReloadAll ¶
func (o *RequestSlice) 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 (RequestSlice) UpdateAll ¶
func (o RequestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type SchemaMigration ¶
type SchemaMigration struct { Version int64 `boil:"version" json:"version" toml:"version" yaml:"version"` Dirty bool `boil:"dirty" json:"dirty" toml:"dirty" yaml:"dirty"` R *schemaMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"` L schemaMigrationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
SchemaMigration is an object representing the database table.
func FindSchemaMigration ¶
func FindSchemaMigration(ctx context.Context, exec boil.ContextExecutor, version int64, selectCols ...string) (*SchemaMigration, error)
FindSchemaMigration retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*SchemaMigration) Delete ¶
func (o *SchemaMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single SchemaMigration record with an executor. Delete will match against the primary key column to find the record to delete.
func (*SchemaMigration) Insert ¶
func (o *SchemaMigration) 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 (*SchemaMigration) Reload ¶
func (o *SchemaMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*SchemaMigration) Update ¶
func (o *SchemaMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the SchemaMigration. 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 (*SchemaMigration) Upsert ¶
func (o *SchemaMigration) 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 SchemaMigrationHook ¶
type SchemaMigrationHook func(context.Context, boil.ContextExecutor, *SchemaMigration) error
SchemaMigrationHook is the signature for custom SchemaMigration hook methods
type SchemaMigrationSlice ¶
type SchemaMigrationSlice []*SchemaMigration
SchemaMigrationSlice is an alias for a slice of pointers to SchemaMigration. This should generally be used opposed to []SchemaMigration.
func (SchemaMigrationSlice) DeleteAll ¶
func (o SchemaMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SchemaMigrationSlice) ReloadAll ¶
func (o *SchemaMigrationSlice) 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 (SchemaMigrationSlice) UpdateAll ¶
func (o SchemaMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Stock ¶
type Stock struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` ItemID string `boil:"item_id" json:"item_id" toml:"item_id" yaml:"item_id"` UnitID string `boil:"unit_id" json:"unit_id" toml:"unit_id" yaml:"unit_id"` Quantity types.Decimal `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"` R *stockR `boil:"-" json:"-" toml:"-" yaml:"-"` L stockL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Stock is an object representing the database table.
func FindStock ¶
func FindStock(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Stock, error)
FindStock retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Stock) Delete ¶
Delete deletes a single Stock record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Stock) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Stock) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Stock) SetItem ¶
func (o *Stock) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetItem of the stock to the related item. Sets o.R.Item to related. Adds o to related.R.Stocks.
func (*Stock) SetUnit ¶
func (o *Stock) SetUnit(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Unit) error
SetUnit of the stock to the related item. Sets o.R.Unit to related. Adds o to related.R.Stocks.
func (*Stock) Update ¶
func (o *Stock) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Stock. 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 (*Stock) Upsert ¶
func (o *Stock) 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 StockSlice ¶
type StockSlice []*Stock
StockSlice is an alias for a slice of pointers to Stock. This should generally be used opposed to []Stock.
func (StockSlice) DeleteAll ¶
func (o StockSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*StockSlice) ReloadAll ¶
func (o *StockSlice) 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 (StockSlice) UpdateAll ¶
func (o StockSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Unit ¶
type Unit struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *unitR `boil:"-" json:"-" toml:"-" yaml:"-"` L unitL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Unit is an object representing the database table.
func FindUnit ¶
func FindUnit(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Unit, error)
FindUnit retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Unit) AddAllocationItems ¶
func (o *Unit) AddAllocationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AllocationItem) error
AddAllocationItems adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.AllocationItems. Sets related.R.Unit appropriately.
func (*Unit) AddDonationItems ¶
func (o *Unit) AddDonationItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*DonationItem) error
AddDonationItems adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.DonationItems. Sets related.R.Unit appropriately.
func (*Unit) AddRequestItems ¶
func (o *Unit) AddRequestItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RequestItem) error
AddRequestItems adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.RequestItems. Sets related.R.Unit appropriately.
func (*Unit) AddStocks ¶
func (o *Unit) AddStocks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Stock) error
AddStocks adds the given related objects to the existing relationships of the unit, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Unit appropriately.
func (*Unit) AllocationItems ¶
AllocationItems retrieves all the allocation_item's AllocationItems with an executor.
func (*Unit) Delete ¶
Delete deletes a single Unit record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Unit) DonationItems ¶
DonationItems retrieves all the donation_item's DonationItems with an executor.
func (*Unit) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Unit) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Unit) RequestItems ¶
RequestItems retrieves all the request_item's RequestItems with an executor.
func (*Unit) Update ¶
func (o *Unit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Unit. 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 (*Unit) Upsert ¶
func (o *Unit) 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 UnitSlice ¶
type UnitSlice []*Unit
UnitSlice is an alias for a slice of pointers to Unit. This should generally be used opposed to []Unit.
type User ¶
type User struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Email string `boil:"email" json:"email" toml:"email" yaml:"email"` Password string `boil:"password" json:"password,omitempty" toml:"password" yaml:"password"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` ContactPerson null.String `boil:"contact_person" json:"contact_person,omitempty" toml:"contact_person" yaml:"contact_person,omitempty"` ContactNumber null.String `boil:"contact_number" json:"contact_number,omitempty" toml:"contact_number" yaml:"contact_number,omitempty"` Role string `boil:"role" json:"role" toml:"role" yaml:"role"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) AddAllocatorAllocations ¶
func (o *User) AddAllocatorAllocations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Allocation) error
AddAllocatorAllocations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.AllocatorAllocations. Sets related.R.Allocator appropriately.
func (*User) AddDonationApplicantRequests ¶
func (o *User) AddDonationApplicantRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Request) error
AddDonationApplicantRequests adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.DonationApplicantRequests. Sets related.R.DonationApplicant appropriately.
func (*User) AddDonatorDonations ¶
func (o *User) AddDonatorDonations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Donation) error
AddDonatorDonations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.DonatorDonations. Sets related.R.Donator appropriately.
func (*User) AddPasswordResetRequests ¶
func (o *User) AddPasswordResetRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PasswordResetRequest) error
AddPasswordResetRequests adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PasswordResetRequests. Sets related.R.User appropriately.
func (*User) AllocatorAllocations ¶
AllocatorAllocations retrieves all the allocation's Allocations with an executor via allocator_id column.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) DonationApplicantRequests ¶
DonationApplicantRequests retrieves all the request's Requests with an executor via donation_applicant_id column.
func (*User) DonatorDonations ¶
DonatorDonations retrieves all the donation's Donations with an executor via donator_id column.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) PasswordResetRequests ¶
PasswordResetRequests retrieves all the password_reset_request's PasswordResetRequests with an executor.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. 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 (*User) Upsert ¶
func (o *User) 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 UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.