database

package
v0.0.0-...-711673d Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTx

func ExecuteTx(ctx context.Context, db *gorm.DB, fn func(*gorm.DB) error) error

func InitDatabase

func InitDatabase(cfg config.Configuration, name string) (*gorm.DB, error)

func RunSQLScripts

func RunSQLScripts(db *gorm.DB, dirPath string) error

Types

type TelemetryPlugin

type TelemetryPlugin struct{}

func (*TelemetryPlugin) Initialize

func (tp *TelemetryPlugin) Initialize(db *gorm.DB) (err error)

func (*TelemetryPlugin) Name

func (tp *TelemetryPlugin) Name() string

Jump to

Keyboard shortcuts

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