Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2019 Changes in this version + var ErrSyncFail = errors.New("models: failed to synchronize data after insert") + var JetColumns = struct{ ... } + var JetRels = struct{ ... } + var LanguageColumns = struct{ ... } + var LanguageRels = struct{ ... } + var PilotColumns = struct{ ... } + var PilotRels = struct{ ... } + var SchemaMigrationColumns = struct{ ... } + var SchemaMigrationRels = struct{} + var TableNames = struct{ ... } + func AddJetHook(hookPoint boil.HookPoint, jetHook JetHook) + func AddLanguageHook(hookPoint boil.HookPoint, languageHook LanguageHook) + func AddPilotHook(hookPoint boil.HookPoint, pilotHook PilotHook) + func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook) + func JetExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func Jets(mods ...qm.QueryMod) jetQuery + func LanguageExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func Languages(mods ...qm.QueryMod) languageQuery + func NewQuery(mods ...qm.QueryMod) *queries.Query + func PilotExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func Pilots(mods ...qm.QueryMod) pilotQuery + func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error) + func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery + type Jet struct + Age int + Color string + ID int + L jetL + Name string + PilotID int + R *jetR + func FindJet(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Jet, error) + func (o *Jet) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Jet) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Jet) Pilot(mods ...qm.QueryMod) pilotQuery + func (o *Jet) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Jet) SetPilot(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Pilot) error + func (o *Jet) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Jet) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type JetHook func(context.Context, boil.ContextExecutor, *Jet) error + type JetSlice []*Jet + func (o *JetSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o JetSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o JetSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type Language struct + ID int + L languageL + Language string + R *languageR + func FindLanguage(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Language, error) + func (o *Language) AddPilots(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Pilot) error + func (o *Language) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Language) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Language) Pilots(mods ...qm.QueryMod) pilotQuery + func (o *Language) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Language) RemovePilots(ctx context.Context, exec boil.ContextExecutor, related ...*Pilot) error + func (o *Language) SetPilots(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Pilot) error + func (o *Language) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Language) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type LanguageHook func(context.Context, boil.ContextExecutor, *Language) error + type LanguageSlice []*Language + func (o *LanguageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o LanguageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o LanguageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type M map[string]interface + type NameAndLanguage struct + Language string + Name string + type Pilot struct + ID int + L pilotL + Name string + R *pilotR + func FindPilot(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Pilot, error) + func (o *Pilot) AddJets(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Jet) error + func (o *Pilot) AddLanguages(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *Pilot) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Pilot) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Pilot) Jets(mods ...qm.QueryMod) jetQuery + func (o *Pilot) Languages(mods ...qm.QueryMod) languageQuery + func (o *Pilot) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Pilot) RemoveLanguages(ctx context.Context, exec boil.ContextExecutor, related ...*Language) error + func (o *Pilot) SetLanguages(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *Pilot) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Pilot) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type PilotHook func(context.Context, boil.ContextExecutor, *Pilot) error + type PilotSlice []*Pilot + func (o *PilotSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o PilotSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o PilotSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type SchemaMigration struct + Dirty bool + L schemaMigrationL + R *schemaMigrationR + Version int64 + func FindSchemaMigration(ctx context.Context, exec boil.ContextExecutor, version int64, ...) (*SchemaMigration, error) + func (o *SchemaMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *SchemaMigration) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *SchemaMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *SchemaMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type SchemaMigrationHook func(context.Context, boil.ContextExecutor, *SchemaMigration) error + type SchemaMigrationSlice []*SchemaMigration + func (o *SchemaMigrationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o SchemaMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o SchemaMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)