Documentation ¶
Index ¶
Constants ¶
View Source
const (
MyUserTableName = "my_user"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyUser ¶
type MyUser struct { UserId string `json:"userId" gorm:"type:varchar(200);primaryKey" form:"userId"` Name string `json:"name" gorm:"type:varchar(200);not null" form:"name"` NumOfTried optimisticlock.Version `json:"version" gorm:"index"` Created time.Time `json:"created" gorm:"autoCreateTime"` Updated time.Time `json:"updated" gorm:"autoUpdateTime"` Deleted gorm.DeletedAt `json:"deleted" gorm:"index"` }
func GetMyUserForUpdateInTxn ¶
func (*MyUser) InsertMyUserInTxn ¶
Click to show internal directories.
Click to hide internal directories.