Documentation ¶
Index ¶
- Variables
- func CombineColCollections(ctx context.Context, root *doltdb.RootValue, ...) (schema.Schema, errhand.VerboseError)
- func ValidateTableNameForCreate(tableName string) errhand.VerboseError
- type ExportCmd
- func (cmd ExportCmd) ArgParser() *argparser.ArgParser
- func (cmd ExportCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd ExportCmd) Description() string
- func (cmd ExportCmd) EventType() eventsapi.ClientEventType
- func (cmd ExportCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd ExportCmd) Name() string
- type ImportCmd
- func (cmd ImportCmd) ArgParser() *argparser.ArgParser
- func (cmd ImportCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd ImportCmd) Description() string
- func (cmd ImportCmd) EventType() eventsapi.ClientEventType
- func (cmd ImportCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd ImportCmd) Name() string
- type SchImportOp
- type ShowCmd
- func (cmd ShowCmd) ArgParser() *argparser.ArgParser
- func (cmd ShowCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd ShowCmd) Description() string
- func (cmd ShowCmd) EventType() eventsapi.ClientEventType
- func (cmd ShowCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd ShowCmd) Name() string
- type TagsCmd
Constants ¶
This section is empty.
Variables ¶
var Commands = cli.NewSubCommandHandler("schema", "Commands for showing and importing table schemas.", []cli.Command{ ExportCmd{}, ImportCmd{}, ShowCmd{}, TagsCmd{}, })
var MappingFileHelp = "A mapping file is json in the format:" + `
{
"source_field_name":"dest_field_name"
...
}
where source_field_name is the name of a field in the file being imported and dest_field_name is the name of a field in the table being imported to.
`
Functions ¶
func CombineColCollections ¶
func CombineColCollections(ctx context.Context, root *doltdb.RootValue, inferredCols *schema.ColCollection, impOpts *importOptions) (schema.Schema, errhand.VerboseError)
func ValidateTableNameForCreate ¶
func ValidateTableNameForCreate(tableName string) errhand.VerboseError
ValidateTableNameForCreate validates the given table name for creation as a user table, returning an error if the table name is not valid.
Types ¶
type ExportCmd ¶
type ExportCmd struct{}
func (ExportCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (ExportCmd) Description ¶
Description returns a description of the command
func (ExportCmd) EventType ¶
func (cmd ExportCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type ImportCmd ¶
type ImportCmd struct{}
func (ImportCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (ImportCmd) Description ¶
Description returns a description of the command
func (ImportCmd) EventType ¶
func (cmd ImportCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type ShowCmd ¶
type ShowCmd struct{}
func (ShowCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (ShowCmd) Description ¶
Description returns a description of the command
func (ShowCmd) EventType ¶
func (cmd ShowCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type TagsCmd ¶
type TagsCmd struct{}