Began implementing the ORM prototype
* Hooks, query mods, and query * Update and UpdateX
This commit is contained in:
parent
d949f68ed0
commit
d89d23e673
27 changed files with 448 additions and 69 deletions
boil
11
boil/hooks.go
Normal file
11
boil/hooks.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package boil
|
||||
|
||||
// HookPoint is the point in time at which we hook
|
||||
type HookPoint int
|
||||
|
||||
const (
|
||||
HookAfterCreate HookPoint = iota + 1
|
||||
HookAfterUpdate
|
||||
HookBeforeCreate
|
||||
HookBeforeUpdate
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue