Documentation ¶
Index ¶
- type AvailableExtension
- type Config
- type Orm
- func (o *Orm) Check() (err error)
- func (o *Orm) CheckAvailableExtension(extName string) (exist bool)
- func (o *Orm) CheckExtensions() (err error)
- func (o *Orm) CheckInstalledExtension(extName string) (exist bool)
- func (o *Orm) DB() *sql.DB
- func (o Orm) ExtTimescaledbEnabled() bool
- func (o *Orm) Ping() (latency float64, err error)
- func (o *Orm) Shutdown() (err error)
- func (o *Orm) Start() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailableExtension ¶ added in v0.5.0
type AvailableExtension struct { Name string `json:"name"` DefaultVersion string `json:"default_version"` InstalledVersion *string `json:"installed_version"` Comment string `json:"comment"` }
AvailableExtension ...
type Config ¶ added in v0.5.0
type Config struct { Alias string Name string User string Password string Host string Port string Debug bool MaxIdleConns int MaxOpenConns int ConnMaxLifeTime int }
Config ...
type Orm ¶
type Orm struct {
// contains filtered or unexported fields
}
Orm ...
func (*Orm) CheckAvailableExtension ¶ added in v0.12.0
func (*Orm) CheckExtensions ¶ added in v0.12.0
func (*Orm) CheckInstalledExtension ¶ added in v0.12.0
func (Orm) ExtTimescaledbEnabled ¶ added in v0.5.0
ExtTimescaledbEnabled ...
Click to show internal directories.
Click to hide internal directories.