Documentation ¶
Index ¶
- func ContextWith(ctx context.Context, db *gorm.DB) context.Context
- func ContextWithNewDB(ctx context.Context, commandPath string, createDBFunc func() error) (context.Context, error)
- func Delete(ctx context.Context) error
- func FromContext(ctx context.Context) *gorm.DB
- func Ignore(commandPath func() string)
- func New(ctx context.Context) *gorm.DB
- func TableName(db *gorm.DB, model any) string
- type DBConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithNewDB ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.