orm

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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
	Logger          bool
	MaxIdleConns    int
	MaxOpenConns    int
	ConnMaxLifeTime int
}

Config ...

func (Config) String added in v0.5.0

func (c Config) String() string

String ...

type Orm

type Orm struct {
	// contains filtered or unexported fields
}

Orm ...

func NewOrm

func NewOrm(lc fx.Lifecycle,
	cfg *Config) (orm *Orm, db *gorm.DB, err error)

NewOrm ...

func (*Orm) DB added in v0.5.0

func (o *Orm) DB() *sql.DB

DB ...

func (Orm) ExtTimescaledbEnabled added in v0.5.0

func (o Orm) ExtTimescaledbEnabled() bool

ExtTimescaledbEnabled ...

func (*Orm) Shutdown

func (o *Orm) Shutdown() (err error)

Shutdown ...

func (*Orm) Start added in v0.5.0

func (o *Orm) Start() (err error)

Start ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL