mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-21 07:28:26 +03:00
18 lines
324 B
Go
18 lines
324 B
Go
|
package seed
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
|
||
|
"github.com/hasura/graphql-engine/cli/internal/hasura"
|
||
|
)
|
||
|
|
||
|
type sendBulk func([]hasura.RequestBody) (io.Reader, error)
|
||
|
type Driver struct {
|
||
|
SendBulk sendBulk
|
||
|
PGDumpClient hasura.PGDump
|
||
|
}
|
||
|
|
||
|
func NewDriver(s sendBulk, pgDumpClient hasura.PGDump) *Driver {
|
||
|
return &Driver{s, pgDumpClient}
|
||
|
}
|