Documentation ¶
Index ¶
- Constants
- type Fields
- type Index
- type Relation
- type Subscriber
- func (pg *Subscriber) GetAllRecordsForIndex(index *types.Index) <-chan types.Record
- func (pg *Subscriber) GetConditionQuery(index *types.Index) string
- func (pg *Subscriber) GetFullRecordsForIndex(references []string, index *types.Index) <-chan types.Record
- func (pg *Subscriber) GetFullRecordsForRelationUpdate(relationUpdates types.RelationsUpdate, idx *types.Index) <-chan types.Record
- func (pg *Subscriber) GetWhereQuery(index *types.Index) string
- func (pg *Subscriber) Init(config map[string]any)
- func (pg *Subscriber) Listen()
- func (pg *Subscriber) PrepareListen(indices []*types.Index)
- func (pg *Subscriber) Terminate()
- type Wheres
Constants ¶
View Source
const ( ApplicationName = "PgSync_Listener" PoolMinConn = 2 PoolMaxConn = 5 EventName = "pgsync_event" NotifyTriggerFunctionPrefix = "pgsync_trigger" MaxRelationsFilter = 50 SchemaName = "pgsync" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
func (*Index) GetSelectQuery ¶
func (*Index) GetWhereRelationQuery ¶
func (index *Index) GetWhereRelationQuery(relationUpdates types.RelationsUpdate) string
type Relation ¶
func (*Relation) GetLeftJoinField ¶
func (*Relation) GetLeftJoinQuery ¶
func (*Relation) GetReverseSelectQuery ¶
func (*Relation) GetSelectQuery ¶
type Subscriber ¶
type Subscriber struct { subscribers.Subscriber // contains filtered or unexported fields }
func (*Subscriber) GetAllRecordsForIndex ¶
func (pg *Subscriber) GetAllRecordsForIndex(index *types.Index) <-chan types.Record
func (*Subscriber) GetConditionQuery ¶
func (pg *Subscriber) GetConditionQuery(index *types.Index) string
func (*Subscriber) GetFullRecordsForIndex ¶
func (*Subscriber) GetFullRecordsForRelationUpdate ¶
func (pg *Subscriber) GetFullRecordsForRelationUpdate(relationUpdates types.RelationsUpdate, idx *types.Index) <-chan types.Record
func (*Subscriber) GetWhereQuery ¶
func (pg *Subscriber) GetWhereQuery(index *types.Index) string
func (*Subscriber) Init ¶
func (pg *Subscriber) Init(config map[string]any)
func (*Subscriber) Listen ¶
func (pg *Subscriber) Listen()
func (*Subscriber) PrepareListen ¶
func (pg *Subscriber) PrepareListen(indices []*types.Index)
func (*Subscriber) Terminate ¶
func (pg *Subscriber) Terminate()
Click to show internal directories.
Click to hide internal directories.