Documentation ¶
Index ¶
- Constants
- func CheckExclusiveFlags(flags *pflag.FlagSet, flagNames ...string)
- func ExtensionFilterClause(namespace string) string
- func HandleSingleDashes(args []string) []string
- func MustGetFlagBool(cmdFlags *pflag.FlagSet, flagName string) bool
- func MustGetFlagInt(cmdFlags *pflag.FlagSet, flagName string) int
- func MustGetFlagString(cmdFlags *pflag.FlagSet, flagName string) string
- func MustGetFlagStringArray(cmdFlags *pflag.FlagSet, flagName string) []string
- func MustGetFlagStringSlice(cmdFlags *pflag.FlagSet, flagName string) []string
- func QuoteTableNames(conn *dbconn.DBConn, tableNames []string) ([]string, error)
- func SetBackupFlagDefaults(flagSet *pflag.FlagSet)
- func SetRestoreFlagDefaults(flagSet *pflag.FlagSet)
- type FqnStruct
- type Options
- func (o *Options) AddIncludedRelation(relation string)
- func (o *Options) ExpandIncludesForPartitions(conn *dbconn.DBConn, flags *pflag.FlagSet) error
- func (o Options) GetExcludedSchemas() []string
- func (o Options) GetExcludedTables() []string
- func (o Options) GetIncludedSchemas() []string
- func (o Options) GetIncludedTables() []string
- func (o Options) GetOriginalIncludedTables() []string
- func (o Options) IsLeafPartitionData() bool
- func (o *Options) QuoteExcludeRelations(conn *dbconn.DBConn) error
- func (o *Options) QuoteIncludeRelations(conn *dbconn.DBConn) error
Constants ¶
View Source
const ( BACKUP_DIR = "backup-dir" COMPRESSION_TYPE = "compression-type" COMPRESSION_LEVEL = "compression-level" DATA_ONLY = "data-only" DBNAME = "dbname" DEBUG = "debug" EXCLUDE_RELATION = "exclude-table" EXCLUDE_RELATION_FILE = "exclude-table-file" EXCLUDE_SCHEMA = "exclude-schema" EXCLUDE_SCHEMA_FILE = "exclude-schema-file" FROM_TIMESTAMP = "from-timestamp" INCLUDE_RELATION = "include-table" INCLUDE_RELATION_FILE = "include-table-file" INCLUDE_SCHEMA = "include-schema" INCLUDE_SCHEMA_FILE = "include-schema-file" INCREMENTAL = "incremental" JOBS = "jobs" LEAF_PARTITION_DATA = "leaf-partition-data" METADATA_ONLY = "metadata-only" NO_COMPRESSION = "no-compression" PLUGIN_CONFIG = "plugin-config" QUIET = "quiet" SINGLE_DATA_FILE = "single-data-file" COPY_QUEUE_SIZE = "copy-queue-size" VERBOSE = "verbose" WITH_STATS = "with-stats" CREATE_DB = "create-db" ON_ERROR_CONTINUE = "on-error-continue" REDIRECT_DB = "redirect-db" RUN_ANALYZE = "run-analyze" TIMESTAMP = "timestamp" WITH_GLOBALS = "with-globals" REDIRECT_SCHEMA = "redirect-schema" TRUNCATE_TABLE = "truncate-table" WITHOUT_GLOBALS = "without-globals" RESIZE_CLUSTER = "resize-cluster" )
Variables ¶
This section is empty.
Functions ¶
func CheckExclusiveFlags ¶
At most one of the flags passed to this function may be set
func ExtensionFilterClause ¶
func HandleSingleDashes ¶
* Convert arguments that contain a single dash to double dashes for backward * compatibility.
func MustGetFlagStringArray ¶
func MustGetFlagStringSlice ¶
func QuoteTableNames ¶
func SetBackupFlagDefaults ¶
func SetRestoreFlagDefaults ¶
Types ¶
type FqnStruct ¶
func SeparateSchemaAndTable ¶
type Options ¶
type Options struct { IncludedRelations []string ExcludedRelations []string ExcludedSchemas []string IncludedSchemas []string RedirectSchema string // contains filtered or unexported fields }
This is meant to be a read only package. Values inside should only be modified by setters, it's method functions, or initialization function. This package is meant to make mocking flags easier.
func (*Options) AddIncludedRelation ¶
func (*Options) ExpandIncludesForPartitions ¶
func (Options) GetExcludedSchemas ¶
func (Options) GetExcludedTables ¶
func (Options) GetIncludedSchemas ¶
func (Options) GetIncludedTables ¶
func (Options) GetOriginalIncludedTables ¶
func (Options) IsLeafPartitionData ¶
func (*Options) QuoteExcludeRelations ¶
Click to show internal directories.
Click to hide internal directories.