Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInserted = errors.New("not inserted record to db")
View Source
var Select = squirrel.Select
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// todo in real world array of hosts or slaves or other // can use Consul hook
Host string
Port int
Username string
Password string
Database string
IsEnableValidationForRepoNames bool `yaml:"IsEnableValidationForRepoNames"`
IsEnableReposStructCache bool `yaml:"IsEnableReposStructCache"`
Placeholder string `yaml:"placeholder"`
MaxTryConnect int `yaml:"maxTryConnect"`
TimeoutTryConnect string `yaml:"timeoutTryConnect"`
Options Options
}
Config - config of storage.
func (Config) CustomConfig ¶
func (Config) IsEnableReposCache ¶
func (Config) IsEnableValidationRepoNames ¶
func (Config) PlaceholderFormat ¶
func (c Config) PlaceholderFormat() squirrel.PlaceholderFormat
type Connector ¶
type Connector = db.Connector[CustomDbConfig]
Connector - instanced by Config type Connector generic interface
type CursorPaginationParams ¶
type CursorPaginationParams = db.CursorPaginationParams
CursorPaginationParams alias of CursorPaginationParams.
type CustomDbConfig ¶
type SelectBuilder ¶
type SelectBuilder = db.SelectBuilder
SelectBuilder alias of squirrel.SelectBuilder.
type Storage ¶
type Storage = _Storage[CustomDbConfig]
Storage - instanced by Config type Storage generic interface
Click to show internal directories.
Click to hide internal directories.