Documentation
¶
Index ¶
- Variables
- func ContactedStationExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ContactedStations(mods ...qm.QueryMod) contactedStationQuery
- func Countries(mods ...qm.QueryMod) countryQuery
- func CountryExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func LogbookExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Logbooks(mods ...qm.QueryMod) logbookQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func QsoExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Qsos(mods ...qm.QueryMod) qsoQuery
- func SessionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Sessions(mods ...qm.QueryMod) sessionQuery
- type ContactedStation
- func (o *ContactedStation) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *ContactedStation) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ContactedStation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ContactedStation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ContactedStation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ContactedStation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ContactedStationSlice
- func (o ContactedStationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *ContactedStationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ContactedStationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Country
- func (o *Country) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Country) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Country) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Country) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Country) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Country) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type CountrySlice
- func (o CountrySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *CountrySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o CountrySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Logbook
- func (o *Logbook) AddQsos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Qso) error
- func (o *Logbook) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Logbook) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Logbook) GetQsos() QsoSlice
- func (o *Logbook) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Logbook) Qsos(mods ...qm.QueryMod) qsoQuery
- func (o *Logbook) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Logbook) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Logbook) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type LogbookSlice
- func (o LogbookSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *LogbookSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o LogbookSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- 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) GetLogbook() *Logbook
- func (o *Qso) GetSession() *Session
- func (o *Qso) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Qso) Logbook(mods ...qm.QueryMod) logbookQuery
- func (o *Qso) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Qso) Session(mods ...qm.QueryMod) sessionQuery
- func (o *Qso) SetLogbook(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Logbook) error
- func (o *Qso) SetSession(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Session) 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
- type Session
- func (o *Session) AddQsos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Qso) error
- func (o *Session) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Session) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Session) GetQsos() QsoSlice
- func (o *Session) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Session) Qsos(mods ...qm.QueryMod) qsoQuery
- func (o *Session) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Session) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Session) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type SessionSlice
- func (o SessionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *SessionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o SessionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var ContactedStationColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Name string Call string Country string TimeOffset string AdditionalData string }{ ID: "id", CreatedAt: "created_at", ModifiedAt: "modified_at", DeletedAt: "deleted_at", Name: "name", Call: "call", Country: "country", TimeOffset: "time_offset", AdditionalData: "additional_data", }
var ContactedStationRels = struct {
}{}
ContactedStationRels is where relationship names are stored.
var ContactedStationTableColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Name string Call string Country string TimeOffset string AdditionalData string }{ ID: "contacted_station.id", CreatedAt: "contacted_station.created_at", ModifiedAt: "contacted_station.modified_at", DeletedAt: "contacted_station.deleted_at", Name: "contacted_station.name", Call: "contacted_station.call", Country: "contacted_station.country", TimeOffset: "contacted_station.time_offset", AdditionalData: "contacted_station.additional_data", }
var ContactedStationWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time ModifiedAt whereHelpernull_Time DeletedAt whereHelpernull_Time Name whereHelperstring Call whereHelperstring Country whereHelpernull_String TimeOffset whereHelperstring AdditionalData whereHelpertypes_JSON }{ ID: whereHelperint64{/* 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 */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Call: whereHelperstring{/* contains filtered or unexported fields */}, Country: whereHelpernull_String{/* contains filtered or unexported fields */}, TimeOffset: whereHelperstring{/* contains filtered or unexported fields */}, AdditionalData: whereHelpertypes_JSON{/* contains filtered or unexported fields */}, }
var CountryColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Name string CQZone string ItuZone string Continent string Prefix string Ccode string DXCCPrefix string TimeOffset string }{ ID: "id", CreatedAt: "created_at", ModifiedAt: "modified_at", DeletedAt: "deleted_at", Name: "name", CQZone: "cq_zone", ItuZone: "itu_zone", Continent: "continent", Prefix: "prefix", Ccode: "ccode", DXCCPrefix: "dxcc_prefix", TimeOffset: "time_offset", }
var CountryRels = struct {
}{}
CountryRels is where relationship names are stored.
var CountryTableColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Name string CQZone string ItuZone string Continent string Prefix string Ccode string DXCCPrefix string TimeOffset string }{ ID: "country.id", CreatedAt: "country.created_at", ModifiedAt: "country.modified_at", DeletedAt: "country.deleted_at", Name: "country.name", CQZone: "country.cq_zone", ItuZone: "country.itu_zone", Continent: "country.continent", Prefix: "country.prefix", Ccode: "country.ccode", DXCCPrefix: "country.dxcc_prefix", TimeOffset: "country.time_offset", }
var CountryWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time ModifiedAt whereHelpernull_Time DeletedAt whereHelpernull_Time Name whereHelperstring CQZone whereHelperstring ItuZone whereHelperstring Continent whereHelperstring Prefix whereHelperstring Ccode whereHelpernull_String DXCCPrefix whereHelpernull_String TimeOffset whereHelpernull_String }{ ID: whereHelperint64{/* 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 */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, CQZone: whereHelperstring{/* contains filtered or unexported fields */}, ItuZone: whereHelperstring{/* contains filtered or unexported fields */}, Continent: whereHelperstring{/* contains filtered or unexported fields */}, Prefix: whereHelperstring{/* contains filtered or unexported fields */}, Ccode: whereHelpernull_String{/* contains filtered or unexported fields */}, DXCCPrefix: whereHelpernull_String{/* contains filtered or unexported fields */}, TimeOffset: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var LogbookColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Name string Callsign string APIKey string Description string }{ ID: "id", CreatedAt: "created_at", ModifiedAt: "modified_at", DeletedAt: "deleted_at", Name: "name", Callsign: "callsign", APIKey: "api_key", Description: "description", }
var LogbookRels = struct { Qsos string }{ Qsos: "Qsos", }
LogbookRels is where relationship names are stored.
var LogbookTableColumns = struct { ID string CreatedAt string ModifiedAt string DeletedAt string Name string Callsign string APIKey string Description string }{ ID: "logbook.id", CreatedAt: "logbook.created_at", ModifiedAt: "logbook.modified_at", DeletedAt: "logbook.deleted_at", Name: "logbook.name", Callsign: "logbook.callsign", APIKey: "logbook.api_key", Description: "logbook.description", }
var LogbookWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time ModifiedAt whereHelpernull_Time DeletedAt whereHelpernull_Time Name whereHelperstring Callsign whereHelperstring APIKey whereHelpernull_String Description whereHelpernull_String }{ ID: whereHelperint64{/* 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 */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Callsign: whereHelperstring{/* contains filtered or unexported fields */}, APIKey: whereHelpernull_String{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, }
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 LogbookID string SessionID 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", LogbookID: "logbook_id", SessionID: "session_id", }
var QsoRels = struct { Session string Logbook string }{ Session: "Session", Logbook: "Logbook", }
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 LogbookID string SessionID 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", LogbookID: "qso.logbook_id", SessionID: "qso.session_id", }
var QsoWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time ModifiedAt whereHelpernull_Time DeletedAt whereHelpernull_Time Call whereHelperstring Band whereHelperstring Mode whereHelperstring Freq whereHelperint64 QsoDate whereHelperstring TimeOn whereHelperstring TimeOff whereHelperstring RstSent whereHelperstring RstRcvd whereHelperstring Country whereHelpernull_String AdditionalData whereHelpertypes_JSON LogbookID whereHelperint64 SessionID whereHelperint64 }{ ID: whereHelperint64{/* 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: whereHelperint64{/* contains filtered or unexported fields */}, QsoDate: whereHelperstring{/* contains filtered or unexported fields */}, TimeOn: whereHelperstring{/* contains filtered or unexported fields */}, TimeOff: whereHelperstring{/* 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: whereHelpertypes_JSON{/* contains filtered or unexported fields */}, LogbookID: whereHelperint64{/* contains filtered or unexported fields */}, SessionID: whereHelperint64{/* contains filtered or unexported fields */}, }
var SessionColumns = struct { ID string CreatedAt string DeletedAt string ModifiedAt string }{ ID: "id", CreatedAt: "created_at", DeletedAt: "deleted_at", ModifiedAt: "modified_at", }
var SessionRels = struct { Qsos string }{ Qsos: "Qsos", }
SessionRels is where relationship names are stored.
var SessionTableColumns = struct { ID string CreatedAt string DeletedAt string ModifiedAt string }{ ID: "session.id", CreatedAt: "session.created_at", DeletedAt: "session.deleted_at", ModifiedAt: "session.modified_at", }
var SessionWhere = struct { ID whereHelperint64 CreatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time ModifiedAt whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, ModifiedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { ContactedStation string Country string Logbook string Qso string Session string }{ ContactedStation: "contacted_station", Country: "country", Logbook: "logbook", Qso: "qso", Session: "session", }
var ViewNames = struct {
}{}
Functions ¶
func ContactedStationExists ¶ added in v0.0.15
ContactedStationExists checks if the ContactedStation row exists.
func ContactedStations ¶ added in v0.0.15
ContactedStations retrieves all the records using an executor.
func CountryExists ¶ added in v0.0.24
CountryExists checks if the Country row exists.
func LogbookExists ¶ added in v0.0.8
LogbookExists checks if the Logbook row exists.
func SessionExists ¶ added in v0.0.19
SessionExists checks if the Session row exists.
Types ¶
type ContactedStation ¶ added in v0.0.15
type ContactedStation struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
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"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Call string `boil:"call" json:"call" toml:"call" yaml:"call"`
Country null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"`
TimeOffset string `boil:"time_offset" json:"time_offset" toml:"time_offset" yaml:"time_offset"`
AdditionalData types.JSON `boil:"additional_data" json:"additional_data" toml:"additional_data" yaml:"additional_data"`
R *contactedStationR `boil:"-" json:"-" toml:"-" yaml:"-"`
L contactedStationL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
ContactedStation is an object representing the database table.
func FindContactedStation ¶ added in v0.0.15
func FindContactedStation(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ContactedStation, error)
FindContactedStation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ContactedStation) Delete ¶ added in v0.0.15
func (o *ContactedStation) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single ContactedStation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ContactedStation) Exists ¶ added in v0.0.15
func (o *ContactedStation) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ContactedStation row exists.
func (*ContactedStation) Insert ¶ added in v0.0.15
func (o *ContactedStation) 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 (*ContactedStation) Reload ¶ added in v0.0.15
func (o *ContactedStation) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ContactedStation) Update ¶ added in v0.0.15
func (o *ContactedStation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ContactedStation. 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 (*ContactedStation) Upsert ¶ added in v0.0.15
func (o *ContactedStation) 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 ContactedStationSlice ¶ added in v0.0.15
type ContactedStationSlice []*ContactedStation
ContactedStationSlice is an alias for a slice of pointers to ContactedStation. This should almost always be used instead of []ContactedStation.
func (ContactedStationSlice) DeleteAll ¶ added in v0.0.15
func (o ContactedStationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ContactedStationSlice) ReloadAll ¶ added in v0.0.15
func (o *ContactedStationSlice) 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 (ContactedStationSlice) UpdateAll ¶ added in v0.0.15
func (o ContactedStationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Country ¶ added in v0.0.24
type Country struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
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"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
CQZone string `boil:"cq_zone" json:"cq_zone" toml:"cq_zone" yaml:"cq_zone"`
ItuZone string `boil:"itu_zone" json:"itu_zone" toml:"itu_zone" yaml:"itu_zone"`
Continent string `boil:"continent" json:"continent" toml:"continent" yaml:"continent"`
Prefix string `boil:"prefix" json:"prefix" toml:"prefix" yaml:"prefix"`
Ccode null.String `boil:"ccode" json:"ccode,omitempty" toml:"ccode" yaml:"ccode,omitempty"`
DXCCPrefix null.String `boil:"dxcc_prefix" json:"dxcc_prefix,omitempty" toml:"dxcc_prefix" yaml:"dxcc_prefix,omitempty"`
TimeOffset null.String `boil:"time_offset" json:"time_offset,omitempty" toml:"time_offset" yaml:"time_offset,omitempty"`
R *countryR `boil:"-" json:"-" toml:"-" yaml:"-"`
L countryL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Country is an object representing the database table.
func FindCountry ¶ added in v0.0.24
func FindCountry(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Country, error)
FindCountry retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Country) Delete ¶ added in v0.0.24
func (o *Country) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single Country record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Country) Insert ¶ added in v0.0.24
func (o *Country) 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 (*Country) Reload ¶ added in v0.0.24
Reload refetches the object from the database using the primary keys with an executor.
func (*Country) Update ¶ added in v0.0.24
func (o *Country) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Country. 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 (*Country) Upsert ¶ added in v0.0.24
func (o *Country) 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 CountrySlice ¶ added in v0.0.24
type CountrySlice []*Country
CountrySlice is an alias for a slice of pointers to Country. This should almost always be used instead of []Country.
func (CountrySlice) DeleteAll ¶ added in v0.0.24
func (o CountrySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CountrySlice) ReloadAll ¶ added in v0.0.24
func (o *CountrySlice) 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 (CountrySlice) UpdateAll ¶ added in v0.0.24
func (o CountrySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Logbook ¶ added in v0.0.8
type Logbook struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
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"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Callsign string `boil:"callsign" json:"callsign" toml:"callsign" yaml:"callsign"`
APIKey null.String `boil:"api_key" json:"api_key,omitempty" toml:"api_key" yaml:"api_key,omitempty"`
Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
R *logbookR `boil:"-" json:"-" toml:"-" yaml:"-"`
L logbookL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Logbook is an object representing the database table.
func FindLogbook ¶ added in v0.0.8
func FindLogbook(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Logbook, error)
FindLogbook retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Logbook) AddQsos ¶ added in v0.0.8
func (o *Logbook) AddQsos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Qso) error
AddQsos adds the given related objects to the existing relationships of the logbook, optionally inserting them as new records. Appends related to o.R.Qsos. Sets related.R.Logbook appropriately.
func (*Logbook) Delete ¶ added in v0.0.8
func (o *Logbook) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single Logbook record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Logbook) Insert ¶ added in v0.0.8
func (o *Logbook) 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 (*Logbook) Reload ¶ added in v0.0.8
Reload refetches the object from the database using the primary keys with an executor.
func (*Logbook) Update ¶ added in v0.0.8
func (o *Logbook) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Logbook. 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 (*Logbook) Upsert ¶ added in v0.0.8
func (o *Logbook) 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 LogbookSlice ¶ added in v0.0.8
type LogbookSlice []*Logbook
LogbookSlice is an alias for a slice of pointers to Logbook. This should almost always be used instead of []Logbook.
func (LogbookSlice) DeleteAll ¶ added in v0.0.8
func (o LogbookSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*LogbookSlice) ReloadAll ¶ added in v0.0.8
func (o *LogbookSlice) 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 (LogbookSlice) UpdateAll ¶ added in v0.0.8
func (o LogbookSlice) 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 Qso ¶
type Qso struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
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 int64 `boil:"freq" json:"freq" toml:"freq" yaml:"freq"`
QsoDate string `boil:"qso_date" json:"qso_date" toml:"qso_date" yaml:"qso_date"`
TimeOn string `boil:"time_on" json:"time_on" toml:"time_on" yaml:"time_on"`
TimeOff string `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 types.JSON `boil:"additional_data" json:"additional_data" toml:"additional_data" yaml:"additional_data"`
LogbookID int64 `boil:"logbook_id" json:"logbook_id" toml:"logbook_id" yaml:"logbook_id"`
SessionID int64 `boil:"session_id" json:"session_id" toml:"session_id" yaml:"session_id"`
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 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) GetLogbook ¶ added in v0.0.8
func (*Qso) GetSession ¶ added in v0.0.19
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) SetLogbook ¶ added in v0.0.8
func (o *Qso) SetLogbook(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Logbook) error
SetLogbook of the qso to the related item. Sets o.R.Logbook to related. Adds o to related.R.Qsos.
func (*Qso) SetSession ¶ added in v0.0.19
func (o *Qso) SetSession(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Session) error
SetSession of the qso to the related item. Sets o.R.Session to related. Adds o to related.R.Qsos.
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.
type Session ¶ added in v0.0.19
type Session struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
ModifiedAt null.Time `boil:"modified_at" json:"modified_at,omitempty" toml:"modified_at" yaml:"modified_at,omitempty"`
R *sessionR `boil:"-" json:"-" toml:"-" yaml:"-"`
L sessionL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Session is an object representing the database table.
func FindSession ¶ added in v0.0.19
func FindSession(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Session, error)
FindSession retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Session) AddQsos ¶ added in v0.0.19
func (o *Session) AddQsos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Qso) error
AddQsos adds the given related objects to the existing relationships of the session, optionally inserting them as new records. Appends related to o.R.Qsos. Sets related.R.Session appropriately.
func (*Session) Delete ¶ added in v0.0.19
func (o *Session) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single Session record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Session) Insert ¶ added in v0.0.19
func (o *Session) 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 (*Session) Reload ¶ added in v0.0.19
Reload refetches the object from the database using the primary keys with an executor.
func (*Session) Update ¶ added in v0.0.19
func (o *Session) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Session. 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 (*Session) Upsert ¶ added in v0.0.19
func (o *Session) 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 SessionSlice ¶ added in v0.0.19
type SessionSlice []*Session
SessionSlice is an alias for a slice of pointers to Session. This should almost always be used instead of []Session.
func (SessionSlice) DeleteAll ¶ added in v0.0.19
func (o SessionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SessionSlice) ReloadAll ¶ added in v0.0.19
func (o *SessionSlice) 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 (SessionSlice) UpdateAll ¶ added in v0.0.19
func (o SessionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.