forked from ebhomengo/niki
43 lines
1.3 KiB
Go
43 lines
1.3 KiB
Go
|
// Copyright 2012 James Cooper. All rights reserved.
|
||
|
// Use of this source code is governed by a MIT-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package gorp
|
||
|
|
||
|
//++ TODO v2-phase3: HasPostGet => PostGetter, HasPostDelete => PostDeleter, etc.
|
||
|
|
||
|
// HasPostGet provides PostGet() which will be executed after the GET statement.
|
||
|
type HasPostGet interface {
|
||
|
PostGet(SqlExecutor) error
|
||
|
}
|
||
|
|
||
|
// HasPostDelete provides PostDelete() which will be executed after the DELETE statement
|
||
|
type HasPostDelete interface {
|
||
|
PostDelete(SqlExecutor) error
|
||
|
}
|
||
|
|
||
|
// HasPostUpdate provides PostUpdate() which will be executed after the UPDATE statement
|
||
|
type HasPostUpdate interface {
|
||
|
PostUpdate(SqlExecutor) error
|
||
|
}
|
||
|
|
||
|
// HasPostInsert provides PostInsert() which will be executed after the INSERT statement
|
||
|
type HasPostInsert interface {
|
||
|
PostInsert(SqlExecutor) error
|
||
|
}
|
||
|
|
||
|
// HasPreDelete provides PreDelete() which will be executed before the DELETE statement.
|
||
|
type HasPreDelete interface {
|
||
|
PreDelete(SqlExecutor) error
|
||
|
}
|
||
|
|
||
|
// HasPreUpdate provides PreUpdate() which will be executed before UPDATE statement.
|
||
|
type HasPreUpdate interface {
|
||
|
PreUpdate(SqlExecutor) error
|
||
|
}
|
||
|
|
||
|
// HasPreInsert provides PreInsert() which will be executed before INSERT statement.
|
||
|
type HasPreInsert interface {
|
||
|
PreInsert(SqlExecutor) error
|
||
|
}
|