Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for GORM V2 #30

Open
ggrant005 opened this issue Jun 22, 2022 · 1 comment
Open

Support for GORM V2 #30

ggrant005 opened this issue Jun 22, 2022 · 1 comment

Comments

@ggrant005
Copy link

ggrant005 commented Jun 22, 2022

Any plans to update for use with GORM V2? The Open function has a bit different usage than V1.

@myzhan
Copy link

myzhan commented Oct 8, 2023

I'm using it with gorm v2.

conn, _ := sql.Open(mocket.DriverName, "mockdsn")
db, err = gorm.Open(mysql.New(mysql.Config{
		Conn:                      conn,
		SkipInitializeWithVersion: true,
}))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants