Documentation ¶
Index ¶
- Constants
- func CreateTriggerFunction(ctx context.Context, db *sql.DB) error
- func GetChangesLogs(ls *pq.Listener) <-chan *Response
- func Listen(ls *pq.Listener) error
- func SetupEverything(ctx context.Context, dbConfig string) (*pq.Listener, error)
- func TriggerAllTables(ctx context.Context, db *sql.DB) error
- func TriggerSomeTables(ctx context.Context, db *sql.DB, tables []*Table) error
- func Unlisten(ls *pq.Listener) error
- type Response
- type Table
Constants ¶
View Source
const ( ListenEvent = `event` TriggerFunction = `notifier` Trigger = `notifier_trigger` )
Trigger Details
Variables ¶
This section is empty.
Functions ¶
func CreateTriggerFunction ¶
CreateTriggerFunction creates triggered function
func GetChangesLogs ¶
GetChangesLogs gets the changes log
func SetupEverything ¶
SetupEverything sets everything up for the whole database to notify logs
func TriggerAllTables ¶
TriggerAllTables adds triggers to all the tables in the connected database
func TriggerSomeTables ¶
TriggerSomeTables adds triggers to the provided tables
Types ¶
Click to show internal directories.
Click to hide internal directories.