Documentation ¶
Index ¶
- func Builder(ctx *database.Context) (database.Database, error)
- type Db
- func (db *Db) HasValidator(_ string) (bool, error)
- func (db Db) SaveCode(code types.Code) error
- func (db *Db) SaveCommitSignatures(_ []*juno.CommitSig) error
- func (db Db) SaveContract(contract types.Contract) error
- func (db Db) SaveContractCodeID(contract string, codeID uint64) error
- func (db *Db) SaveMessage(_ *juno.Message) error
- func (db *Db) SaveTx(_ *juno.Tx) error
- func (db *Db) SaveValidators(_ []*juno.Validator) error
- func (db Db) UpdateContractAdmin(contract string, admin string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Db ¶
type Db struct { *postgresql.Database Sqlx *sqlx.DB }
Db represents a PostgreSQL database with expanded features. so that it can properly store posts and other Wasm-related data.
func (*Db) HasValidator ¶
HasValidator overrides postgresql.Database to perform a no-op
func (*Db) SaveCommitSignatures ¶
SaveCommitSignatures overrides postgresql.Database to perform a no-op
func (Db) SaveContract ¶
SaveContract allows to save the given contract into the database.
func (Db) SaveContractCodeID ¶
SaveContractCodeID save new contract CodeID.
func (*Db) SaveMessage ¶
SaveMessage overrides postgresql.Database to perform a no-op
func (*Db) SaveValidators ¶
SaveValidators overrides postgresql.Database to perform a no-op
Click to show internal directories.
Click to hide internal directories.