models

package
v0.0.0-...-23f5b10 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EquityColumns = struct {
	InstrumentID       string
	PayCurrencyID      string
	ExerciseCurrencyID string
	CompanyCurrencyID  string
	FromDate           string
	ThruDate           string
	CreatedAt          string
	CreatedBy          string
	UpdatedAt          string
	UpdatedBy          string
}{
	InstrumentID:       "instrument_id",
	PayCurrencyID:      "pay_currency_id",
	ExerciseCurrencyID: "exercise_currency_id",
	CompanyCurrencyID:  "company_currency_id",
	FromDate:           "from_date",
	ThruDate:           "thru_date",
	CreatedAt:          "created_at",
	CreatedBy:          "created_by",
	UpdatedAt:          "updated_at",
	UpdatedBy:          "updated_by",
}
View Source
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.

View Source
var InstitutionColumns = struct {
	ID          string
	Name        string
	Description string
	Acronym     string
	FromDate    string
	ThruDate    string
	CreatedAt   string
	CreatedBy   string
	UpdatedAt   string
	UpdatedBy   string
}{
	ID:          "id",
	Name:        "name",
	Description: "description",
	Acronym:     "acronym",
	FromDate:    "from_date",
	ThruDate:    "thru_date",
	CreatedAt:   "created_at",
	CreatedBy:   "created_by",
	UpdatedAt:   "updated_at",
	UpdatedBy:   "updated_by",
}
View Source
var InstitutionRoleColumns = struct {
	InstitutionID string
	InstrumentID  string
	Description   string
	FromDate      string
	ThruDate      string
	CreatedAt     string
	CreatedBy     string
	UpdatedAt     string
	UpdatedBy     string
}{
	InstitutionID: "institution_id",
	InstrumentID:  "instrument_id",
	Description:   "description",
	FromDate:      "from_date",
	ThruDate:      "thru_date",
	CreatedAt:     "created_at",
	CreatedBy:     "created_by",
	UpdatedAt:     "updated_at",
	UpdatedBy:     "updated_by",
}
View Source
var InstrumentClassColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var InstrumentColumns = struct {
	ID                 string
	Symbol             string
	Name               string
	Description        string
	InstrumentClassID  string
	InstrumentSourceID string
	CurrencyID         string
	FromDate           string
	ThruDate           string
	CreatedAt          string
	UpdatedAt          string
	CreatedBy          string
	UpdatedBy          string
}{
	ID:                 "id",
	Symbol:             "symbol",
	Name:               "name",
	Description:        "description",
	InstrumentClassID:  "instrument_class_id",
	InstrumentSourceID: "instrument_source_id",
	CurrencyID:         "currency_id",
	FromDate:           "from_date",
	ThruDate:           "thru_date",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
	CreatedBy:          "created_by",
	UpdatedBy:          "updated_by",
}
View Source
var InstrumentJSONColumns = struct {
	ID          string
	Name        string
	Description string
	Datum       string
	Audit       string
	CurrencyID  string
	FromDate    string
	ThruDate    string
	CreatedAt   string
	UpdatedAt   string
	CreatedBy   string
	UpdatedBy   string
}{
	ID:          "id",
	Name:        "name",
	Description: "description",
	Datum:       "datum",
	Audit:       "audit",
	CurrencyID:  "currency_id",
	FromDate:    "from_date",
	ThruDate:    "thru_date",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	CreatedBy:   "created_by",
	UpdatedBy:   "updated_by",
}
View Source
var InstrumentSourceColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var TableNames = struct {
	Equity           string
	Institution      string
	InstitutionRole  string
	Instrument       string
	InstrumentClass  string
	InstrumentJSON   string
	InstrumentSource string
}{
	Equity:           "equity",
	Institution:      "institution",
	InstitutionRole:  "institution_role",
	Instrument:       "instrument",
	InstrumentClass:  "instrument_class",
	InstrumentJSON:   "instrument_json",
	InstrumentSource: "instrument_source",
}

Functions

func AddEquityHook

func AddEquityHook(hookPoint boil.HookPoint, equityHook EquityHook)

AddEquityHook registers your hook function for all future operations.

func AddInstitutionHook

func AddInstitutionHook(hookPoint boil.HookPoint, institutionHook InstitutionHook)

AddInstitutionHook registers your hook function for all future operations.

func AddInstitutionRoleHook

func AddInstitutionRoleHook(hookPoint boil.HookPoint, institutionRoleHook InstitutionRoleHook)

AddInstitutionRoleHook registers your hook function for all future operations.

func AddInstrumentClassHook

func AddInstrumentClassHook(hookPoint boil.HookPoint, instrumentClassHook InstrumentClassHook)

AddInstrumentClassHook registers your hook function for all future operations.

func AddInstrumentHook

func AddInstrumentHook(hookPoint boil.HookPoint, instrumentHook InstrumentHook)

AddInstrumentHook registers your hook function for all future operations.

func AddInstrumentJSONHook

func AddInstrumentJSONHook(hookPoint boil.HookPoint, instrumentJSONHook InstrumentJSONHook)

AddInstrumentJSONHook registers your hook function for all future operations.

func AddInstrumentSourceHook

func AddInstrumentSourceHook(hookPoint boil.HookPoint, instrumentSourceHook InstrumentSourceHook)

AddInstrumentSourceHook registers your hook function for all future operations.

func Equities

func Equities(exec boil.Executor, mods ...qm.QueryMod) equityQuery

Equities retrieves all the records using an executor.

func EquitiesG

func EquitiesG(mods ...qm.QueryMod) equityQuery

EquitiesG retrieves all records.

func EquityExists

func EquityExists(exec boil.Executor, instrumentID int) (bool, error)

EquityExists checks if the Equity row exists.

func EquityExistsG

func EquityExistsG(instrumentID int) (bool, error)

EquityExistsG checks if the Equity row exists.

func EquityExistsGP

func EquityExistsGP(instrumentID int) bool

EquityExistsGP checks if the Equity row exists. Panics on error.

func EquityExistsP

func EquityExistsP(exec boil.Executor, instrumentID int) bool

EquityExistsP checks if the Equity row exists. Panics on error.

func InstitutionExists

func InstitutionExists(exec boil.Executor, id int) (bool, error)

InstitutionExists checks if the Institution row exists.

func InstitutionExistsG

func InstitutionExistsG(id int) (bool, error)

InstitutionExistsG checks if the Institution row exists.

func InstitutionExistsGP

func InstitutionExistsGP(id int) bool

InstitutionExistsGP checks if the Institution row exists. Panics on error.

func InstitutionExistsP

func InstitutionExistsP(exec boil.Executor, id int) bool

InstitutionExistsP checks if the Institution row exists. Panics on error.

func InstitutionRoleExists

func InstitutionRoleExists(exec boil.Executor, institutionID int, instrumentID int) (bool, error)

InstitutionRoleExists checks if the InstitutionRole row exists.

func InstitutionRoleExistsG

func InstitutionRoleExistsG(institutionID int, instrumentID int) (bool, error)

InstitutionRoleExistsG checks if the InstitutionRole row exists.

func InstitutionRoleExistsGP

func InstitutionRoleExistsGP(institutionID int, instrumentID int) bool

InstitutionRoleExistsGP checks if the InstitutionRole row exists. Panics on error.

func InstitutionRoleExistsP

func InstitutionRoleExistsP(exec boil.Executor, institutionID int, instrumentID int) bool

InstitutionRoleExistsP checks if the InstitutionRole row exists. Panics on error.

func InstitutionRoles

func InstitutionRoles(exec boil.Executor, mods ...qm.QueryMod) institutionRoleQuery

InstitutionRoles retrieves all the records using an executor.

func InstitutionRolesG

func InstitutionRolesG(mods ...qm.QueryMod) institutionRoleQuery

InstitutionRolesG retrieves all records.

func Institutions

func Institutions(exec boil.Executor, mods ...qm.QueryMod) institutionQuery

Institutions retrieves all the records using an executor.

func InstitutionsG

func InstitutionsG(mods ...qm.QueryMod) institutionQuery

InstitutionsG retrieves all records.

func InstrumentClassExists

func InstrumentClassExists(exec boil.Executor, id int16) (bool, error)

InstrumentClassExists checks if the InstrumentClass row exists.

func InstrumentClassExistsG

func InstrumentClassExistsG(id int16) (bool, error)

InstrumentClassExistsG checks if the InstrumentClass row exists.

func InstrumentClassExistsGP

func InstrumentClassExistsGP(id int16) bool

InstrumentClassExistsGP checks if the InstrumentClass row exists. Panics on error.

func InstrumentClassExistsP

func InstrumentClassExistsP(exec boil.Executor, id int16) bool

InstrumentClassExistsP checks if the InstrumentClass row exists. Panics on error.

func InstrumentClasses

func InstrumentClasses(exec boil.Executor, mods ...qm.QueryMod) instrumentClassQuery

InstrumentClasses retrieves all the records using an executor.

func InstrumentClassesG

func InstrumentClassesG(mods ...qm.QueryMod) instrumentClassQuery

InstrumentClassesG retrieves all records.

func InstrumentExists

func InstrumentExists(exec boil.Executor, id int) (bool, error)

InstrumentExists checks if the Instrument row exists.

func InstrumentExistsG

func InstrumentExistsG(id int) (bool, error)

InstrumentExistsG checks if the Instrument row exists.

func InstrumentExistsGP

func InstrumentExistsGP(id int) bool

InstrumentExistsGP checks if the Instrument row exists. Panics on error.

func InstrumentExistsP

func InstrumentExistsP(exec boil.Executor, id int) bool

InstrumentExistsP checks if the Instrument row exists. Panics on error.

func InstrumentJSONExists

func InstrumentJSONExists(exec boil.Executor, id int) (bool, error)

InstrumentJSONExists checks if the InstrumentJSON row exists.

func InstrumentJSONExistsG

func InstrumentJSONExistsG(id int) (bool, error)

InstrumentJSONExistsG checks if the InstrumentJSON row exists.

func InstrumentJSONExistsGP

func InstrumentJSONExistsGP(id int) bool

InstrumentJSONExistsGP checks if the InstrumentJSON row exists. Panics on error.

func InstrumentJSONExistsP

func InstrumentJSONExistsP(exec boil.Executor, id int) bool

InstrumentJSONExistsP checks if the InstrumentJSON row exists. Panics on error.

func InstrumentJsons

func InstrumentJsons(exec boil.Executor, mods ...qm.QueryMod) instrumentJSONQuery

InstrumentJsons retrieves all the records using an executor.

func InstrumentJsonsG

func InstrumentJsonsG(mods ...qm.QueryMod) instrumentJSONQuery

InstrumentJsonsG retrieves all records.

func InstrumentSourceExists

func InstrumentSourceExists(exec boil.Executor, id int16) (bool, error)

InstrumentSourceExists checks if the InstrumentSource row exists.

func InstrumentSourceExistsG

func InstrumentSourceExistsG(id int16) (bool, error)

InstrumentSourceExistsG checks if the InstrumentSource row exists.

func InstrumentSourceExistsGP

func InstrumentSourceExistsGP(id int16) bool

InstrumentSourceExistsGP checks if the InstrumentSource row exists. Panics on error.

func InstrumentSourceExistsP

func InstrumentSourceExistsP(exec boil.Executor, id int16) bool

InstrumentSourceExistsP checks if the InstrumentSource row exists. Panics on error.

func InstrumentSources

func InstrumentSources(exec boil.Executor, mods ...qm.QueryMod) instrumentSourceQuery

InstrumentSources retrieves all the records using an executor.

func InstrumentSourcesG

func InstrumentSourcesG(mods ...qm.QueryMod) instrumentSourceQuery

InstrumentSourcesG retrieves all records.

func Instruments

func Instruments(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

Instruments retrieves all the records using an executor.

func InstrumentsG

func InstrumentsG(mods ...qm.QueryMod) instrumentQuery

InstrumentsG retrieves all records.

func NewQuery

func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NewQueryG

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

NewQueryG initializes a new Query using the passed in QueryMods

Types

type Equity

type Equity struct {
	InstrumentID       int       `boil:"instrument_id" json:"instrument_id" toml:"instrument_id" yaml:"instrument_id"`
	PayCurrencyID      null.Int  `boil:"pay_currency_id" json:"pay_currency_id,omitempty" toml:"pay_currency_id" yaml:"pay_currency_id,omitempty"`
	ExerciseCurrencyID null.Int  `` /* 131-byte string literal not displayed */
	CompanyCurrencyID  null.Int  `` /* 127-byte string literal not displayed */
	FromDate           time.Time `boil:"from_date" json:"from_date" toml:"from_date" yaml:"from_date"`
	ThruDate           null.Time `boil:"thru_date" json:"thru_date,omitempty" toml:"thru_date" yaml:"thru_date,omitempty"`
	CreatedAt          time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	CreatedBy          string    `boil:"created_by" json:"created_by" toml:"created_by" yaml:"created_by"`
	UpdatedAt          time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	UpdatedBy          string    `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *equityR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L equityL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Equity is an object representing the database table.

func FindEquity

func FindEquity(exec boil.Executor, instrumentID int, selectCols ...string) (*Equity, error)

FindEquity retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindEquityG

func FindEquityG(instrumentID int, selectCols ...string) (*Equity, error)

FindEquityG retrieves a single record by ID.

func FindEquityGP

func FindEquityGP(instrumentID int, selectCols ...string) *Equity

FindEquityGP retrieves a single record by ID, and panics on error.

func FindEquityP

func FindEquityP(exec boil.Executor, instrumentID int, selectCols ...string) *Equity

FindEquityP retrieves a single record by ID with an executor, and panics on error.

func (*Equity) CompanyCurrency

func (o *Equity) CompanyCurrency(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

CompanyCurrency pointed to by the foreign key.

func (*Equity) CompanyCurrencyG

func (o *Equity) CompanyCurrencyG(mods ...qm.QueryMod) instrumentQuery

CompanyCurrencyG pointed to by the foreign key.

func (*Equity) Delete

func (o *Equity) Delete(exec boil.Executor) error

Delete deletes a single Equity record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Equity) DeleteG

func (o *Equity) DeleteG() error

DeleteG deletes a single Equity record. DeleteG will match against the primary key column to find the record to delete.

func (*Equity) DeleteGP

func (o *Equity) DeleteGP()

DeleteGP deletes a single Equity record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Equity) DeleteP

func (o *Equity) DeleteP(exec boil.Executor)

DeleteP deletes a single Equity record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Equity) ExerciseCurrency

func (o *Equity) ExerciseCurrency(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

ExerciseCurrency pointed to by the foreign key.

func (*Equity) ExerciseCurrencyG

func (o *Equity) ExerciseCurrencyG(mods ...qm.QueryMod) instrumentQuery

ExerciseCurrencyG pointed to by the foreign key.

func (*Equity) Insert

func (o *Equity) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Equity) InsertG

func (o *Equity) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Equity) InsertGP

func (o *Equity) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Equity) InsertP

func (o *Equity) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Equity) Instrument

func (o *Equity) Instrument(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

Instrument pointed to by the foreign key.

func (*Equity) InstrumentG

func (o *Equity) InstrumentG(mods ...qm.QueryMod) instrumentQuery

InstrumentG pointed to by the foreign key.

func (*Equity) PayCurrency

func (o *Equity) PayCurrency(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

PayCurrency pointed to by the foreign key.

func (*Equity) PayCurrencyG

func (o *Equity) PayCurrencyG(mods ...qm.QueryMod) instrumentQuery

PayCurrencyG pointed to by the foreign key.

func (*Equity) Reload

func (o *Equity) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Equity) ReloadG

func (o *Equity) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Equity) ReloadGP

func (o *Equity) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Equity) ReloadP

func (o *Equity) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Equity) RemoveCompanyCurrency

func (o *Equity) RemoveCompanyCurrency(exec boil.Executor, related *Instrument) error

RemoveCompanyCurrency relationship. Sets o.R.CompanyCurrency to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Equity) RemoveCompanyCurrencyG

func (o *Equity) RemoveCompanyCurrencyG(related *Instrument) error

RemoveCompanyCurrencyG relationship. Sets o.R.CompanyCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Equity) RemoveCompanyCurrencyGP

func (o *Equity) RemoveCompanyCurrencyGP(related *Instrument)

RemoveCompanyCurrencyGP relationship. Sets o.R.CompanyCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Equity) RemoveCompanyCurrencyP

func (o *Equity) RemoveCompanyCurrencyP(exec boil.Executor, related *Instrument)

RemoveCompanyCurrencyP relationship. Sets o.R.CompanyCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Equity) RemoveExerciseCurrency

func (o *Equity) RemoveExerciseCurrency(exec boil.Executor, related *Instrument) error

RemoveExerciseCurrency relationship. Sets o.R.ExerciseCurrency to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Equity) RemoveExerciseCurrencyG

func (o *Equity) RemoveExerciseCurrencyG(related *Instrument) error

RemoveExerciseCurrencyG relationship. Sets o.R.ExerciseCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Equity) RemoveExerciseCurrencyGP

func (o *Equity) RemoveExerciseCurrencyGP(related *Instrument)

RemoveExerciseCurrencyGP relationship. Sets o.R.ExerciseCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Equity) RemoveExerciseCurrencyP

func (o *Equity) RemoveExerciseCurrencyP(exec boil.Executor, related *Instrument)

RemoveExerciseCurrencyP relationship. Sets o.R.ExerciseCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Equity) RemovePayCurrency

func (o *Equity) RemovePayCurrency(exec boil.Executor, related *Instrument) error

RemovePayCurrency relationship. Sets o.R.PayCurrency to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Equity) RemovePayCurrencyG

func (o *Equity) RemovePayCurrencyG(related *Instrument) error

RemovePayCurrencyG relationship. Sets o.R.PayCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Equity) RemovePayCurrencyGP

func (o *Equity) RemovePayCurrencyGP(related *Instrument)

RemovePayCurrencyGP relationship. Sets o.R.PayCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Equity) RemovePayCurrencyP

func (o *Equity) RemovePayCurrencyP(exec boil.Executor, related *Instrument)

RemovePayCurrencyP relationship. Sets o.R.PayCurrency to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Equity) SetCompanyCurrency

func (o *Equity) SetCompanyCurrency(exec boil.Executor, insert bool, related *Instrument) error

SetCompanyCurrency of the equity to the related item. Sets o.R.CompanyCurrency to related. Adds o to related.R.CompanyCurrencyEquities.

func (*Equity) SetCompanyCurrencyG

func (o *Equity) SetCompanyCurrencyG(insert bool, related *Instrument) error

SetCompanyCurrencyG of the equity to the related item. Sets o.R.CompanyCurrency to related. Adds o to related.R.CompanyCurrencyEquities. Uses the global database handle.

func (*Equity) SetCompanyCurrencyGP

func (o *Equity) SetCompanyCurrencyGP(insert bool, related *Instrument)

SetCompanyCurrencyGP of the equity to the related item. Sets o.R.CompanyCurrency to related. Adds o to related.R.CompanyCurrencyEquities. Uses the global database handle and panics on error.

func (*Equity) SetCompanyCurrencyP

func (o *Equity) SetCompanyCurrencyP(exec boil.Executor, insert bool, related *Instrument)

SetCompanyCurrencyP of the equity to the related item. Sets o.R.CompanyCurrency to related. Adds o to related.R.CompanyCurrencyEquities. Panics on error.

func (*Equity) SetExerciseCurrency

func (o *Equity) SetExerciseCurrency(exec boil.Executor, insert bool, related *Instrument) error

SetExerciseCurrency of the equity to the related item. Sets o.R.ExerciseCurrency to related. Adds o to related.R.ExerciseCurrencyEquities.

func (*Equity) SetExerciseCurrencyG

func (o *Equity) SetExerciseCurrencyG(insert bool, related *Instrument) error

SetExerciseCurrencyG of the equity to the related item. Sets o.R.ExerciseCurrency to related. Adds o to related.R.ExerciseCurrencyEquities. Uses the global database handle.

func (*Equity) SetExerciseCurrencyGP

func (o *Equity) SetExerciseCurrencyGP(insert bool, related *Instrument)

SetExerciseCurrencyGP of the equity to the related item. Sets o.R.ExerciseCurrency to related. Adds o to related.R.ExerciseCurrencyEquities. Uses the global database handle and panics on error.

func (*Equity) SetExerciseCurrencyP

func (o *Equity) SetExerciseCurrencyP(exec boil.Executor, insert bool, related *Instrument)

SetExerciseCurrencyP of the equity to the related item. Sets o.R.ExerciseCurrency to related. Adds o to related.R.ExerciseCurrencyEquities. Panics on error.

func (*Equity) SetInstrument

func (o *Equity) SetInstrument(exec boil.Executor, insert bool, related *Instrument) error

SetInstrument of the equity to the related item. Sets o.R.Instrument to related. Adds o to related.R.Equity.

func (*Equity) SetInstrumentG

func (o *Equity) SetInstrumentG(insert bool, related *Instrument) error

SetInstrumentG of the equity to the related item. Sets o.R.Instrument to related. Adds o to related.R.Equity. Uses the global database handle.

func (*Equity) SetInstrumentGP

func (o *Equity) SetInstrumentGP(insert bool, related *Instrument)

SetInstrumentGP of the equity to the related item. Sets o.R.Instrument to related. Adds o to related.R.Equity. Uses the global database handle and panics on error.

func (*Equity) SetInstrumentP

func (o *Equity) SetInstrumentP(exec boil.Executor, insert bool, related *Instrument)

SetInstrumentP of the equity to the related item. Sets o.R.Instrument to related. Adds o to related.R.Equity. Panics on error.

func (*Equity) SetPayCurrency

func (o *Equity) SetPayCurrency(exec boil.Executor, insert bool, related *Instrument) error

SetPayCurrency of the equity to the related item. Sets o.R.PayCurrency to related. Adds o to related.R.PayCurrencyEquities.

func (*Equity) SetPayCurrencyG

func (o *Equity) SetPayCurrencyG(insert bool, related *Instrument) error

SetPayCurrencyG of the equity to the related item. Sets o.R.PayCurrency to related. Adds o to related.R.PayCurrencyEquities. Uses the global database handle.

func (*Equity) SetPayCurrencyGP

func (o *Equity) SetPayCurrencyGP(insert bool, related *Instrument)

SetPayCurrencyGP of the equity to the related item. Sets o.R.PayCurrency to related. Adds o to related.R.PayCurrencyEquities. Uses the global database handle and panics on error.

func (*Equity) SetPayCurrencyP

func (o *Equity) SetPayCurrencyP(exec boil.Executor, insert bool, related *Instrument)

SetPayCurrencyP of the equity to the related item. Sets o.R.PayCurrency to related. Adds o to related.R.PayCurrencyEquities. Panics on error.

func (*Equity) Update

func (o *Equity) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Equity. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Equity) UpdateG

func (o *Equity) UpdateG(whitelist ...string) error

UpdateG a single Equity record. See Update for whitelist behavior description.

func (*Equity) UpdateGP

func (o *Equity) UpdateGP(whitelist ...string)

UpdateGP a single Equity record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Equity) UpdateP

func (o *Equity) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Equity, and panics on error. See Update for whitelist behavior description.

func (*Equity) Upsert

func (o *Equity) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Equity) UpsertG

func (o *Equity) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Equity) UpsertGP

func (o *Equity) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Equity) UpsertP

func (o *Equity) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type EquityHook

type EquityHook func(boil.Executor, *Equity) error

EquityHook is the signature for custom Equity hook methods

type EquitySlice

type EquitySlice []*Equity

EquitySlice is an alias for a slice of pointers to Equity. This should generally be used opposed to []Equity.

func (EquitySlice) DeleteAll

func (o EquitySlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (EquitySlice) DeleteAllG

func (o EquitySlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (EquitySlice) DeleteAllGP

func (o EquitySlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (EquitySlice) DeleteAllP

func (o EquitySlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*EquitySlice) ReloadAll

func (o *EquitySlice) 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 (*EquitySlice) ReloadAllG

func (o *EquitySlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*EquitySlice) ReloadAllGP

func (o *EquitySlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*EquitySlice) ReloadAllP

func (o *EquitySlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (EquitySlice) UpdateAll

func (o EquitySlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (EquitySlice) UpdateAllG

func (o EquitySlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (EquitySlice) UpdateAllGP

func (o EquitySlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (EquitySlice) UpdateAllP

func (o EquitySlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Institution

type Institution struct {
	ID          int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	Acronym     null.String `boil:"acronym" json:"acronym,omitempty" toml:"acronym" yaml:"acronym,omitempty"`
	FromDate    time.Time   `boil:"from_date" json:"from_date" toml:"from_date" yaml:"from_date"`
	ThruDate    null.Time   `boil:"thru_date" json:"thru_date,omitempty" toml:"thru_date" yaml:"thru_date,omitempty"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	CreatedBy   string      `boil:"created_by" json:"created_by" toml:"created_by" yaml:"created_by"`
	UpdatedAt   time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	UpdatedBy   string      `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *institutionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L institutionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Institution is an object representing the database table.

func FindInstitution

func FindInstitution(exec boil.Executor, id int, selectCols ...string) (*Institution, error)

FindInstitution retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindInstitutionG

func FindInstitutionG(id int, selectCols ...string) (*Institution, error)

FindInstitutionG retrieves a single record by ID.

func FindInstitutionGP

func FindInstitutionGP(id int, selectCols ...string) *Institution

FindInstitutionGP retrieves a single record by ID, and panics on error.

func FindInstitutionP

func FindInstitutionP(exec boil.Executor, id int, selectCols ...string) *Institution

FindInstitutionP retrieves a single record by ID with an executor, and panics on error.

func (*Institution) AddInstitutionRoles

func (o *Institution) AddInstitutionRoles(exec boil.Executor, insert bool, related ...*InstitutionRole) error

AddInstitutionRoles adds the given related objects to the existing relationships of the institution, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Institution appropriately.

func (*Institution) AddInstitutionRolesG

func (o *Institution) AddInstitutionRolesG(insert bool, related ...*InstitutionRole) error

AddInstitutionRolesG adds the given related objects to the existing relationships of the institution, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Institution appropriately. Uses the global database handle.

func (*Institution) AddInstitutionRolesGP

func (o *Institution) AddInstitutionRolesGP(insert bool, related ...*InstitutionRole)

AddInstitutionRolesGP adds the given related objects to the existing relationships of the institution, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Institution appropriately. Uses the global database handle and panics on error.

func (*Institution) AddInstitutionRolesP

func (o *Institution) AddInstitutionRolesP(exec boil.Executor, insert bool, related ...*InstitutionRole)

AddInstitutionRolesP adds the given related objects to the existing relationships of the institution, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Institution appropriately. Panics on error.

func (*Institution) Delete

func (o *Institution) Delete(exec boil.Executor) error

Delete deletes a single Institution record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Institution) DeleteG

func (o *Institution) DeleteG() error

DeleteG deletes a single Institution record. DeleteG will match against the primary key column to find the record to delete.

func (*Institution) DeleteGP

func (o *Institution) DeleteGP()

DeleteGP deletes a single Institution record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Institution) DeleteP

func (o *Institution) DeleteP(exec boil.Executor)

DeleteP deletes a single Institution record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Institution) Insert

func (o *Institution) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Institution) InsertG

func (o *Institution) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Institution) InsertGP

func (o *Institution) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Institution) InsertP

func (o *Institution) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Institution) InstitutionRoles

func (o *Institution) InstitutionRoles(exec boil.Executor, mods ...qm.QueryMod) institutionRoleQuery

InstitutionRoles retrieves all the institution_role's institution role with an executor.

func (*Institution) InstitutionRolesG

func (o *Institution) InstitutionRolesG(mods ...qm.QueryMod) institutionRoleQuery

InstitutionRolesG retrieves all the institution_role's institution role.

func (*Institution) Reload

func (o *Institution) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Institution) ReloadG

func (o *Institution) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Institution) ReloadGP

func (o *Institution) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Institution) ReloadP

func (o *Institution) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Institution) Update

func (o *Institution) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Institution. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Institution) UpdateG

func (o *Institution) UpdateG(whitelist ...string) error

UpdateG a single Institution record. See Update for whitelist behavior description.

func (*Institution) UpdateGP

func (o *Institution) UpdateGP(whitelist ...string)

UpdateGP a single Institution record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Institution) UpdateP

func (o *Institution) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Institution, and panics on error. See Update for whitelist behavior description.

func (*Institution) Upsert

func (o *Institution) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Institution) UpsertG

func (o *Institution) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Institution) UpsertGP

func (o *Institution) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Institution) UpsertP

func (o *Institution) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type InstitutionHook

type InstitutionHook func(boil.Executor, *Institution) error

InstitutionHook is the signature for custom Institution hook methods

type InstitutionRole

type InstitutionRole struct {
	InstitutionID int         `boil:"institution_id" json:"institution_id" toml:"institution_id" yaml:"institution_id"`
	InstrumentID  int         `boil:"instrument_id" json:"instrument_id" toml:"instrument_id" yaml:"instrument_id"`
	Description   null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	FromDate      time.Time   `boil:"from_date" json:"from_date" toml:"from_date" yaml:"from_date"`
	ThruDate      null.Time   `boil:"thru_date" json:"thru_date,omitempty" toml:"thru_date" yaml:"thru_date,omitempty"`
	CreatedAt     time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	CreatedBy     string      `boil:"created_by" json:"created_by" toml:"created_by" yaml:"created_by"`
	UpdatedAt     time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	UpdatedBy     string      `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *institutionRoleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L institutionRoleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

InstitutionRole is an object representing the database table.

func FindInstitutionRole

func FindInstitutionRole(exec boil.Executor, institutionID int, instrumentID int, selectCols ...string) (*InstitutionRole, error)

FindInstitutionRole retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindInstitutionRoleG

func FindInstitutionRoleG(institutionID int, instrumentID int, selectCols ...string) (*InstitutionRole, error)

FindInstitutionRoleG retrieves a single record by ID.

func FindInstitutionRoleGP

func FindInstitutionRoleGP(institutionID int, instrumentID int, selectCols ...string) *InstitutionRole

FindInstitutionRoleGP retrieves a single record by ID, and panics on error.

func FindInstitutionRoleP

func FindInstitutionRoleP(exec boil.Executor, institutionID int, instrumentID int, selectCols ...string) *InstitutionRole

FindInstitutionRoleP retrieves a single record by ID with an executor, and panics on error.

func (*InstitutionRole) Delete

func (o *InstitutionRole) Delete(exec boil.Executor) error

Delete deletes a single InstitutionRole record with an executor. Delete will match against the primary key column to find the record to delete.

func (*InstitutionRole) DeleteG

func (o *InstitutionRole) DeleteG() error

DeleteG deletes a single InstitutionRole record. DeleteG will match against the primary key column to find the record to delete.

func (*InstitutionRole) DeleteGP

func (o *InstitutionRole) DeleteGP()

DeleteGP deletes a single InstitutionRole record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*InstitutionRole) DeleteP

func (o *InstitutionRole) DeleteP(exec boil.Executor)

DeleteP deletes a single InstitutionRole record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*InstitutionRole) Insert

