CopyFromSource is the interface used by [Conn.CopyFrom] as the source for copy data.
| 93 | |
| 94 | // CopyFromSource is the interface used by [Conn.CopyFrom] as the source for copy data. |
| 95 | type CopyFromSource interface { |
| 96 | // Next returns true if there is another row and makes the next row data |
| 97 | // available to Values(). When there are no more rows available or an error |
| 98 | // has occurred it returns false. |
| 99 | Next() bool |
| 100 | |
| 101 | // Values returns the values for the current row. |
| 102 | Values() ([]any, error) |
| 103 | |
| 104 | // Err returns any error that has been encountered by the CopyFromSource. If |
| 105 | // this is not nil *Conn.CopyFrom will abort the copy. |
| 106 | Err() error |
| 107 | } |
| 108 | |
| 109 | type copyFrom struct { |
| 110 | conn *Conn |
no outgoing calls
no test coverage detected