Help us shape the future of Go! Take the 2026 Go Developer Survey

gormadapter

package
v0.57.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package gormadapter bridges a Mysql transaction to a gorm instance. It lives in its own package so importing db/sql/mysql does not drag gorm.io/gorm into the dependency closure; only callers that actually need gorm import this.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMysqlGorm

func NewMysqlGorm(ctx context.Context, le *logrus.Entry, tx *mysql.Tx, conf *gorm.Config, dsn string) (*gorm.DB, *sql.DB, error)

NewMysqlGorm constructs a gorm instance from a Mysql transaction. dsn allows specifying the database name and/or other parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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