Documentation ¶
Index ¶
- Variables
- func AddAuditEventHook(hookPoint boil.HookPoint, auditEventHook AuditEventHook)
- func AddCandleHook(hookPoint boil.HookPoint, candleHook CandleHook)
- func AddExchangeHook(hookPoint boil.HookPoint, exchangeHook ExchangeHook)
- func AddScriptExecutionHook(hookPoint boil.HookPoint, scriptExecutionHook ScriptExecutionHook)
- func AddScriptHook(hookPoint boil.HookPoint, scriptHook ScriptHook)
- func AddWithdrawalCryptoHook(hookPoint boil.HookPoint, withdrawalCryptoHook WithdrawalCryptoHook)
- func AddWithdrawalFiatHook(hookPoint boil.HookPoint, withdrawalFiatHook WithdrawalFiatHook)
- func AddWithdrawalHistoryHook(hookPoint boil.HookPoint, withdrawalHistoryHook WithdrawalHistoryHook)
- func AuditEventExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AuditEvents(mods ...qm.QueryMod) auditEventQuery
- func CandleExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Candles(mods ...qm.QueryMod) candleQuery
- func ExchangeExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Exchanges(mods ...qm.QueryMod) exchangeQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func ScriptExecutionExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func ScriptExecutions(mods ...qm.QueryMod) scriptExecutionQuery
- func ScriptExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Scripts(mods ...qm.QueryMod) scriptQuery
- func WithdrawalCryptoExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func WithdrawalCryptos(mods ...qm.QueryMod) withdrawalCryptoQuery
- func WithdrawalFiatExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func WithdrawalFiats(mods ...qm.QueryMod) withdrawalFiatQuery
- func WithdrawalHistories(mods ...qm.QueryMod) withdrawalHistoryQuery
- func WithdrawalHistoryExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- type AuditEvent
- func (o *AuditEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AuditEvent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AuditEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AuditEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AuditEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type AuditEventHook
- type AuditEventSlice
- type Candle
- func (o *Candle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Candle) ExchangeName(mods ...qm.QueryMod) exchangeQuery
- func (o *Candle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Candle) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Candle) SetExchangeName(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Exchange) error
- func (o *Candle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Candle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type CandleHook
- type CandleSlice
- type Exchange
- func (o *Exchange) AddExchangeNameCandles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Exchange) AddExchangeNameWithdrawalHistories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Exchange) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Exchange) ExchangeNameCandles(mods ...qm.QueryMod) candleQuery
- func (o *Exchange) ExchangeNameWithdrawalHistories(mods ...qm.QueryMod) withdrawalHistoryQuery
- func (o *Exchange) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Exchange) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Exchange) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Exchange) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ExchangeHook
- type ExchangeSlice
- type M
- type Script
- func (o *Script) AddScriptExecutions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Script) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Script) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Script) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Script) RemoveScriptExecutions(ctx context.Context, exec boil.ContextExecutor, related ...*ScriptExecution) error
- func (o *Script) ScriptExecutions(mods ...qm.QueryMod) scriptExecutionQuery
- func (o *Script) SetScriptExecutions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Script) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Script) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ScriptExecution
- func (o *ScriptExecution) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ScriptExecution) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ScriptExecution) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ScriptExecution) RemoveScript(ctx context.Context, exec boil.ContextExecutor, related *Script) error
- func (o *ScriptExecution) Script(mods ...qm.QueryMod) scriptQuery
- func (o *ScriptExecution) SetScript(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Script) error
- func (o *ScriptExecution) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ScriptExecution) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type ScriptExecutionHook
- type ScriptExecutionSlice
- func (o ScriptExecutionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ScriptExecutionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ScriptExecutionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ScriptHook
- type ScriptSlice
- type WithdrawalCrypto
- func (o *WithdrawalCrypto) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *WithdrawalCrypto) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *WithdrawalCrypto) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *WithdrawalCrypto) RemoveWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, related *WithdrawalHistory) error
- func (o *WithdrawalCrypto) SetWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *WithdrawalCrypto) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *WithdrawalCrypto) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *WithdrawalCrypto) WithdrawalCrypto(mods ...qm.QueryMod) withdrawalHistoryQuery
- type WithdrawalCryptoHook
- type WithdrawalCryptoSlice
- func (o WithdrawalCryptoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *WithdrawalCryptoSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o WithdrawalCryptoSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type WithdrawalFiat
- func (o *WithdrawalFiat) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *WithdrawalFiat) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *WithdrawalFiat) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *WithdrawalFiat) RemoveWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, related *WithdrawalHistory) error
- func (o *WithdrawalFiat) SetWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *WithdrawalFiat) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *WithdrawalFiat) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *WithdrawalFiat) WithdrawalFiat(mods ...qm.QueryMod) withdrawalHistoryQuery
- type WithdrawalFiatHook
- type WithdrawalFiatSlice
- func (o WithdrawalFiatSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *WithdrawalFiatSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o WithdrawalFiatSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type WithdrawalHistory
- func (o *WithdrawalHistory) AddWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *WithdrawalHistory) AddWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *WithdrawalHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *WithdrawalHistory) ExchangeName(mods ...qm.QueryMod) exchangeQuery
- func (o *WithdrawalHistory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *WithdrawalHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *WithdrawalHistory) RemoveWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, related ...*WithdrawalCrypto) error
- func (o *WithdrawalHistory) RemoveWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, related ...*WithdrawalFiat) error
- func (o *WithdrawalHistory) SetExchangeName(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Exchange) error
- func (o *WithdrawalHistory) SetWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *WithdrawalHistory) SetWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *WithdrawalHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *WithdrawalHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *WithdrawalHistory) WithdrawalCryptoWithdrawalCryptos(mods ...qm.QueryMod) withdrawalCryptoQuery
- func (o *WithdrawalHistory) WithdrawalFiatWithdrawalFiats(mods ...qm.QueryMod) withdrawalFiatQuery
- type WithdrawalHistoryHook
- type WithdrawalHistorySlice
- func (o WithdrawalHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *WithdrawalHistorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o WithdrawalHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var AuditEventColumns = struct { ID string Type string Identifier string Message string CreatedAt string }{ ID: "id", Type: "type", Identifier: "identifier", Message: "message", CreatedAt: "created_at", }
var AuditEventRels = struct {
}{}
AuditEventRels is where relationship names are stored.
var AuditEventWhere = struct { ID whereHelperint64 Type whereHelperstring Identifier whereHelperstring Message whereHelperstring CreatedAt whereHelpertime_Time }{ 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: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
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", }
var CandleRels = struct { ExchangeName string }{ ExchangeName: "ExchangeName", }
CandleRels is where relationship names are stored.
var CandleWhere = struct { ID whereHelperstring ExchangeNameID whereHelperstring Base whereHelperstring Quote whereHelperstring Interval whereHelperint64 Timestamp whereHelpertime_Time 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: whereHelperint64{/* contains filtered or unexported fields */}, Timestamp: whereHelpertime_Time{/* 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 */}, }
var ErrSyncFail = errors.New("postgres: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var ExchangeColumns = struct { ID string Name string }{ ID: "id", Name: "name", }
var ExchangeRels = struct { ExchangeNameCandles string ExchangeNameWithdrawalHistories string }{ ExchangeNameCandles: "ExchangeNameCandles", ExchangeNameWithdrawalHistories: "ExchangeNameWithdrawalHistories", }
ExchangeRels is where relationship names are stored.
var ExchangeWhere = struct { ID whereHelperstring Name whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
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", }
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", }
var ScriptExecutionRels = struct { Script string }{ Script: "Script", }
ScriptExecutionRels is where relationship names are stored.
var ScriptExecutionWhere = struct { ID whereHelperstring ScriptID whereHelpernull_String ExecutionType whereHelperstring ExecutionStatus whereHelperstring ExecutionTime whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, ScriptID: whereHelpernull_String{/* contains filtered or unexported fields */}, ExecutionType: whereHelperstring{/* contains filtered or unexported fields */}, ExecutionStatus: whereHelperstring{/* contains filtered or unexported fields */}, ExecutionTime: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ScriptRels = struct { ScriptExecutions string }{ ScriptExecutions: "ScriptExecutions", }
ScriptRels is where relationship names are stored.
var ScriptWhere = struct { ID whereHelperstring ScriptID whereHelperstring ScriptName whereHelperstring ScriptPath whereHelperstring ScriptData whereHelpernull_Bytes LastExecutedAt whereHelpernull_Time CreatedAt whereHelpernull_Time }{ 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: whereHelpernull_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
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", }
var WithdrawalCryptoColumns = struct { ID string WithdrawalCryptoID string Address string AddressTag string Fee string }{ ID: "id", WithdrawalCryptoID: "withdrawal_crypto_id", Address: "address", AddressTag: "address_tag", Fee: "fee", }
var WithdrawalCryptoRels = struct { WithdrawalCrypto string }{ WithdrawalCrypto: "WithdrawalCrypto", }
WithdrawalCryptoRels is where relationship names are stored.
var WithdrawalCryptoWhere = struct { ID whereHelperint64 WithdrawalCryptoID whereHelpernull_String Address whereHelperstring AddressTag whereHelpernull_String Fee whereHelperfloat64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, WithdrawalCryptoID: whereHelpernull_String{/* 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 */}, }
var WithdrawalFiatColumns = struct { ID string WithdrawalFiatID string BankName string BankAddress string BankAccountName string BankAccountNumber string BSB string SwiftCode string Iban string BankCode string }{ ID: "id", WithdrawalFiatID: "withdrawal_fiat_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", }
var WithdrawalFiatRels = struct { WithdrawalFiat string }{ WithdrawalFiat: "WithdrawalFiat", }
WithdrawalFiatRels is where relationship names are stored.
var WithdrawalFiatWhere = struct { ID whereHelperint64 WithdrawalFiatID whereHelpernull_String BankName whereHelperstring BankAddress whereHelperstring BankAccountName whereHelperstring BankAccountNumber whereHelperstring BSB whereHelperstring SwiftCode whereHelperstring Iban whereHelperstring BankCode whereHelperfloat64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, WithdrawalFiatID: whereHelpernull_String{/* 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 */}, }
var WithdrawalHistoryColumns = struct { ID string ExchangeID string Status string Currency string Amount string Description string WithdrawType string CreatedAt string UpdatedAt string ExchangeNameID string }{ ID: "id", ExchangeID: "exchange_id", Status: "status", Currency: "currency", Amount: "amount", Description: "description", WithdrawType: "withdraw_type", CreatedAt: "created_at", UpdatedAt: "updated_at", ExchangeNameID: "exchange_name_id", }
var WithdrawalHistoryRels = struct { ExchangeName string WithdrawalCryptoWithdrawalCryptos string WithdrawalFiatWithdrawalFiats string }{ ExchangeName: "ExchangeName", WithdrawalCryptoWithdrawalCryptos: "WithdrawalCryptoWithdrawalCryptos", WithdrawalFiatWithdrawalFiats: "WithdrawalFiatWithdrawalFiats", }
WithdrawalHistoryRels is where relationship names are stored.
var WithdrawalHistoryWhere = struct { ID whereHelperstring ExchangeID whereHelperstring Status whereHelperstring Currency whereHelperstring Amount whereHelperfloat64 Description whereHelpernull_String WithdrawType whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time ExchangeNameID whereHelperstring }{ ID: 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: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, ExchangeNameID: 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 ¶
AuditEventExists checks if the AuditEvent row exists.
func AuditEvents ¶
AuditEvents retrieves all the records using an executor.
func CandleExists ¶
CandleExists checks if the Candle row exists.
func ExchangeExists ¶
ExchangeExists checks if the Exchange row exists.
func ScriptExecutionExists ¶
ScriptExecutionExists checks if the ScriptExecution row exists.
func ScriptExecutions ¶
ScriptExecutions retrieves all the records using an executor.
func ScriptExists ¶
ScriptExists checks if the Script row exists.
func WithdrawalCryptoExists ¶
WithdrawalCryptoExists checks if the WithdrawalCrypto row exists.
func WithdrawalCryptos ¶
WithdrawalCryptos retrieves all the records using an executor.
func WithdrawalFiatExists ¶
WithdrawalFiatExists checks if the WithdrawalFiat row exists.
func WithdrawalFiats ¶
WithdrawalFiats retrieves all the records using an executor.
func WithdrawalHistories ¶
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 time.Time `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.
func (*AuditEvent) Upsert ¶
func (o *AuditEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type 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 int64 `boil:"interval" json:"interval" toml:"interval" yaml:"interval"` Timestamp time.Time `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 ¶
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 ¶
ExchangeName pointed to by the foreign key.
func (*Candle) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Candle) Reload ¶
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.ExchangeNameCandles.
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.
func (*Candle) Upsert ¶
func (o *Candle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CandleHook ¶
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) AddExchangeNameCandles ¶
func (o *Exchange) AddExchangeNameCandles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Candle) error
AddExchangeNameCandles adds the given related objects to the existing relationships of the exchange, optionally inserting them as new records. Appends related to o.R.ExchangeNameCandles. Sets related.R.ExchangeName appropriately.
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 ¶
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) ExchangeNameCandles ¶
ExchangeNameCandles retrieves all the candle's Candles with an executor via exchange_name_id column.
func (*Exchange) ExchangeNameWithdrawalHistories ¶
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 ¶
Reload refetches the object from the database using the primary keys with an executor.
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.
func (*Exchange) Upsert ¶
func (o *Exchange) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExchangeHook ¶
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 null.Time `boil:"last_executed_at" json:"last_executed_at,omitempty" toml:"last_executed_at" yaml:"last_executed_at,omitempty"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` 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 ¶
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 ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Script) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Script) RemoveScriptExecutions ¶
func (o *Script) RemoveScriptExecutions(ctx context.Context, exec boil.ContextExecutor, related ...*ScriptExecution) error
RemoveScriptExecutions relationships from objects passed in. Removes related items from R.ScriptExecutions (uses pointer comparison, removal does not keep order) Sets related.R.Script.
func (*Script) ScriptExecutions ¶
ScriptExecutions retrieves all the script_execution's ScriptExecutions with an executor.
func (*Script) SetScriptExecutions ¶
func (o *Script) SetScriptExecutions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ScriptExecution) error
SetScriptExecutions removes all previously related items of the script replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Script's ScriptExecutions accordingly. Replaces o.R.ScriptExecutions with related. Sets related.R.Script's ScriptExecutions accordingly.
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.
func (*Script) Upsert ¶
func (o *Script) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ScriptExecution ¶
type ScriptExecution struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` ScriptID null.String `boil:"script_id" json:"script_id,omitempty" toml:"script_id" yaml:"script_id,omitempty"` 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 time.Time `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 string, 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 ¶
func (o *ScriptExecution) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ScriptExecution) RemoveScript ¶
func (o *ScriptExecution) RemoveScript(ctx context.Context, exec boil.ContextExecutor, related *Script) error
RemoveScript relationship. Sets o.R.Script to nil. Removes o from all passed in related items' relationships struct (Optional).
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.
func (*ScriptExecution) Upsert ¶
func (o *ScriptExecution) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type 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 ¶
func (o ScriptExecutionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ScriptExecutionSlice) ReloadAll ¶
func (o *ScriptExecutionSlice) 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 (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 ¶
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"` WithdrawalCryptoID null.String `` /* 131-byte string literal not displayed */ 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"` 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 ¶
func (o *WithdrawalCrypto) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
func (o *WithdrawalCrypto) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*WithdrawalCrypto) RemoveWithdrawalCrypto ¶
func (o *WithdrawalCrypto) RemoveWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, related *WithdrawalHistory) error
RemoveWithdrawalCrypto relationship. Sets o.R.WithdrawalCrypto to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*WithdrawalCrypto) SetWithdrawalCrypto ¶
func (o *WithdrawalCrypto) SetWithdrawalCrypto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *WithdrawalHistory) error
SetWithdrawalCrypto of the withdrawalCrypto to the related item. Sets o.R.WithdrawalCrypto to related. Adds o to related.R.WithdrawalCryptoWithdrawalCryptos.
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) Upsert ¶
func (o *WithdrawalCrypto) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*WithdrawalCrypto) WithdrawalCrypto ¶
func (o *WithdrawalCrypto) WithdrawalCrypto(mods ...qm.QueryMod) withdrawalHistoryQuery
WithdrawalCrypto 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 ¶
func (o WithdrawalCryptoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*WithdrawalCryptoSlice) ReloadAll ¶
func (o *WithdrawalCryptoSlice) 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 (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"` WithdrawalFiatID null.String `boil:"withdrawal_fiat_id" json:"withdrawal_fiat_id,omitempty" toml:"withdrawal_fiat_id" yaml:"withdrawal_fiat_id,omitempty"` 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"` 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) RemoveWithdrawalFiat ¶
func (o *WithdrawalFiat) RemoveWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, related *WithdrawalHistory) error
RemoveWithdrawalFiat relationship. Sets o.R.WithdrawalFiat to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*WithdrawalFiat) SetWithdrawalFiat ¶
func (o *WithdrawalFiat) SetWithdrawalFiat(ctx context.Context, exec boil.ContextExecutor, insert bool, related *WithdrawalHistory) error
SetWithdrawalFiat of the withdrawalFiat to the related item. Sets o.R.WithdrawalFiat to related. Adds o to related.R.WithdrawalFiatWithdrawalFiats.
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) Upsert ¶
func (o *WithdrawalFiat) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*WithdrawalFiat) WithdrawalFiat ¶
func (o *WithdrawalFiat) WithdrawalFiat(mods ...qm.QueryMod) withdrawalHistoryQuery
WithdrawalFiat 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 ¶
func (o WithdrawalFiatSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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"` 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 int `boil:"withdraw_type" json:"withdraw_type" toml:"withdraw_type" yaml:"withdraw_type"` 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"` ExchangeNameID string `boil:"exchange_name_id" json:"exchange_name_id" toml:"exchange_name_id" yaml:"exchange_name_id"` 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) AddWithdrawalCryptoWithdrawalCryptos ¶
func (o *WithdrawalHistory) AddWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*WithdrawalCrypto) error
AddWithdrawalCryptoWithdrawalCryptos adds the given related objects to the existing relationships of the withdrawal_history, optionally inserting them as new records. Appends related to o.R.WithdrawalCryptoWithdrawalCryptos. Sets related.R.WithdrawalCrypto appropriately.
func (*WithdrawalHistory) AddWithdrawalFiatWithdrawalFiats ¶
func (o *WithdrawalHistory) AddWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*WithdrawalFiat) error
AddWithdrawalFiatWithdrawalFiats adds the given related objects to the existing relationships of the withdrawal_history, optionally inserting them as new records. Appends related to o.R.WithdrawalFiatWithdrawalFiats. Sets related.R.WithdrawalFiat appropriately.
func (*WithdrawalHistory) Delete ¶
func (o *WithdrawalHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
func (o *WithdrawalHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*WithdrawalHistory) RemoveWithdrawalCryptoWithdrawalCryptos ¶
func (o *WithdrawalHistory) RemoveWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, related ...*WithdrawalCrypto) error
RemoveWithdrawalCryptoWithdrawalCryptos relationships from objects passed in. Removes related items from R.WithdrawalCryptoWithdrawalCryptos (uses pointer comparison, removal does not keep order) Sets related.R.WithdrawalCrypto.
func (*WithdrawalHistory) RemoveWithdrawalFiatWithdrawalFiats ¶
func (o *WithdrawalHistory) RemoveWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, related ...*WithdrawalFiat) error
RemoveWithdrawalFiatWithdrawalFiats relationships from objects passed in. Removes related items from R.WithdrawalFiatWithdrawalFiats (uses pointer comparison, removal does not keep order) Sets related.R.WithdrawalFiat.
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) SetWithdrawalCryptoWithdrawalCryptos ¶
func (o *WithdrawalHistory) SetWithdrawalCryptoWithdrawalCryptos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*WithdrawalCrypto) error
SetWithdrawalCryptoWithdrawalCryptos removes all previously related items of the withdrawal_history replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.WithdrawalCrypto's WithdrawalCryptoWithdrawalCryptos accordingly. Replaces o.R.WithdrawalCryptoWithdrawalCryptos with related. Sets related.R.WithdrawalCrypto's WithdrawalCryptoWithdrawalCryptos accordingly.
func (*WithdrawalHistory) SetWithdrawalFiatWithdrawalFiats ¶
func (o *WithdrawalHistory) SetWithdrawalFiatWithdrawalFiats(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*WithdrawalFiat) error
SetWithdrawalFiatWithdrawalFiats removes all previously related items of the withdrawal_history replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.WithdrawalFiat's WithdrawalFiatWithdrawalFiats accordingly. Replaces o.R.WithdrawalFiatWithdrawalFiats with related. Sets related.R.WithdrawalFiat's WithdrawalFiatWithdrawalFiats accordingly.
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) Upsert ¶
func (o *WithdrawalHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*WithdrawalHistory) WithdrawalCryptoWithdrawalCryptos ¶
func (o *WithdrawalHistory) WithdrawalCryptoWithdrawalCryptos(mods ...qm.QueryMod) withdrawalCryptoQuery
WithdrawalCryptoWithdrawalCryptos retrieves all the withdrawal_crypto's WithdrawalCryptos with an executor via withdrawal_crypto_id column.
func (*WithdrawalHistory) WithdrawalFiatWithdrawalFiats ¶
func (o *WithdrawalHistory) WithdrawalFiatWithdrawalFiats(mods ...qm.QueryMod) withdrawalFiatQuery
WithdrawalFiatWithdrawalFiats retrieves all the withdrawal_fiat's WithdrawalFiats with an executor via withdrawal_fiat_id column.
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 ¶
func (o WithdrawalHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*WithdrawalHistorySlice) ReloadAll ¶
func (o *WithdrawalHistorySlice) 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 (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.