Versions in this module Expand all Collapse all v0 v0.3.0 Oct 13, 2026 Changes in this version + const ErrorCodeOutcomeUnknown + func ExpectVersion(v uint64) *uint64 + type AnnIndex string + const AnnHnsw + const AnnIvf + const AnnIvfPq + type BitOpKind string + const BitAnd + const BitNot + const BitOr + const BitXor + type BulkOp struct + func BulkDelete(id string) BulkOp + func BulkInsert(document any) BulkOp + func BulkInsertWithID(id string, document any) BulkOp + func BulkReplace(id string, document any) BulkOp + func BulkUpdateOne(id string, update DocumentUpdate) BulkOp + func (o BulkOp) ExpectedVersion(version uint64) BulkOp + func (o BulkOp) MarshalJSON() ([]byte, error) + func (o BulkOp) Upsert() BulkOp + type BulkWriteResult struct + Deleted int64 + Inserted int64 + InsertedIDs []string + Replaced int64 + Updated int64 + Upserted int64 + type ByteRange struct + End int64 + Start int64 + type CacheCommand struct + func CmdDelete(namespace, key string) CacheCommand + func CmdExists(namespace, key string) CacheCommand + func CmdGet(namespace, key string) CacheCommand + func CmdIncr(namespace, key string, by int64) CacheCommand + func CmdRaw(variant string, body map[string]any) CacheCommand + func CmdSet(namespace, key string, value []byte, ttlMs int64) CacheCommand + func (c CacheCommand) MarshalJSON() ([]byte, error) + type CacheEntry struct + Key string + Value []byte + type CacheExpiry struct + func ExpiryClear() CacheExpiry + func ExpiryKeep() CacheExpiry + func ExpirySet(ttlMs int64) CacheExpiry + func (e CacheExpiry) MarshalJSON() ([]byte, error) + type CacheLock struct + Acquired bool + ExpiresAtMs int64 + Holder string + Token uint64 + type CacheLockRenewal struct + ExpiresAtMs int64 + Renewed bool + Token uint64 + type CacheReply struct + DataKind string + DataRaw json.RawMessage + Err string + func (r CacheReply) OK() bool + func (r CacheReply) Value() (value []byte, found bool) + type CacheStats struct + Eviction struct{ ... } + HitRatio *float64 + Hits uint64 + Memory struct{ ... } + Misses uint64 + type CentralityMeasure string + const CentralityBetweenness + const CentralityCloseness + const CentralityEigenvector + type CentralityOptions struct + Iterations int + Label string + Limit int + Tolerance float64 + Undirected bool + type ChannelMessage struct + AtMs int64 + Channel string + ID uint64 + Message string type Client + func (c *Client) Address() string + func (c *Client) CacheAppend(namespace, key string, value []byte) (int64, error) + func (c *Client) CacheBLPop(namespace string, timeoutMs int64, keys ...string) (key string, value []byte, found bool, err error) + func (c *Client) CacheBRPop(namespace string, timeoutMs int64, keys ...string) (key string, value []byte, found bool, err error) + func (c *Client) CacheBitCount(namespace, key string, r *ByteRange) (int64, error) + func (c *Client) CacheBitOp(namespace string, kind BitOpKind, dest string, keys ...string) (int64, error) + func (c *Client) CacheBitPos(namespace, key string, bit bool, r *ByteRange) (int64, error) + func (c *Client) CacheCompareAndSwap(namespace, key string, expected, value []byte, ttlMs int64) (*CompareAndSwapResult, error) + func (c *Client) CacheExpireAt(namespace, key string, atMs int64) (*ExpireAtResult, error) + func (c *Client) CacheFlushDatabase() (int64, error) + func (c *Client) CacheGetBit(namespace, key string, offset uint64) (bool, error) + func (c *Client) CacheGetDel(namespace, key string) ([]byte, bool, error) + func (c *Client) CacheGetEx(namespace, key string, expiry CacheExpiry) ([]byte, bool, error) + func (c *Client) CacheGetFresh(namespace, key, owner string, leaseMs int64) (*FreshRead, error) + func (c *Client) CacheGetNamespaceLimit(namespace string) (*NamespaceLimit, error) + func (c *Client) CacheGetSet(namespace, key string, value []byte, ttlMs int64) ([]byte, bool, error) + func (c *Client) CacheHIncrBy(namespace, key string, field []byte, by int64) (int64, error) + func (c *Client) CacheHotKeys(limit int) (json.RawMessage, error) + func (c *Client) CacheLMove(namespace, source, destination string, from, to ListEnd) ([]byte, bool, error) + func (c *Client) CacheLTrim(namespace, key string, start, stop int64) (*TrimResult, error) + func (c *Client) CacheLockAcquire(namespace, key, owner string, ttlMs int64) (*CacheLock, error) + func (c *Client) CacheLockRelease(namespace, key, owner string) (bool, error) + func (c *Client) CacheLockRenew(namespace, key, owner string, ttlMs int64) (*CacheLockRenewal, error) + func (c *Client) CacheMGet(namespace string, keys ...string) ([][]byte, error) + func (c *Client) CacheMSet(namespace string, entries []CacheEntry, ttlMs int64) (int64, error) + func (c *Client) CachePfAdd(namespace, key string, elements ...[]byte) (bool, error) + func (c *Client) CachePfCount(namespace string, keys ...string) (int64, error) + func (c *Client) CachePfMerge(namespace, dest string, sources ...string) error + func (c *Client) CachePipeline(ops ...CacheCommand) ([]CacheReply, error) + func (c *Client) CachePoll(after uint64, limit int, channels ...string) (*PollResult, error) + func (c *Client) CachePublish(channel, message string) (uint64, error) + func (c *Client) CachePurgeExpired() (int64, error) + func (c *Client) CacheSDiff(namespace string, keys ...string) ([][]byte, error) + func (c *Client) CacheSInter(namespace string, keys ...string) ([][]byte, error) + func (c *Client) CacheSRandMember(namespace, key string) ([][]byte, error) + func (c *Client) CacheSRandMembers(namespace, key string, count int64) ([][]byte, error) + func (c *Client) CacheSUnion(namespace string, keys ...string) ([][]byte, error) + func (c *Client) CacheScriptLoad(name string, ops ...CacheCommand) error + func (c *Client) CacheScriptRun(name string, args ...string) ([]CacheReply, error) + func (c *Client) CacheSetBit(namespace, key string, offset uint64, value bool) (previous bool, err error) + func (c *Client) CacheSetFresh(namespace, key string, value []byte, freshMs, ttlMs int64) (int64, error) + func (c *Client) CacheSetIf(namespace, key string, value []byte, condition SetCondition, ...) (bool, error) + func (c *Client) CacheSetMissing(namespace, key string, ttlMs int64) error + func (c *Client) CacheSetNamespaceLimit(namespace string, maxKeys, maxBytes uint64) (*NamespaceLimit, error) + func (c *Client) CacheStats() (*CacheStats, error) + func (c *Client) CacheTransaction(ops ...CacheCommand) ([]CacheReply, error) + func (c *Client) CacheWarm(namespace string, entries []CacheEntry, ttlMs int64) (*WarmResult, error) + func (c *Client) CacheZAdd(namespace, key string, members ...ScoredMember) (*ZAddResult, error) + func (c *Client) CacheZCard(namespace, key string) (int64, error) + func (c *Client) CacheZIncrBy(namespace, key string, member []byte, by float64) (float64, error) + func (c *Client) CacheZRange(namespace, key string, start, stop int64, rev bool) ([][]byte, error) + func (c *Client) CacheZRangeByScore(namespace, key string, min, max ScoreBound, opts ScoreRangeOptions) ([][]byte, error) + func (c *Client) CacheZRangeByScoreWithScores(namespace, key string, min, max ScoreBound, opts ScoreRangeOptions) ([]ScoredMember, error) + func (c *Client) CacheZRangeWithScores(namespace, key string, start, stop int64, rev bool) ([]ScoredMember, error) + func (c *Client) CacheZRank(namespace, key string, member []byte, rev bool) (rank int64, found bool, err error) + func (c *Client) CacheZRem(namespace, key string, members ...[]byte) (int64, error) + func (c *Client) CacheZScore(namespace, key string, member []byte) (score float64, found bool, err error) + func (c *Client) DocumentBeginTransaction(serializable bool) (string, error) + func (c *Client) DocumentBulkWrite(collection string, ops ...BulkOp) (*BulkWriteResult, error) + func (c *Client) DocumentCommitTransaction(txn string) (*DocumentCommit, error) + func (c *Client) DocumentDeleteMany(collection string, filter DocumentFilter) (int64, error) + func (c *Client) DocumentExplain(collection string, filter DocumentFilter, opts ExplainOptions) (*DocumentPlan, error) + func (c *Client) DocumentGetCollectionOptions(collection string) (*CollectionOptions, error) + func (c *Client) DocumentInsertMany(collection string, documents ...any) ([]string, error) + func (c *Client) DocumentPurgeExpired(collection string) (*PurgeResult, error) + func (c *Client) DocumentRebuildIndex(collection, indexName string) (*IndexRebuild, error) + func (c *Client) DocumentRenameCollection(collection, to string) error + func (c *Client) DocumentReplace(collection, id string, document any, opts ReplaceOptions) (*ReplaceResult, error) + func (c *Client) DocumentRollbackTransaction(txn string) error + func (c *Client) DocumentSetCollectionOptions(collection string, options CollectionOptions) (int64, error) + func (c *Client) GraphAddMany(graph string, nodes []GraphNodeInput, edges []GraphEdgeInput) (*GraphCounts, error) + func (c *Client) GraphAllPaths(graph, from, to string, opts TraverseOptions) (*GraphPaths, error) + func (c *Client) GraphBeginTransaction(graph string) (string, error) + func (c *Client) GraphCentrality(graph string, measure CentralityMeasure, opts CentralityOptions) (*GraphCentralityResult, error) + func (c *Client) GraphCheckConsistency(graph string) (*GraphConsistency, error) + func (c *Client) GraphCommitTransaction(graph, txn string) (*GraphWriteSummary, error) + func (c *Client) GraphCommunities(graph string, opts CommunityOptions) (*GraphCommunitiesResult, error) + func (c *Client) GraphConnectedComponents(graph string, opts ComponentOptions) (*GraphComponents, error) + func (c *Client) GraphCopy(graph, to string) (*GraphCounts, error) + func (c *Client) GraphCreateConstraint(graph, name, label, property string, kind ConstraintKind, ...) error + func (c *Client) GraphCreateNodeIndex(graph, name, label string, properties ...string) error + func (c *Client) GraphDetectCycle(graph string, undirected bool, label string) (*GraphCycleCheck, error) + func (c *Client) GraphDfs(graph, start string, opts TraverseOptions) (*GraphTraversal, error) + func (c *Client) GraphDropSchemaObject(graph, name string) error + func (c *Client) GraphExecute(graph, cypher string) (*GraphWriteSummary, error) + func (c *Client) GraphFindNodes(graph, label string, properties map[string]any, limit int) (*GraphFoundNodes, error) + func (c *Client) GraphImportCSV(graph, nodes, edges string) (*GraphCounts, error) + func (c *Client) GraphKShortestPaths(graph, from, to string, opts KPathOptions) (*GraphPaths, error) + func (c *Client) GraphListSchemaObjects(graph string) (*GraphSchemaObjects, error) + func (c *Client) GraphNodeSimilarity(graph, node string, opts SimilarityOptions) ([]GraphScore, error) + func (c *Client) GraphPageRank(graph string, opts PageRankOptions) (*GraphPageRankResult, error) + func (c *Client) GraphRemoveMany(graph string, nodes, edges []string, detach bool) (*GraphRemoved, error) + func (c *Client) GraphRollbackTransaction(graph, txn string) (int64, error) + func (c *Client) GraphSchema(graph string) (*GraphSchemaInfo, error) + func (c *Client) GraphStats(graph string) (*GraphStatistics, error) + func (c *Client) GraphSubgraph(graph string, seeds []string, opts TraverseOptions) (*GraphSubgraphResult, error) + func (c *Client) GraphTriangleCount(graph, label string, limit int) (*GraphTriangles, error) + func (c *Client) GraphUpdateEdge(graph, id string, properties map[string]any, label string) (*GraphEdge, error) + func (c *Client) GraphUpdateNode(graph, id string, update NodeUpdate) (*GraphNode, error) + func (c *Client) RequestTxn() string + func (c *Client) SetRequestTxn(txn string) + func (c *Client) VectorAddNamedVector(collection, name string, dimension int, metric VectorMetric) error + func (c *Client) VectorCopyCollection(collection, to string) (int64, error) + func (c *Client) VectorCount(collection string, filter map[string]any) (int64, error) + func (c *Client) VectorDeleteByFilter(collection string, filter map[string]any) (int64, error) + func (c *Client) VectorDeleteMany(collection string, ids ...string) (int64, error) + func (c *Client) VectorEmbed(texts []string, dimension int) (*Embedding, error) + func (c *Client) VectorIndexStats(collection string) (*VectorIndexStats, error) + func (c *Client) VectorListAliases() ([]VectorAlias, error) + func (c *Client) VectorListPartitions(collection, field string) (*VectorPartitions, error) + func (c *Client) VectorMeasureRecall(collection string, opts RecallOptions) (*VectorRecall, error) + func (c *Client) VectorRebuildIndex(collection string) (*VectorIndexRebuild, error) + func (c *Client) VectorRenameCollection(collection, to string) (int64, error) + func (c *Client) VectorSearchBatch(collection string, vectors [][]float32, topK int, opts VectorSearchOptions) ([][]VectorHit, error) + func (c *Client) VectorSearchByExamples(collection string, query ExampleSearch, topK int, opts VectorSearchOptions) (*VectorSearchResult, error) + func (c *Client) VectorSearchMulti(collection string, vectors [][]float32, topK int, fusion FusionMethod, ...) (*FusedSearchResult, error) + func (c *Client) VectorSetAlias(alias, collection string) error + func (c *Client) VectorSetCollectionConfig(collection string, change VectorConfigChange) (*VectorConfig, error) + func (c *Client) VectorUpdateByFilter(collection string, filter, set map[string]any) (int64, error) + func (c *Client) VectorUpsertMany(collection string, items []VectorUpsertItem) (int64, error) + func (c *Client) VectorUpsertNamed(collection, id string, vectors map[string][]float32, metadata map[string]any) error + func (c *Client) VectorUpsertText(collection string, items []TextUpsert) (int64, error) + type CollectionOptions struct + Defaults map[string]any + Schema *DocumentSchema + Versioned bool + type CommunityOptions struct + Iterations int + Label string + Limit int + type CompareAndSwapResult struct + Current []byte + CurrentIsBinary bool + Swapped bool + type ComponentKind string + const ComponentStrong + const ComponentWeak + type ComponentOptions struct + Kind ComponentKind + Label string + Limit int + type ConstraintKind string + const ConstraintRequired + const ConstraintUnique + type ConstraintTarget string + const TargetEdge + const TargetNode + type DocumentCommit struct + Committed bool + Writes int64 + type DocumentPlan struct + ElapsedUs int64 + EstimatedCost float64 + EstimatedRows float64 + Index string + IndexUsed bool + Plan string + RowsExamined int64 + RowsReturned int64 + ScanReason string + ScanSource string + type DocumentSchema struct + AdditionalFields *bool + Fields map[string]FieldRule + Required []string + type Embedding struct + Dimension int + Embedder string + Sparse []SparseVector + Vectors [][]float32 + type ExampleSearch struct + IncludeExamples bool + Negative []VectorExample + Positive []VectorExample + type ExpireAtResult struct + Deleted bool + Updated bool + type ExplainOptions struct + Limit int + Skip int + Sort []SortKey + type FieldRule struct + MaxLength *int + Maximum *float64 + MinLength *int + Minimum *float64 + OneOf []any + Pattern string + Type FieldType + type FieldType string + const FieldArray + const FieldBoolean + const FieldInteger + const FieldNull + const FieldNumber + const FieldObject + const FieldString + type FilterStrategy string + const FilterStrategyAuto + const FilterStrategyExact + const FilterStrategyGraph + type FreshRead struct + Lease bool + Refresh bool + RetryAfterMs int64 + State FreshState + Value []byte + type FreshState string + const FreshStateFresh + const FreshStateMiss + const FreshStateMissing + const FreshStateStale + type FusedHit struct + ID string + Matched int + Metadata map[string]any + Score float32 + type FusedSearchResult struct + Depth int + Fusion FusionMethod + Queries int + Results []FusedHit + type FusionMethod string + const FusionMax + const FusionMean + const FusionRRF + type GraphCentralityResult struct + Converged *bool + Directed bool + Iterations int + Measure CentralityMeasure + Nodes int64 + Results []GraphScore + type GraphCommunitiesResult struct + Algorithm string + Communities []GraphGroup + Converged bool + Count int + Iterations int + Modularity float64 + type GraphComponents struct + Components []GraphGroup + Count int + Kind ComponentKind + Largest int + Truncated bool + type GraphConsistency struct + Consistent bool + DanglingEdges GraphFindings + Edges int64 + Mirror struct{ ... } + Misfiled GraphFindings + Nodes int64 + Undecodable GraphFindings + type GraphConstraint struct + Kind ConstraintKind + Label string + Name string + Property string + Target ConstraintTarget + type GraphCounts struct + Edges int64 + Nodes int64 + type GraphCycle struct + Edges []string + Nodes []string + type GraphCycleCheck struct + Cycle *GraphCycle + Directed bool + HasCycle bool + type GraphEdgeInput struct + From string + ID string + Label string + Properties map[string]any + To string + type GraphEdgeTypeSchema struct + Count int64 + Properties []GraphPropertySchema + Type string + type GraphFindings struct + Count int64 + Listed []json.RawMessage + type GraphFoundNodes struct + Count int + Nodes []GraphNode + Plan string + Truncated bool + type GraphGroup struct + Nodes []string + Size int + Truncated bool + type GraphIndex struct + Label string + Name string + Properties []string + type GraphLabelSchema struct + Count int64 + Label string + Properties []GraphPropertySchema + type GraphNodeInput struct + ID string + Labels []string + Properties map[string]any + type GraphPageRankResult struct + Converged bool + Count int + Damping float64 + Iterations int + Ranks []GraphScore + Truncated bool + type GraphPathEntry struct + Cost float64 + Edges []string + Hops int + Nodes []string + type GraphPaths struct + Complete *bool + Count int + Direction string + From string + Paths []GraphPathEntry + StoppedBy string + To string + type GraphPropertySchema struct + Count int64 + Key string + Types []string + type GraphRemoved struct + EdgesRemoved int64 + NodesRemoved int64 + type GraphSchemaInfo struct + EdgeTypes []GraphEdgeTypeSchema + Edges int64 + NodeLabels []GraphLabelSchema + Nodes int64 + UnlabeledNodes GraphLabelSchema + type GraphSchemaObjects struct + Constraints []GraphConstraint + Indexes []GraphIndex + type GraphScore struct + ID string + Score float64 + type GraphStatistics struct + AvgOutDegree float64 + DanglingEdges int64 + EdgeTypes map[string]int64 + Edges int64 + IsolatedNodes int64 + MaxInDegree int64 + MaxOutDegree int64 + NodeLabels map[string]int64 + Nodes int64 + SelfLoops int64 + UnlabeledNodes int64 + type GraphSubgraphResult struct + Direction string + EdgeCount int + Edges []GraphEdge + EdgesTruncated bool + Limit int + MaxDepth int + NodeCount int + Nodes []GraphVisit + NodesTruncated bool + type GraphTriangles struct + AverageClustering float64 + Nodes []struct{ ... } + Transitivity float64 + Triangles int64 + type GraphWriteSummary struct + Committed int64 + LabelsAdded int64 + LabelsRemoved int64 + NodesCreated int64 + NodesDeleted int64 + PropertiesSet int64 + Queued int64 + RelationshipsCreated int64 + RelationshipsDeleted int64 + Statements int64 + type IndexRebuild struct + Documents int64 + Entries int64 + IndexName string + type KPathOptions struct + Direction GraphDirection + K int + Label string + WeightProperty string + type ListEnd string + const ListLeft + const ListRight + type NamedVector struct + Dimension int + Metric VectorMetric + Name string + type NamespaceLimit struct + Bytes uint64 + Keys uint64 + MaxBytes *uint64 + MaxKeys *uint64 + Namespace string + type NodeUpdate struct + AddLabels []string + Properties map[string]any + RemoveLabels []string type Options + DisableFollowLeader bool + LeaderRetries int + LeaderRetryDelay time.Duration + type PageRankOptions struct + Damping float64 + Iterations int + Label string + Limit int + Tolerance float64 + type PollResult struct + Messages []ChannelMessage + Next uint64 + type PurgeResult struct + More bool + Purged int64 + type RecallOptions struct + EfSearch int + Sample int + TopK int + type ReplaceOptions struct + ExpectedVersion *uint64 + Return ReturnDocument + Upsert bool + type ReplaceResult struct + Document Document + ID string + Inserted bool + Replaced bool + type ReturnDocument string + const ReturnAfter + const ReturnBefore + type ScoreBound struct + Exclusive bool + Value float64 + func ScoreHighest() ScoreBound + func ScoreLowest() ScoreBound + type ScoreMetric string + const ScoreCosine + const ScoreDot + const ScoreL1 + const ScoreL2 + const ScoreLinf + type ScoreRangeOptions struct + Count int64 + Offset int64 + Rev bool + type ScoredMember struct + Member []byte + Score float64 type ServerError + Retried int + type SetCondition string + const SetAlways + const SetIfAbsent + const SetIfPresent + type SimilarityMetric string + const SimilarityJaccard + const SimilarityOverlap + type SimilarityOptions struct + Direction GraphDirection + Label string + Limit int + Metric SimilarityMetric + type SparseVector struct + Indices []uint32 + Values []float32 + type TextUpsert struct + ID string + Metadata map[string]any + Text string type TransactionResult + NestedDepth *int + type TrimResult struct + Length int64 + Removed int64 + type VectorAlias struct + Alias string + Collection string + type VectorConfig struct + Collection string + EfConstruction int + M int + MultiTenant bool + Named []NamedVector + Normalize bool + type VectorConfigChange struct + EfConstruction int + M int + MultiTenant *bool + Normalize *bool + type VectorExample struct + func ExampleID(id string) VectorExample + func ExampleVector(vector []float32) VectorExample + func (e VectorExample) MarshalJSON() ([]byte, error) type VectorHit + Reason string + Vector []float32 + type VectorIndexRebuild struct + BuildMs int64 + Persisted bool + Rebuilt bool + TombstonesCleared int64 + Vectors int64 + type VectorIndexStats struct + Collection string + Degree struct{ ... } + Entry string + FlatScanThreshold int64 + Index string + Layers int + Live int64 + LivePerLayer []int64 + Memory struct{ ... } + Nodes int64 + Parameters struct{ ... } + Persisted bool + Reachable int64 + ShouldRebuild bool + Stored int64 + Tombstones int64 + Unreachable int64 + type VectorPartition struct + Count int64 + Name string + type VectorPartitions struct + Field string + Partitions []VectorPartition + Unpartitioned int64 + type VectorRecall struct + Collection string + EfSearch int + FlatFallbacks int + Index string + Measured bool + MinRecall float64 + Queries int + Reason string + Recall float64 + TopK int + type VectorSearchOptions struct + Ann AnnIndex + EfSearch int + Exact bool + Explain bool + ExplainText string + Filter map[string]any + FilterStrategy FilterStrategy + HybridAlpha *float32 + IncludeVectors bool + MaxDistance *float32 + MinScore *float32 + Namespace string + Nprobe int + Offset int + OmitMetadata bool + ScoreExpr string + ScoreMetric ScoreMetric + Sparse *SparseVector + Tenant string + Using string + type VectorUpsertItem struct + ID string + Metadata map[string]any + Vector []float32 + type WarmResult struct + AlreadyCached int64 + Written int64 + type ZAddResult struct + Added int64 + Updated int64 v0.1.0 Sep 15, 2026 Changes in this version + const DefaultPort + const ErrorCodeNotLeader + const FeatureCorrelationID + const FeatureServerParams + const FeatureSessionTxn + const Features + const MaxControlFrameSize + const MaxFrameSize + const MaxSupportedFrameVersion + const Version + var ErrArgument = errors.New("tricoredb: invalid argument") + var ErrAuth = errors.New("tricoredb: authentication refused") + var ErrPoolClosed = errors.New("tricoredb: pool is closed") + var ErrPoolTimeout = errors.New("tricoredb: no pooled connection available") + var ErrProtocol = errors.New("tricoredb: protocol error") + var ErrServer = errors.New("tricoredb: server error") + var ErrTimeout = errors.New("tricoredb: timed out") + func BindParams(sql string, args ...Arg) (string, error) + func BuildTransactionScript(statements []Statement) (string, error) + func QuoteSQL(s string) string + func SQLLiteral(value any) (string, error) + func SQLParam(value any) (any, error) + type AccumulatorOp struct + func AccAvg(field string) AccumulatorOp + func AccCount() AccumulatorOp + func AccMax(field string) AccumulatorOp + func AccMin(field string) AccumulatorOp + func AccSum(field string) AccumulatorOp + func (a AccumulatorOp) MarshalJSON() ([]byte, error) + type AggregateStage struct + func StageCount(field string) AggregateStage + func StageGroup(by GroupKey, accumulators ...GroupAccumulator) AggregateStage + func StageLimit(n int) AggregateStage + func StageMatch(filter DocumentFilter) AggregateStage + func StageProject(fields []string, include bool) AggregateStage + func StageSkip(n int) AggregateStage + func StageSort(keys ...SortKey) AggregateStage + func (s AggregateStage) MarshalJSON() ([]byte, error) + type Arg = any + type ArgumentError struct + Message string + func (e *ArgumentError) Error() string + func (e *ArgumentError) Unwrap() error + type AuthError struct + Message string + func (e *AuthError) Error() string + func (e *AuthError) Unwrap() error + type CacheKeyInfo struct + Bytes int64 + Key string + TTLMs *int64 + type CachePair struct + Field []byte + Value []byte + func TextPairs(m map[string]string) []CachePair + type Client struct + func Connect(ctx context.Context, opts Options) (*Client, error) + func (c *Client) AdminPing() error + func (c *Client) AdminStatus() (map[string]any, error) + func (c *Client) Begin() (*TransactionResult, error) + func (c *Client) CacheClearNamespace(namespace string) (int64, error) + func (c *Client) CacheDelete(namespace, key string) (existed bool, err error) + func (c *Client) CacheExists(namespace, key string) (bool, error) + func (c *Client) CacheExpire(namespace, key string, ttlMs int64) (bool, error) + func (c *Client) CacheGet(namespace, key string) (value []byte, found bool, err error) + func (c *Client) CacheHDel(namespace, key string, fields ...[]byte) (int64, error) + func (c *Client) CacheHExists(namespace, key string, field []byte) (bool, error) + func (c *Client) CacheHGet(namespace, key string, field []byte) (value []byte, found bool, err error) + func (c *Client) CacheHGetAll(namespace, key string) ([]CachePair, error) + func (c *Client) CacheHLen(namespace, key string) (int64, error) + func (c *Client) CacheHSet(namespace, key string, entries []CachePair) (int64, error) + func (c *Client) CacheHSetText(namespace, key string, entries map[string]string) (int64, error) + func (c *Client) CacheIncr(namespace, key string, by int64) (int64, error) + func (c *Client) CacheKeys(namespace, pattern string, limit int) ([]CacheKeyInfo, error) + func (c *Client) CacheLIndex(namespace, key string, index int64) (value []byte, found bool, err error) + func (c *Client) CacheLLen(namespace, key string) (int64, error) + func (c *Client) CacheLPop(namespace, key string) (value []byte, found bool, err error) + func (c *Client) CacheLPush(namespace, key string, values ...[]byte) (int64, error) + func (c *Client) CacheLRange(namespace, key string, start, stop int64) ([][]byte, error) + func (c *Client) CachePersist(namespace, key string) (bool, error) + func (c *Client) CachePing() error + func (c *Client) CacheRPop(namespace, key string) (value []byte, found bool, err error) + func (c *Client) CacheRPush(namespace, key string, values ...[]byte) (int64, error) + func (c *Client) CacheSAdd(namespace, key string, members ...[]byte) (int64, error) + func (c *Client) CacheSCard(namespace, key string) (int64, error) + func (c *Client) CacheSIsMember(namespace, key string, member []byte) (bool, error) + func (c *Client) CacheSMembers(namespace, key string) ([][]byte, error) + func (c *Client) CacheSRem(namespace, key string, members ...[]byte) (int64, error) + func (c *Client) CacheSet(namespace, key string, value []byte) error + func (c *Client) CacheSetNx(namespace, key string, value []byte, ttlMs int64) (bool, error) + func (c *Client) CacheSetTTL(namespace, key string, value []byte, ttlMs int64) error + func (c *Client) CacheTTL(namespace, key string) (ttlMs int64, has bool, err error) + func (c *Client) CacheXAdd(namespace, key string, fields []CachePair, id string) (string, error) + func (c *Client) CacheXAddText(namespace, key string, fields map[string]string, id string) (string, error) + func (c *Client) CacheXDel(namespace, key string, ids ...string) (int64, error) + func (c *Client) CacheXLen(namespace, key string) (int64, error) + func (c *Client) CacheXRange(namespace, key, start, end string, count int) ([]StreamEntry, error) + func (c *Client) CacheXRead(namespace, key, after string, count int) ([]StreamEntry, error) + func (c *Client) CacheXTrim(namespace, key string, maxLen int) (int64, error) + func (c *Client) Cancel(requestID string) (int, error) + func (c *Client) Close() error + func (c *Client) Commit() (*TransactionResult, error) + func (c *Client) DocumentAggregate(collection string, pipeline ...AggregateStage) ([]Document, error) + func (c *Client) DocumentAnalyze(collection string) (*DocumentStats, error) + func (c *Client) DocumentCreateCollection(collection string) error + func (c *Client) DocumentCreateIndex(collection, indexName, field string, unique bool) error + func (c *Client) DocumentDelete(collection, id string) error + func (c *Client) DocumentDropCollection(collection string) error + func (c *Client) DocumentDropIndex(collection, indexName string) error + func (c *Client) DocumentFind(collection string, filter DocumentFilter) ([]Document, error) + func (c *Client) DocumentFindLimit(collection string, filter DocumentFilter, limit int) ([]Document, error) + func (c *Client) DocumentGet(collection, id string) (doc Document, found bool, err error) + func (c *Client) DocumentInsert(collection string, document any) (string, error) + func (c *Client) DocumentInsertWithID(collection, id string, document any) (string, error) + func (c *Client) DocumentListCollections() ([]string, error) + func (c *Client) DocumentListIndexes(collection string) ([]DocumentIndex, error) + func (c *Client) DocumentUpdate(collection, id string, set map[string]any) error + func (c *Client) DocumentUpdateMany(collection string, filter DocumentFilter, update DocumentUpdate) (UpdateManyResult, error) + func (c *Client) DocumentUpdateOne(collection, id string, update DocumentUpdate) error + func (c *Client) DocumentUpsertOne(collection, id string, update DocumentUpdate) (inserted bool, err error) + func (c *Client) Execute(sql string) (*Response, error) + func (c *Client) ExecuteParams(sql string, args ...Arg) (*Response, error) + func (c *Client) GrantedFeatures() uint64 + func (c *Client) GraphAddEdge(graph, id, from, to, label string, properties map[string]any) error + func (c *Client) GraphAddNode(graph, id string, labels []string, properties map[string]any) error + func (c *Client) GraphCreate(graph string) error + func (c *Client) GraphDegree(graph, nodeID string, direction GraphDirection) (int, error) + func (c *Client) GraphDeleteEdge(graph, id string) error + func (c *Client) GraphDeleteNode(graph, id string) error + func (c *Client) GraphDrop(graph string) error + func (c *Client) GraphGetEdge(graph, id string) (edge *GraphEdge, found bool, err error) + func (c *Client) GraphGetNode(graph, id string) (node *GraphNode, found bool, err error) + func (c *Client) GraphList() ([]string, error) + func (c *Client) GraphListEdges(graph string, limit, offset int) (*GraphEdgePage, error) + func (c *Client) GraphListNodes(graph string, limit, offset int) (*GraphNodePage, error) + func (c *Client) GraphNeighbors(graph, nodeID string, opts NeighborOptions) ([]GraphNeighbor, error) + func (c *Client) GraphQuery(graph, cypher string) (*GraphRows, error) + func (c *Client) GraphShortestPath(graph, from, to string, opts PathOptions) (*GraphPath, error) + func (c *Client) GraphTraverse(graph, start string, opts TraverseOptions) (*GraphTraversal, error) + func (c *Client) GraphWeightedShortestPath(graph, from, to string, opts WeightedPathOptions) (*GraphPath, error) + func (c *Client) InTransaction() bool + func (c *Client) LastRequestID() string + func (c *Client) LlmContext(sources []LlmSource, format OutputFormat, opts *LlmOptions) (string, error) + func (c *Client) LlmSchema(format OutputFormat, opts *LlmOptions) (string, error) + func (c *Client) Ping() error + func (c *Client) Poisoned() bool + func (c *Client) Query(sql string) (*Rows, error) + func (c *Client) QueryParams(sql string, args ...Arg) (*Rows, error) + func (c *Client) Request(op any) (*Response, error) + func (c *Client) Rollback() (*TransactionResult, error) + func (c *Client) ServerParamsGranted() bool + func (c *Client) SessionID() string + func (c *Client) SessionTxnGranted() bool + func (c *Client) SetReadTimeout(d time.Duration) + func (c *Client) SetRequestTimeout(d time.Duration) + func (c *Client) Transaction(statements ...Statement) (*TransactionResult, error) + func (c *Client) VectorCreateCollection(collection string, dimension int, metric VectorMetric) error + func (c *Client) VectorCreateCollectionQuantized(collection string, dimension int, metric VectorMetric, ...) error + func (c *Client) VectorDelete(collection, id string) error + func (c *Client) VectorDescribeCollection(collection string) (*VectorCollectionInfo, error) + func (c *Client) VectorDropCollection(collection string) error + func (c *Client) VectorGet(collection, id string) (item *VectorItem, found bool, err error) + func (c *Client) VectorListCollections() ([]VectorCollectionSummary, error) + func (c *Client) VectorListVectors(collection string, limit, offset int) (*VectorPage, error) + func (c *Client) VectorSearch(collection string, vector []float32, topK int) (*VectorSearchResult, error) + func (c *Client) VectorSearchFiltered(collection string, vector []float32, topK int, filter map[string]any) (*VectorSearchResult, error) + func (c *Client) VectorUpsert(collection, id string, vector []float32, metadata map[string]any) error + func (c *Client) WithTransaction(fn func(*Client) error) error + type Decimal string + type Document map[string]any + type DocumentFilter struct + func FilterAll() DocumentFilter + func FilterAnd(filters ...DocumentFilter) DocumentFilter + func FilterContains(field string, value any) DocumentFilter + func FilterEq(field string, value any) DocumentFilter + func FilterGt(field string, value any) DocumentFilter + func FilterGte(field string, value any) DocumentFilter + func FilterIn(field string, values ...any) DocumentFilter + func FilterLt(field string, value any) DocumentFilter + func FilterLte(field string, value any) DocumentFilter + func FilterNe(field string, value any) DocumentFilter + func (f DocumentFilter) MarshalJSON() ([]byte, error) + type DocumentIndex struct + Field string + Name string + Unique bool + type DocumentStats struct + Collection string + DocumentCount int64 + IndexedFields int + type DocumentUpdate struct + Inc map[string]any + Set map[string]any + type GraphDirection string + const DirectionBoth + const DirectionIncoming + const DirectionOutgoing + type GraphEdge struct + From string + ID string + Label string + Properties map[string]any + To string + type GraphEdgePage struct + Count int + Edges []GraphEdge + Graph string + Total int64 + Truncated bool + type GraphNeighbor struct + Direction GraphDirection + EdgeID string + Label string + NodeID string + type GraphNode struct + ID string + Labels []string + Properties map[string]any + type GraphNodePage struct + Count int + Graph string + Nodes []GraphNode + Total int64 + Truncated bool + type GraphPath struct + Direction string + EdgePath []string + Found bool + From string + Hops int + Message string + NodePath []string + To string + TotalCost float64 + type GraphRows struct + Columns []string + Count int + Graph string + Rows [][]any + Truncated bool + type GraphTraversal struct + Count int + Direction string + Limit int + MaxDepth int + Nodes []GraphVisit + Start string + Truncated bool + type GraphVisit struct + Depth int + ID string + Labels []string + Properties map[string]any + type GroupAccumulator struct + Op AccumulatorOp + Output string + type GroupKey struct + func GroupByConstant(value any) GroupKey + func GroupByField(path string) GroupKey + func (k GroupKey) MarshalJSON() ([]byte, error) + type LlmOptions struct + IncludeSchema bool + MaxRows int + RedactSensitive bool + func DefaultLlmOptions() LlmOptions + type LlmSource struct + func DocumentFindSource(collection string, filter DocumentFilter, limit int) LlmSource + func SQLSource(query string) LlmSource + type NeighborOptions struct + Direction GraphDirection + Label string + Limit int + type Options struct + ClientName string + Database string + DialTimeout time.Duration + Features *uint64 + Host string + Port int + ReadTimeout time.Duration + Secret string + TLS *TLSOptions + User string + type OutputFormat string + const FormatJSON + const FormatMarkdown + const FormatNative + const FormatTOON + type PathOptions struct + Direction GraphDirection + Label string + MaxDepth int + type Pool struct + func NewPool(opts Options, size int) (*Pool, error) + func (p *Pool) Close() error + func (p *Pool) Size() int + func (p *Pool) Stats() (idle, inUse int) + func (p *Pool) Use(ctx context.Context, fn func(*Client) error) error + type ProtocolError struct + Message string + func (e *ProtocolError) Error() string + func (e *ProtocolError) Unwrap() error + type Response struct + DataKind string + DataRaw json.RawMessage + ElapsedMs int64 + ErrorCode string + LeaderHint string + RequestID string + Route string + Status string + Warnings []string + type Rows struct + Columns []string + Rows [][]string + func (r *Rows) Dicts() []map[string]string + type ServerError struct + Code string + LeaderHint string + Message string + Status string + func (e *ServerError) Error() string + func (e *ServerError) IsNotLeader() bool + func (e *ServerError) Unwrap() error + type SortKey struct + Descending bool + Field string + type Statement struct + Args []Arg + SQL string + func Stmt(sql string, args ...Arg) Statement + type StreamEntry struct + Fields []CachePair + ID string + func (e StreamEntry) Text() map[string]string + type TLSOptions struct + CAFile string + ClientCertFile string + ClientKeyFile string + DangerAcceptInvalidCerts bool + ServerName string + type TimeoutError struct + Message string + func (e *TimeoutError) Error() string + func (e *TimeoutError) Temporary() bool + func (e *TimeoutError) Timeout() bool + func (e *TimeoutError) Unwrap() error + type TransactionResult struct + CommittedWrites int64 + DiscardedWrites int64 + Outcome string + Statements int64 + type TraverseOptions struct + Direction GraphDirection + Label string + Limit int + MaxDepth int + type UpdateManyResult struct + Matched int64 + Modified int64 + type VectorCollectionInfo struct + Collection string + Count int64 + Dimension int + Metric VectorMetric + Quantization VectorQuantization + type VectorCollectionSummary struct + Dimension int + Metric VectorMetric + Name string + type VectorHit struct + ID string + Metadata map[string]any + Score float32 + type VectorItem struct + ID string + Metadata map[string]any + Vector []float32 + type VectorMetric string + const MetricCosine + const MetricDot + const MetricL2 + type VectorPage struct + Collection string + Count int + Total int64 + Truncated bool + Vectors []VectorItem + type VectorQuantization string + const QuantizationInt8 + const QuantizationNone + type VectorSearchResult struct + Index string + Results []VectorHit + type WeightedPathOptions struct + Direction GraphDirection + Label string + WeightProperty string