sqlite3

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuditEventColumns = struct {
	ID         string
	Type       string
	Identifier string
	Message    string
	CreatedAt  string
}{
	ID:         "id",
	Type:       "type",
	Identifier: "identifier",
	Message:    "message",
	CreatedAt:  "created_at",
}
View Source
var AuditEventRels = struct {
}{}

AuditEventRels is where relationship names are stored.

View Source
var AuditEventWhere = struct {
	ID         whereHelperint64
	Type       whereHelperstring
	Identifier whereHelperstring
	Message    whereHelperstring
	CreatedAt  whereHelperstring
}{
	ID:         whereHelperint64{/* contains filtered or unexported fields */},
	Type:       whereHelperstring{/* contains filtered or unexported fields */},
	Identifier: whereHelperstring{/* contains filtered or unexported fields */},
	Message:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var CandleColumns = struct {
	ID             string
	ExchangeNameID string
	Base           string
	Quote          string
	Interval       string
	Timestamp      string
	Open           string
	High           string
	Low            string
	Close          string
	Volume         string
	Asset          string
}{
	ID:             "id",
	ExchangeNameID: "exchange_name_id",
	Base:           "Base",
	Quote:          "Quote",
	Interval:       "Interval",
	Timestamp:      "Timestamp",
	Open:           "Open",
	High:           "High",
	Low:            "Low",
	Close:          "Close",
	Volume:         "Volume",
	Asset:          "Asset",
}
View Source
var CandleRels = struct {
	ExchangeName string
}{
	ExchangeName: "ExchangeName",
}

CandleRels is where relationship names are stored.

View Source
var CandleWhere = struct {
	ID             whereHelperstring
	ExchangeNameID whereHelperstring
	Base           whereHelperstring
	Quote          whereHelperstring
	Interval       whereHelperstring
	Timestamp      whereHelperstring
	Open           whereHelperfloat64
	High           whereHelperfloat64
	Low            whereHelperfloat64
	Close          whereHelperfloat64
	Volume         whereHelperfloat64
	Asset          whereHelperstring
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	ExchangeNameID: whereHelperstring{/* contains filtered or unexported fields */},
	Base:           whereHelperstring{/* contains filtered or unexported fields */},
	Quote:          whereHelperstring{/* contains filtered or unexported fields */},
	Interval:       whereHelperstring{/* contains filtered or unexported fields */},
	Timestamp:      whereHelperstring{/* contains filtered or unexported fields */},
	Open:           whereHelperfloat64{/* contains filtered or unexported fields */},
	High:           whereHelperfloat64{/* contains filtered or unexported fields */},
	Low:            whereHelperfloat64{/* contains filtered or unexported fields */},
	Close:          whereHelperfloat64{/* contains filtered or unexported fields */},
	Volume:         whereHelperfloat64{/* contains filtered or unexported fields */},
	Asset:          whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("sqlite3: 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 ExchangeColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var ExchangeRels = struct {
	ExchangeNameCandle              string
	ExchangeNameWithdrawalHistories string
}{
	ExchangeNameCandle:              "ExchangeNameCandle",
	ExchangeNameWithdrawalHistories: "ExchangeNameWithdrawalHistories",
}

ExchangeRels is where relationship names are stored.

View Source
var ExchangeWhere = struct {
	ID   whereHelperstring
	Name whereHelperstring
}{
	ID:   whereHelperstring{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ScriptColumns = struct {
	ID             string
	ScriptID       string
	ScriptName     string
	ScriptPath     string
	ScriptData     string
	LastExecutedAt string
	CreatedAt      string
}{
	ID:             "id",
	ScriptID:       "script_id",
	ScriptName:     "script_name",
	ScriptPath:     "script_path",
	ScriptData:     "script_data",
	LastExecutedAt: "last_executed_at",
	CreatedAt:      "created_at",
}
View Source
var ScriptExecutionColumns = struct {
	ID              string
	ScriptID        string
	ExecutionType   string
	ExecutionStatus string
	ExecutionTime   string
}{
	ID:              "id",
	ScriptID:        "script_id",
	ExecutionType:   "execution_type",
	ExecutionStatus: "execution_status",
	ExecutionTime:   "execution_time",
}
View Source
var ScriptExecutionRels = struct {
	Script string
}{
	Script: "Script",
}

ScriptExecutionRels is where relationship names are stored.

View Source
var ScriptExecutionWhere = struct {
	ID              whereHelperint64
	ScriptID        whereHelperstring
	ExecutionType   whereHelperstring
	ExecutionStatus whereHelperstring
	ExecutionTime   whereHelperstring
}{
	ID:              whereHelperint64{/* contains filtered or unexported fields */},
	ScriptID:        whereHelperstring{/* contains filtered or unexported fields */},
	ExecutionType:   whereHelperstring{/* contains filtered or unexported fields */},
	ExecutionStatus: whereHelperstring{/* contains filtered or unexported fields */},
	ExecutionTime:   whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ScriptRels = struct {
	ScriptExecutions string
}{
	ScriptExecutions: "ScriptExecutions",
}

ScriptRels is where relationship names are stored.

View Source
var ScriptWhere = struct {
	ID             whereHelperstring
	ScriptID       whereHelperstring
	ScriptName     whereHelperstring
	ScriptPath     whereHelperstring
	ScriptData     whereHelpernull_Bytes
	LastExecutedAt whereHelperstring
	CreatedAt      whereHelperstring
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	ScriptID:       whereHelperstring{/* contains filtered or unexported fields */},
	ScriptName:     whereHelperstring{/* contains filtered or unexported fields */},
	ScriptPath:     whereHelperstring{/* contains filtered or unexported fields */},
	ScriptData:     whereHelpernull_Bytes{/* contains filtered or unexported fields */},
	LastExecutedAt: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	AuditEvent        string
	Candle            string
	Exchange          string
	Script            string
	ScriptExecution   string
	WithdrawalCrypto  string
	WithdrawalFiat    string
	WithdrawalHistory string
}{
	AuditEvent:        "audit_event",
	Candle:            "candle",
	Exchange:          "exchange",
	Script:            "script",
	ScriptExecution:   "script_execution",
	WithdrawalCrypto:  "withdrawal_crypto",
	WithdrawalFiat:    "withdrawal_fiat",
	WithdrawalHistory: "withdrawal_history",
}
View Source
var WithdrawalCryptoColumns = struct {
	ID                  string
	Address             string
	AddressTag          string
	Fee                 string
	WithdrawalHistoryID string
}{
	ID:                  "id",
	Address:             "address",
	AddressTag:          "address_tag",
	Fee:                 "fee",
	WithdrawalHistoryID: "withdrawal_history_id",
}
View Source
var WithdrawalCryptoRels = struct {
	WithdrawalHistory string
}{
	WithdrawalHistory: "WithdrawalHistory",
}

WithdrawalCryptoRels is where relationship names are stored.

View Source
var WithdrawalCryptoWhere = struct {
	ID                  whereHelperint64
	Address             whereHelperstring
	AddressTag          whereHelpernull_String
	Fee                 whereHelperfloat64
	WithdrawalHistoryID whereHelperstring
}{
	ID:                  whereHelperint64{/* contains filtered or unexported fields */},
	Address:             whereHelperstring{/* contains filtered or unexported fields */},
	AddressTag:          whereHelpernull_String{/* contains filtered or unexported fields */},
	Fee:                 whereHelperfloat64{/* contains filtered or unexported fields */},
	WithdrawalHistoryID: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var WithdrawalFiatColumns = struct {
	ID                  string
	BankName            string
	BankAddress         string
	BankAccountName     string
	BankAccountNumber   string
	BSB                 string
	SwiftCode           string
	Iban                string
	BankCode            string
	WithdrawalHistoryID string
}{
	ID:                  "id",
	BankName:            "bank_name",
	BankAddress:         "bank_address",
	BankAccountName:     "bank_account_name",
	BankAccountNumber:   "bank_account_number",
	BSB:                 "bsb",
	SwiftCode:           "swift_code",
	Iban:                "iban",
	BankCode:            "bank_code",
	WithdrawalHistoryID: "withdrawal_history_id",
}
View Source
var WithdrawalFiatRels = struct {
	WithdrawalHistory string
}{
	WithdrawalHistory: "WithdrawalHistory",
}

WithdrawalFiatRels is where relationship names are stored.

View Source
var WithdrawalFiatWhere = struct {
	ID                  whereHelperint64
	BankName            whereHelperstring
	BankAddress         whereHelperstring
	BankAccountName     whereHelperstring
	BankAccountNumber   whereHelperstring
	BSB                 whereHelperstring
	SwiftCode           whereHelperstring
	Iban                whereHelperstring
	BankCode            whereHelperfloat64
	WithdrawalHistoryID whereHelperstring
}{
	ID:                  whereHelperint64{/* contains filtered or unexported fields */},
	BankName:            whereHelperstring{/* contains filtered or unexported fields */},
	BankAddress:         whereHelperstring{/* contains filtered or unexported fields */},
	BankAccountName:     whereHelperstring{/* contains filtered or unexported fields */},
	BankAccountNumber:   whereHelperstring{/* contains filtered or unexported fields */},
	BSB:                 whereHelperstring{/* contains filtered or unexported fields */},
	SwiftCode:           whereHelperstring{/* contains filtered or unexported fields */},
	Iban:                whereHelperstring{/* contains filtered or unexported fields */},
	BankCode:            whereHelperfloat64{/* contains filtered or unexported fields */},
	WithdrawalHistoryID: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var WithdrawalHistoryColumns = struct {
	ID             string
	ExchangeNameID string
	ExchangeID     string
	Status         string
	Currency       string
	Amount         string
	Description    string
	WithdrawType   string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "id",
	ExchangeNameID: "exchange_name_id",
	ExchangeID:     "exchange_id",
	Status:         "status",
	Currency:       "currency",
	Amount:         "amount",
	Description:    "description",
	WithdrawType:   "withdraw_type",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
}
View Source
var WithdrawalHistoryRels = struct {
	ExchangeName      string
	WithdrawalCryptos string
	WithdrawalFiats   string
}{
	ExchangeName:      "ExchangeName",
	WithdrawalCryptos: "WithdrawalCryptos",
	WithdrawalFiats:   "WithdrawalFiats",
}

WithdrawalHistoryRels is where relationship names are stored.

View Source
var WithdrawalHistoryWhere = struct {
	ID             whereHelperstring
	ExchangeNameID whereHelperstring
	ExchangeID     whereHelperstring
	Status         whereHelperstring
	Currency       whereHelperstring
	Amount         whereHelperfloat64
	Description    whereHelpernull_String
	WithdrawType   whereHelperint64
	CreatedAt      whereHelperstring
	UpdatedAt      whereHelperstring
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	ExchangeNameID: whereHelperstring{/* contains filtered or unexported fields */},
	ExchangeID:     whereHelperstring{/* contains filtered or unexported fields */},
	Status:         whereHelperstring{/* contains filtered or unexported fields */},
	Currency:       whereHelperstring{/* contains filtered or unexported fields */},
	Amount:         whereHelperfloat64{/* contains filtered or unexported fields */},
	Description:    whereHelpernull_String{/* contains filtered or unexported fields */},
	WithdrawType:   whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelperstring{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelperstring{/* contains filtered or unexported fields */},
}

Functions

func AddAuditEventHook

func AddAuditEventHook(hookPoint boil.HookPoint, auditEventHook AuditEventHook)

AddAuditEventHook registers your hook function for all future operations.

func AddCandleHook

func AddCandleHook(hookPoint boil.HookPoint, candleHook CandleHook)

AddCandleHook registers your hook function for all future operations.

func AddExchangeHook

func AddExchangeHook(hookPoint boil.HookPoint, exchangeHook ExchangeHook)

AddExchangeHook registers your hook function for all future operations.

func AddScriptExecutionHook

func AddScriptExecutionHook(hookPoint boil.HookPoint, scriptExecutionHook ScriptExecutionHook)

AddScriptExecutionHook registers your hook function for all future operations.

func AddScriptHook

func AddScriptHook(hookPoint boil.HookPoint, scriptHook ScriptHook)

AddScriptHook registers your hook function for all future operations.

func AddWithdrawalCryptoHook

func AddWithdrawalCryptoHook(hookPoint boil.HookPoint, withdrawalCryptoHook WithdrawalCryptoHook)

AddWithdrawalCryptoHook registers your hook function for all future operations.

func AddWithdrawalFiatHook

func AddWithdrawalFiatHook(hookPoint boil.HookPoint, withdrawalFiatHook WithdrawalFiatHook)

AddWithdrawalFiatHook registers your hook function for all future operations.

func AddWithdrawalHistoryHook

func AddWithdrawalHistoryHook(hookPoint boil.HookPoint, withdrawalHistoryHook WithdrawalHistoryHook)

AddWithdrawalHistoryHook registers your hook function for all future operations.

func AuditEventExists

func AuditEventExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

AuditEventExists checks if the AuditEvent row exists.

func AuditEvents

func AuditEvents(mods ...qm.QueryMod) auditEventQuery

AuditEvents retrieves all the records using an executor.

func CandleExists

func CandleExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

CandleExists checks if the Candle row exists.

func Candles

func Candles(mods ...qm.QueryMod) candleQuery

Candles retrieves all the records using an executor.

func ExchangeExists

func ExchangeExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ExchangeExists checks if the Exchange row exists.

func Exchanges

func Exchanges(mods ...qm.QueryMod) exchangeQuery

Exchanges retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

func ScriptExecutionExists

func ScriptExecutionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

ScriptExecutionExists checks if the ScriptExecution row exists.

func ScriptExecutions

func ScriptExecutions(mods ...qm.QueryMod) scriptExecutionQuery

ScriptExecutions retrieves all the records using an executor.

func ScriptExists

func ScriptExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ScriptExists checks if the Script row exists.

func Scripts

func Scripts(mods ...qm.QueryMod) scriptQuery

Scripts retrieves all the records using an executor.

func WithdrawalCryptoExists

func WithdrawalCryptoExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

WithdrawalCryptoExists checks if the WithdrawalCrypto row exists.

func WithdrawalCryptos

func WithdrawalCryptos(mods ...qm.QueryMod) withdrawalCryptoQuery

WithdrawalCryptos retrieves all the records using an executor.

func WithdrawalFiatExists

func WithdrawalFiatExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

WithdrawalFiatExists checks if the WithdrawalFiat row exists.

func WithdrawalFiats

func WithdrawalFiats(mods ...qm.QueryMod) withdrawalFiatQuery

WithdrawalFiats retrieves all the records using an executor.

func WithdrawalHistories

func WithdrawalHistories(mods ...qm.QueryMod) withdrawalHistoryQuery

WithdrawalHistories retrieves all the records using an executor.

func WithdrawalHistoryExists

func WithdrawalHistoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

WithdrawalHistoryExists checks if the WithdrawalHistory row exists.

Types

type AuditEvent

type AuditEvent struct {
	ID         int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	Type       string `boil:"type" json:"type" toml:"type" yaml:"type"`
	Identifier string `boil:"identifier" json:"identifier" toml:"identifier" yaml:"identifier"`
	Message    string `boil:"message" json:"message" toml:"message" yaml:"message"`
	CreatedAt  string `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *auditEventR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L auditEventL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AuditEvent is an object representing the database table.

func FindAuditEvent

func FindAuditEvent(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AuditEvent, error)

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

func (*AuditEvent) Delete

func (o *AuditEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*AuditEvent) Insert

func (o *AuditEvent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*AuditEvent) Reload

func (o *AuditEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*AuditEvent) Update

func (o *AuditEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AuditEvent. 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.

type AuditEventHook

type AuditEventHook func(context.Context, boil.ContextExecutor, *AuditEvent) error

AuditEventHook is the signature for custom AuditEvent hook methods

type AuditEventSlice

type AuditEventSlice []*AuditEvent

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

func (AuditEventSlice) DeleteAll

func (o AuditEventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*AuditEventSlice) ReloadAll

func (o *AuditEventSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (AuditEventSlice) UpdateAll

func (o AuditEventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type Candle

type Candle struct {
	ID             string  `boil:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeNameID string  `boil:"exchange_name_id" json:"exchange_name_id" toml:"exchange_name_id" yaml:"exchange_name_id"`
	Base           string  `boil:"Base" json:"Base" toml:"Base" yaml:"Base"`
	Quote          string  `boil:"Quote" json:"Quote" toml:"Quote" yaml:"Quote"`
	Interval       string  `boil:"Interval" json:"Interval" toml:"Interval" yaml:"Interval"`
	Timestamp      string  `boil:"Timestamp" json:"Timestamp" toml:"Timestamp" yaml:"Timestamp"`
	Open           float64 `boil:"Open" json:"Open" toml:"Open" yaml:"Open"`
	High           float64 `boil:"High" json:"High" toml:"High" yaml:"High"`
	Low            float64 `boil:"Low" json:"Low" toml:"Low" yaml:"Low"`
	Close          float64 `boil:"Close" json:"Close" toml:"Close" yaml:"Close"`
	Volume         float64 `boil:"Volume" json:"Volume" toml:"Volume" yaml:"Volume"`
	Asset          string  `boil:"Asset" json:"Asset" toml:"Asset" yaml:"Asset"`

	R *candleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L candleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Candle is an object representing the database table.

func FindCandle

func FindCandle(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Candle, error)

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

func (*Candle) Delete

func (o *Candle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*Candle) ExchangeName

func (o *Candle) ExchangeName(mods ...qm.QueryMod) exchangeQuery

ExchangeName pointed to by the foreign key.

func (*Candle) Insert

func (o *Candle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Candle) Reload

func (o *Candle) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*Candle) SetExchangeName

func (o *Candle) SetExchangeName(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Exchange) error

SetExchangeName of the candle to the related item. Sets o.R.ExchangeName to related. Adds o to related.R.ExchangeNameCandle.

func (*Candle) Update

func (o *Candle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Candle. 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.

type CandleHook

type CandleHook func(context.Context, boil.ContextExecutor, *Candle) error

CandleHook is the signature for custom Candle hook methods

type CandleSlice

type CandleSlice []*Candle

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

func (CandleSlice) DeleteAll

func (o CandleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*CandleSlice) ReloadAll

func (o *CandleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (CandleSlice) UpdateAll

func (o CandleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type Exchange

type Exchange struct {
	ID   string `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *exchangeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L exchangeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Exchange is an object representing the database table.

func FindExchange

func FindExchange(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Exchange, error)

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

func (*Exchange) AddExchangeNameWithdrawalHistories

func (o *Exchange) AddExchangeNameWithdrawalHistories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*WithdrawalHistory) error

AddExchangeNameWithdrawalHistories adds the given related objects to the existing relationships of the exchange, optionally inserting them as new records. Appends related to o.R.ExchangeNameWithdrawalHistories. Sets related.R.ExchangeName appropriately.

func (*Exchange) Delete

func (o *Exchange) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*Exchange) ExchangeNameCandle

func (o *Exchange) ExchangeNameCandle(mods ...qm.QueryMod) candleQuery

ExchangeNameCandle pointed to by the foreign key.

func (*Exchange) ExchangeNameWithdrawalHistories

func (o *Exchange) ExchangeNameWithdrawalHistories(mods ...qm.QueryMod) withdrawalHistoryQuery

ExchangeNameWithdrawalHistories retrieves all the withdrawal_history's WithdrawalHistories with an executor via exchange_name_id column.

func (*Exchange) Insert

func (o *Exchange) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Exchange) Reload

func (o *Exchange) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*Exchange) SetExchangeNameCandle

func (o *Exchange) SetExchangeNameCandle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Candle) error

SetExchangeNameCandle of the exchange to the related item. Sets o.R.ExchangeNameCandle to related. Adds o to related.R.ExchangeName.

func (*Exchange) Update

func (o *Exchange) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Exchange. 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.

type ExchangeHook

type ExchangeHook func(context.Context, boil.ContextExecutor, *Exchange) error

ExchangeHook is the signature for custom Exchange hook methods

type ExchangeSlice

type ExchangeSlice []*Exchange

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

func (ExchangeSlice) DeleteAll

func (o ExchangeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*ExchangeSlice) ReloadAll

func (o *ExchangeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (ExchangeSlice) UpdateAll

func (o ExchangeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type M

type M map[string]interface{}

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

type Script

type Script struct {
	ID             string     `boil:"id" json:"id" toml:"id" yaml:"id"`
	ScriptID       string     `boil:"script_id" json:"script_id" toml:"script_id" yaml:"script_id"`
	ScriptName     string     `boil:"script_name" json:"script_name" toml:"script_name" yaml:"script_name"`
	ScriptPath     string     `boil:"script_path" json:"script_path" toml:"script_path" yaml:"script_path"`
	ScriptData     null.Bytes `boil:"script_data" json:"script_data,omitempty" toml:"script_data" yaml:"script_data,omitempty"`
	LastExecutedAt string     `boil:"last_executed_at" json:"last_executed_at" toml:"last_executed_at" yaml:"last_executed_at"`
	CreatedAt      string     `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *scriptR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L scriptL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Script is an object representing the database table.

func FindScript

func FindScript(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Script, error)

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

func (*Script) AddScriptExecutions

func (o *Script) AddScriptExecutions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ScriptExecution) error

AddScriptExecutions adds the given related objects to the existing relationships of the script, optionally inserting them as new records. Appends related to o.R.ScriptExecutions. Sets related.R.Script appropriately.

func (*Script) Delete

func (o *Script) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*Script) Insert

func (o *Script) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*Script) Reload

func (o *Script) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*Script) ScriptExecutions

func (o *Script) ScriptExecutions(mods ...qm.QueryMod) scriptExecutionQuery

ScriptExecutions retrieves all the script_execution's ScriptExecutions with an executor.

func (*Script) Update

func (o *Script) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Script. 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.

type ScriptExecution

type ScriptExecution struct {
	ID              int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	ScriptID        string `boil:"script_id" json:"script_id" toml:"script_id" yaml:"script_id"`
	ExecutionType   string `boil:"execution_type" json:"execution_type" toml:"execution_type" yaml:"execution_type"`
	ExecutionStatus string `boil:"execution_status" json:"execution_status" toml:"execution_status" yaml:"execution_status"`
	ExecutionTime   string `boil:"execution_time" json:"execution_time" toml:"execution_time" yaml:"execution_time"`

	R *scriptExecutionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L scriptExecutionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ScriptExecution is an object representing the database table.

func FindScriptExecution

func FindScriptExecution(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ScriptExecution, error)

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

func (*ScriptExecution) Delete

func (o *ScriptExecution) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*ScriptExecution) Insert

func (o *ScriptExecution) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*ScriptExecution) Reload

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

func (*ScriptExecution) Script

func (o *ScriptExecution) Script(mods ...qm.QueryMod) scriptQuery

Script pointed to by the foreign key.

func (*ScriptExecution) SetScript

func (o *ScriptExecution) SetScript(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Script) error

SetScript of the scriptExecution to the related item. Sets o.R.Script to related. Adds o to related.R.ScriptExecutions.

func (*ScriptExecution) Update

func (o *ScriptExecution) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the ScriptExecution. 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.

type ScriptExecutionHook

type ScriptExecutionHook func(context.Context, boil.ContextExecutor, *ScriptExecution) error

ScriptExecutionHook is the signature for custom ScriptExecution hook methods

type ScriptExecutionSlice

type ScriptExecutionSlice []*ScriptExecution

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

func (ScriptExecutionSlice) DeleteAll

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

func (*ScriptExecutionSlice) ReloadAll

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

func (ScriptExecutionSlice) UpdateAll

func (o ScriptExecutionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type ScriptHook

type ScriptHook func(context.Context, boil.ContextExecutor, *Script) error

ScriptHook is the signature for custom Script hook methods

type ScriptSlice

type ScriptSlice []*Script

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

func (ScriptSlice) DeleteAll

func (o ScriptSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*ScriptSlice) ReloadAll

func (o *ScriptSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (ScriptSlice) UpdateAll

func (o ScriptSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type WithdrawalCrypto

type WithdrawalCrypto struct {
	ID                  int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Address             string      `boil:"address" json:"address" toml:"address" yaml:"address"`
	AddressTag          null.String `boil:"address_tag" json:"address_tag,omitempty" toml:"address_tag" yaml:"address_tag,omitempty"`
	Fee                 float64     `boil:"fee" json:"fee" toml:"fee" yaml:"fee"`
	WithdrawalHistoryID string      `boil:"withdrawal_history_id" json:"withdrawal_history_id" toml:"withdrawal_history_id" yaml:"withdrawal_history_id"`

	R *withdrawalCryptoR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L withdrawalCryptoL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

WithdrawalCrypto is an object representing the database table.

func FindWithdrawalCrypto

func FindWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*WithdrawalCrypto, error)

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

func (*WithdrawalCrypto) Delete

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

func (*WithdrawalCrypto) Insert

func (o *WithdrawalCrypto) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*WithdrawalCrypto) Reload

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

func (*WithdrawalCrypto) SetWithdrawalHistory

func (o *WithdrawalCrypto) SetWithdrawalHistory(ctx context.Context, exec boil.ContextExecutor, insert bool, related *WithdrawalHistory) error

SetWithdrawalHistory of the withdrawalCrypto to the related item. Sets o.R.WithdrawalHistory to related. Adds o to related.R.WithdrawalCryptos.

func (*WithdrawalCrypto) Update

func (o *WithdrawalCrypto) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the WithdrawalCrypto. 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 (*WithdrawalCrypto) WithdrawalHistory

func (o *WithdrawalCrypto) WithdrawalHistory(mods ...qm.QueryMod) withdrawalHistoryQuery

WithdrawalHistory pointed to by the foreign key.

type WithdrawalCryptoHook

type WithdrawalCryptoHook func(context.Context, boil.ContextExecutor, *WithdrawalCrypto) error

WithdrawalCryptoHook is the signature for custom WithdrawalCrypto hook methods

type WithdrawalCryptoSlice

type WithdrawalCryptoSlice []*WithdrawalCrypto

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

func (WithdrawalCryptoSlice) DeleteAll

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

func (*WithdrawalCryptoSlice) ReloadAll

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

func (WithdrawalCryptoSlice) UpdateAll

func (o WithdrawalCryptoSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type WithdrawalFiat

type WithdrawalFiat struct {
	ID                  int64   `boil:"id" json:"id" toml:"id" yaml:"id"`
	BankName            string  `boil:"bank_name" json:"bank_name" toml:"bank_name" yaml:"bank_name"`
	BankAddress         string  `boil:"bank_address" json:"bank_address" toml:"bank_address" yaml:"bank_address"`
	BankAccountName     string  `boil:"bank_account_name" json:"bank_account_name" toml:"bank_account_name" yaml:"bank_account_name"`
	BankAccountNumber   string  `boil:"bank_account_number" json:"bank_account_number" toml:"bank_account_number" yaml:"bank_account_number"`
	BSB                 string  `boil:"bsb" json:"bsb" toml:"bsb" yaml:"bsb"`
	SwiftCode           string  `boil:"swift_code" json:"swift_code" toml:"swift_code" yaml:"swift_code"`
	Iban                string  `boil:"iban" json:"iban" toml:"iban" yaml:"iban"`
	BankCode            float64 `boil:"bank_code" json:"bank_code" toml:"bank_code" yaml:"bank_code"`
	WithdrawalHistoryID string  `boil:"withdrawal_history_id" json:"withdrawal_history_id" toml:"withdrawal_history_id" yaml:"withdrawal_history_id"`

	R *withdrawalFiatR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L withdrawalFiatL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

WithdrawalFiat is an object representing the database table.

func FindWithdrawalFiat

func FindWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*WithdrawalFiat, error)

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

func (*WithdrawalFiat) Delete

func (o *WithdrawalFiat) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*WithdrawalFiat) Insert

func (o *WithdrawalFiat) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*WithdrawalFiat) Reload

func (o *WithdrawalFiat) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (*WithdrawalFiat) SetWithdrawalHistory

func (o *WithdrawalFiat) SetWithdrawalHistory(ctx context.Context, exec boil.ContextExecutor, insert bool, related *WithdrawalHistory) error

SetWithdrawalHistory of the withdrawalFiat to the related item. Sets o.R.WithdrawalHistory to related. Adds o to related.R.WithdrawalFiats.

func (*WithdrawalFiat) Update

func (o *WithdrawalFiat) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the WithdrawalFiat. 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 (*WithdrawalFiat) WithdrawalHistory

func (o *WithdrawalFiat) WithdrawalHistory(mods ...qm.QueryMod) withdrawalHistoryQuery

WithdrawalHistory pointed to by the foreign key.

type WithdrawalFiatHook

type WithdrawalFiatHook func(context.Context, boil.ContextExecutor, *WithdrawalFiat) error

WithdrawalFiatHook is the signature for custom WithdrawalFiat hook methods

type WithdrawalFiatSlice

type WithdrawalFiatSlice []*WithdrawalFiat

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

func (WithdrawalFiatSlice) DeleteAll

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

func (*WithdrawalFiatSlice) ReloadAll

func (o *WithdrawalFiatSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (WithdrawalFiatSlice) UpdateAll

func (o WithdrawalFiatSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type WithdrawalHistory

type WithdrawalHistory struct {
	ID             string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeNameID string      `boil:"exchange_name_id" json:"exchange_name_id" toml:"exchange_name_id" yaml:"exchange_name_id"`
	ExchangeID     string      `boil:"exchange_id" json:"exchange_id" toml:"exchange_id" yaml:"exchange_id"`
	Status         string      `boil:"status" json:"status" toml:"status" yaml:"status"`
	Currency       string      `boil:"currency" json:"currency" toml:"currency" yaml:"currency"`
	Amount         float64     `boil:"amount" json:"amount" toml:"amount" yaml:"amount"`
	Description    null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	WithdrawType   int64       `boil:"withdraw_type" json:"withdraw_type" toml:"withdraw_type" yaml:"withdraw_type"`
	CreatedAt      string      `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      string      `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *withdrawalHistoryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L withdrawalHistoryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

WithdrawalHistory is an object representing the database table.

func FindWithdrawalHistory

func FindWithdrawalHistory(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*WithdrawalHistory, error)

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

func (*WithdrawalHistory) AddWithdrawalCryptos

func (o *WithdrawalHistory) AddWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*WithdrawalCrypto) error

AddWithdrawalCryptos adds the given related objects to the existing relationships of the withdrawal_history, optionally inserting them as new records. Appends related to o.R.WithdrawalCryptos. Sets related.R.WithdrawalHistory appropriately.

func (*WithdrawalHistory) AddWithdrawalFiats

func (o *WithdrawalHistory) AddWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*WithdrawalFiat) error

AddWithdrawalFiats adds the given related objects to the existing relationships of the withdrawal_history, optionally inserting them as new records. Appends related to o.R.WithdrawalFiats. Sets related.R.WithdrawalHistory appropriately.

func (*WithdrawalHistory) Delete

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

func (*WithdrawalHistory) ExchangeName

func (o *WithdrawalHistory) ExchangeName(mods ...qm.QueryMod) exchangeQuery

ExchangeName pointed to by the foreign key.

func (*WithdrawalHistory) Insert

func (o *WithdrawalHistory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

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

func (*WithdrawalHistory) Reload

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

func (*WithdrawalHistory) SetExchangeName

func (o *WithdrawalHistory) SetExchangeName(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Exchange) error

SetExchangeName of the withdrawalHistory to the related item. Sets o.R.ExchangeName to related. Adds o to related.R.ExchangeNameWithdrawalHistories.

func (*WithdrawalHistory) Update

func (o *WithdrawalHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the WithdrawalHistory. 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 (*WithdrawalHistory) WithdrawalCryptos

func (o *WithdrawalHistory) WithdrawalCryptos(mods ...qm.QueryMod) withdrawalCryptoQuery

WithdrawalCryptos retrieves all the withdrawal_crypto's WithdrawalCryptos with an executor.

func (*WithdrawalHistory) WithdrawalFiats

func (o *WithdrawalHistory) WithdrawalFiats(mods ...qm.QueryMod) withdrawalFiatQuery

WithdrawalFiats retrieves all the withdrawal_fiat's WithdrawalFiats with an executor.

type WithdrawalHistoryHook

type WithdrawalHistoryHook func(context.Context, boil.ContextExecutor, *WithdrawalHistory) error

WithdrawalHistoryHook is the signature for custom WithdrawalHistory hook methods

type WithdrawalHistorySlice

type WithdrawalHistorySlice []*WithdrawalHistory

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

func (WithdrawalHistorySlice) DeleteAll

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

func (*WithdrawalHistorySlice) ReloadAll

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

func (WithdrawalHistorySlice) UpdateAll

func (o WithdrawalHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

Jump to

Keyboard shortcuts

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