count

package
v0.0.0-...-dd4b6ca Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCount

func NewCmdCount(op CountDocumentsOp) *cobra.Command

NewCmdCount returns an instance of Count command.

Types

type CountDocumentsOp

type CountDocumentsOp interface {
	CountDocuments(databaseName, collectionName string) (int64, error)
}

CountDocumentsOp is exported.

type CountOptions

type CountOptions struct {
	Database   string
	Collection string
}

CountOptions is exported.

func (*CountOptions) Execute

func (o *CountOptions) Execute(op CountDocumentsOp)

RunList is exported.

func (*CountOptions) Fill

func (o *CountOptions) Fill(cmd *cobra.Command)

Fill is exported.

Jump to

Keyboard shortcuts

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