Documentation
¶
Index ¶
- Variables
- func AddEventHook(hookPoint boil.HookPoint, eventHook EventHook)
- func AddGorpMigrationHook(hookPoint boil.HookPoint, gorpMigrationHook GorpMigrationHook)
- func EventExists(exec boil.Executor, iD int, time time.Time) (bool, error)
- func EventExistsG(iD int, time time.Time) (bool, error)
- func Events(mods ...qm.QueryMod) eventQuery
- func GorpMigrationExists(exec boil.Executor, iD string) (bool, error)
- func GorpMigrationExistsG(iD string) (bool, error)
- func GorpMigrations(mods ...qm.QueryMod) gorpMigrationQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- type Event
- func (o *Event) Delete(exec boil.Executor) (int64, error)
- func (o *Event) DeleteG() (int64, error)
- func (o *Event) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *Event) InsertG(columns boil.Columns) error
- func (o *Event) Reload(exec boil.Executor) error
- func (o *Event) ReloadG() error
- func (o *Event) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *Event) UpdateG(columns boil.Columns) (int64, error)
- func (o *Event) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *Event) UpsertG(updateOnConflict bool, conflictColumns []string, ...) error
- type EventHook
- type EventSlice
- func (o EventSlice) DeleteAll(exec boil.Executor) (int64, error)
- func (o EventSlice) DeleteAllG() (int64, error)
- func (o *EventSlice) ReloadAll(exec boil.Executor) error
- func (o *EventSlice) ReloadAllG() error
- func (o EventSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)
- func (o EventSlice) UpdateAllG(cols M) (int64, error)
- type GorpMigration
- func (o *GorpMigration) Delete(exec boil.Executor) (int64, error)
- func (o *GorpMigration) DeleteG() (int64, error)
- func (o *GorpMigration) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *GorpMigration) InsertG(columns boil.Columns) error
- func (o *GorpMigration) Reload(exec boil.Executor) error
- func (o *GorpMigration) ReloadG() error
- func (o *GorpMigration) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *GorpMigration) UpdateG(columns boil.Columns) (int64, error)
- func (o *GorpMigration) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *GorpMigration) UpsertG(updateOnConflict bool, conflictColumns []string, ...) error
- type GorpMigrationHook
- type GorpMigrationSlice
- func (o GorpMigrationSlice) DeleteAll(exec boil.Executor) (int64, error)
- func (o GorpMigrationSlice) DeleteAllG() (int64, error)
- func (o *GorpMigrationSlice) ReloadAll(exec boil.Executor) error
- func (o *GorpMigrationSlice) ReloadAllG() error
- func (o GorpMigrationSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)
- func (o GorpMigrationSlice) UpdateAllG(cols M) (int64, error)
- type M
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var EventColumns = struct { ID string Time string Type string Client string Device string Data string }{ ID: "id", Time: "time", Type: "type", Client: "client", Device: "device", Data: "data", }
var EventRels = struct {
}{}
EventRels is where relationship names are stored.
var EventWhere = struct { ID whereHelperint Time whereHelpertime_Time Type whereHelperstring Client whereHelperstring Device whereHelpernull_String Data whereHelpernull_JSON }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Time: whereHelpertime_Time{/* contains filtered or unexported fields */}, Type: whereHelperstring{/* contains filtered or unexported fields */}, Client: whereHelperstring{/* contains filtered or unexported fields */}, Device: whereHelpernull_String{/* contains filtered or unexported fields */}, Data: whereHelpernull_JSON{/* contains filtered or unexported fields */}, }
var GorpMigrationColumns = struct { ID string AppliedAt string }{ ID: "id", AppliedAt: "applied_at", }
var GorpMigrationRels = struct {
}{}
GorpMigrationRels is where relationship names are stored.
var GorpMigrationWhere = struct { ID whereHelperstring AppliedAt whereHelpernull_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AppliedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { Events string GorpMigrations string }{ Events: "events", GorpMigrations: "gorp_migrations", }
Functions ¶
func AddEventHook ¶
AddEventHook registers your hook function for all future operations.
func AddGorpMigrationHook ¶
func AddGorpMigrationHook(hookPoint boil.HookPoint, gorpMigrationHook GorpMigrationHook)
AddGorpMigrationHook registers your hook function for all future operations.
func EventExists ¶
EventExists checks if the Event row exists.
func EventExistsG ¶
EventExistsG checks if the Event row exists.
func GorpMigrationExists ¶
GorpMigrationExists checks if the GorpMigration row exists.
func GorpMigrationExistsG ¶
GorpMigrationExistsG checks if the GorpMigration row exists.
func GorpMigrations ¶
GorpMigrations retrieves all the records using an executor.
Types ¶
type Event ¶
type Event struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Time time.Time `boil:"time" json:"time" toml:"time" yaml:"time"` Type string `boil:"type" json:"type" toml:"type" yaml:"type"` Client string `boil:"client" json:"client" toml:"client" yaml:"client"` Device null.String `boil:"device" json:"device,omitempty" toml:"device" yaml:"device,omitempty"` Data null.JSON `boil:"data" json:"data,omitempty" toml:"data" yaml:"data,omitempty"` R *eventR `boil:"-" json:"-" toml:"-" yaml:"-"` L eventL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Event is an object representing the database table.
func FindEvent ¶
FindEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindEventG ¶
FindEventG retrieves a single record by ID.
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) DeleteG ¶
DeleteG deletes a single Event record. DeleteG 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) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Event) Update ¶
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) UpdateG ¶
UpdateG a single Event record using the global executor. See Update for more documentation.
func (*Event) Upsert ¶
func (o *Event) Upsert(exec boil.Executor, 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(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (EventSlice) DeleteAllG ¶
func (o EventSlice) DeleteAllG() (int64, error)
DeleteAllG deletes all rows in the slice.
func (*EventSlice) ReloadAll ¶
func (o *EventSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*EventSlice) ReloadAllG ¶
func (o *EventSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (EventSlice) UpdateAll ¶
UpdateAll updates all rows with the specified column values, using an executor.
func (EventSlice) UpdateAllG ¶
func (o EventSlice) UpdateAllG(cols M) (int64, error)
UpdateAllG updates all rows with the specified column values.
type GorpMigration ¶
type GorpMigration struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AppliedAt null.Time `boil:"applied_at" json:"applied_at,omitempty" toml:"applied_at" yaml:"applied_at,omitempty"` R *gorpMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"` L gorpMigrationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
GorpMigration is an object representing the database table.
func FindGorpMigration ¶
FindGorpMigration retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindGorpMigrationG ¶
func FindGorpMigrationG(iD string, selectCols ...string) (*GorpMigration, error)
FindGorpMigrationG retrieves a single record by ID.
func (*GorpMigration) Delete ¶
func (o *GorpMigration) Delete(exec boil.Executor) (int64, error)
Delete deletes a single GorpMigration record with an executor. Delete will match against the primary key column to find the record to delete.
func (*GorpMigration) DeleteG ¶
func (o *GorpMigration) DeleteG() (int64, error)
DeleteG deletes a single GorpMigration record. DeleteG will match against the primary key column to find the record to delete.
func (*GorpMigration) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*GorpMigration) InsertG ¶
func (o *GorpMigration) InsertG(columns boil.Columns) error
InsertG a single record. See Insert for whitelist behavior description.
func (*GorpMigration) Reload ¶
func (o *GorpMigration) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*GorpMigration) ReloadG ¶
func (o *GorpMigration) ReloadG() error
ReloadG refetches the object from the database using the primary keys.
func (*GorpMigration) Update ¶
Update uses an executor to update the GorpMigration. 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 (*GorpMigration) UpdateG ¶
func (o *GorpMigration) UpdateG(columns boil.Columns) (int64, error)
UpdateG a single GorpMigration record using the global executor. See Update for more documentation.
func (*GorpMigration) Upsert ¶
func (o *GorpMigration) Upsert(exec boil.Executor, 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 GorpMigrationHook ¶
type GorpMigrationHook func(boil.Executor, *GorpMigration) error
GorpMigrationHook is the signature for custom GorpMigration hook methods
type GorpMigrationSlice ¶
type GorpMigrationSlice []*GorpMigration
GorpMigrationSlice is an alias for a slice of pointers to GorpMigration. This should generally be used opposed to []GorpMigration.
func (GorpMigrationSlice) DeleteAll ¶
func (o GorpMigrationSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (GorpMigrationSlice) DeleteAllG ¶
func (o GorpMigrationSlice) DeleteAllG() (int64, error)
DeleteAllG deletes all rows in the slice.
func (*GorpMigrationSlice) ReloadAll ¶
func (o *GorpMigrationSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*GorpMigrationSlice) ReloadAllG ¶
func (o *GorpMigrationSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (GorpMigrationSlice) UpdateAll ¶
UpdateAll updates all rows with the specified column values, using an executor.
func (GorpMigrationSlice) UpdateAllG ¶
func (o GorpMigrationSlice) UpdateAllG(cols M) (int64, error)
UpdateAllG updates all rows with the specified column values.