ch

package
v0.19.915 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllModels

func AllModels() []any

func AsCH

func AsCH(f any) any

func New

func New(params Params, lc fx.Lifecycle) (*gorm.DB, error)

func NewCHMigrator

func NewCHMigrator(p ChParams, lc fx.Lifecycle) *migrations.Migrator

Types

type ChParams

type ChParams struct {
	fx.In

	Migrations   *chmigrations.Migrations
	MigrationsDB *gorm.DB `name:"psql"`
	DB           *gorm.DB `name:"ch"`

	L             *zap.Logger
	Cfg           *internal.Config
	MetricsWriter metrics.Writer
}

type Params

type Params struct {
	fx.In

	V              *validator.Validate
	L              zapgorm2.Logger
	Cfg            *internal.Config
	MetricsWriter  metrics.Writer
	QueryCollector *querycollector.Collector
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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