Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSeedFile ¶
func CreateSeedFile(fs afero.Fs, opts CreateSeedOpts) (*string, error)
CreateSeedFile creates a .sql file according to the arguments it'll return full filepath and an error if any
func IsSeedsSupported ¶
func IsSeedsSupported(kind hasura.SourceKind) bool
Types ¶
type CreateSeedOpts ¶
type CreateSeedOpts struct {
UserProvidedSeedName string
// DirectoryPath in which seed file should be created
DirectoryPath string
Data io.Reader
Database string
}
CreateSeedOpts has the list of options required to create a seed file
Click to show internal directories.
Click to hide internal directories.