sqlboiler

package
v0.0.0-...-afa1830 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoxKeyShareColumns = struct {
	InvitationShareHash         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",
}
View Source
var BoxKeyShareRels = struct {
}{}

BoxKeyShareRels is where relationship names are stored.

View Source
var BoxKeyShareWhere = struct {
	InvitationShareHash         whereHelperstring
	Share                       whereHelperstring
	CreatedAt                   whereHelpertime_Time
	BoxID                       whereHelperstring
	CreatorID                   whereHelperstring
	EncryptedInvitationKeyShare whereHelpernull_String
}{
	InvitationShareHash:         whereHelperstring{/* 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 */},
}
View Source
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",
}
View Source
var BoxSettingRels = struct {
}{}

BoxSettingRels is where relationship names are stored.

View Source
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 */},
}
View Source
var BoxUsedSpaceColumns = struct {
	ID        string
	BoxID     string
	Value     string
	CreatedAt string
}{
	ID:        "id",
	BoxID:     "box_id",
	Value:     "value",
	CreatedAt: "created_at",
}
View Source
var BoxUsedSpaceRels = struct {
}{}

BoxUsedSpaceRels is where relationship names are stored.

View Source
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 */},
}
View Source
var EncryptedFileColumns = struct {
	ID        string
	Size      string
	CreatedAt string
}{
	ID:        "id",
	Size:      "size",
	CreatedAt: "created_at",
}
View Source
var EncryptedFileRels = struct {
	SavedFiles string
}{
	SavedFiles: "SavedFiles",
}

EncryptedFileRels is where relationship names are stored.

View Source
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 */},
}
View Source
var ErrSyncFail = errors.New("sqlboiler: 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.

View Source
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",
}
View Source
var EventRels = struct {
	Referrer       string
	ReferrerEvents string
}{
	Referrer:       "Referrer",
	ReferrerEvents: "ReferrerEvents",
}

EventRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
var SavedFileRels = struct {
	EncryptedFile string
}{
	EncryptedFile: "EncryptedFile",
}

SavedFileRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
var StorageQuotumRels = struct {
}{}

StorageQuotumRels is where relationship names are stored.

View Source
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 */},
}
View Source
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

func BoxKeyShares(mods ...qm.QueryMod) boxKeyShareQuery

BoxKeyShares retrieves all the records using an executor.

func BoxSettingExists

func BoxSettingExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

BoxSettingExists checks if the BoxSetting row exists.

func BoxSettings

func BoxSettings(mods ...qm.QueryMod) boxSettingQuery

BoxSettings retrieves all the records using an executor.

func BoxUsedSpaceExists

func BoxUsedSpaceExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

BoxUsedSpaceExists checks if the BoxUsedSpace row exists.

func BoxUsedSpaces

func BoxUsedSpaces(mods ...qm.QueryMod) boxUsedSpaceQuery

BoxUsedSpaces retrieves all the records using an executor.

func EncryptedFileExists

func EncryptedFileExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

EncryptedFileExists checks if the EncryptedFile row exists.

func EncryptedFiles

func EncryptedFiles(mods ...qm.QueryMod) encryptedFileQuery

EncryptedFiles retrieves all the records using an executor.

func EventExists

func EventExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

EventExists checks if the Event row exists.

func Events

func Events(mods ...qm.QueryMod) eventQuery

Events retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func SavedFileExists

func SavedFileExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

SavedFileExists checks if the SavedFile row exists.

func SavedFiles

func SavedFiles(mods ...qm.QueryMod) savedFileQuery

SavedFiles retrieves all the records using an executor.

func StorageQuota

func StorageQuota(mods ...qm.QueryMod) storageQuotumQuery

StorageQuota retrieves all the records using an executor.

func StorageQuotumExists

func StorageQuotumExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

StorageQuotumExists checks if the StorageQuotum row exists.

Types

type BoxKeyShare

type BoxKeyShare struct {
	InvitationShareHash         string      `boil:"invitation_share_hash" json:"invitation_share_hash" toml:"invitation_share_hash" yaml:"invitation_share_hash"`
	Share                       string      `boil:"share" json:"share" toml:"share" yaml:"share"`
	CreatedAt                   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	BoxID                       string      `boil:"box_id" json:"box_id" toml:"box_id" yaml:"box_id"`
	CreatorID                   string      `boil:"creator_id" json:"creator_id" toml:"creator_id" yaml:"creator_id"`
	EncryptedInvitationKeyShare null.String `` /* 171-byte string literal not displayed */

	R *boxKeyShareR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L boxKeyShareL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

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

func (o *Event) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *Event) 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 (*Event) Referrer

func (o *Event) Referrer(mods ...qm.QueryMod) eventQuery

Referrer pointed to by the foreign key.

func (*Event) ReferrerEvents

func (o *Event) ReferrerEvents(mods ...qm.QueryMod) eventQuery

ReferrerEvents retrieves all the event's Events with an executor via referrer_id column.

func (*Event) Reload

func (o *Event) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (o *SavedFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *SavedFile) EncryptedFile(mods ...qm.QueryMod) encryptedFileQuery

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

func (o *SavedFile) Reload(ctx context.Context, exec boil.ContextExecutor) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL