sql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const NanosecondsPerMillisecond = 1e6

Variables

This section is empty.

Functions

func CloseDatabase

func CloseDatabase(gormDatabase *gorm.DB) error

func NewDatabase

func NewDatabase(ctx context.Context, storeURL string) (*gorm.DB, error)

func NewLoggerAdaptor

func NewLoggerAdaptor(l *logrus.Logger, cfg LoggerAdaptorConfig) logger.Interface

NewLoggerAdaptor creates a new logger adaptor.

Types

type LoggerAdaptorConfig

type LoggerAdaptorConfig struct {
	SlowThreshold             time.Duration
	IgnoreRecordNotFoundError bool
	ParameterizedQueries      bool
}

Jump to

Keyboard shortcuts

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