Documentation
¶
Index ¶
- Variables
- func BoxKeyShareExists(ctx context.Context, exec boil.ContextExecutor, invitationShareHash string) (bool, error)
- func BoxKeyShares(mods ...qm.QueryMod) boxKeyShareQuery
- func BoxSettingExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func BoxSettings(mods ...qm.QueryMod) boxSettingQuery
- func BoxUsedSpaceExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func BoxUsedSpaces(mods ...qm.QueryMod) boxUsedSpaceQuery
- func EncryptedFileExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func EncryptedFiles(mods ...qm.QueryMod) encryptedFileQuery
- func EventExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Events(mods ...qm.QueryMod) eventQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func SavedFileExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func SavedFiles(mods ...qm.QueryMod) savedFileQuery
- func StorageQuota(mods ...qm.QueryMod) storageQuotumQuery
- func StorageQuotumExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- type BoxKeyShare
- func (o *BoxKeyShare) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *BoxKeyShare) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *BoxKeyShare) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *BoxKeyShare) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *BoxKeyShare) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type BoxKeyShareSlice
- type BoxSetting
- func (o *BoxSetting) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *BoxSetting) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *BoxSetting) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *BoxSetting) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *BoxSetting) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type BoxSettingSlice
- type BoxUsedSpace
- func (o *BoxUsedSpace) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *BoxUsedSpace) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *BoxUsedSpace) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *BoxUsedSpace) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *BoxUsedSpace) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type BoxUsedSpaceSlice
- type EncryptedFile
- func (o *EncryptedFile) AddSavedFiles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *EncryptedFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EncryptedFile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *EncryptedFile) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *EncryptedFile) SavedFiles(mods ...qm.QueryMod) savedFileQuery
- func (o *EncryptedFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *EncryptedFile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type EncryptedFileSlice
- func (o EncryptedFileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *EncryptedFileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o EncryptedFileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Event
- func (o *Event) AddReferrerEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error
- func (o *Event) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Event) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Event) Referrer(mods ...qm.QueryMod) eventQuery
- func (o *Event) ReferrerEvents(mods ...qm.QueryMod) eventQuery
- func (o *Event) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Event) RemoveReferrer(ctx context.Context, exec boil.ContextExecutor, related *Event) error
- func (o *Event) RemoveReferrerEvents(ctx context.Context, exec boil.ContextExecutor, related ...*Event) error
- func (o *Event) SetReferrer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Event) error
- func (o *Event) SetReferrerEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error
- func (o *Event) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Event) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type EventSlice
- type M
- type SavedFile
- func (o *SavedFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SavedFile) EncryptedFile(mods ...qm.QueryMod) encryptedFileQuery
- func (o *SavedFile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SavedFile) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SavedFile) SetEncryptedFile(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *SavedFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SavedFile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type SavedFileSlice
- type StorageQuotum
- func (o *StorageQuotum) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StorageQuotum) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *StorageQuotum) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *StorageQuotum) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *StorageQuotum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type StorageQuotumSlice
- func (o StorageQuotumSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *StorageQuotumSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o StorageQuotumSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
string Share string CreatedAt string BoxID string CreatorID string EncryptedInvitationKeyShare string }{ InvitationShareHash: "invitation_share_hash", Share: "share", CreatedAt: "created_at", BoxID: "box_id", CreatorID: "creator_id", EncryptedInvitationKeyShare: "encrypted_invitation_key_share", }InvitationShareHash
}{}BoxKeyShareRels is where relationship names are stored.
/* contains filtered or unexported fields */}, Share: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, BoxID: whereHelperstring{/* contains filtered or unexported fields */}, CreatorID: whereHelperstring{/* contains filtered or unexported fields */}, EncryptedInvitationKeyShare: whereHelpernull_String{/* contains filtered or unexported fields */}, }InvitationShareHash whereHelperstring Share whereHelperstring CreatedAt whereHelpertime_Time BoxID whereHelperstring CreatorID whereHelperstring EncryptedInvitationKeyShare whereHelpernull_String }{ InvitationShareHash: whereHelperstring{
var BoxSettingColumns = struct { ID string BoxID string IdentityID string Muted string UpdatedAt string }{ ID: "id", BoxID: "box_id", IdentityID: "identity_id", Muted: "muted", UpdatedAt: "updated_at", }
var BoxSettingRels = struct {
}{}
BoxSettingRels is where relationship names are stored.
var BoxSettingWhere = struct { ID whereHelperint BoxID whereHelperstring IdentityID whereHelperstring Muted whereHelperbool UpdatedAt whereHelpertime_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, BoxID: whereHelperstring{/* contains filtered or unexported fields */}, IdentityID: whereHelperstring{/* contains filtered or unexported fields */}, Muted: whereHelperbool{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var BoxUsedSpaceColumns = struct { ID string BoxID string Value string CreatedAt string }{ ID: "id", BoxID: "box_id", Value: "value", CreatedAt: "created_at", }
var BoxUsedSpaceRels = struct {
}{}
BoxUsedSpaceRels is where relationship names are stored.
var BoxUsedSpaceWhere = struct { ID whereHelperstring BoxID whereHelperstring Value whereHelperint64 CreatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, BoxID: whereHelperstring{/* contains filtered or unexported fields */}, Value: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var EncryptedFileColumns = struct { ID string Size string CreatedAt string }{ ID: "id", Size: "size", CreatedAt: "created_at", }
var EncryptedFileRels = struct { SavedFiles string }{ SavedFiles: "SavedFiles", }
EncryptedFileRels is where relationship names are stored.
var EncryptedFileWhere = struct { ID whereHelperstring Size whereHelperint64 CreatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Size: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
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 EventColumns = struct { ID string BoxID string CreatedAt string SenderID string Type string Content string ReferrerID string }{ ID: "id", BoxID: "box_id", CreatedAt: "created_at", SenderID: "sender_id", Type: "type", Content: "content", ReferrerID: "referrer_id", }
var EventRels = struct { Referrer string ReferrerEvents string }{ Referrer: "Referrer", ReferrerEvents: "ReferrerEvents", }
EventRels is where relationship names are stored.
var EventWhere = struct { ID whereHelperstring BoxID whereHelperstring CreatedAt whereHelpertime_Time SenderID whereHelperstring Type whereHelperstring Content whereHelpernull_JSON ReferrerID whereHelpernull_String }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, BoxID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, SenderID: whereHelperstring{/* contains filtered or unexported fields */}, Type: whereHelperstring{/* contains filtered or unexported fields */}, Content: whereHelpernull_JSON{/* contains filtered or unexported fields */}, ReferrerID: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var SavedFileColumns = struct { ID string IdentityID string EncryptedFileID string EncryptedMetadata string KeyFingerprint string CreatedAt string }{ ID: "id", IdentityID: "identity_id", EncryptedFileID: "encrypted_file_id", EncryptedMetadata: "encrypted_metadata", KeyFingerprint: "key_fingerprint", CreatedAt: "created_at", }
var SavedFileRels = struct { EncryptedFile string }{ EncryptedFile: "EncryptedFile", }
SavedFileRels is where relationship names are stored.
var SavedFileWhere = struct { ID whereHelperstring IdentityID whereHelperstring EncryptedFileID whereHelperstring EncryptedMetadata whereHelperstring KeyFingerprint whereHelperstring CreatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, IdentityID: whereHelperstring{/* contains filtered or unexported fields */}, EncryptedFileID: whereHelperstring{/* contains filtered or unexported fields */}, EncryptedMetadata: whereHelperstring{/* contains filtered or unexported fields */}, KeyFingerprint: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var StorageQuotumColumns = struct { ID string IdentityID string Value string Origin string CreatedAt string }{ ID: "id", IdentityID: "identity_id", Value: "value", Origin: "origin", CreatedAt: "created_at", }
var StorageQuotumRels = struct {
}{}
StorageQuotumRels is where relationship names are stored.
var StorageQuotumWhere = struct { ID whereHelperstring IdentityID whereHelperstring Value whereHelperint64 Origin whereHelperstring CreatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, IdentityID: whereHelperstring{/* contains filtered or unexported fields */}, Value: whereHelperint64{/* contains filtered or unexported fields */}, Origin: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { BoxKeyShare string BoxSetting string BoxUsedSpace string EncryptedFile string Event string SavedFile string StorageQuotum string }{ BoxKeyShare: "box_key_share", BoxSetting: "box_setting", BoxUsedSpace: "box_used_space", EncryptedFile: "encrypted_file", Event: "event", SavedFile: "saved_file", StorageQuotum: "storage_quotum", }
Functions ¶
func BoxKeyShareExists ¶
func BoxKeyShareExists(ctx context.Context, exec boil.ContextExecutor, invitationShareHash string) (bool, error)
BoxKeyShareExists checks if the BoxKeyShare row exists.
func BoxKeyShares ¶
BoxKeyShares retrieves all the records using an executor.
func BoxSettingExists ¶
BoxSettingExists checks if the BoxSetting row exists.
func BoxSettings ¶
BoxSettings retrieves all the records using an executor.
func BoxUsedSpaceExists ¶
BoxUsedSpaceExists checks if the BoxUsedSpace row exists.
func BoxUsedSpaces ¶
BoxUsedSpaces retrieves all the records using an executor.
func EncryptedFileExists ¶
EncryptedFileExists checks if the EncryptedFile row exists.
func EncryptedFiles ¶
EncryptedFiles retrieves all the records using an executor.
func EventExists ¶
EventExists checks if the Event row exists.
func Events ¶
Events retrieves all the records using an executor.
func NewQuery ¶
NewQuery initializes a new Query using the passed in QueryMods
func SavedFileExists ¶
SavedFileExists checks if the SavedFile row exists.
func SavedFiles ¶
SavedFiles retrieves all the records using an executor.
func StorageQuota ¶
StorageQuota retrieves all the records using an executor.
Types ¶
type BoxKeyShare ¶
type BoxKeyShare struct {}
BoxKeyShare is an object representing the database table.
func FindBoxKeyShare ¶
func FindBoxKeyShare(ctx context.Context, exec boil.ContextExecutor, invitationShareHash string, selectCols ...string) (*BoxKeyShare, error)
FindBoxKeyShare retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*BoxKeyShare) Delete ¶
func (o *BoxKeyShare) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single BoxKeyShare record with an executor. Delete will match against the primary key column to find the record to delete.
func (*BoxKeyShare) Insert ¶
func (o *BoxKeyShare) 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 (*BoxKeyShare) Reload ¶
func (o *BoxKeyShare) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*BoxKeyShare) Update ¶
func (o *BoxKeyShare) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the BoxKeyShare. 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 (*BoxKeyShare) Upsert ¶
func (o *BoxKeyShare) 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 BoxKeyShareSlice ¶
type BoxKeyShareSlice []*BoxKeyShare
BoxKeyShareSlice is an alias for a slice of pointers to BoxKeyShare. This should generally be used opposed to []BoxKeyShare.
func (BoxKeyShareSlice) DeleteAll ¶
func (o BoxKeyShareSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BoxKeyShareSlice) ReloadAll ¶
func (o *BoxKeyShareSlice) 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 (BoxKeyShareSlice) UpdateAll ¶
func (o BoxKeyShareSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type BoxSetting ¶
type BoxSetting struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` BoxID string `boil:"box_id" json:"box_id" toml:"box_id" yaml:"box_id"` IdentityID string `boil:"identity_id" json:"identity_id" toml:"identity_id" yaml:"identity_id"` Muted bool `boil:"muted" json:"muted" toml:"muted" yaml:"muted"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *boxSettingR `boil:"-" json:"-" toml:"-" yaml:"-"` L boxSettingL `boil:"-" json:"-" toml:"-" yaml:"-"` }
BoxSetting is an object representing the database table.
func FindBoxSetting ¶
func FindBoxSetting(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*BoxSetting, error)
FindBoxSetting retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*BoxSetting) Delete ¶
func (o *BoxSetting) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single BoxSetting record with an executor. Delete will match against the primary key column to find the record to delete.
func (*BoxSetting) Insert ¶
func (o *BoxSetting) 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 (*BoxSetting) Reload ¶
func (o *BoxSetting) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*BoxSetting) Update ¶
func (o *BoxSetting) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the BoxSetting. 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 (*BoxSetting) Upsert ¶
func (o *BoxSetting) 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 BoxSettingSlice ¶
type BoxSettingSlice []*BoxSetting
BoxSettingSlice is an alias for a slice of pointers to BoxSetting. This should generally be used opposed to []BoxSetting.
func (BoxSettingSlice) DeleteAll ¶
func (o BoxSettingSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BoxSettingSlice) ReloadAll ¶
func (o *BoxSettingSlice) 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 (BoxSettingSlice) UpdateAll ¶
func (o BoxSettingSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type BoxUsedSpace ¶
type BoxUsedSpace struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` BoxID string `boil:"box_id" json:"box_id" toml:"box_id" yaml:"box_id"` Value int64 `boil:"value" json:"value" toml:"value" yaml:"value"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *boxUsedSpaceR `boil:"-" json:"-" toml:"-" yaml:"-"` L boxUsedSpaceL `boil:"-" json:"-" toml:"-" yaml:"-"` }
BoxUsedSpace is an object representing the database table.
func FindBoxUsedSpace ¶
func FindBoxUsedSpace(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*BoxUsedSpace, error)
FindBoxUsedSpace retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*BoxUsedSpace) Delete ¶
func (o *BoxUsedSpace) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single BoxUsedSpace record with an executor. Delete will match against the primary key column to find the record to delete.
func (*BoxUsedSpace) Insert ¶
func (o *BoxUsedSpace) 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 (*BoxUsedSpace) Reload ¶
func (o *BoxUsedSpace) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*BoxUsedSpace) Update ¶
func (o *BoxUsedSpace) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the BoxUsedSpace. 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 (*BoxUsedSpace) Upsert ¶
func (o *BoxUsedSpace) 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 BoxUsedSpaceSlice ¶
type BoxUsedSpaceSlice []*BoxUsedSpace
BoxUsedSpaceSlice is an alias for a slice of pointers to BoxUsedSpace. This should generally be used opposed to []BoxUsedSpace.
func (BoxUsedSpaceSlice) DeleteAll ¶
func (o BoxUsedSpaceSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BoxUsedSpaceSlice) ReloadAll ¶
func (o *BoxUsedSpaceSlice) 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 (BoxUsedSpaceSlice) UpdateAll ¶
func (o BoxUsedSpaceSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type EncryptedFile ¶
type EncryptedFile struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` Size int64 `boil:"size" json:"size" toml:"size" yaml:"size"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *encryptedFileR `boil:"-" json:"-" toml:"-" yaml:"-"` L encryptedFileL `boil:"-" json:"-" toml:"-" yaml:"-"` }
EncryptedFile is an object representing the database table.
func FindEncryptedFile ¶
func FindEncryptedFile(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*EncryptedFile, error)
FindEncryptedFile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*EncryptedFile) AddSavedFiles ¶
func (o *EncryptedFile) AddSavedFiles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SavedFile) error
AddSavedFiles adds the given related objects to the existing relationships of the encrypted_file, optionally inserting them as new records. Appends related to o.R.SavedFiles. Sets related.R.EncryptedFile appropriately.
func (*EncryptedFile) Delete ¶
func (o *EncryptedFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single EncryptedFile record with an executor. Delete will match against the primary key column to find the record to delete.
func (*EncryptedFile) Insert ¶
func (o *EncryptedFile) 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 (*EncryptedFile) Reload ¶
func (o *EncryptedFile) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*EncryptedFile) SavedFiles ¶
func (o *EncryptedFile) SavedFiles(mods ...qm.QueryMod) savedFileQuery
SavedFiles retrieves all the saved_file's SavedFiles with an executor.
func (*EncryptedFile) Update ¶
func (o *EncryptedFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the EncryptedFile. 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 (*EncryptedFile) Upsert ¶
func (o *EncryptedFile) 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 EncryptedFileSlice ¶
type EncryptedFileSlice []*EncryptedFile
EncryptedFileSlice is an alias for a slice of pointers to EncryptedFile. This should generally be used opposed to []EncryptedFile.
func (EncryptedFileSlice) DeleteAll ¶
func (o EncryptedFileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*EncryptedFileSlice) ReloadAll ¶
func (o *EncryptedFileSlice) 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 (EncryptedFileSlice) UpdateAll ¶
func (o EncryptedFileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Event ¶
type Event struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` BoxID string `boil:"box_id" json:"box_id" toml:"box_id" yaml:"box_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` SenderID string `boil:"sender_id" json:"sender_id" toml:"sender_id" yaml:"sender_id"` Type string `boil:"type" json:"type" toml:"type" yaml:"type"` Content null.JSON `boil:"content" json:"content,omitempty" toml:"content" yaml:"content,omitempty"` ReferrerID null.String `boil:"referrer_id" json:"referrer_id,omitempty" toml:"referrer_id" yaml:"referrer_id,omitempty"` R *eventR `boil:"-" json:"-" toml:"-" yaml:"-"` L eventL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Event is an object representing the database table.
func FindEvent ¶
func FindEvent(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Event, error)
FindEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Event) AddReferrerEvents ¶
func (o *Event) AddReferrerEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error
AddReferrerEvents adds the given related objects to the existing relationships of the event, optionally inserting them as new records. Appends related to o.R.ReferrerEvents. Sets related.R.Referrer appropriately.
func (*Event) Delete ¶
Delete deletes a single Event record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Event) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Event) Referrer ¶
Referrer pointed to by the foreign key.
func (*Event) ReferrerEvents ¶
ReferrerEvents retrieves all the event's Events with an executor via referrer_id column.
func (*Event) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Event) RemoveReferrer ¶
func (o *Event) RemoveReferrer(ctx context.Context, exec boil.ContextExecutor, related *Event) error
RemoveReferrer relationship. Sets o.R.Referrer to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Event) RemoveReferrerEvents ¶
func (o *Event) RemoveReferrerEvents(ctx context.Context, exec boil.ContextExecutor, related ...*Event) error
RemoveReferrerEvents relationships from objects passed in. Removes related items from R.ReferrerEvents (uses pointer comparison, removal does not keep order) Sets related.R.Referrer.
func (*Event) SetReferrer ¶
func (o *Event) SetReferrer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Event) error
SetReferrer of the event to the related item. Sets o.R.Referrer to related. Adds o to related.R.ReferrerEvents.
func (*Event) SetReferrerEvents ¶
func (o *Event) SetReferrerEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Event) error
SetReferrerEvents removes all previously related items of the event replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Referrer's ReferrerEvents accordingly. Replaces o.R.ReferrerEvents with related. Sets related.R.Referrer's ReferrerEvents accordingly.
func (*Event) Update ¶
func (o *Event) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Event. 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 (*Event) Upsert ¶
func (o *Event) 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 EventSlice ¶
type EventSlice []*Event
EventSlice is an alias for a slice of pointers to Event. This should generally be used opposed to []Event.
func (EventSlice) DeleteAll ¶
func (o EventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*EventSlice) ReloadAll ¶
func (o *EventSlice) 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 (EventSlice) UpdateAll ¶
func (o EventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type SavedFile ¶
type SavedFile struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` IdentityID string `boil:"identity_id" json:"identity_id" toml:"identity_id" yaml:"identity_id"` EncryptedFileID string `boil:"encrypted_file_id" json:"encrypted_file_id" toml:"encrypted_file_id" yaml:"encrypted_file_id"` EncryptedMetadata string `boil:"encrypted_metadata" json:"encrypted_metadata" toml:"encrypted_metadata" yaml:"encrypted_metadata"` KeyFingerprint string `boil:"key_fingerprint" json:"key_fingerprint" toml:"key_fingerprint" yaml:"key_fingerprint"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *savedFileR `boil:"-" json:"-" toml:"-" yaml:"-"` L savedFileL `boil:"-" json:"-" toml:"-" yaml:"-"` }
SavedFile is an object representing the database table.
func FindSavedFile ¶
func FindSavedFile(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*SavedFile, error)
FindSavedFile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*SavedFile) Delete ¶
Delete deletes a single SavedFile record with an executor. Delete will match against the primary key column to find the record to delete.
func (*SavedFile) EncryptedFile ¶
EncryptedFile pointed to by the foreign key.
func (*SavedFile) Insert ¶
func (o *SavedFile) 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 (*SavedFile) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*SavedFile) SetEncryptedFile ¶
func (o *SavedFile) SetEncryptedFile(ctx context.Context, exec boil.ContextExecutor, insert bool, related *EncryptedFile) error
SetEncryptedFile of the savedFile to the related item. Sets o.R.EncryptedFile to related. Adds o to related.R.SavedFiles.
func (*SavedFile) Update ¶
func (o *SavedFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the SavedFile. 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 (*SavedFile) Upsert ¶
func (o *SavedFile) 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 SavedFileSlice ¶
type SavedFileSlice []*SavedFile
SavedFileSlice is an alias for a slice of pointers to SavedFile. This should generally be used opposed to []SavedFile.
func (SavedFileSlice) DeleteAll ¶
func (o SavedFileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SavedFileSlice) ReloadAll ¶
func (o *SavedFileSlice) 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 (SavedFileSlice) UpdateAll ¶
func (o SavedFileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type StorageQuotum ¶
type StorageQuotum struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` IdentityID string `boil:"identity_id" json:"identity_id" toml:"identity_id" yaml:"identity_id"` Value int64 `boil:"value" json:"value" toml:"value" yaml:"value"` Origin string `boil:"origin" json:"origin" toml:"origin" yaml:"origin"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *storageQuotumR `boil:"-" json:"-" toml:"-" yaml:"-"` L storageQuotumL `boil:"-" json:"-" toml:"-" yaml:"-"` }
StorageQuotum is an object representing the database table.
func FindStorageQuotum ¶
func FindStorageQuotum(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*StorageQuotum, error)
FindStorageQuotum retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*StorageQuotum) Delete ¶
func (o *StorageQuotum) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single StorageQuotum record with an executor. Delete will match against the primary key column to find the record to delete.
func (*StorageQuotum) Insert ¶
func (o *StorageQuotum) 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 (*StorageQuotum) Reload ¶
func (o *StorageQuotum) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*StorageQuotum) Update ¶
func (o *StorageQuotum) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the StorageQuotum. 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 (*StorageQuotum) Upsert ¶
func (o *StorageQuotum) 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 StorageQuotumSlice ¶
type StorageQuotumSlice []*StorageQuotum
StorageQuotumSlice is an alias for a slice of pointers to StorageQuotum. This should generally be used opposed to []StorageQuotum.
func (StorageQuotumSlice) DeleteAll ¶
func (o StorageQuotumSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*StorageQuotumSlice) ReloadAll ¶
func (o *StorageQuotumSlice) 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 (StorageQuotumSlice) UpdateAll ¶
func (o StorageQuotumSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
Source Files
¶
- boil_queries.go
- boil_table_names.go
- boil_types.go
- box_key_share.go
- box_setting.go
- box_used_space.go
- encrypted_file.go
- event.go
- psql_upsert.go
- saved_file.go
- storage_quotum.go