cmd

package module
v0.0.0-...-fd495cc Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatCmd

type CatCmd struct {
	CommonOption
	JSON bool `help:"Output JSON format."`
}

CatCmd is a kong command for cat

func (*CatCmd) Run

func (c *CatCmd) Run(ctx *Context) error

Run does actual cat job

type CommonOption

type CommonOption struct {
	URI   string `arg help:"URI of Parquet file, support s3:// and file://."`
	Debug bool   `help:"Output debug information."`
}

CommonOption represents common options across most commands

type Context

type Context struct {
	Version string
	Build   string
}

Context represents command's context

type DumpCmd

type DumpCmd struct {
	CommonOption
	Colume      []string `help:"Dump only the given column, can be specified more than once."`
	DisableData bool     `help:"Do not dump colume data."`
	DisableMeta bool     `help:"Do not dump row group and page metadata."`
}

DumpCmd is a kong command for dump

func (*DumpCmd) Run

func (c *DumpCmd) Run(ctx *Context) error

Run does actual dump job

type MetaCmd

type MetaCmd struct {
	CommonOption
	OriginalType bool `help:"Print logical types in OriginalType representation."`
}

MetaCmd is a kong command for meta

func (*MetaCmd) Run

func (c *MetaCmd) Run(ctx *Context) error

Run does actual meta job

type RowCountCmd

type RowCountCmd struct {
	CommonOption
	Detailed bool `help:"Detailed rowcount."`
}

RowCountCmd is a kong command for rowcount

func (*RowCountCmd) Run

func (c *RowCountCmd) Run(ctx *Context) error

Run does actual rowcount job

type SchemaCmd

type SchemaCmd struct {
	CommonOption
	JSON     bool `help:"Output JSON format." default:"true"`
	GoStruct bool `help:"Output go struct format."`
}

SchemaCmd is a kong command for schema

func (*SchemaCmd) Run

func (c *SchemaCmd) Run(ctx *Context) error

Run does actual schema job

type SizeCmd

type SizeCmd struct {
	CommonOption
	Uncompressed bool `help:"Output uncompressed size."`
}

SizeCmd is a kong command for size

func (*SizeCmd) Run

func (c *SizeCmd) Run(ctx *Context) error

Run does actual size job

type VersionCmd

type VersionCmd struct {
}

VersionCmd is a kong command for version

func (*VersionCmd) Run

func (c *VersionCmd) Run(ctx *Context) error

Run does actual version job

Jump to

Keyboard shortcuts

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