importer

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImportCmd

func NewImportCmd(ctx context.Context, streams streams.IO) *cobra.Command

NewImportCmd configures a new cobra command that imports data from postgres

Types

type Options

type Options struct {
	streams.IO
	options.PostgresOptions
	options.SpiceDBOptions
	options.ConfigOptions

	DryRun       bool
	AppendSchema bool

	AppendSchemaWriter write.AppendSchemaWriter
	RelationshipWriter write.RelationshipWriter
}

Options holds options for the import command

func NewOptions

func NewOptions(ioStreams streams.IO) *Options

NewOptions returns initialized Options

func (*Options) Complete

func (o *Options) Complete(ctx context.Context, args []string) error

Complete fills out default values before running

func (*Options) Run

func (o *Options) Run(ctx context.Context) error

Run runs the command configured by Options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL