MCPcopy
hub / github.com/jackc/pgx / CopyFrom

Method CopyFrom

pgxpool/conn.go:101–103  ·  view source on GitHub ↗
(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource)

Source from the content-addressed store, hash-verified

99}
100
101func (c *Conn) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) {
102 return c.Conn().CopyFrom(ctx, tableName, columnNames, rowSrc)
103}
104
105// Begin starts a transaction block from the *Conn without explicitly setting a transaction mode (see BeginTx with TxOptions if transaction mode is required).
106func (c *Conn) Begin(ctx context.Context) (pgx.Tx, error) {

Callers

nothing calls this directly

Calls 2

ConnMethod · 0.95
CopyFromMethod · 0.65

Tested by

no test coverage detected