github.com/jackc/pgx/v4.copyFrom.conn (field)
10 uses
github.com/jackc/pgx/v4 (current package)
copy_from.go#L84: conn *Conn
copy_from.go#L102: sd, err := ct.conn.Prepare(ctx, "", fmt.Sprintf("select %s from %s", quotedColumnNames, quotedTableName))
copy_from.go#L114: buf := ct.conn.wbuf
copy_from.go#L150: commandTag, err := ct.conn.pgConn.CopyFrom(ctx, r, fmt.Sprintf("copy %s ( %s ) from stdin binary;", quotedTableName, quotedColumnNames))
copy_from.go#L157: if ct.conn.shouldLog(LogLevelInfo) {
copy_from.go#L159: ct.conn.log(ctx, LogLevelInfo, "CopyFrom", map[string]interface{}{"tableName": ct.tableName, "columnNames": ct.columnNames, "time": endTime.Sub(startTime), "rowCount": rowsAffected})
copy_from.go#L161: } else if ct.conn.shouldLog(LogLevelError) {
copy_from.go#L162: ct.conn.log(ctx, LogLevelError, "CopyFrom", map[string]interface{}{"err": err, "tableName": ct.tableName, "columnNames": ct.columnNames})
copy_from.go#L181: buf, err = encodePreparedStatementArgument(ct.conn.connInfo, buf, sd.Fields[i].DataTypeOID, val)
copy_from.go#L203: conn: c,
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |