Commit Graph

1 Commits (2e4ef2f4fa39ceaff290f79a3379cf5570bb49c7)

Author SHA1 Message Date
Jack Christensen 2db04c3a02 Add *Conn.CopyFrom
This replaces *Conn.CopyTo. CopyTo was named incorrectly. In PostgreSQL
COPY FROM is the command that copies from the client to the server. In
addition, CopyTo does not accept a schema qualified table name. This
commit introduces the Identifier type which handles multi-part names and
correctly quotes/sanitizes them. The new CopyFrom method uses this
Identifier type.

Conn.CopyTo is deprecated.

refs #243 and #190
2017-03-10 14:25:39 -06:00