MCPcopy
hub / github.com/PeerDB-io/peerdb / cdcJobEntryExists

Method cdcJobEntryExists

flow/cmd/handler.go:81–85  ·  view source on GitHub ↗
(ctx context.Context, flowJobName string)

Source from the content-addressed store, hash-verified

79}
80
81func (h *FlowRequestHandler) cdcJobEntryExists(ctx context.Context, flowJobName string) (bool, error) {
82 var exists bool
83 err := h.pool.QueryRow(ctx, `SELECT EXISTS(SELECT 1 FROM flows WHERE name = $1)`, flowJobName).Scan(&exists)
84 return exists, err
85}
86
87func (h *FlowRequestHandler) createCdcJobEntry(ctx context.Context,
88 connectionConfigs *protos.FlowConnectionConfigsCore, workflowID string, idempotent bool,

Callers 1

CreateCDCFlowMethod · 0.95

Calls 2

ScanMethod · 0.45
QueryRowMethod · 0.45

Tested by

no test coverage detected