MCPcopy Create free account
hub / github.com/dolthub/doltgresql / replicateQuery

Method replicateQuery

server/logrepl/replication.go:418–422  ·  view source on GitHub ↗

replicateQuery executes the query provided on the replica connection

(replicationConn *pgx.Conn, query string)

Source from the content-addressed store, hash-verified

416
417// replicateQuery executes the query provided on the replica connection
418func (r *LogicalReplicator) replicateQuery(replicationConn *pgx.Conn, query string) error {
419 log.Printf("replicating query: %s", query)
420 _, err := replicationConn.Exec(context.Background(), query)
421 return err
422}
423
424// beginReplication starts a new replication connection to the primary server and returns it. The LSN provided is the
425// last one we have confirmed that we flushed to disk.

Callers 1

processMessageMethod · 0.95

Calls 2

PrintfMethod · 0.80
ExecMethod · 0.80

Tested by

no test coverage detected