models

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrencyColumns = struct {
	ID             string
	CurrencyCode   string
	CurrencyName   string
	CurrencyIssuer string
	CreatedAt      string
	UpdatedAt      string
	UpdatedBy      string
}{
	ID:             "id",
	CurrencyCode:   "currency_code",
	CurrencyName:   "currency_name",
	CurrencyIssuer: "currency_issuer",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	UpdatedBy:      "updated_by",
}
View Source
var CurrencyRels = struct {
	SourceCurrencyCurrentChartDataHourlies        string
	DestinationCurrencyCurrentChartDataHourlies   string
	SourceCurrencyCurrentChartDataMinutelies      string
	DestinationCurrencyCurrentChartDataMinutelies string
	SourceCurrencyHistoryChartData                string
	DestinationCurrencyHistoryChartData           string
}{
	SourceCurrencyCurrentChartDataHourlies:        "SourceCurrencyCurrentChartDataHourlies",
	DestinationCurrencyCurrentChartDataHourlies:   "DestinationCurrencyCurrentChartDataHourlies",
	SourceCurrencyCurrentChartDataMinutelies:      "SourceCurrencyCurrentChartDataMinutelies",
	DestinationCurrencyCurrentChartDataMinutelies: "DestinationCurrencyCurrentChartDataMinutelies",
	SourceCurrencyHistoryChartData:                "SourceCurrencyHistoryChartData",
	DestinationCurrencyHistoryChartData:           "DestinationCurrencyHistoryChartData",
}

CurrencyRels is where relationship names are stored.

View Source
var CurrentChartDataHourlyColumns = struct {
	ID                    string
	ExchangeRateTime      string
	SourceCurrencyID      string
	DestinationCurrencyID string
	ExchangeRate          string
	CreatedAt             string
	UpdatedAt             string
	UpdatedBy             string
}{
	ID:                    "id",
	ExchangeRateTime:      "exchange_rate_time",
	SourceCurrencyID:      "source_currency_id",
	DestinationCurrencyID: "destination_currency_id",
	ExchangeRate:          "exchange_rate",
	CreatedAt:             "created_at",
	UpdatedAt:             "updated_at",
	UpdatedBy:             "updated_by",
}
View Source
var CurrentChartDataHourlyRels = struct {
	SourceCurrency      string
	DestinationCurrency string
}{
	SourceCurrency:      "SourceCurrency",
	DestinationCurrency: "DestinationCurrency",
}

CurrentChartDataHourlyRels is where relationship names are stored.

View Source
var CurrentChartDataMinutelyColumns = struct {
	ID                    string
	ExchangeRateTime      string
	SourceCurrencyID      string
	DestinationCurrencyID string
	ExchangeRate          string
	CreatedAt             string
	UpdatedAt             string
	UpdatedBy             string
}{
	ID:                    "id",
	ExchangeRateTime:      "exchange_rate_time",
	SourceCurrencyID:      "source_currency_id",
	DestinationCurrencyID: "destination_currency_id",
	ExchangeRate:          "exchange_rate",
	CreatedAt:             "created_at",
	UpdatedAt:             "updated_at",
	UpdatedBy:             "updated_by",
}
View Source
var CurrentChartDataMinutelyRels = struct {
	SourceCurrency      string
	DestinationCurrency string
}{
	SourceCurrency:      "SourceCurrency",
	DestinationCurrency: "DestinationCurrency",
}

CurrentChartDataMinutelyRels is where relationship names are stored.

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 HistoryChartDatumColumns = struct {
	ID                    string
	ExchangeRateDate      string
	SourceCurrencyID      string
	DestinationCurrencyID string
	ExchangeRate          string
	CreatedAt             string
	UpdatedAt             string
	UpdatedBy             string
}{
	ID:                    "id",
	ExchangeRateDate:      "exchange_rate_date",
	SourceCurrencyID:      "source_currency_id",
	DestinationCurrencyID: "destination_currency_id",
	ExchangeRate:          "exchange_rate",
	CreatedAt:             "created_at",
	UpdatedAt:             "updated_at",
	UpdatedBy:             "updated_by",
}
View Source
var HistoryChartDatumRels = struct {
	SourceCurrency      string
	DestinationCurrency string
}{
	SourceCurrency:      "SourceCurrency",
	DestinationCurrency: "DestinationCurrency",
}

