wgorm

package
v0.0.0-...-2e0c1f2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 6 Imported by: 0

README

wredis

Environment Variables

  • REDIS_URL, redis url

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB(ctx context.Context, altKeys ...string) *gorm.DB

DB get previously injected gorm.DB

func Installer

func Installer(opts ...Option) wext.Installer

Installer create wext.Installer

Types

type Option

type Option = func(opts *options)

Option option for installation

func WithDebug

func WithDebug(d bool) Option

WithDebug set debug

func WithGORMOptions

func WithGORMOptions(os ...gorm.Option) Option

WithGORMOptions add gorm.Option

func WithMySQLConfig

func WithMySQLConfig(cfg *mysql.Config) Option

WithMySQLConfig set MySQL config

func WithMySQLDSN

func WithMySQLDSN(k string) Option

WithMySQLDSN set MySQL DSN

func WithTracingOptions

func WithTracingOptions(os ...otelgorm.Option) Option

WithTracingOptions add otelgorm.Option

Jump to

Keyboard shortcuts

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