tools

package
v0.0.0-...-58bd1cf Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSchema

func GenerateSchema(outfile string) error

func MigrateSchemas

func MigrateSchemas(schemas ...string) error

Types

type GormSQLPrinter

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

func (*GormSQLPrinter) Error

func (gsp *GormSQLPrinter) Error(ctx context.Context, msg string, data ...any)

Error print error messages

func (*GormSQLPrinter) Info

func (gsp *GormSQLPrinter) Info(ctx context.Context, msg string, data ...any)

Info print info

func (*GormSQLPrinter) LogMode

func (gsp *GormSQLPrinter) LogMode(level logger.LogLevel) logger.Interface

LogMode log mode

func (*GormSQLPrinter) ParamsFilter

func (gsp *GormSQLPrinter) ParamsFilter(ctx context.Context, sql string, params ...any) (string, []any)

Trace print sql message

func (*GormSQLPrinter) Printf

func (gsp *GormSQLPrinter) Printf(msg string, data ...any)

func (*GormSQLPrinter) SQL

func (gsp *GormSQLPrinter) SQL() string

func (*GormSQLPrinter) Trace

func (gsp *GormSQLPrinter) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)

Trace print sql message

func (*GormSQLPrinter) Warn

func (gsp *GormSQLPrinter) Warn(ctx context.Context, msg string, data ...any)

Warn print warn messages

Jump to

Keyboard shortcuts

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