Skip to content

Commit

Permalink
Support model events
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbrzzl committed Apr 8, 2023
1 parent ff82643 commit 7593bc4
Show file tree
Hide file tree
Showing 3 changed files with 1,203 additions and 288 deletions.
45 changes: 45 additions & 0 deletions contracts/database/orm/events.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package orm

type Retrieved interface {
Retrieved(Query) error
}

type Creating interface {
Creating(Query) error
}

type Created interface {
Created(Query) error
}

type Updating interface {
Updating(Query) error
}

type Updated interface {
Updated(Query) error
}

type Saving interface {
Saving(Query) error
}

type Saved interface {
Saved(Query) error
}

type Deleting interface {
Deleting(Query) error
}

type Deleted interface {
Deleted(Query) error
}

type ForceDeleting interface {
ForceDeleting(Query) error
}

type ForceDeleted interface {
ForceDeleted(Query) error
}
Loading

0 comments on commit 7593bc4

Please sign in to comment.