Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 Changes in this version + const DefaultLockLeaseAge + func InitDb(user, password, host, port, dbName string, migrateLock bool) (*gorm.DB, error) + func InitDbByDsn(dsn string, migrateLock bool) (*gorm.DB, error) + type Locker interface + Lock func() + UnLock func() + func NewDbLocker(db *gorm.DB, holder string, lease time.Duration) Locker Other modules containing this package chainmaker.org/chainmaker/sdk-go/v2