HistoryChartDatumRels is where relationship names are stored.

View Source
var TableNames = struct {
	Currency                 string
	CurrentChartDataHourly   string
	CurrentChartDataMinutely string
	HistoryChartData         string
}{
	Currency:                 "currency",
	CurrentChartDataHourly:   "current_chart_data_hourly",
	CurrentChartDataMinutely: "current_chart_data_minutely",
	HistoryChartData:         "history_chart_data",
}

Functions

func AddCurrencyHook

func AddCurrencyHook(hookPoint boil.HookPoint, currencyHook CurrencyHook)

AddCurrencyHook registers your hook function for all future operations.

func AddCurrentChartDataHourlyHook

func AddCurrentChartDataHourlyHook(hookPoint boil.HookPoint, currentChartDataHourlyHook CurrentChartDataHourlyHook)

AddCurrentChartDataHourlyHook registers your hook function for all future operations.

func AddCurrentChartDataMinutelyHook

func AddCurrentChartDataMinutelyHook(hookPoint boil.HookPoint, currentChartDataMinutelyHook CurrentChartDataMinutelyHook)

AddCurrentChartDataMinutelyHook registers your hook function for all future operations.

func AddHistoryChartDatumHook

func AddHistoryChartDatumHook(hookPoint boil.HookPoint, historyChartDatumHook HistoryChartDatumHook)

AddHistoryChartDatumHook registers your hook function for all future operations.

func Currencies

func Currencies(mods ...qm.QueryMod) currencyQuery

Currencies retrieves all the records using an executor.

func CurrencyExists

func CurrencyExists(exec boil.Executor, iD int) (bool, error)

CurrencyExists checks if the Currency row exists.

func CurrentChartDataHourlies

func CurrentChartDataHourlies(mods ...qm.QueryMod) currentChartDataHourlyQuery

CurrentChartDataHourlies retrieves all the records using an executor.

func CurrentChartDataHourlyExists

func CurrentChartDataHourlyExists(exec boil.Executor, iD int) (bool, error)

CurrentChartDataHourlyExists checks if the CurrentChartDataHourly row exists.

func CurrentChartDataMinutelies

func CurrentChartDataMinutelies(mods ...qm.QueryMod) currentChartDataMinutelyQuery

CurrentChartDataMinutelies retrieves all the records using an executor.

func CurrentChartDataMinutelyExists

func CurrentChartDataMinutelyExists(exec boil.Executor, iD int) (bool, error)

CurrentChartDataMinutelyExists checks if the CurrentChartDataMinutely row exists.

func HistoryChartData

func HistoryChartData(mods ...qm.QueryMod) historyChartDatumQuery

HistoryChartData retrieves all the records using an executor.

func HistoryChartDatumExists

func HistoryChartDatumExists(exec boil.Executor, iD int) (bool, error)

HistoryChartDatumExists checks if the HistoryChartDatum row exists.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

Types

type Currency

type Currency struct {
	ID             int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	CurrencyCode   string    `boil:"currency_code" json:"currency_code" toml:"currency_code" yaml:"currency_code"`
	CurrencyName   string    `boil:"currency_name" json:"currency_name" toml:"currency_name" yaml:"currency_name"`
	CurrencyIssuer string    `boil:"currency_issuer" json:"currency_issuer" toml:"currency_issuer" yaml:"currency_issuer"`
	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"`
	UpdatedBy      string    `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *currencyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L currencyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Currency is an object representing the database table.

func FindCurrency

func FindCurrency(exec boil.Executor, iD int, selectCols ...string) (*Currency, error)

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

func (*Currency) AddDestinationCurrencyCurrentChartDataHourlies

func (o *Currency) AddDestinationCurrencyCurrentChartDataHourlies(exec boil.Executor, insert bool, related ...*CurrentChartDataHourly) error

AddDestinationCurrencyCurrentChartDataHourlies adds the given related objects to the existing relationships of the currency, optionally inserting them as new records. Appends related to o.R.DestinationCurrencyCurrentChartDataHourlies. Sets related.R.DestinationCurrency appropriately.

func (*Currency) AddDestinationCurrencyCurrentChartDataMinutelies

func (o *Currency) AddDestinationCurrencyCurrentChartDataMinutelies(exec boil.Executor, insert bool, related ...*CurrentChartDataMinutely) error

AddDestinationCurrencyCurrentChartDataMinutelies adds the given related objects to the existing relationships of the currency, optionally inserting them as new records. Appends related to o.R.DestinationCurrencyCurrentChartDataMinutelies. Sets related.R.DestinationCurrency appropriately.

func (*Currency) AddDestinationCurrencyHistoryChartData

func (o *Currency) AddDestinationCurrencyHistoryChartData(exec boil.Executor, insert bool, related ...*HistoryChartDatum) error

AddDestinationCurrencyHistoryChartData adds the given related objects to the existing relationships of the currency, optionally inserting them as new records. Appends related to o.R.DestinationCurrencyHistoryChartData. Sets related.R.DestinationCurrency appropriately.

func (*Currency) AddSourceCurrencyCurrentChartDataHourlies

func (o *Currency) AddSourceCurrencyCurrentChartDataHourlies(exec boil.Executor, insert bool, related ...*CurrentChartDataHourly) error

AddSourceCurrencyCurrentChartDataHourlies adds the given related objects to the existing relationships of the currency, optionally inserting them as new records. Appends related to o.R.SourceCurrencyCurrentChartDataHourlies. Sets related.R.SourceCurrency appropriately.

func (*Currency) AddSourceCurrencyCurrentChartDataMinutelies

func (o *Currency) AddSourceCurrencyCurrentChartDataMinutelies(exec boil.Executor, insert bool, related ...*CurrentChartDataMinutely) error

AddSourceCurrencyCurrentChartDataMinutelies adds the given related objects to the existing relationships of the currency, optionally inserting them as new records. Appends related to o.R.SourceCurrencyCurrentChartDataMinutelies. Sets related.R.SourceCurrency appropriately.

func (*Currency) AddSourceCurrencyHistoryChartData

func (o *Currency) AddSourceCurrencyHistoryChartData(exec boil.Executor, insert bool, related ...*HistoryChartDatum) error

AddSourceCurrencyHistoryChartData adds the given related objects to the existing relationships of the currency, optionally inserting them as new records. Appends related to o.R.SourceCurrencyHistoryChartData. Sets related.R.SourceCurrency appropriately.

func (*Currency) Delete

func (o *Currency) Delete(exec boil.Executor) (int64, error)

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

func (*Currency) DestinationCurrencyCurrentChartDataHourlies

func (o *Currency) DestinationCurrencyCurrentChartDataHourlies(mods ...qm.QueryMod) currentChartDataHourlyQuery

DestinationCurrencyCurrentChartDataHourlies retrieves all the current_chart_data_hourly's CurrentChartDataHourlies with an executor via destination_currency_id column.

func (*Currency) DestinationCurrencyCurrentChartDataMinutelies

func (o *Currency) DestinationCurrencyCurrentChartDataMinutelies(mods ...qm.QueryMod) currentChartDataMinutelyQuery

DestinationCurrencyCurrentChartDataMinutelies retrieves all the current_chart_data_minutely's CurrentChartDataMinutelies with an executor via destination_currency_id column.

func (*Currency) DestinationCurrencyHistoryChartData

func (o *Currency) DestinationCurrencyHistoryChartData(mods ...qm.QueryMod) historyChartDatumQuery

DestinationCurrencyHistoryChartData retrieves all the history_chart_datum's HistoryChartData with an executor via destination_currency_id column.

func (*Currency) Insert

func (o *Currency) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Currency) Reload

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

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

func (*Currency) SourceCurrencyCurrentChartDataHourlies

func (o *Currency) SourceCurrencyCurrentChartDataHourlies(mods ...qm.QueryMod) currentChartDataHourlyQuery

SourceCurrencyCurrentChartDataHourlies retrieves all the current_chart_data_hourly's CurrentChartDataHourlies with an executor via source_currency_id column.

func (*Currency) SourceCurrencyCurrentChartDataMinutelies

func (o *Currency) SourceCurrencyCurrentChartDataMinutelies(mods ...qm.QueryMod) currentChartDataMinutelyQuery

SourceCurrencyCurrentChartDataMinutelies retrieves all the current_chart_data_minutely's CurrentChartDataMinutelies with an executor via source_currency_id column.

func (*Currency) SourceCurrencyHistoryChartData

func (o *Currency) SourceCurrencyHistoryChartData(mods ...qm.QueryMod) historyChartDatumQuery

SourceCurrencyHistoryChartData retrieves all the history_chart_datum's HistoryChartData with an executor via source_currency_id column.

func (*Currency) Update

func (o *Currency) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the Currency. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Currency) Upsert

func (o *Currency) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type CurrencyHook

type CurrencyHook func(boil.Executor, *Currency) error

CurrencyHook is the signature for custom Currency hook methods

type CurrencySlice

type CurrencySlice []*Currency

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

func (CurrencySlice) DeleteAll

func (o CurrencySlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*CurrencySlice) ReloadAll

func (o *CurrencySlice) 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 (CurrencySlice) UpdateAll

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

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

type CurrentChartDataHourly

type CurrentChartDataHourly struct {
	ID                    int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeRateTime      time.Time `boil:"exchange_rate_time" json:"exchange_rate_time" toml:"exchange_rate_time" yaml:"exchange_rate_time"`
	SourceCurrencyID      int       `boil:"source_currency_id" json:"source_currency_id" toml:"source_currency_id" yaml:"source_currency_id"`
	DestinationCurrencyID int       `boil:"destination_currency_id" json:"destination_currency_id" toml:"destination_currency_id" yaml:"destination_currency_id"`
	ExchangeRate          float64   `boil:"exchange_rate" json:"exchange_rate" toml:"exchange_rate" yaml:"exchange_rate"`
	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"`
	UpdatedBy             string    `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *currentChartDataHourlyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L currentChartDataHourlyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CurrentChartDataHourly is an object representing the database table.

func FindCurrentChartDataHourly

func FindCurrentChartDataHourly(exec boil.Executor, iD int, selectCols ...string) (*CurrentChartDataHourly, error)

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

func (*CurrentChartDataHourly) Delete

func (o *CurrentChartDataHourly) Delete(exec boil.Executor) (int64, error)

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

func (*CurrentChartDataHourly) DestinationCurrency

func (o *CurrentChartDataHourly) DestinationCurrency(mods ...qm.QueryMod) currencyQuery

DestinationCurrency pointed to by the foreign key.

func (*CurrentChartDataHourly) Insert

func (o *CurrentChartDataHourly) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*CurrentChartDataHourly) Reload

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

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

func (*CurrentChartDataHourly) SetDestinationCurrency

func (o *CurrentChartDataHourly) SetDestinationCurrency(exec boil.Executor, insert bool, related *Currency) error

SetDestinationCurrency of the currentChartDataHourly to the related item. Sets o.R.DestinationCurrency to related. Adds o to related.R.DestinationCurrencyCurrentChartDataHourlies.

func (*CurrentChartDataHourly) SetSourceCurrency

func (o *CurrentChartDataHourly) SetSourceCurrency(exec boil.Executor, insert bool, related *Currency) error

SetSourceCurrency of the currentChartDataHourly to the related item. Sets o.R.SourceCurrency to related. Adds o to related.R.SourceCurrencyCurrentChartDataHourlies.

func (*CurrentChartDataHourly) SourceCurrency

func (o *CurrentChartDataHourly) SourceCurrency(mods ...qm.QueryMod) currencyQuery

SourceCurrency pointed to by the foreign key.

func (*CurrentChartDataHourly) Update

func (o *CurrentChartDataHourly) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the CurrentChartDataHourly. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*CurrentChartDataHourly) Upsert

func (o *CurrentChartDataHourly) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type CurrentChartDataHourlyHook

type CurrentChartDataHourlyHook func(boil.Executor, *CurrentChartDataHourly) error

CurrentChartDataHourlyHook is the signature for custom CurrentChartDataHourly hook methods

type CurrentChartDataHourlySlice

type CurrentChartDataHourlySlice []*CurrentChartDataHourly

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

func (CurrentChartDataHourlySlice) DeleteAll

func (o CurrentChartDataHourlySlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*CurrentChartDataHourlySlice) ReloadAll

func (o *CurrentChartDataHourlySlice) 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 (CurrentChartDataHourlySlice) UpdateAll

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

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

type CurrentChartDataMinutely

type CurrentChartDataMinutely struct {
	ID                    int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeRateTime      time.Time `boil:"exchange_rate_time" json:"exchange_rate_time" toml:"exchange_rate_time" yaml:"exchange_rate_time"`
	SourceCurrencyID      int       `boil:"source_currency_id" json:"source_currency_id" toml:"source_currency_id" yaml:"source_currency_id"`
	DestinationCurrencyID int       `boil:"destination_currency_id" json:"destination_currency_id" toml:"destination_currency_id" yaml:"destination_currency_id"`
	ExchangeRate          float64   `boil:"exchange_rate" json:"exchange_rate" toml:"exchange_rate" yaml:"exchange_rate"`
	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"`
	UpdatedBy             string    `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *currentChartDataMinutelyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L currentChartDataMinutelyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CurrentChartDataMinutely is an object representing the database table.

func FindCurrentChartDataMinutely

func FindCurrentChartDataMinutely(exec boil.Executor, iD int, selectCols ...string) (*CurrentChartDataMinutely, error)

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

func (*CurrentChartDataMinutely) Delete

func (o *CurrentChartDataMinutely) Delete(exec boil.Executor) (int64, error)

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

func (*CurrentChartDataMinutely) DestinationCurrency

func (o *CurrentChartDataMinutely) DestinationCurrency(mods ...qm.QueryMod) currencyQuery

DestinationCurrency pointed to by the foreign key.

func (*CurrentChartDataMinutely) Insert

func (o *CurrentChartDataMinutely) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*CurrentChartDataMinutely) Reload

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

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

func (*CurrentChartDataMinutely) SetDestinationCurrency

func (o *CurrentChartDataMinutely) SetDestinationCurrency(exec boil.Executor, insert bool, related *Currency) error

SetDestinationCurrency of the currentChartDataMinutely to the related item. Sets o.R.DestinationCurrency to related. Adds o to related.R.DestinationCurrencyCurrentChartDataMinutelies.

func (*CurrentChartDataMinutely) SetSourceCurrency

func (o *CurrentChartDataMinutely) SetSourceCurrency(exec boil.Executor, insert bool, related *Currency) error

SetSourceCurrency of the currentChartDataMinutely to the related item. Sets o.R.SourceCurrency to related. Adds o to related.R.SourceCurrencyCurrentChartDataMinutelies.

func (*CurrentChartDataMinutely) SourceCurrency

func (o *CurrentChartDataMinutely) SourceCurrency(mods ...qm.QueryMod) currencyQuery

SourceCurrency pointed to by the foreign key.

func (*CurrentChartDataMinutely) Update

func (o *CurrentChartDataMinutely) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the CurrentChartDataMinutely. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*CurrentChartDataMinutely) Upsert

func (o *CurrentChartDataMinutely) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type CurrentChartDataMinutelyHook

type CurrentChartDataMinutelyHook func(boil.Executor, *CurrentChartDataMinutely) error

CurrentChartDataMinutelyHook is the signature for custom CurrentChartDataMinutely hook methods

type CurrentChartDataMinutelySlice

type CurrentChartDataMinutelySlice []*CurrentChartDataMinutely

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

func (CurrentChartDataMinutelySlice) DeleteAll

func (o CurrentChartDataMinutelySlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*CurrentChartDataMinutelySlice) ReloadAll

func (o *CurrentChartDataMinutelySlice) 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 (CurrentChartDataMinutelySlice) UpdateAll

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

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

type HistoryChartDatum

type HistoryChartDatum struct {
	ID                    int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeRateDate      time.Time `boil:"exchange_rate_date" json:"exchange_rate_date" toml:"exchange_rate_date" yaml:"exchange_rate_date"`
	SourceCurrencyID      int       `boil:"source_currency_id" json:"source_currency_id" toml:"source_currency_id" yaml:"source_currency_id"`
	DestinationCurrencyID int       `boil:"destination_currency_id" json:"destination_currency_id" toml:"destination_currency_id" yaml:"destination_currency_id"`
	ExchangeRate          float64   `boil:"exchange_rate" json:"exchange_rate" toml:"exchange_rate" yaml:"exchange_rate"`
	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"`
	UpdatedBy             string    `boil:"updated_by" json:"updated_by" toml:"updated_by" yaml:"updated_by"`

	R *historyChartDatumR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L historyChartDatumL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

HistoryChartDatum is an object representing the database table.

func FindHistoryChartDatum

func FindHistoryChartDatum(exec boil.Executor, iD int, selectCols ...string) (*HistoryChartDatum, error)

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

func (*HistoryChartDatum) Delete

func (o *HistoryChartDatum) Delete(exec boil.Executor) (int64, error)

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

func (*HistoryChartDatum) DestinationCurrency

func (o *HistoryChartDatum) DestinationCurrency(mods ...qm.QueryMod) currencyQuery

DestinationCurrency pointed to by the foreign key.

func (*HistoryChartDatum) Insert

func (o *HistoryChartDatum) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*HistoryChartDatum) Reload

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

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

