Describe the feature

import bigdata from files using STDIN

Motivation

Database usually located in docker container. I have no access to file system in docker container.

// import CSV from stdin
if err := db.Exec("COPY bigdata (key, value) FROM STDIN (FORCE_NOT_NULL(key, value), DELIMITER ',', FORMAT csv);").Error; err != nil {
    return err
}

Is it possible to wrap stdin to use with io.ByteReader ?

Related Issues

Comment From: github-actions[bot]

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days