Documentation
¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func QsoExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func Qsos(mods ...qm.QueryMod) qsoQuery
- type M
- type Qso
- func (o *Qso) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Qso) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Qso) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Qso) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Qso) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Qso) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type QsoSlice
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 QsoColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Call string Band string Mode string Freq string QsoDate string TimeOn string TimeOff string RstSent string RstRcvd string Country string AdditionalData string }{ ID: "id", CreatedAt: "created_at", ModifiedAt: "modified_at", DeletedAt: "deleted_at", Call: "call", Band: "band", Mode: "mode", Freq: "freq", QsoDate: "qso_date", TimeOn: "time_on", TimeOff: "time_off", RstSent: "rst_sent", RstRcvd: "rst_rcvd", Country: "country", AdditionalData: "additional_data", }
var QsoRels = struct {
}{}
QsoRels is where relationship names are stored.
var QsoTableColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Call string Band string Mode string Freq string QsoDate string TimeOn string TimeOff string RstSent string RstRcvd string Country string AdditionalData string }{ ID: "qso.id", CreatedAt: "qso.created_at", ModifiedAt: "qso.modified_at", DeletedAt: "qso.deleted_at", Call: "qso.call", Band: "qso.band", Mode: "qso.mode", Freq: "qso.freq", QsoDate: "qso.qso_date", TimeOn: "qso.time_on", TimeOff: "qso.time_off", RstSent: "qso.rst_sent", RstRcvd: "qso.rst_rcvd", Country: "qso.country", AdditionalData: "qso.additional_data", }
var QsoWhere = struct { ID whereHelpernull_Int64 CreatedAt whereHelpertime_Time ModifiedAt whereHelpernull_Time DeletedAt whereHelpernull_Time Call whereHelperstring Band whereHelperstring Mode whereHelperstring Freq whereHelpertypes_Decimal QsoDate whereHelpertime_Time TimeOn whereHelpertime_Time TimeOff whereHelpertime_Time RstSent whereHelperstring RstRcvd whereHelperstring Country whereHelpernull_String AdditionalData whereHelpernull_JSON }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, ModifiedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Call: whereHelperstring{/* contains filtered or unexported fields */}, Band: whereHelperstring{/* contains filtered or unexported fields */}, Mode: whereHelperstring{/* contains filtered or unexported fields */}, Freq: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, QsoDate: whereHelpertime_Time{/* contains filtered or unexported fields */}, TimeOn: whereHelpertime_Time{/* contains filtered or unexported fields */}, TimeOff: whereHelpertime_Time{/* contains filtered or unexported fields */}, RstSent: whereHelperstring{/* contains filtered or unexported fields */}, RstRcvd: whereHelperstring{/* contains filtered or unexported fields */}, Country: whereHelpernull_String{/* contains filtered or unexported fields */}, AdditionalData: whereHelpernull_JSON{/* contains filtered or unexported fields */}, }
var TableNames = struct { Qso string }{ Qso: "qso", }
var ViewNames = struct {
}{}
Functions ¶
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Qso ¶
type Qso struct {
ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
ModifiedAt null.Time `boil:"modified_at" json:"modified_at,omitempty" toml:"modified_at" yaml:"modified_at,omitempty"`
DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
Call string `boil:"call" json:"call" toml:"call" yaml:"call"`
Band string `boil:"band" json:"band" toml:"band" yaml:"band"`
Mode string `boil:"mode" json:"mode" toml:"mode" yaml:"mode"`
Freq types.Decimal `boil:"freq" json:"freq" toml:"freq" yaml:"freq"`
QsoDate time.Time `boil:"qso_date" json:"qso_date" toml:"qso_date" yaml:"qso_date"`
TimeOn time.Time `boil:"time_on" json:"time_on" toml:"time_on" yaml:"time_on"`
TimeOff time.Time `boil:"time_off" json:"time_off" toml:"time_off" yaml:"time_off"`
RstSent string `boil:"rst_sent" json:"rst_sent" toml:"rst_sent" yaml:"rst_sent"`
RstRcvd string `boil:"rst_rcvd" json:"rst_rcvd" toml:"rst_rcvd" yaml:"rst_rcvd"`
Country null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"`
AdditionalData null.JSON `boil:"additional_data" json:"additional_data,omitempty" toml:"additional_data" yaml:"additional_data,omitempty"`
R *qsoR `boil:"-" json:"-" toml:"-" yaml:"-"`
L qsoL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Qso is an object representing the database table.
func FindQso ¶
func FindQso(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*Qso, error)
FindQso retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Qso) Delete ¶
func (o *Qso) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single Qso record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Qso) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Qso) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Qso) Update ¶
func (o *Qso) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Qso. 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 (*Qso) Upsert ¶
func (o *Qso) 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 QsoSlice ¶
type QsoSlice []*Qso
QsoSlice is an alias for a slice of pointers to Qso. This should almost always be used instead of []Qso.
func (QsoSlice) DeleteAll ¶
func (o QsoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.