Method | Description | |
---|---|---|
clear ( ) | Clears all callbacks | |
execute ( $sql, $executor ) : result | Executes the query through the internal filters and executor | |
onError ( $callback ) | Attach an error handler, gets called with the exception, return ignored | |
onQuery ( $callback ) | Attach an intercepting filter, gets called with query, returns query | |
onResult ( $callback ) | Attach an results filter, gets called with the query, result and the time taken, returns result |
public execute ( $sql, $executor ) : result | ||
return | result | set of some sort |
public onError ( $callback ) |
public onQuery ( $callback ) |
public onResult ( $callback ) |