cmd

package
v0.0.0-...-297d8ea Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCommand

func InitCommand(rootCmd *cobra.Command)

Types

type AppendStatus

type AppendStatus struct {
	Id            int64
	Source        string
	Table         string
	Pattern       string
	Prefix        string
	LastRow       string
	LastKeyValues string
}

type Column

type Column struct {
	Field   string
	Type    string
	Null    string
	Key     string
	Default *string
	Extra   *string
}

type Pattern

type Pattern struct {
	Strategy   string
	Prefix     string
	AutoCreate bool
}

type Source

type Source struct {
	Url    string
	Target struct {
		Name   string
		Tables []*SourceTable
	}
}

type SourceTable

type SourceTable struct {
	Table   string
	Pattern string
	Prefix  string
	Keys    []string
}

type Target

type Target struct {
	Url      string
	Patterns map[string]*Pattern
}

Jump to

Keyboard shortcuts

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