jackc / jackc/pgx

How to call pgx.Tx CopyFrom with sql.Tx

Open
#1,904 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14.3k
Forks
1.1k
Avg merge
6d 9h
Merged PRs (30d)
11

Description

pgx.Tx supports CopyFrom but there seems to be no way to use it from sql driver. Raw call will only produce pgx.Conn object but I don't see a way to call CopyFrom via sql.Tx

Contributor guide

Open the contributing guide

Research direction

Start by reading the pgx.Tx, pgx.Conn, and sql.Tx APIs and how the SQL driver exposes raw connections. Determine whether CopyFrom can be supported through sql.Tx or requires a new integration boundary; done means documenting the supported path or defining the required API change.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.