func (o *InstitutionRole) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*InstitutionRole) InsertG

func (o *InstitutionRole) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*InstitutionRole) InsertGP

func (o *InstitutionRole) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*InstitutionRole) InsertP

func (o *InstitutionRole) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*InstitutionRole) Institution

func (o *InstitutionRole) Institution(exec boil.Executor, mods ...qm.QueryMod) institutionQuery

Institution pointed to by the foreign key.

func (*InstitutionRole) InstitutionG

func (o *InstitutionRole) InstitutionG(mods ...qm.QueryMod) institutionQuery

InstitutionG pointed to by the foreign key.

func (*InstitutionRole) Instrument

func (o *InstitutionRole) Instrument(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

Instrument pointed to by the foreign key.

func (*InstitutionRole) InstrumentG

func (o *InstitutionRole) InstrumentG(mods ...qm.QueryMod) instrumentQuery

InstrumentG pointed to by the foreign key.

func (*InstitutionRole) Reload

func (o *InstitutionRole) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*InstitutionRole) ReloadG

func (o *InstitutionRole) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*InstitutionRole) ReloadGP

func (o *InstitutionRole) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*InstitutionRole) ReloadP

func (o *InstitutionRole) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*InstitutionRole) SetInstitution

func (o *InstitutionRole) SetInstitution(exec boil.Executor, insert bool, related *Institution) error

SetInstitution of the institution_role to the related item. Sets o.R.Institution to related. Adds o to related.R.InstitutionRoles.

func (*InstitutionRole) SetInstitutionG

func (o *InstitutionRole) SetInstitutionG(insert bool, related *Institution) error

SetInstitutionG of the institution_role to the related item. Sets o.R.Institution to related. Adds o to related.R.InstitutionRoles. Uses the global database handle.

func (*InstitutionRole) SetInstitutionGP

func (o *InstitutionRole) SetInstitutionGP(insert bool, related *Institution)

SetInstitutionGP of the institution_role to the related item. Sets o.R.Institution to related. Adds o to related.R.InstitutionRoles. Uses the global database handle and panics on error.

func (*InstitutionRole) SetInstitutionP

func (o *InstitutionRole) SetInstitutionP(exec boil.Executor, insert bool, related *Institution)

SetInstitutionP of the institution_role to the related item. Sets o.R.Institution to related. Adds o to related.R.InstitutionRoles. Panics on error.

func (*InstitutionRole) SetInstrument

func (o *InstitutionRole) SetInstrument(exec boil.Executor, insert bool, related *Instrument) error

SetInstrument of the institution_role to the related item. Sets o.R.Instrument to related. Adds o to related.R.InstitutionRoles.

func (*InstitutionRole) SetInstrumentG

func (o *InstitutionRole) SetInstrumentG(insert bool, related *Instrument) error

SetInstrumentG of the institution_role to the related item. Sets o.R.Instrument to related. Adds o to related.R.InstitutionRoles. Uses the global database handle.

func (*InstitutionRole) SetInstrumentGP

func (o *InstitutionRole) SetInstrumentGP(insert bool, related *Instrument)

SetInstrumentGP of the institution_role to the related item. Sets o.R.Instrument to related. Adds o to related.R.InstitutionRoles. Uses the global database handle and panics on error.

func (*InstitutionRole) SetInstrumentP

func (o *InstitutionRole) SetInstrumentP(exec boil.Executor, insert bool, related *Instrument)

SetInstrumentP of the institution_role to the related item. Sets o.R.Instrument to related. Adds o to related.R.InstitutionRoles. Panics on error.