func (*HistoryChartDatum) SetDestinationCurrency

func (o *HistoryChartDatum) SetDestinationCurrency(exec boil.Executor, insert bool, related *Currency) error

SetDestinationCurrency of the historyChartDatum to the related item. Sets o.R.DestinationCurrency to related. Adds o to related.R.DestinationCurrencyHistoryChartData.

func (*HistoryChartDatum) SetSourceCurrency

func (o *HistoryChartDatum) SetSourceCurrency(exec boil.Executor, insert bool, related *Currency) error

SetSourceCurrency of the historyChartDatum to the related item. Sets o.R.SourceCurrency to related. Adds o to related.R.SourceCurrencyHistoryChartData.

func (*HistoryChartDatum) SourceCurrency

func (o *HistoryChartDatum) SourceCurrency(mods ...qm.QueryMod) currencyQuery

SourceCurrency pointed to by the foreign key.

func (*HistoryChartDatum) Update

func (o *HistoryChartDatum) Update(exec boil.Executor, columns boil.Columns) (int64, error)

Update uses an executor to update the HistoryChartDatum. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*HistoryChartDatum) Upsert

func (o *HistoryChartDatum) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type HistoryChartDatumHook

type HistoryChartDatumHook func(boil.Executor, *HistoryChartDatum) error

HistoryChartDatumHook is the signature for custom HistoryChartDatum hook methods

type HistoryChartDatumSlice

type HistoryChartDatumSlice []*HistoryChartDatum

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

func (HistoryChartDatumSlice) DeleteAll

func (o HistoryChartDatumSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (*HistoryChartDatumSlice) ReloadAll

func (o *HistoryChartDatumSlice) 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 (HistoryChartDatumSlice) UpdateAll

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

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

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL