mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-01-18 08:54:26 +00:00
Updated logging, added getRowNumber and a few more
This commit is contained in:
@@ -27,6 +27,9 @@ const (
|
||||
// Delete operation hooks
|
||||
BeforeDelete HookType = "before_delete"
|
||||
AfterDelete HookType = "after_delete"
|
||||
|
||||
// Scan/Execute operation hooks
|
||||
BeforeScan HookType = "before_scan"
|
||||
)
|
||||
|
||||
// HookContext contains all the data available to a hook
|
||||
@@ -46,6 +49,10 @@ type HookContext struct {
|
||||
Error error // For after hooks
|
||||
QueryFilter string // For read operations
|
||||
|
||||
// Query chain - allows hooks to modify the query before execution
|
||||
// Can be SelectQuery, InsertQuery, UpdateQuery, or DeleteQuery
|
||||
Query interface{}
|
||||
|
||||
// Response writer - allows hooks to modify response
|
||||
Writer common.ResponseWriter
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user