func (*InstitutionRole) Update

func (o *InstitutionRole) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the InstitutionRole. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*InstitutionRole) UpdateG

func (o *InstitutionRole) UpdateG(whitelist ...string) error

UpdateG a single InstitutionRole record. See Update for whitelist behavior description.

func (*InstitutionRole) UpdateGP

func (o *InstitutionRole) UpdateGP(whitelist ...string)

UpdateGP a single InstitutionRole record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*InstitutionRole) UpdateP

func (o *InstitutionRole) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the InstitutionRole, and panics on error. See Update for whitelist behavior description.

func (*InstitutionRole) Upsert

func (o *InstitutionRole) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*InstitutionRole) UpsertG

func (o *InstitutionRole) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*InstitutionRole) UpsertGP

func (o *InstitutionRole) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*InstitutionRole) UpsertP

func (o *InstitutionRole) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type InstitutionRoleHook

type InstitutionRoleHook func(boil.Executor, *InstitutionRole) error

InstitutionRoleHook is the signature for custom InstitutionRole hook methods

type InstitutionRoleSlice

type InstitutionRoleSlice []*InstitutionRole

InstitutionRoleSlice is an alias for a slice of pointers to InstitutionRole. This should generally be used opposed to []InstitutionRole.

func (InstitutionRoleSlice) DeleteAll

func (o InstitutionRoleSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (InstitutionRoleSlice) DeleteAllG

func (o InstitutionRoleSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (InstitutionRoleSlice) DeleteAllGP

func (o InstitutionRoleSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (InstitutionRoleSlice) DeleteAllP

func (o InstitutionRoleSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*InstitutionRoleSlice) ReloadAll

func (o *InstitutionRoleSlice) 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 (*InstitutionRoleSlice) ReloadAllG

func (o *InstitutionRoleSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*InstitutionRoleSlice) ReloadAllGP

func (o *InstitutionRoleSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*InstitutionRoleSlice) ReloadAllP

func (o *InstitutionRoleSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (InstitutionRoleSlice) UpdateAll

func (o InstitutionRoleSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (InstitutionRoleSlice) UpdateAllG

func (o InstitutionRoleSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (InstitutionRoleSlice) UpdateAllGP

func (o InstitutionRoleSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (InstitutionRoleSlice) UpdateAllP

func (o InstitutionRoleSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type InstitutionSlice

type InstitutionSlice []*Institution

InstitutionSlice is an alias for a slice of pointers to Institution. This should generally be used opposed to []Institution.

func (InstitutionSlice) DeleteAll

func (o InstitutionSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (InstitutionSlice) DeleteAllG

func (o InstitutionSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (InstitutionSlice) DeleteAllGP

func (o InstitutionSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (InstitutionSlice) DeleteAllP

func (o InstitutionSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*InstitutionSlice) ReloadAll

func (o *InstitutionSlice) 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 (*InstitutionSlice) ReloadAllG

func (o *InstitutionSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*InstitutionSlice) ReloadAllGP

func (o *InstitutionSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*InstitutionSlice) ReloadAllP

func (o *InstitutionSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (InstitutionSlice) UpdateAll

func (o InstitutionSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (InstitutionSlice) UpdateAllG

func (o InstitutionSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (InstitutionSlice) UpdateAllGP

func (o InstitutionSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (InstitutionSlice) UpdateAllP

func (o InstitutionSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Instrument

type Instrument struct {
	ID                 int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Symbol             string      `boil:"symbol" json:"symbol" toml:"symbol" yaml:"symbol"`
	Name               string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description        null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	InstrumentClassID  int16       `boil:"instrument_class_id" json:"instrument_class_id" toml:"instrument_class_id" yaml:"instrument_class_id"`
	InstrumentSourceID int16       `boil:"instrument_source_id" json:"instrument_source_id" toml:"instrument_source_id" yaml:"instrument_source_id"`
	CurrencyID         null.Int    `boil:"currency_id" json:"currency_id,omitempty" toml:"currency_id" yaml:"currency_id,omitempty"`
	FromDate           time.Time   `boil:"from_date" json:"from_date" toml:"from_date" yaml:"from_date"`
	ThruDate           null.Time   `boil:"thru_date" json:"thru_date,omitempty" toml:"thru_date" yaml:"thru_date,omitempty"`
	CreatedAt          time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt          time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedBy          string      `boil:"created_by" json:"created_by" toml:"created_by" yaml:"created_by"`
	UpdatedBy          string      `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *instrumentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L instrumentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Instrument is an object representing the database table.

func FindInstrument

func FindInstrument(exec boil.Executor, id int, selectCols ...string) (*Instrument, error)

FindInstrument retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindInstrumentG

func FindInstrumentG(id int, selectCols ...string) (*Instrument, error)

FindInstrumentG retrieves a single record by ID.

func FindInstrumentGP

func FindInstrumentGP(id int, selectCols ...string) *Instrument

FindInstrumentGP retrieves a single record by ID, and panics on error.

func FindInstrumentP

func FindInstrumentP(exec boil.Executor, id int, selectCols ...string) *Instrument

FindInstrumentP retrieves a single record by ID with an executor, and panics on error.

func (*Instrument) AddCompanyCurrencyEquities

func (o *Instrument) AddCompanyCurrencyEquities(exec boil.Executor, insert bool, related ...*Equity) error

AddCompanyCurrencyEquities adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CompanyCurrencyEquities. Sets related.R.CompanyCurrency appropriately.

func (*Instrument) AddCompanyCurrencyEquitiesG

func (o *Instrument) AddCompanyCurrencyEquitiesG(insert bool, related ...*Equity) error

AddCompanyCurrencyEquitiesG adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CompanyCurrencyEquities. Sets related.R.CompanyCurrency appropriately. Uses the global database handle.

func (*Instrument) AddCompanyCurrencyEquitiesGP

func (o *Instrument) AddCompanyCurrencyEquitiesGP(insert bool, related ...*Equity)

AddCompanyCurrencyEquitiesGP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CompanyCurrencyEquities. Sets related.R.CompanyCurrency appropriately. Uses the global database handle and panics on error.

func (*Instrument) AddCompanyCurrencyEquitiesP

func (o *Instrument) AddCompanyCurrencyEquitiesP(exec boil.Executor, insert bool, related ...*Equity)

AddCompanyCurrencyEquitiesP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CompanyCurrencyEquities. Sets related.R.CompanyCurrency appropriately. Panics on error.

func (*Instrument) AddCurrencyInstrumentJsons

func (o *Instrument) AddCurrencyInstrumentJsons(exec boil.Executor, insert bool, related ...*InstrumentJSON) error

AddCurrencyInstrumentJsons adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstrumentJsons. Sets related.R.Currency appropriately.

func (*Instrument) AddCurrencyInstrumentJsonsG

func (o *Instrument) AddCurrencyInstrumentJsonsG(insert bool, related ...*InstrumentJSON) error

AddCurrencyInstrumentJsonsG adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstrumentJsons. Sets related.R.Currency appropriately. Uses the global database handle.

func (*Instrument) AddCurrencyInstrumentJsonsGP

func (o *Instrument) AddCurrencyInstrumentJsonsGP(insert bool, related ...*InstrumentJSON)

AddCurrencyInstrumentJsonsGP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstrumentJsons. Sets related.R.Currency appropriately. Uses the global database handle and panics on error.

func (*Instrument) AddCurrencyInstrumentJsonsP

func (o *Instrument) AddCurrencyInstrumentJsonsP(exec boil.Executor, insert bool, related ...*InstrumentJSON)

AddCurrencyInstrumentJsonsP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstrumentJsons. Sets related.R.Currency appropriately. Panics on error.

func (*Instrument) AddCurrencyInstruments

func (o *Instrument) AddCurrencyInstruments(exec boil.Executor, insert bool, related ...*Instrument) error

AddCurrencyInstruments adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstruments. Sets related.R.Currency appropriately.

func (*Instrument) AddCurrencyInstrumentsG

func (o *Instrument) AddCurrencyInstrumentsG(insert bool, related ...*Instrument) error

AddCurrencyInstrumentsG adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstruments. Sets related.R.Currency appropriately. Uses the global database handle.

func (*Instrument) AddCurrencyInstrumentsGP

func (o *Instrument) AddCurrencyInstrumentsGP(insert bool, related ...*Instrument)

AddCurrencyInstrumentsGP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstruments. Sets related.R.Currency appropriately. Uses the global database handle and panics on error.

func (*Instrument) AddCurrencyInstrumentsP

func (o *Instrument) AddCurrencyInstrumentsP(exec boil.Executor, insert bool, related ...*Instrument)

AddCurrencyInstrumentsP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.CurrencyInstruments. Sets related.R.Currency appropriately. Panics on error.

func (*Instrument) AddExerciseCurrencyEquities

func (o *Instrument) AddExerciseCurrencyEquities(exec boil.Executor, insert bool, related ...*Equity) error

AddExerciseCurrencyEquities adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.ExerciseCurrencyEquities. Sets related.R.ExerciseCurrency appropriately.

func (*Instrument) AddExerciseCurrencyEquitiesG

func (o *Instrument) AddExerciseCurrencyEquitiesG(insert bool, related ...*Equity) error

AddExerciseCurrencyEquitiesG adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.ExerciseCurrencyEquities. Sets related.R.ExerciseCurrency appropriately. Uses the global database handle.

func (*Instrument) AddExerciseCurrencyEquitiesGP

func (o *Instrument) AddExerciseCurrencyEquitiesGP(insert bool, related ...*Equity)

AddExerciseCurrencyEquitiesGP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.ExerciseCurrencyEquities. Sets related.R.ExerciseCurrency appropriately. Uses the global database handle and panics on error.

func (*Instrument) AddExerciseCurrencyEquitiesP

func (o *Instrument) AddExerciseCurrencyEquitiesP(exec boil.Executor, insert bool, related ...*Equity)

AddExerciseCurrencyEquitiesP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.ExerciseCurrencyEquities. Sets related.R.ExerciseCurrency appropriately. Panics on error.

func (*Instrument) AddInstitutionRoles

func (o *Instrument) AddInstitutionRoles(exec boil.Executor, insert bool, related ...*InstitutionRole) error

AddInstitutionRoles adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Instrument appropriately.

func (*Instrument) AddInstitutionRolesG

func (o *Instrument) AddInstitutionRolesG(insert bool, related ...*InstitutionRole) error

AddInstitutionRolesG adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Instrument appropriately. Uses the global database handle.

func (*Instrument) AddInstitutionRolesGP

func (o *Instrument) AddInstitutionRolesGP(insert bool, related ...*InstitutionRole)

AddInstitutionRolesGP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Instrument appropriately. Uses the global database handle and panics on error.

func (*Instrument) AddInstitutionRolesP

func (o *Instrument) AddInstitutionRolesP(exec boil.Executor, insert bool, related ...*InstitutionRole)

AddInstitutionRolesP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.InstitutionRoles. Sets related.R.Instrument appropriately. Panics on error.

func (*Instrument) AddPayCurrencyEquities

func (o *Instrument) AddPayCurrencyEquities(exec boil.Executor, insert bool, related ...*Equity) error

AddPayCurrencyEquities adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.PayCurrencyEquities. Sets related.R.PayCurrency appropriately.

func (*Instrument) AddPayCurrencyEquitiesG

func (o *Instrument) AddPayCurrencyEquitiesG(insert bool, related ...*Equity) error

AddPayCurrencyEquitiesG adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.PayCurrencyEquities. Sets related.R.PayCurrency appropriately. Uses the global database handle.

func (*Instrument) AddPayCurrencyEquitiesGP

func (o *Instrument) AddPayCurrencyEquitiesGP(insert bool, related ...*Equity)

AddPayCurrencyEquitiesGP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.PayCurrencyEquities. Sets related.R.PayCurrency appropriately. Uses the global database handle and panics on error.

func (*Instrument) AddPayCurrencyEquitiesP

func (o *Instrument) AddPayCurrencyEquitiesP(exec boil.Executor, insert bool, related ...*Equity)

AddPayCurrencyEquitiesP adds the given related objects to the existing relationships of the instrument, optionally inserting them as new records. Appends related to o.R.PayCurrencyEquities. Sets related.R.PayCurrency appropriately. Panics on error.

func (*Instrument) CompanyCurrencyEquities

func (o *Instrument) CompanyCurrencyEquities(exec boil.Executor, mods ...qm.QueryMod) equityQuery

CompanyCurrencyEquities retrieves all the equity's equity with an executor via company_currency_id column.

func (*Instrument) CompanyCurrencyEquitiesG

func (o *Instrument) CompanyCurrencyEquitiesG(mods ...qm.QueryMod) equityQuery

CompanyCurrencyEquitiesG retrieves all the equity's equity via company_currency_id column.

func (*Instrument) Currency

func (o *Instrument) Currency(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

Currency pointed to by the foreign key.

func (*Instrument) CurrencyG

func (o *Instrument) CurrencyG(mods ...qm.QueryMod) instrumentQuery

CurrencyG pointed to by the foreign key.

func (*Instrument) CurrencyInstrumentJsons

func (o *Instrument) CurrencyInstrumentJsons(exec boil.Executor, mods ...qm.QueryMod) instrumentJSONQuery

CurrencyInstrumentJsons retrieves all the instrument_json's instrument json with an executor via currency_id column.

func (*Instrument) CurrencyInstrumentJsonsG

func (o *Instrument) CurrencyInstrumentJsonsG(mods ...qm.QueryMod) instrumentJSONQuery

CurrencyInstrumentJsonsG retrieves all the instrument_json's instrument json via currency_id column.

func (*Instrument) CurrencyInstruments

func (o *Instrument) CurrencyInstruments(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

CurrencyInstruments retrieves all the instrument's instrument with an executor via currency_id column.

func (*Instrument) CurrencyInstrumentsG

func (o *Instrument) CurrencyInstrumentsG(mods ...qm.QueryMod) instrumentQuery

CurrencyInstrumentsG retrieves all the instrument's instrument via currency_id column.

func (*Instrument) Delete

func (o *Instrument) Delete(exec boil.Executor) error

Delete deletes a single Instrument record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Instrument) DeleteG

func (o *Instrument) DeleteG() error

DeleteG deletes a single Instrument record. DeleteG will match against the primary key column to find the record to delete.

func (*Instrument) DeleteGP

func (o *Instrument) DeleteGP()

DeleteGP deletes a single Instrument record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Instrument) DeleteP

func (o *Instrument) DeleteP(exec boil.Executor)

DeleteP deletes a single Instrument record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Instrument) Equity

func (o *Instrument) Equity(exec boil.Executor, mods ...qm.QueryMod) equityQuery

Equity pointed to by the foreign key.

func (*Instrument) EquityG

func (o *Instrument) EquityG(mods ...qm.QueryMod) equityQuery

EquityG pointed to by the foreign key.

func (*Instrument) ExerciseCurrencyEquities

func (o *Instrument) ExerciseCurrencyEquities(exec boil.Executor, mods ...qm.QueryMod) equityQuery

ExerciseCurrencyEquities retrieves all the equity's equity with an executor via exercise_currency_id column.

func (*Instrument) ExerciseCurrencyEquitiesG

func (o *Instrument) ExerciseCurrencyEquitiesG(mods ...qm.QueryMod) equityQuery

ExerciseCurrencyEquitiesG retrieves all the equity's equity via exercise_currency_id column.

func (*Instrument) Insert

func (o *Instrument) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Instrument) InsertG

func (o *Instrument) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Instrument) InsertGP

func (o *Instrument) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Instrument) InsertP

func (o *Instrument) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Instrument) InstitutionRoles

func (o *Instrument) InstitutionRoles(exec boil.Executor, mods ...qm.QueryMod) institutionRoleQuery

InstitutionRoles retrieves all the institution_role's institution role with an executor.

func (*Instrument) InstitutionRolesG

func (o *Instrument) InstitutionRolesG(mods ...qm.QueryMod) institutionRoleQuery

InstitutionRolesG retrieves all the institution_role's institution role.

func (*Instrument) InstrumentClass

func (o *Instrument) InstrumentClass(exec boil.Executor, mods ...qm.QueryMod) instrumentClassQuery

InstrumentClass pointed to by the foreign key.

func (*Instrument) InstrumentClassG

func (o *Instrument) InstrumentClassG(mods ...qm.QueryMod) instrumentClassQuery

InstrumentClassG pointed to by the foreign key.

func (*Instrument) InstrumentSource

func (o *Instrument) InstrumentSource(exec boil.Executor, mods ...qm.QueryMod) instrumentSourceQuery

InstrumentSource pointed to by the foreign key.

func (*Instrument) InstrumentSourceG

func (o *Instrument) InstrumentSourceG(mods ...qm.QueryMod) instrumentSourceQuery

InstrumentSourceG pointed to by the foreign key.

func (*Instrument) PayCurrencyEquities

func (o *Instrument) PayCurrencyEquities(exec boil.Executor, mods ...qm.QueryMod) equityQuery

PayCurrencyEquities retrieves all the equity's equity with an executor via pay_currency_id column.

func (*Instrument) PayCurrencyEquitiesG

func (o *Instrument) PayCurrencyEquitiesG(mods ...qm.QueryMod) equityQuery

PayCurrencyEquitiesG retrieves all the equity's equity via pay_currency_id column.

func (*Instrument) Reload

func (o *Instrument) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Instrument) ReloadG

func (o *Instrument) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Instrument) ReloadGP

func (o *Instrument) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Instrument) ReloadP

func (o *Instrument) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Instrument) RemoveCompanyCurrencyEquities

func (o *Instrument) RemoveCompanyCurrencyEquities(exec boil.Executor, related ...*Equity) error

RemoveCompanyCurrencyEquities relationships from objects passed in. Removes related items from R.CompanyCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.CompanyCurrency.

func (*Instrument) RemoveCompanyCurrencyEquitiesG

func (o *Instrument) RemoveCompanyCurrencyEquitiesG(related ...*Equity) error

RemoveCompanyCurrencyEquitiesG relationships from objects passed in. Removes related items from R.CompanyCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.CompanyCurrency. Uses the global database handle.

func (*Instrument) RemoveCompanyCurrencyEquitiesGP

func (o *Instrument) RemoveCompanyCurrencyEquitiesGP(related ...*Equity)

RemoveCompanyCurrencyEquitiesGP relationships from objects passed in. Removes related items from R.CompanyCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.CompanyCurrency. Uses the global database handle and panics on error.

func (*Instrument) RemoveCompanyCurrencyEquitiesP

func (o *Instrument) RemoveCompanyCurrencyEquitiesP(exec boil.Executor, related ...*Equity)

RemoveCompanyCurrencyEquitiesP relationships from objects passed in. Removes related items from R.CompanyCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.CompanyCurrency. Panics on error.

func (*Instrument) RemoveCurrency

func (o *Instrument) RemoveCurrency(exec boil.Executor, related *Instrument) error

RemoveCurrency relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Instrument) RemoveCurrencyG

func (o *Instrument) RemoveCurrencyG(related *Instrument) error

RemoveCurrencyG relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Instrument) RemoveCurrencyGP

func (o *Instrument) RemoveCurrencyGP(related *Instrument)

RemoveCurrencyGP relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Instrument) RemoveCurrencyInstrumentJsons

func (o *Instrument) RemoveCurrencyInstrumentJsons(exec boil.Executor, related ...*InstrumentJSON) error

RemoveCurrencyInstrumentJsons relationships from objects passed in. Removes related items from R.CurrencyInstrumentJsons (uses pointer comparison, removal does not keep order) Sets related.R.Currency.

func (*Instrument) RemoveCurrencyInstrumentJsonsG

func (o *Instrument) RemoveCurrencyInstrumentJsonsG(related ...*InstrumentJSON) error

RemoveCurrencyInstrumentJsonsG relationships from objects passed in. Removes related items from R.CurrencyInstrumentJsons (uses pointer comparison, removal does not keep order) Sets related.R.Currency. Uses the global database handle.

func (*Instrument) RemoveCurrencyInstrumentJsonsGP

func (o *Instrument) RemoveCurrencyInstrumentJsonsGP(related ...*InstrumentJSON)

RemoveCurrencyInstrumentJsonsGP relationships from objects passed in. Removes related items from R.CurrencyInstrumentJsons (uses pointer comparison, removal does not keep order) Sets related.R.Currency. Uses the global database handle and panics on error.

func (*Instrument) RemoveCurrencyInstrumentJsonsP

func (o *Instrument) RemoveCurrencyInstrumentJsonsP(exec boil.Executor, related ...*InstrumentJSON)

RemoveCurrencyInstrumentJsonsP relationships from objects passed in. Removes related items from R.CurrencyInstrumentJsons (uses pointer comparison, removal does not keep order) Sets related.R.Currency. Panics on error.

func (*Instrument) RemoveCurrencyInstruments

func (o *Instrument) RemoveCurrencyInstruments(exec boil.Executor, related ...*Instrument) error

RemoveCurrencyInstruments relationships from objects passed in. Removes related items from R.CurrencyInstruments (uses pointer comparison, removal does not keep order) Sets related.R.Currency.

func (*Instrument) RemoveCurrencyInstrumentsG

func (o *Instrument) RemoveCurrencyInstrumentsG(related ...*Instrument) error

RemoveCurrencyInstrumentsG relationships from objects passed in. Removes related items from R.CurrencyInstruments (uses pointer comparison, removal does not keep order) Sets related.R.Currency. Uses the global database handle.

func (*Instrument) RemoveCurrencyInstrumentsGP

func (o *Instrument) RemoveCurrencyInstrumentsGP(related ...*Instrument)

RemoveCurrencyInstrumentsGP relationships from objects passed in. Removes related items from R.CurrencyInstruments (uses pointer comparison, removal does not keep order) Sets related.R.Currency. Uses the global database handle and panics on error.

func (*Instrument) RemoveCurrencyInstrumentsP

func (o *Instrument) RemoveCurrencyInstrumentsP(exec boil.Executor, related ...*Instrument)

RemoveCurrencyInstrumentsP relationships from objects passed in. Removes related items from R.CurrencyInstruments (uses pointer comparison, removal does not keep order) Sets related.R.Currency. Panics on error.

func (*Instrument) RemoveCurrencyP

func (o *Instrument) RemoveCurrencyP(exec boil.Executor, related *Instrument)

RemoveCurrencyP relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Instrument) RemoveExerciseCurrencyEquities

func (o *Instrument) RemoveExerciseCurrencyEquities(exec boil.Executor, related ...*Equity) error

RemoveExerciseCurrencyEquities relationships from objects passed in. Removes related items from R.ExerciseCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.ExerciseCurrency.

func (*Instrument) RemoveExerciseCurrencyEquitiesG

func (o *Instrument) RemoveExerciseCurrencyEquitiesG(related ...*Equity) error

RemoveExerciseCurrencyEquitiesG relationships from objects passed in. Removes related items from R.ExerciseCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.ExerciseCurrency. Uses the global database handle.

func (*Instrument) RemoveExerciseCurrencyEquitiesGP

func (o *Instrument) RemoveExerciseCurrencyEquitiesGP(related ...*Equity)

RemoveExerciseCurrencyEquitiesGP relationships from objects passed in. Removes related items from R.ExerciseCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.ExerciseCurrency. Uses the global database handle and panics on error.

func (*Instrument) RemoveExerciseCurrencyEquitiesP

func (o *Instrument) RemoveExerciseCurrencyEquitiesP(exec boil.Executor, related ...*Equity)

RemoveExerciseCurrencyEquitiesP relationships from objects passed in. Removes related items from R.ExerciseCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.ExerciseCurrency. Panics on error.

func (*Instrument) RemovePayCurrencyEquities

func (o *Instrument) RemovePayCurrencyEquities(exec boil.Executor, related ...*Equity) error

RemovePayCurrencyEquities relationships from objects passed in. Removes related items from R.PayCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.PayCurrency.

func (*Instrument) RemovePayCurrencyEquitiesG

func (o *Instrument) RemovePayCurrencyEquitiesG(related ...*Equity) error

RemovePayCurrencyEquitiesG relationships from objects passed in. Removes related items from R.PayCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.PayCurrency. Uses the global database handle.

func (*Instrument) RemovePayCurrencyEquitiesGP

func (o *Instrument) RemovePayCurrencyEquitiesGP(related ...*Equity)

RemovePayCurrencyEquitiesGP relationships from objects passed in. Removes related items from R.PayCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.PayCurrency. Uses the global database handle and panics on error.

func (*Instrument) RemovePayCurrencyEquitiesP

func (o *Instrument) RemovePayCurrencyEquitiesP(exec boil.Executor, related ...*Equity)

RemovePayCurrencyEquitiesP relationships from objects passed in. Removes related items from R.PayCurrencyEquities (uses pointer comparison, removal does not keep order) Sets related.R.PayCurrency. Panics on error.

func (*Instrument) SetCompanyCurrencyEquities

func (o *Instrument) SetCompanyCurrencyEquities(exec boil.Executor, insert bool, related ...*Equity) error

SetCompanyCurrencyEquities removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.CompanyCurrency's CompanyCurrencyEquities accordingly. Replaces o.R.CompanyCurrencyEquities with related. Sets related.R.CompanyCurrency's CompanyCurrencyEquities accordingly.

func (*Instrument) SetCompanyCurrencyEquitiesG

func (o *Instrument) SetCompanyCurrencyEquitiesG(insert bool, related ...*Equity) error

SetCompanyCurrencyEquitiesG removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.CompanyCurrency's CompanyCurrencyEquities accordingly. Replaces o.R.CompanyCurrencyEquities with related. Sets related.R.CompanyCurrency's CompanyCurrencyEquities accordingly. Uses the global database handle.

func (*Instrument) SetCompanyCurrencyEquitiesGP

func (o *Instrument) SetCompanyCurrencyEquitiesGP(insert bool, related ...*Equity)

SetCompanyCurrencyEquitiesGP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.CompanyCurrency's CompanyCurrencyEquities accordingly. Replaces o.R.CompanyCurrencyEquities with related. Sets related.R.CompanyCurrency's CompanyCurrencyEquities accordingly. Uses the global database handle and panics on error.

func (*Instrument) SetCompanyCurrencyEquitiesP

func (o *Instrument) SetCompanyCurrencyEquitiesP(exec boil.Executor, insert bool, related ...*Equity)

SetCompanyCurrencyEquitiesP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.CompanyCurrency's CompanyCurrencyEquities accordingly. Replaces o.R.CompanyCurrencyEquities with related. Sets related.R.CompanyCurrency's CompanyCurrencyEquities accordingly. Panics on error.

func (*Instrument) SetCurrency

func (o *Instrument) SetCurrency(exec boil.Executor, insert bool, related *Instrument) error

SetCurrency of the instrument to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstruments.

func (*Instrument) SetCurrencyG

func (o *Instrument) SetCurrencyG(insert bool, related *Instrument) error

SetCurrencyG of the instrument to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstruments. Uses the global database handle.

func (*Instrument) SetCurrencyGP

func (o *Instrument) SetCurrencyGP(insert bool, related *Instrument)

SetCurrencyGP of the instrument to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstruments. Uses the global database handle and panics on error.

func (*Instrument) SetCurrencyInstrumentJsons

func (o *Instrument) SetCurrencyInstrumentJsons(exec boil.Executor, insert bool, related ...*InstrumentJSON) error

SetCurrencyInstrumentJsons removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstrumentJsons accordingly. Replaces o.R.CurrencyInstrumentJsons with related. Sets related.R.Currency's CurrencyInstrumentJsons accordingly.

func (*Instrument) SetCurrencyInstrumentJsonsG

func (o *Instrument) SetCurrencyInstrumentJsonsG(insert bool, related ...*InstrumentJSON) error

SetCurrencyInstrumentJsonsG removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstrumentJsons accordingly. Replaces o.R.CurrencyInstrumentJsons with related. Sets related.R.Currency's CurrencyInstrumentJsons accordingly. Uses the global database handle.

func (*Instrument) SetCurrencyInstrumentJsonsGP

func (o *Instrument) SetCurrencyInstrumentJsonsGP(insert bool, related ...*InstrumentJSON)

SetCurrencyInstrumentJsonsGP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstrumentJsons accordingly. Replaces o.R.CurrencyInstrumentJsons with related. Sets related.R.Currency's CurrencyInstrumentJsons accordingly. Uses the global database handle and panics on error.

func (*Instrument) SetCurrencyInstrumentJsonsP

func (o *Instrument) SetCurrencyInstrumentJsonsP(exec boil.Executor, insert bool, related ...*InstrumentJSON)

SetCurrencyInstrumentJsonsP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstrumentJsons accordingly. Replaces o.R.CurrencyInstrumentJsons with related. Sets related.R.Currency's CurrencyInstrumentJsons accordingly. Panics on error.

func (*Instrument) SetCurrencyInstruments

func (o *Instrument) SetCurrencyInstruments(exec boil.Executor, insert bool, related ...*Instrument) error

SetCurrencyInstruments removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstruments accordingly. Replaces o.R.CurrencyInstruments with related. Sets related.R.Currency's CurrencyInstruments accordingly.

func (*Instrument) SetCurrencyInstrumentsG

func (o *Instrument) SetCurrencyInstrumentsG(insert bool, related ...*Instrument) error

SetCurrencyInstrumentsG removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstruments accordingly. Replaces o.R.CurrencyInstruments with related. Sets related.R.Currency's CurrencyInstruments accordingly. Uses the global database handle.

func (*Instrument) SetCurrencyInstrumentsGP

func (o *Instrument) SetCurrencyInstrumentsGP(insert bool, related ...*Instrument)

SetCurrencyInstrumentsGP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstruments accordingly. Replaces o.R.CurrencyInstruments with related. Sets related.R.Currency's CurrencyInstruments accordingly. Uses the global database handle and panics on error.

func (*Instrument) SetCurrencyInstrumentsP

func (o *Instrument) SetCurrencyInstrumentsP(exec boil.Executor, insert bool, related ...*Instrument)

SetCurrencyInstrumentsP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Currency's CurrencyInstruments accordingly. Replaces o.R.CurrencyInstruments with related. Sets related.R.Currency's CurrencyInstruments accordingly. Panics on error.

func (*Instrument) SetCurrencyP

func (o *Instrument) SetCurrencyP(exec boil.Executor, insert bool, related *Instrument)

SetCurrencyP of the instrument to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstruments. Panics on error.

func (*Instrument) SetEquity

func (o *Instrument) SetEquity(exec boil.Executor, insert bool, related *Equity) error

SetEquity of the instrument to the related item. Sets o.R.Equity to related. Adds o to related.R.Instrument.

func (*Instrument) SetEquityG

func (o *Instrument) SetEquityG(insert bool, related *Equity) error

SetEquityG of the instrument to the related item. Sets o.R.Equity to related. Adds o to related.R.Instrument. Uses the global database handle.

func (*Instrument) SetEquityGP

func (o *Instrument) SetEquityGP(insert bool, related *Equity)

SetEquityGP of the instrument to the related item. Sets o.R.Equity to related. Adds o to related.R.Instrument. Uses the global database handle and panics on error.

func (*Instrument) SetEquityP

func (o *Instrument) SetEquityP(exec boil.Executor, insert bool, related *Equity)

SetEquityP of the instrument to the related item. Sets o.R.Equity to related. Adds o to related.R.Instrument. Panics on error.

func (*Instrument) SetExerciseCurrencyEquities

func (o *Instrument) SetExerciseCurrencyEquities(exec boil.Executor, insert bool, related ...*Equity) error

SetExerciseCurrencyEquities removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly. Replaces o.R.ExerciseCurrencyEquities with related. Sets related.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly.

func (*Instrument) SetExerciseCurrencyEquitiesG

func (o *Instrument) SetExerciseCurrencyEquitiesG(insert bool, related ...*Equity) error

SetExerciseCurrencyEquitiesG removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly. Replaces o.R.ExerciseCurrencyEquities with related. Sets related.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly. Uses the global database handle.

func (*Instrument) SetExerciseCurrencyEquitiesGP

func (o *Instrument) SetExerciseCurrencyEquitiesGP(insert bool, related ...*Equity)

SetExerciseCurrencyEquitiesGP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly. Replaces o.R.ExerciseCurrencyEquities with related. Sets related.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly. Uses the global database handle and panics on error.

func (*Instrument) SetExerciseCurrencyEquitiesP

func (o *Instrument) SetExerciseCurrencyEquitiesP(exec boil.Executor, insert bool, related ...*Equity)

SetExerciseCurrencyEquitiesP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly. Replaces o.R.ExerciseCurrencyEquities with related. Sets related.R.ExerciseCurrency's ExerciseCurrencyEquities accordingly. Panics on error.

func (*Instrument) SetInstrumentClass

func (o *Instrument) SetInstrumentClass(exec boil.Executor, insert bool, related *InstrumentClass) error

SetInstrumentClass of the instrument to the related item. Sets o.R.InstrumentClass to related. Adds o to related.R.Instruments.

func (*Instrument) SetInstrumentClassG

func (o *Instrument) SetInstrumentClassG(insert bool, related *InstrumentClass) error

SetInstrumentClassG of the instrument to the related item. Sets o.R.InstrumentClass to related. Adds o to related.R.Instruments. Uses the global database handle.

func (*Instrument) SetInstrumentClassGP

func (o *Instrument) SetInstrumentClassGP(insert bool, related *InstrumentClass)

SetInstrumentClassGP of the instrument to the related item. Sets o.R.InstrumentClass to related. Adds o to related.R.Instruments. Uses the global database handle and panics on error.

func (*Instrument) SetInstrumentClassP

func (o *Instrument) SetInstrumentClassP(exec boil.Executor, insert bool, related *InstrumentClass)

SetInstrumentClassP of the instrument to the related item. Sets o.R.InstrumentClass to related. Adds o to related.R.Instruments. Panics on error.

func (*Instrument) SetInstrumentSource

func (o *Instrument) SetInstrumentSource(exec boil.Executor, insert bool, related *InstrumentSource) error

SetInstrumentSource of the instrument to the related item. Sets o.R.InstrumentSource to related. Adds o to related.R.Instruments.

func (*Instrument) SetInstrumentSourceG

func (o *Instrument) SetInstrumentSourceG(insert bool, related *InstrumentSource) error

SetInstrumentSourceG of the instrument to the related item. Sets o.R.InstrumentSource to related. Adds o to related.R.Instruments. Uses the global database handle.

func (*Instrument) SetInstrumentSourceGP

func (o *Instrument) SetInstrumentSourceGP(insert bool, related *InstrumentSource)

SetInstrumentSourceGP of the instrument to the related item. Sets o.R.InstrumentSource to related. Adds o to related.R.Instruments. Uses the global database handle and panics on error.

func (*Instrument) SetInstrumentSourceP

func (o *Instrument) SetInstrumentSourceP(exec boil.Executor, insert bool, related *InstrumentSource)

SetInstrumentSourceP of the instrument to the related item. Sets o.R.InstrumentSource to related. Adds o to related.R.Instruments. Panics on error.

func (*Instrument) SetPayCurrencyEquities

func (o *Instrument) SetPayCurrencyEquities(exec boil.Executor, insert bool, related ...*Equity) error

SetPayCurrencyEquities removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.PayCurrency's PayCurrencyEquities accordingly. Replaces o.R.PayCurrencyEquities with related. Sets related.R.PayCurrency's PayCurrencyEquities accordingly.

func (*Instrument) SetPayCurrencyEquitiesG

func (o *Instrument) SetPayCurrencyEquitiesG(insert bool, related ...*Equity) error

SetPayCurrencyEquitiesG removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.PayCurrency's PayCurrencyEquities accordingly. Replaces o.R.PayCurrencyEquities with related. Sets related.R.PayCurrency's PayCurrencyEquities accordingly. Uses the global database handle.

func (*Instrument) SetPayCurrencyEquitiesGP

func (o *Instrument) SetPayCurrencyEquitiesGP(insert bool, related ...*Equity)

SetPayCurrencyEquitiesGP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.PayCurrency's PayCurrencyEquities accordingly. Replaces o.R.PayCurrencyEquities with related. Sets related.R.PayCurrency's PayCurrencyEquities accordingly. Uses the global database handle and panics on error.

func (*Instrument) SetPayCurrencyEquitiesP

func (o *Instrument) SetPayCurrencyEquitiesP(exec boil.Executor, insert bool, related ...*Equity)

SetPayCurrencyEquitiesP removes all previously related items of the instrument replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.PayCurrency's PayCurrencyEquities accordingly. Replaces o.R.PayCurrencyEquities with related. Sets related.R.PayCurrency's PayCurrencyEquities accordingly. Panics on error.

func (*Instrument) Update

func (o *Instrument) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Instrument. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Instrument) UpdateG

func (o *Instrument) UpdateG(whitelist ...string) error

UpdateG a single Instrument record. See Update for whitelist behavior description.

func (*Instrument) UpdateGP

func (o *Instrument) UpdateGP(whitelist ...string)

UpdateGP a single Instrument record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Instrument) UpdateP

func (o *Instrument) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Instrument, and panics on error. See Update for whitelist behavior description.

func (*Instrument) Upsert

func (o *Instrument) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Instrument) UpsertG

func (o *Instrument) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Instrument) UpsertGP

func (o *Instrument) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Instrument) UpsertP

func (o *Instrument) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type InstrumentClass

type InstrumentClass struct {
	ID   int16       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`

	R *instrumentClassR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L instrumentClassL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

InstrumentClass is an object representing the database table.

func FindInstrumentClass

func FindInstrumentClass(exec boil.Executor, id int16, selectCols ...string) (*InstrumentClass, error)

FindInstrumentClass retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindInstrumentClassG

func FindInstrumentClassG(id int16, selectCols ...string) (*InstrumentClass, error)

FindInstrumentClassG retrieves a single record by ID.

func FindInstrumentClassGP

func FindInstrumentClassGP(id int16, selectCols ...string) *InstrumentClass

FindInstrumentClassGP retrieves a single record by ID, and panics on error.

func FindInstrumentClassP

func FindInstrumentClassP(exec boil.Executor, id int16, selectCols ...string) *InstrumentClass

FindInstrumentClassP retrieves a single record by ID with an executor, and panics on error.

func (*InstrumentClass) AddInstruments

func (o *InstrumentClass) AddInstruments(exec boil.Executor, insert bool, related ...*Instrument) error

AddInstruments adds the given related objects to the existing relationships of the instrument_class, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentClass appropriately.

func (*InstrumentClass) AddInstrumentsG

func (o *InstrumentClass) AddInstrumentsG(insert bool, related ...*Instrument) error

AddInstrumentsG adds the given related objects to the existing relationships of the instrument_class, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentClass appropriately. Uses the global database handle.

func (*InstrumentClass) AddInstrumentsGP

func (o *InstrumentClass) AddInstrumentsGP(insert bool, related ...*Instrument)

AddInstrumentsGP adds the given related objects to the existing relationships of the instrument_class, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentClass appropriately. Uses the global database handle and panics on error.

func (*InstrumentClass) AddInstrumentsP

func (o *InstrumentClass) AddInstrumentsP(exec boil.Executor, insert bool, related ...*Instrument)

AddInstrumentsP adds the given related objects to the existing relationships of the instrument_class, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentClass appropriately. Panics on error.

func (*InstrumentClass) Delete

func (o *InstrumentClass) Delete(exec boil.Executor) error

Delete deletes a single InstrumentClass record with an executor. Delete will match against the primary key column to find the record to delete.

func (*InstrumentClass) DeleteG

func (o *InstrumentClass) DeleteG() error

DeleteG deletes a single InstrumentClass record. DeleteG will match against the primary key column to find the record to delete.

func (*InstrumentClass) DeleteGP

func (o *InstrumentClass) DeleteGP()

DeleteGP deletes a single InstrumentClass record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*InstrumentClass) DeleteP

func (o *InstrumentClass) DeleteP(exec boil.Executor)

DeleteP deletes a single InstrumentClass record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*InstrumentClass) Insert

func (o *InstrumentClass) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*InstrumentClass) InsertG

func (o *InstrumentClass) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*InstrumentClass) InsertGP

func (o *InstrumentClass) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*InstrumentClass) InsertP

func (o *InstrumentClass) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*InstrumentClass) Instruments

func (o *InstrumentClass) Instruments(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

Instruments retrieves all the instrument's instrument with an executor.

func (*InstrumentClass) InstrumentsG

func (o *InstrumentClass) InstrumentsG(mods ...qm.QueryMod) instrumentQuery

InstrumentsG retrieves all the instrument's instrument.

func (*InstrumentClass) Reload

func (o *InstrumentClass) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*InstrumentClass) ReloadG

func (o *InstrumentClass) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*InstrumentClass) ReloadGP

func (o *InstrumentClass) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*InstrumentClass) ReloadP

func (o *InstrumentClass) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*InstrumentClass) Update

func (o *InstrumentClass) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the InstrumentClass. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*InstrumentClass) UpdateG

func (o *InstrumentClass) UpdateG(whitelist ...string) error

UpdateG a single InstrumentClass record. See Update for whitelist behavior description.

func (*InstrumentClass) UpdateGP

func (o *InstrumentClass) UpdateGP(whitelist ...string)

UpdateGP a single InstrumentClass record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*InstrumentClass) UpdateP

func (o *InstrumentClass) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the InstrumentClass, and panics on error. See Update for whitelist behavior description.

func (*InstrumentClass) Upsert

func (o *InstrumentClass) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*InstrumentClass) UpsertG

func (o *InstrumentClass) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*InstrumentClass) UpsertGP

func (o *InstrumentClass) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*InstrumentClass) UpsertP

func (o *InstrumentClass) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type InstrumentClassHook

type InstrumentClassHook func(boil.Executor, *InstrumentClass) error

InstrumentClassHook is the signature for custom InstrumentClass hook methods

type InstrumentClassSlice

type InstrumentClassSlice []*InstrumentClass

InstrumentClassSlice is an alias for a slice of pointers to InstrumentClass. This should generally be used opposed to []InstrumentClass.

func (InstrumentClassSlice) DeleteAll

func (o InstrumentClassSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (InstrumentClassSlice) DeleteAllG

func (o InstrumentClassSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (InstrumentClassSlice) DeleteAllGP

func (o InstrumentClassSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (InstrumentClassSlice) DeleteAllP

func (o InstrumentClassSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*InstrumentClassSlice) ReloadAll

func (o *InstrumentClassSlice) 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 (*InstrumentClassSlice) ReloadAllG

func (o *InstrumentClassSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*InstrumentClassSlice) ReloadAllGP

func (o *InstrumentClassSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*InstrumentClassSlice) ReloadAllP

func (o *InstrumentClassSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (InstrumentClassSlice) UpdateAll

func (o InstrumentClassSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (InstrumentClassSlice) UpdateAllG

func (o InstrumentClassSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (InstrumentClassSlice) UpdateAllGP

func (o InstrumentClassSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (InstrumentClassSlice) UpdateAllP

func (o InstrumentClassSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type InstrumentHook

type InstrumentHook func(boil.Executor, *Instrument) error

InstrumentHook is the signature for custom Instrument hook methods

type InstrumentJSON

type InstrumentJSON struct {
	ID          int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	Datum       null.JSON   `boil:"datum" json:"datum,omitempty" toml:"datum" yaml:"datum,omitempty"`
	Audit       null.JSON   `boil:"audit" json:"audit,omitempty" toml:"audit" yaml:"audit,omitempty"`
	CurrencyID  null.Int    `boil:"currency_id" json:"currency_id,omitempty" toml:"currency_id" yaml:"currency_id,omitempty"`
	FromDate    time.Time   `boil:"from_date" json:"from_date" toml:"from_date" yaml:"from_date"`
	ThruDate    null.Time   `boil:"thru_date" json:"thru_date,omitempty" toml:"thru_date" yaml:"thru_date,omitempty"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt   time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	CreatedBy   string      `boil:"created_by" json:"created_by" toml:"created_by" yaml:"created_by"`
	UpdatedBy   string      `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *instrumentJSONR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L instrumentJSONL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

InstrumentJSON is an object representing the database table.

func FindInstrumentJSON

func FindInstrumentJSON(exec boil.Executor, id int, selectCols ...string) (*InstrumentJSON, error)

FindInstrumentJSON retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindInstrumentJSONG

func FindInstrumentJSONG(id int, selectCols ...string) (*InstrumentJSON, error)

FindInstrumentJSONG retrieves a single record by ID.

func FindInstrumentJSONGP

func FindInstrumentJSONGP(id int, selectCols ...string) *InstrumentJSON

FindInstrumentJSONGP retrieves a single record by ID, and panics on error.

func FindInstrumentJSONP

func FindInstrumentJSONP(exec boil.Executor, id int, selectCols ...string) *InstrumentJSON

FindInstrumentJSONP retrieves a single record by ID with an executor, and panics on error.

func (*InstrumentJSON) Currency

func (o *InstrumentJSON) Currency(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

Currency pointed to by the foreign key.

func (*InstrumentJSON) CurrencyG

func (o *InstrumentJSON) CurrencyG(mods ...qm.QueryMod) instrumentQuery

CurrencyG pointed to by the foreign key.

func (*InstrumentJSON) Delete

func (o *InstrumentJSON) Delete(exec boil.Executor) error

Delete deletes a single InstrumentJSON record with an executor. Delete will match against the primary key column to find the record to delete.

func (*InstrumentJSON) DeleteG

func (o *InstrumentJSON) DeleteG() error

DeleteG deletes a single InstrumentJSON record. DeleteG will match against the primary key column to find the record to delete.

func (*InstrumentJSON) DeleteGP

func (o *InstrumentJSON) DeleteGP()

DeleteGP deletes a single InstrumentJSON record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*InstrumentJSON) DeleteP

func (o *InstrumentJSON) DeleteP(exec boil.Executor)

DeleteP deletes a single InstrumentJSON record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*InstrumentJSON) Insert

func (o *InstrumentJSON) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*InstrumentJSON) InsertG

func (o *InstrumentJSON) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*InstrumentJSON) InsertGP

func (o *InstrumentJSON) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*InstrumentJSON) InsertP

func (o *InstrumentJSON) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*InstrumentJSON) Reload

func (o *InstrumentJSON) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*InstrumentJSON) ReloadG

func (o *InstrumentJSON) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*InstrumentJSON) ReloadGP

func (o *InstrumentJSON) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*InstrumentJSON) ReloadP

func (o *InstrumentJSON) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*InstrumentJSON) RemoveCurrency

func (o *InstrumentJSON) RemoveCurrency(exec boil.Executor, related *Instrument) error

RemoveCurrency relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*InstrumentJSON) RemoveCurrencyG

func (o *InstrumentJSON) RemoveCurrencyG(related *Instrument) error

RemoveCurrencyG relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*InstrumentJSON) RemoveCurrencyGP

func (o *InstrumentJSON) RemoveCurrencyGP(related *Instrument)

RemoveCurrencyGP relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*InstrumentJSON) RemoveCurrencyP

func (o *InstrumentJSON) RemoveCurrencyP(exec boil.Executor, related *Instrument)

RemoveCurrencyP relationship. Sets o.R.Currency to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*InstrumentJSON) SetCurrency

func (o *InstrumentJSON) SetCurrency(exec boil.Executor, insert bool, related *Instrument) error

SetCurrency of the instrument_json to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstrumentJsons.

func (*InstrumentJSON) SetCurrencyG

func (o *InstrumentJSON) SetCurrencyG(insert bool, related *Instrument) error

SetCurrencyG of the instrument_json to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstrumentJsons. Uses the global database handle.

func (*InstrumentJSON) SetCurrencyGP

func (o *InstrumentJSON) SetCurrencyGP(insert bool, related *Instrument)

SetCurrencyGP of the instrument_json to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstrumentJsons. Uses the global database handle and panics on error.

func (*InstrumentJSON) SetCurrencyP

func (o *InstrumentJSON) SetCurrencyP(exec boil.Executor, insert bool, related *Instrument)

SetCurrencyP of the instrument_json to the related item. Sets o.R.Currency to related. Adds o to related.R.CurrencyInstrumentJsons. Panics on error.

func (*InstrumentJSON) Update

func (o *InstrumentJSON) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the InstrumentJSON. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*InstrumentJSON) UpdateG

