Documentation ¶
Overview ¶
Package tblcmds contains table subcommand command functions for making changes to tables.
The goals of this package are the same as the commands package.
Index ¶
- Variables
- func NameAndTypeTransform(row sql.Row, rowOperationSchema sql.PrimaryKeySchema, ...) (sql.Row, error)
- type CpCmd
- func (cmd CpCmd) ArgParser() *argparser.ArgParser
- func (cmd CpCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd CpCmd) Description() string
- func (cmd CpCmd) EventType() eventsapi.ClientEventType
- func (cmd CpCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd CpCmd) Name() string
- 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 MvCmd
- func (cmd MvCmd) ArgParser() *argparser.ArgParser
- func (cmd MvCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd MvCmd) Description() string
- func (cmd MvCmd) EventType() eventsapi.ClientEventType
- func (cmd MvCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd MvCmd) Name() string
- type RmCmd
- func (cmd RmCmd) ArgParser() *argparser.ArgParser
- func (cmd RmCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd RmCmd) Description() string
- func (cmd RmCmd) EventType() eventsapi.ClientEventType
- func (cmd RmCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd RmCmd) Name() string
Constants ¶
This section is empty.
Variables ¶
var Commands = cli.NewSubCommandHandler("table", "Commands for copying, renaming, deleting, and exporting tables.", []cli.Command{ ImportCmd{}, ExportCmd{}, RmCmd{}, MvCmd{}, CpCmd{}, })
Functions ¶
func NameAndTypeTransform ¶
func NameAndTypeTransform(row sql.Row, rowOperationSchema sql.PrimaryKeySchema, rdSchema sql.PrimaryKeySchema, nameMapper rowconv.NameMapper) (sql.Row, error)
NameAndTypeTransform does 1) match the read and write schema with subsetting and name matching. 2) Address any type inconsistencies.
Types ¶
type CpCmd ¶
type CpCmd struct{}
func (CpCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (CpCmd) Description ¶
Description returns a description of the command
func (CpCmd) EventType ¶
func (cmd CpCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
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 MvCmd ¶
type MvCmd struct{}
func (MvCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (MvCmd) Description ¶
Description returns a description of the command
func (MvCmd) EventType ¶
func (cmd MvCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type RmCmd ¶
type RmCmd struct{}
func (RmCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (RmCmd) Description ¶
Description returns a description of the command
func (RmCmd) EventType ¶
func (cmd RmCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log