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 ( AutoCreate bool InferenceDepth int32 PrimaryKey []string AutoGenerate []string )
View Source
var ( ImageTag = "latest" ErrServerStartTimeout = fmt.Errorf("timeout waiting server to start") )
View Source
var ( ErrStateMismatched = fmt.Errorf("state is not matched") ErrInstanceNotFound = fmt.Errorf("instance not found") )
View Source
var ( ErrWrongArgs = fmt.Errorf("please provide name and description to update or use --rotate to rotate the secret") ErrAppNotFound = fmt.Errorf("app key not found") )
View Source
var BatchSize int32 = 100
View Source
var ErrSchemaNameMissing = fmt.Errorf("schema name is missing")
View Source
var ErrUnknownOperationType = fmt.Errorf("unknown operation type")
Functions ¶
Types ¶
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
}
Source Files
¶
- alter.go
- backup.go
- collection.go
- completion.go
- config.go
- create.go
- delete-project.go
- delete.go
- describe.go
- docs.go
- drop.go
- generate.go
- import.go
- info.go
- insert.go
- iterate.go
- list.go
- local.go
- login.go
- management.go
- ping.go
- project.go
- quota.go
- read.go
- replace.go
- restore.go
- root.go
- scaffold.go
- search.go
- server.go
- transact.go
- update.go
- version.go
Click to show internal directories.
Click to hide internal directories.