Documentation
¶
Index ¶
- type BackfillNodeSettingsNetworkParams
- type CommitTimestamp
- type DBTX
- type GetNodeSettingsGatesRow
- type GetNodeSettingsRow
- type InsertNodeSettingsGateIfAbsentParams
- type InsertNodeSettingsParams
- type NodeSetting
- type NodeSettingsGate
- type Querier
- type Queries
- func (q *Queries) BackfillNodeSettingsNetwork(ctx context.Context, arg BackfillNodeSettingsNetworkParams) (int64, error)
- func (q *Queries) GetCommitTimestamp(ctx context.Context) (sql.NullInt64, error)
- func (q *Queries) GetNodeSettings(ctx context.Context) (GetNodeSettingsRow, error)
- func (q *Queries) GetNodeSettingsGates(ctx context.Context) ([]GetNodeSettingsGatesRow, error)
- func (q *Queries) InsertNodeSettings(ctx context.Context, arg InsertNodeSettingsParams) (int64, error)
- func (q *Queries) InsertNodeSettingsGateIfAbsent(ctx context.Context, arg InsertNodeSettingsGateIfAbsentParams) (int64, error)
- func (q *Queries) SetCommitTimestamp(ctx context.Context, timestamp sql.NullInt64) error
- func (q *Queries) UpsertNodeSettingsGate(ctx context.Context, arg UpsertNodeSettingsGateParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpsertNodeSettingsGateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitTimestamp ¶
type GetNodeSettingsGatesRow ¶
type GetNodeSettingsRow ¶
type NodeSetting ¶
type NodeSettingsGate ¶
type Querier ¶
type Querier interface {
BackfillNodeSettingsNetwork(ctx context.Context, arg BackfillNodeSettingsNetworkParams) (int64, error)
GetCommitTimestamp(ctx context.Context) (sql.NullInt64, error)
GetNodeSettings(ctx context.Context) (GetNodeSettingsRow, error)
GetNodeSettingsGates(ctx context.Context) ([]GetNodeSettingsGatesRow, error)
InsertNodeSettings(ctx context.Context, arg InsertNodeSettingsParams) (int64, error)
// INSERT IGNORE, not the ON DUPLICATE KEY UPDATE ... = VALUES(...) pattern
// used above: that pattern always performs an UPDATE, whose RowsAffected is
// ambiguous on a duplicate (0 normally, 1 under the driver's
// CLIENT_FOUND_ROWS mode -- see SetNodeSettings's doc comment for the same
// caveat). INSERT IGNORE either inserts or does nothing; RowsAffected is 1
// or 0 with no such ambiguity, since no UPDATE ever runs.
InsertNodeSettingsGateIfAbsent(ctx context.Context, arg InsertNodeSettingsGateIfAbsentParams) (int64, error)
SetCommitTimestamp(ctx context.Context, timestamp sql.NullInt64) error
UpsertNodeSettingsGate(ctx context.Context, arg UpsertNodeSettingsGateParams) error
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BackfillNodeSettingsNetwork ¶
func (*Queries) GetCommitTimestamp ¶
func (*Queries) GetNodeSettings ¶
func (q *Queries) GetNodeSettings(ctx context.Context) (GetNodeSettingsRow, error)
func (*Queries) GetNodeSettingsGates ¶
func (q *Queries) GetNodeSettingsGates(ctx context.Context) ([]GetNodeSettingsGatesRow, error)
func (*Queries) InsertNodeSettings ¶
func (*Queries) InsertNodeSettingsGateIfAbsent ¶
func (q *Queries) InsertNodeSettingsGateIfAbsent(ctx context.Context, arg InsertNodeSettingsGateIfAbsentParams) (int64, error)
INSERT IGNORE, not the ON DUPLICATE KEY UPDATE ... = VALUES(...) pattern used above: that pattern always performs an UPDATE, whose RowsAffected is ambiguous on a duplicate (0 normally, 1 under the driver's CLIENT_FOUND_ROWS mode -- see SetNodeSettings's doc comment for the same caveat). INSERT IGNORE either inserts or does nothing; RowsAffected is 1 or 0 with no such ambiguity, since no UPDATE ever runs.
func (*Queries) SetCommitTimestamp ¶
func (*Queries) UpsertNodeSettingsGate ¶
func (q *Queries) UpsertNodeSettingsGate(ctx context.Context, arg UpsertNodeSettingsGateParams) error
Click to show internal directories.
Click to hide internal directories.