func (o *InstrumentJSON) UpdateG(whitelist ...string) error

UpdateG a single InstrumentJSON record. See Update for whitelist behavior description.

func (*InstrumentJSON) UpdateGP

func (o *InstrumentJSON) UpdateGP(whitelist ...string)

UpdateGP a single InstrumentJSON record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*InstrumentJSON) UpdateP

func (o *InstrumentJSON) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the InstrumentJSON, and panics on error. See Update for whitelist behavior description.

func (*InstrumentJSON) Upsert

func (o *InstrumentJSON) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*InstrumentJSON) UpsertG

func (o *InstrumentJSON) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*InstrumentJSON) UpsertGP

func (o *InstrumentJSON) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*InstrumentJSON) UpsertP

func (o *InstrumentJSON) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type InstrumentJSONHook

type InstrumentJSONHook func(boil.Executor, *InstrumentJSON) error

InstrumentJSONHook is the signature for custom InstrumentJSON hook methods

type InstrumentJSONSlice

type InstrumentJSONSlice []*InstrumentJSON

InstrumentJSONSlice is an alias for a slice of pointers to InstrumentJSON. This should generally be used opposed to []InstrumentJSON.

func (InstrumentJSONSlice) DeleteAll

func (o InstrumentJSONSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (InstrumentJSONSlice) DeleteAllG

func (o InstrumentJSONSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (InstrumentJSONSlice) DeleteAllGP

func (o InstrumentJSONSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (InstrumentJSONSlice) DeleteAllP

func (o InstrumentJSONSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*InstrumentJSONSlice) ReloadAll

func (o *InstrumentJSONSlice) 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 (*InstrumentJSONSlice) ReloadAllG

func (o *InstrumentJSONSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*InstrumentJSONSlice) ReloadAllGP

func (o *InstrumentJSONSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*InstrumentJSONSlice) ReloadAllP

func (o *InstrumentJSONSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (InstrumentJSONSlice) UpdateAll

func (o InstrumentJSONSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (InstrumentJSONSlice) UpdateAllG

func (o InstrumentJSONSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (InstrumentJSONSlice) UpdateAllGP

func (o InstrumentJSONSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (InstrumentJSONSlice) UpdateAllP

func (o InstrumentJSONSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type InstrumentSlice

type InstrumentSlice []*Instrument

InstrumentSlice is an alias for a slice of pointers to Instrument. This should generally be used opposed to []Instrument.

func (InstrumentSlice) DeleteAll

func (o InstrumentSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (InstrumentSlice) DeleteAllG

func (o InstrumentSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (InstrumentSlice) DeleteAllGP

func (o InstrumentSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (InstrumentSlice) DeleteAllP

func (o InstrumentSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*InstrumentSlice) ReloadAll

func (o *InstrumentSlice) 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 (*InstrumentSlice) ReloadAllG

func (o *InstrumentSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*InstrumentSlice) ReloadAllGP

func (o *InstrumentSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*InstrumentSlice) ReloadAllP

func (o *InstrumentSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (InstrumentSlice) UpdateAll

func (o InstrumentSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (InstrumentSlice) UpdateAllG

func (o InstrumentSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (InstrumentSlice) UpdateAllGP

func (o InstrumentSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (InstrumentSlice) UpdateAllP

func (o InstrumentSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type InstrumentSource

type InstrumentSource struct {
	ID   int16       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`

	R *instrumentSourceR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L instrumentSourceL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

InstrumentSource is an object representing the database table.

func FindInstrumentSource

func FindInstrumentSource(exec boil.Executor, id int16, selectCols ...string) (*InstrumentSource, error)

FindInstrumentSource retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindInstrumentSourceG

func FindInstrumentSourceG(id int16, selectCols ...string) (*InstrumentSource, error)

FindInstrumentSourceG retrieves a single record by ID.

func FindInstrumentSourceGP

func FindInstrumentSourceGP(id int16, selectCols ...string) *InstrumentSource

FindInstrumentSourceGP retrieves a single record by ID, and panics on error.

func FindInstrumentSourceP

func FindInstrumentSourceP(exec boil.Executor, id int16, selectCols ...string) *InstrumentSource

FindInstrumentSourceP retrieves a single record by ID with an executor, and panics on error.

func (*InstrumentSource) AddInstruments

func (o *InstrumentSource) AddInstruments(exec boil.Executor, insert bool, related ...*Instrument) error

AddInstruments adds the given related objects to the existing relationships of the instrument_source, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentSource appropriately.

func (*InstrumentSource) AddInstrumentsG

func (o *InstrumentSource) AddInstrumentsG(insert bool, related ...*Instrument) error

AddInstrumentsG adds the given related objects to the existing relationships of the instrument_source, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentSource appropriately. Uses the global database handle.

func (*InstrumentSource) AddInstrumentsGP

func (o *InstrumentSource) AddInstrumentsGP(insert bool, related ...*Instrument)

AddInstrumentsGP adds the given related objects to the existing relationships of the instrument_source, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentSource appropriately. Uses the global database handle and panics on error.

func (*InstrumentSource) AddInstrumentsP

func (o *InstrumentSource) AddInstrumentsP(exec boil.Executor, insert bool, related ...*Instrument)

AddInstrumentsP adds the given related objects to the existing relationships of the instrument_source, optionally inserting them as new records. Appends related to o.R.Instruments. Sets related.R.InstrumentSource appropriately. Panics on error.

func (*InstrumentSource) Delete

func (o *InstrumentSource) Delete(exec boil.Executor) error

Delete deletes a single InstrumentSource record with an executor. Delete will match against the primary key column to find the record to delete.

func (*InstrumentSource) DeleteG

func (o *InstrumentSource) DeleteG() error

DeleteG deletes a single InstrumentSource record. DeleteG will match against the primary key column to find the record to delete.

func (*InstrumentSource) DeleteGP

func (o *InstrumentSource) DeleteGP()

DeleteGP deletes a single InstrumentSource record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*InstrumentSource) DeleteP

func (o *InstrumentSource) DeleteP(exec boil.Executor)

DeleteP deletes a single InstrumentSource record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*InstrumentSource) Insert

func (o *InstrumentSource) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*InstrumentSource) InsertG

func (o *InstrumentSource) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*InstrumentSource) InsertGP

func (o *InstrumentSource) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*InstrumentSource) InsertP

func (o *InstrumentSource) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*InstrumentSource) Instruments

func (o *InstrumentSource) Instruments(exec boil.Executor, mods ...qm.QueryMod) instrumentQuery

Instruments retrieves all the instrument's instrument with an executor.

func (*InstrumentSource) InstrumentsG

func (o *InstrumentSource) InstrumentsG(mods ...qm.QueryMod) instrumentQuery

InstrumentsG retrieves all the instrument's instrument.

func (*InstrumentSource) Reload

func (o *InstrumentSource) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*InstrumentSource) ReloadG

func (o *InstrumentSource) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*InstrumentSource) ReloadGP

func (o *InstrumentSource) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*InstrumentSource) ReloadP

func (o *InstrumentSource) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*InstrumentSource) Update

func (o *InstrumentSource) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the InstrumentSource. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*InstrumentSource) UpdateG

func (o *InstrumentSource) UpdateG(whitelist ...string) error

UpdateG a single InstrumentSource record. See Update for whitelist behavior description.

func (*InstrumentSource) UpdateGP

func (o *InstrumentSource) UpdateGP(whitelist ...string)

UpdateGP a single InstrumentSource record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*InstrumentSource) UpdateP

func (o *InstrumentSource) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the InstrumentSource, and panics on error. See Update for whitelist behavior description.

func (*InstrumentSource) Upsert

func (o *InstrumentSource) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*InstrumentSource) UpsertG

func (o *InstrumentSource) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*InstrumentSource) UpsertGP

func (o *InstrumentSource) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*InstrumentSource) UpsertP

func (o *InstrumentSource) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type InstrumentSourceHook

type InstrumentSourceHook func(boil.Executor, *InstrumentSource) error

InstrumentSourceHook is the signature for custom InstrumentSource hook methods

type InstrumentSourceSlice

type InstrumentSourceSlice []*InstrumentSource

InstrumentSourceSlice is an alias for a slice of pointers to InstrumentSource. This should generally be used opposed to []InstrumentSource.

func (InstrumentSourceSlice) DeleteAll

func (o InstrumentSourceSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (InstrumentSourceSlice) DeleteAllG

func (o InstrumentSourceSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (InstrumentSourceSlice) DeleteAllGP

func (o InstrumentSourceSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (InstrumentSourceSlice) DeleteAllP

func (o InstrumentSourceSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*InstrumentSourceSlice) ReloadAll

func (o *InstrumentSourceSlice) 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 (*InstrumentSourceSlice) ReloadAllG

func (o *InstrumentSourceSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*InstrumentSourceSlice) ReloadAllGP

func (o *InstrumentSourceSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*InstrumentSourceSlice) ReloadAllP

func (o *InstrumentSourceSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (InstrumentSourceSlice) UpdateAll

func (o InstrumentSourceSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (InstrumentSourceSlice) UpdateAllG

func (o InstrumentSourceSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (InstrumentSourceSlice) UpdateAllGP

func (o InstrumentSourceSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (InstrumentSourceSlice) UpdateAllP

func (o InstrumentSourceSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

Jump to

Keyboard shortcuts

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