Documentation ¶
Index ¶
- Variables
- type DataSourceTypeName
- type Option
- func SetConnMaxIdleTime(maxIdleTime time.Duration) Option
- func SetConnMaxLifetime(maxlifetime time.Duration) Option
- func SetLogLevel(logLevel logger.LogLevel) Option
- func SetLogger(logger logger.Interface) Option
- func SetMaxIdleConns(maxIdleConns int) Option
- func SetMaxOpenConns(maxOpenConns int) Option
- type OptionFunc
- type Proof
- type SQLStore
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations = []*gormigrate.Migration{
v202311021600,
}
Migrations is a collection of storage migration patterns
Functions ¶
This section is empty.
Types ¶
type DataSourceTypeName ¶
type DataSourceTypeName string
const ( Mysql DataSourceTypeName = "mysql" Postgresql DataSourceTypeName = "postgres" Sqlite DataSourceTypeName = "sqlite" )
type Option ¶
An Option configures a gorm.DB
func SetConnMaxIdleTime ¶
func SetConnMaxLifetime ¶
func SetLogLevel ¶
func SetMaxIdleConns ¶
func SetMaxOpenConns ¶
type OptionFunc ¶
OptionFunc is a function that configures a gorm.DB
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
SQLStore implements store.Store.
func (*SQLStore) CountAccountAssetProofs ¶
CountAccountAssetProofs implements store.Store.
func (*SQLStore) GetAccountAssetProof ¶
func (s *SQLStore) GetAccountAssetProof(address types.AccAddress, symbol string) (*store.Proof, error)
GetAccountProof implements store.Store.
Click to show internal directories.
Click to hide internal directories.