cockroach

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &bootstrap.Module{
	Name:       "cockroach",
	Precedence: bootstrap.DatabasePrecedence,
	Options: []fx.Option{
		fx.Provide(newAnnotatedGormDbCreator()),
	},
	Modules: []*bootstrap.Module{
		postgresql.Module,
	},
}

Functions

func NewGormDbCreator

func NewGormDbCreator(properties data.DataProperties) data.DbCreator

func Use

func Use()

Types

type GormDbCreator

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

func (*GormDbCreator) CreateDatabaseIfNotExist

func (g *GormDbCreator) CreateDatabaseIfNotExist(ctx context.Context, db *gorm.DB) error

func (*GormDbCreator) Order

func (g *GormDbCreator) Order() int

Jump to

Keyboard shortcuts

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