Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DB gorm.DB
)
Functions ¶
Types ¶
type GormController ¶
type GormController struct { *revel.Controller // contains filtered or unexported fields }
func (*GormController) Commit ¶
func (c *GormController) Commit() revel.Result
リクエスト終了時にトランザクションを確定する
func (*GormController) Rollback ¶
func (c *GormController) Rollback() revel.Result
異常時にトランザクションを破棄する
Click to show internal directories.
Click to hide internal directories.