cmd

package
v1.0.0-alpha.22 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImagePath     = "tigrisdata/tigris-local"
	ContainerName = "tigris-local-server"
)
View Source
const (
	Read                     = "read"
	Insert                   = "insert"
	Update                   = "update"
	Delete                   = "delete"
	Replace                  = "replace" // alias for insert_or_replace
	InsertOrReplace          = "insert_or_replace"
	CreateOrUpdateCollection = "create_or_update_collection"
	DropCollection           = "drop_collection"
	ListCollections          = "list_collections"
)

Variables

View Source
var BatchSize int32 = 100
View Source
var ImageTag = "latest"

Functions

func Execute

func Execute()

Types

type Authenticator

type Authenticator struct {
	*oidc.Provider
	oauth2.Config
}

type DescribeCollectionResponse

type DescribeCollectionResponse struct {
	Collection string                  `json:"collection,omitempty"`
	Metadata   *api.CollectionMetadata `json:"metadata,omitempty"`
	Schema     json.RawMessage         `json:"schema,omitempty"`
}

DescribeCollectionResponse adapter to convert Schema field to json.RawMessage

type DescribeDatabaseResponse

type DescribeDatabaseResponse struct {
	Db          string                        `json:"db,omitempty"`
	Metadata    *api.DatabaseMetadata         `json:"metadata,omitempty"`
	Collections []*DescribeCollectionResponse `json:"collections,omitempty"`
}

DescribeDatabaseResponse adapter to convert schema to json.RawMessage

type Op

type Op struct {
	Operation  string
	Collection string
	Documents  []json.RawMessage
	Filter     json.RawMessage
	Fields     json.RawMessage
	Schema     json.RawMessage
}

type TxOp

type TxOp struct {
	Op                       `json:",inline"`
	Insert                   *Op
	Replace                  *Op
	InsertOrReplace          *Op `json:"insert_or_replace"`
	Delete                   *Op
	Update                   *Op
	Read                     *Op
	CreateOrUpdateCollection *Op `json:"create_or_update_collection"`
	DropCollection           *Op
	ListCollections          *Op
}

Jump to

Keyboard shortcuts

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