gormTracing icon indicating copy to clipboard operation
gormTracing copied to clipboard

gorm.Session WithConditions 这个配置好像去掉了,是其他配置项代替了吗

Open hubyao opened this issue 4 years ago • 2 comments

gorm.Session WithConditions 这个配置好像去掉了,是其他配置项代替了吗

hubyao avatar Nov 28 '20 07:11 hubyao

应该是的,我去看GORM最新的源码也看不到了,我写文章的时候GORM V2还没发布正式版本,不过影响不大吧。 gorm.go - 0.2.31版本

// Session session config when create session with Session() method
type Session struct {
	DryRun                 bool
	PrepareStmt            bool
	WithConditions         bool
	SkipDefaultTransaction bool
	Context                context.Context
	Logger                 logger.Interface
	NowFunc                func() time.Time
}

avtion avatar Dec 02 '20 04:12 avtion

您好,您的邮件我已收到,我会尽快查收并回复,谢谢 

xiaoliangliu avatar Feb 03 '24 03:02 xiaoliangliu