entity

package
v0.0.0-...-b784633 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnName

func ColumnName[T any](tx *gorm.DB, name string) string

func ParseClause

func ParseClause[T any](tx *gorm.DB, clause entity.Clause) *gorm.DB

Types

type GORMMigrator

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

func NewGORMMigrator

func NewGORMMigrator(options GORMMigratorOptions) *GORMMigrator

func (GORMMigrator) Migrate

func (m GORMMigrator) Migrate(models []any) error

type GORMMigratorOptions

type GORMMigratorOptions struct {
	DB     *gorm.DB
	Logger *zerolog.Logger
}

Jump to

Keyboard shortcuts

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