Documentation
¶
Index ¶
- Variables
- func IsConflict(err error) bool
- func MarshalRequest(req Request) ([]byte, error)
- type AggregateFunction
- type BatchCondition
- type BatchEntry
- type BatchQuery
- type BetweennessMode
- type BetweennessOptions
- type BindingProjection
- func ProjectBinding(target BindingTarget, source, alias string) BindingProjection
- func ProjectBindingCoalesce(refs []BindingValueRef, alias string) BindingProjection
- func ProjectCurrentBinding(source, alias string) BindingProjection
- func ProjectNamedBinding(name, source, alias string) BindingProjection
- type BindingTarget
- type BindingValueRef
- type Client
- func NewClient(baseURL string, opts ...ClientOption) (*Client, error)
- func NewEmbeddedClient(source HelixDbSource, opts ...ClientOption) (*Client, error)
- func NewEmbeddedClientWithConfig(source HelixDbSource, cache EmbeddedCacheConfig, opts ...ClientOption) (*Client, error)
- func NewEmbeddedReaderClient(source HelixDbSource, opts ...ClientOption) (*Client, error)
- func NewEmbeddedReaderClientWithConfig(source HelixDbSource, cache EmbeddedCacheConfig, opts ...ClientOption) (*Client, error)
- func (c *Client) BaseURL() string
- func (c *Client) ClearAPIKey() *Client
- func (c *Client) Close() error
- func (c *Client) Exec(ctx context.Context, req Request, out any, opts ...ExecOption) error
- func (c *Client) Graph(ctx context.Context, selection GraphSelection) (*NativeGraph, error)
- func (c *Client) WithAPIKey(apiKey string) *Client
- type ClientOption
- type Community
- type CommunityResult
- type CompareOp
- type Cycle
- type CycleResult
- type DateTime
- type DegreeKind
- type DiskSource
- type EdgeRef
- type EdgeScore
- type EdgeTraversalDirection
- type EmbeddedCacheConfig
- type EmbeddedCacheMode
- type EmitBehavior
- type ErrorKind
- type ExecOption
- type Expr
- type GraphDirection
- type GraphEdge
- type GraphNode
- type GraphSelection
- type HelixDbSource
- type HelixError
- type HybridCache
- type InMemorySource
- type IndexDdlAccepted
- type IndexDdlAlreadyActive
- type IndexDdlExistingOperation
- type IndexDdlReceipt
- type IndexErrorCode
- type IndexOperationAborted
- type IndexOperationBlocked
- type IndexOperationBlockerCode
- type IndexOperationID
- type IndexOperationProgress
- type IndexOperationQueued
- type IndexOperationRunning
- type IndexOperationStatus
- type IndexOperationStatusCommon
- type IndexOperationSucceeded
- type IndexSpec
- func EdgeEqualityIndex(label, property string) IndexSpec
- func EdgeRangeDescIndex(label, property string) IndexSpec
- func EdgeRangeIndex(label, property string) IndexSpec
- func EdgeRangeIndexWithDirection(label, property string, direction RangeIndexDirection) IndexSpec
- func EdgeTextIndex(label, property string, tenantProperty ...string) IndexSpec
- func EdgeVectorIndex(label, property string, dimension uint, metric VectorDistanceMetric, ...) IndexSpec
- func NodeEqualityIndex(label, property string) IndexSpec
- func NodeRangeDescIndex(label, property string) IndexSpec
- func NodeRangeIndex(label, property string) IndexSpec
- func NodeRangeIndexWithDirection(label, property string, direction RangeIndexDirection) IndexSpec
- func NodeTextIndex(label, property string, tenantProperty ...string) IndexSpec
- func NodeUniqueEqualityIndex(label, property string) IndexSpec
- func NodeVectorIndex(label, property string, dimension uint, metric VectorDistanceMetric, ...) IndexSpec
- type LayoutOptions
- type LouvainOptions
- type MemoryCache
- type NamedQuery
- type NativeGraph
- func (g *NativeGraph) AttributesJSON() ([]byte, error)
- func (g *NativeGraph) BetweennessCentrality(options BetweennessOptions) ([]NodeScore, error)
- func (g *NativeGraph) Compose(right *NativeGraph) (*NativeGraph, error)
- func (g *NativeGraph) ContainsEdge(id string) bool
- func (g *NativeGraph) ContainsNode(id string) bool
- func (g *NativeGraph) Copy() *NativeGraph
- func (g *NativeGraph) Degree(id string, kind DegreeKind) (NodeDegree, error)
- func (g *NativeGraph) Degrees(kind DegreeKind) []NodeDegree
- func (g *NativeGraph) Edge(id string) (*GraphEdge, error)
- func (g *NativeGraph) EdgeBetweennessCentrality(options BetweennessOptions) ([]EdgeScore, error)
- func (g *NativeGraph) EdgeCount() uint64
- func (g *NativeGraph) Edges() ([]GraphEdge, error)
- func (g *NativeGraph) EdgesBetween(source, target string, direction TraversalDirection) ([]string, error)
- func (g *NativeGraph) HasEdgeBetween(source, target string, direction TraversalDirection) (bool, error)
- func (g *NativeGraph) InEdgeIDs(id string) ([]string, error)
- func (g *NativeGraph) IncidentEdgeIDs(id string) ([]string, error)
- func (g *NativeGraph) InducedSubgraph(ids []string) (*NativeGraph, error)
- func (g *NativeGraph) IsDirected() bool
- func (g *NativeGraph) IsMultigraph() bool
- func (g *NativeGraph) LouvainCommunities(options LouvainOptions) (CommunityResult, error)
- func (g *NativeGraph) Neighbors(id string, direction TraversalDirection) ([]string, error)
- func (g *NativeGraph) Node(id string) (*GraphNode, error)
- func (g *NativeGraph) NodeCount() uint64
- func (g *NativeGraph) Nodes() ([]GraphNode, error)
- func (g *NativeGraph) OutEdgeIDs(id string) ([]string, error)
- func (g *NativeGraph) Predecessors(id string) ([]string, error)
- func (g *NativeGraph) Relabel(mapping map[string]string) (*NativeGraph, error)
- func (g *NativeGraph) ShortestPath(source, target string, direction TraversalDirection, labels []string, ...) (PathResult, error)
- func (g *NativeGraph) SimpleCycles(lengthBound uint64, maxCycles *uint64) (CycleResult, error)
- func (g *NativeGraph) SpringLayout(options LayoutOptions) ([]NodePosition, error)
- func (g *NativeGraph) Successors(id string) ([]string, error)
- func (g *NativeGraph) ToUndirected() (*NativeGraph, error)
- func (g *NativeGraph) Traverse(options TraversalOptions) (TraversalResult, error)
- type NodeDegree
- type NodePosition
- type NodeRef
- type NodeScore
- type ObjectEntry
- type ObjectStorageSource
- type Order
- type Ordering
- type ParamKind
- type ParamRef
- type PathEdge
- type PathError
- type PathResult
- type PathResultKind
- type Predicate
- func PredAnd(preds ...Predicate) Predicate
- func PredBetween(property string, min any, max any) Predicate
- func PredCompare(left Expr, op CompareOp, right Expr) Predicate
- func PredContains(property, needle string) Predicate
- func PredContainsExpr(property string, expr Expr) Predicate
- func PredEndsWith(property, suffix string) Predicate
- func PredEq(property string, value any) Predicate
- func PredGt(property string, value any) Predicate
- func PredGte(property string, value any) Predicate
- func PredHasKey(property string) Predicate
- func PredIsIn(property string, value any) Predicate
- func PredIsInExpr(property string, expr Expr) Predicate
- func PredIsNotNull(property string) Predicate
- func PredIsNull(property string) Predicate
- func PredLt(property string, value any) Predicate
- func PredLte(property string, value any) Predicate
- func PredNeq(property string, value any) Predicate
- func PredNot(pred Predicate) Predicate
- func PredOr(preds ...Predicate) Predicate
- func PredStartsWith(property, prefix string) Predicate
- type Projection
- type PropPair
- type PropertyInput
- type PropertyValue
- func Array(v ...PropertyValue) PropertyValue
- func Bool(v bool) PropertyValue
- func Bytes(v []byte) PropertyValue
- func DateTimeMillis(v int64) PropertyValue
- func F32(v float32) PropertyValue
- func F32Array(v ...float32) PropertyValue
- func F64(v float64) PropertyValue
- func F64Array(v ...float64) PropertyValue
- func I64(v int64) PropertyValue
- func I64Array(v ...int64) PropertyValue
- func MustPropertyValue(value any) PropertyValue
- func Null() PropertyValue
- func Object(v map[string]PropertyValue) PropertyValue
- func ObjectFromEntries(entries ...ObjectEntry) PropertyValue
- func PropertyValueOf(value any) (PropertyValue, error)
- func String(v string) PropertyValue
- func StringArray(v ...string) PropertyValue
- type Props
- type QueryErrorCode
- type QueryParamType
- func ParamTypeArray(inner QueryParamType) QueryParamType
- func ParamTypeBool() QueryParamType
- func ParamTypeBytes() QueryParamType
- func ParamTypeDateTime() QueryParamType
- func ParamTypeF32() QueryParamType
- func ParamTypeF64() QueryParamType
- func ParamTypeI64() QueryParamType
- func ParamTypeObject() QueryParamType
- func ParamTypeString() QueryParamType
- func ParamTypeValue() QueryParamType
- type QueryRequest
- func (q *QueryRequest) ClearQueryName()
- func (q *QueryRequest) InsertTypedParameter(name string, ty QueryParamType, value QueryValue) error
- func (q *QueryRequest) InsertUntypedParameter(name string, value QueryValue) error
- func (q *QueryRequest) MarshalJSON() ([]byte, error)
- func (q *QueryRequest) ParamArray(name string, value any, inner QueryParamType) ParamRef
- func (q *QueryRequest) ParamBool(name string, value bool) ParamRef
- func (q *QueryRequest) ParamDateTime(name string, value any) ParamRef
- func (q *QueryRequest) ParamF32(name string, value any) ParamRef
- func (q *QueryRequest) ParamF64(name string, value any) ParamRef
- func (q *QueryRequest) ParamI64(name string, value any) ParamRef
- func (q *QueryRequest) ParamObject(name string, value any, inner ...QueryParamType) ParamRef
- func (q *QueryRequest) ParamString(name string, value string) ParamRef
- func (q *QueryRequest) ParamValue(name string, value any) ParamRef
- func (q *QueryRequest) RequestType() QueryRequestType
- func (q *QueryRequest) SetQueryName(name string)
- func (q *QueryRequest) Validate() error
- func (q *QueryRequest) WithQueryName(name string) *QueryRequest
- func (q *QueryRequest) WithTypedParameter(name string, ty QueryParamType, value QueryValue) *QueryRequest
- func (q *QueryRequest) WithUntypedParameter(name string, value QueryValue) *QueryRequest
- type QueryRequestType
- type QueryValue
- func QueryArray(values ...QueryValue) QueryValue
- func QueryBool(value bool) QueryValue
- func QueryF32(value float32) QueryValue
- func QueryF64(value float64) QueryValue
- func QueryI64(value int64) QueryValue
- func QueryNull() QueryValue
- func QueryObject(values map[string]QueryValue) QueryValue
- func QueryString(value string) QueryValue
- type RangeIndexDirection
- type ReadBatch
- func (b *ReadBatch) Err() error
- func (b *ReadBatch) ForEachParam(param string, body *ReadBatch) *ReadBatch
- func (b *ReadBatch) MarshalJSON() ([]byte, error)
- func (b *ReadBatch) Returning(vars ...string) *ReadBatch
- func (b *ReadBatch) UnmarshalJSON(data []byte) error
- func (b *ReadBatch) Validate() error
- func (b *ReadBatch) VarAs(name string, traversal *Traversal) *ReadBatch
- func (b *ReadBatch) VarAsIf(name string, condition BatchCondition, traversal *Traversal) *ReadBatch
- type ReadQueryBuilder
- func (q *ReadQueryBuilder) ForEachParam(param string, body *ReadBatch) *ReadQueryBuilder
- func (q *ReadQueryBuilder) ParamArray(name string, value any, inner QueryParamType) ParamRef
- func (q *ReadQueryBuilder) ParamBool(name string, value bool) ParamRef
- func (q *ReadQueryBuilder) ParamDateTime(name string, value any) ParamRef
- func (q *ReadQueryBuilder) ParamF32(name string, value any) ParamRef
- func (q *ReadQueryBuilder) ParamF64(name string, value any) ParamRef
- func (q *ReadQueryBuilder) ParamI64(name string, value any) ParamRef
- func (q *ReadQueryBuilder) ParamObject(name string, value any, inner ...QueryParamType) ParamRef
- func (q *ReadQueryBuilder) ParamString(name string, value string) ParamRef
- func (q *ReadQueryBuilder) ParamValue(name string, value any) ParamRef
- func (q *ReadQueryBuilder) Returning(vars ...string) Request
- func (q *ReadQueryBuilder) VarAs(name string, traversal *Traversal) *ReadQueryBuilder
- func (q *ReadQueryBuilder) VarAsIf(name string, condition BatchCondition, traversal *Traversal) *ReadQueryBuilder
- func (q *ReadQueryBuilder) WithTypedParameter(name string, ty QueryParamType, value QueryValue) *ReadQueryBuilder
- func (q *ReadQueryBuilder) WithUntypedParameter(name string, value QueryValue) *ReadQueryBuilder
- type RepeatConfig
- func (r RepeatConfig) EmitAfter() RepeatConfig
- func (r RepeatConfig) EmitAll() RepeatConfig
- func (r RepeatConfig) EmitBefore() RepeatConfig
- func (r RepeatConfig) EmitIf(pred Predicate) RepeatConfig
- func (r RepeatConfig) MarshalJSON() ([]byte, error)
- func (r RepeatConfig) UntilPred(pred Predicate) RepeatConfig
- func (r RepeatConfig) WithMaxDepth(max int) RepeatConfig
- func (r RepeatConfig) WithTimes(times int) RepeatConfig
- type Request
- type ShortestPathDirection
- type ShortestPathOptions
- type SourcePredicate
- func SourceAnd(preds ...SourcePredicate) SourcePredicate
- func SourceBetween(property string, min any, max any) SourcePredicate
- func SourceCompare(left Expr, op CompareOp, right Expr) SourcePredicate
- func SourceContains(property, needle string) SourcePredicate
- func SourceContainsExpr(property string, expr Expr) SourcePredicate
- func SourceEndsWith(property, suffix string) SourcePredicate
- func SourceEq(property string, value any) SourcePredicate
- func SourceGt(property string, value any) SourcePredicate
- func SourceGte(property string, value any) SourcePredicate
- func SourceHasKey(property string) SourcePredicate
- func SourceIsIn(property string, value any) SourcePredicate
- func SourceIsInExpr(property string, expr Expr) SourcePredicate
- func SourceIsNotNull(property string) SourcePredicate
- func SourceIsNull(property string) SourcePredicate
- func SourceLt(property string, value any) SourcePredicate
- func SourceLte(property string, value any) SourcePredicate
- func SourceNeq(property string, value any) SourcePredicate
- func SourceNot(pred SourcePredicate) SourcePredicate
- func SourceOr(preds ...SourcePredicate) SourcePredicate
- func SourceStartsWith(property, prefix string) SourcePredicate
- type Step
- func CreateTextIndexEdgesStep(label, property string, tenantProperty ...string) Step
- func CreateTextIndexNodesStep(label, property string, tenantProperty ...string) Step
- func CreateVectorIndexEdgesStep(label, property string, dimension uint, metric VectorDistanceMetric, ...) Step
- func CreateVectorIndexNodesStep(label, property string, dimension uint, metric VectorDistanceMetric, ...) Step
- type StreamBound
- type SubTraversal
- func (s SubTraversal) Bind(name string) SubTraversal
- func (s SubTraversal) Both(label ...string) SubTraversal
- func (s SubTraversal) Count() SubTraversal
- func (s SubTraversal) In(label ...string) SubTraversal
- func (s SubTraversal) Limit(bound any) SubTraversal
- func (s SubTraversal) MarshalJSON() ([]byte, error)
- func (s SubTraversal) Out(label ...string) SubTraversal
- func (s SubTraversal) Where(pred Predicate) SubTraversal
- type Traversal
- func (t *Traversal) AbortIndexOperation(operationID string) *Traversal
- func (t *Traversal) AddE(label string, to NodeRef, props Props) *Traversal
- func (t *Traversal) AddN(label string, props Props) *Traversal
- func (t *Traversal) AggregateBy(fn AggregateFunction, property string) *Traversal
- func (t *Traversal) As(name string) *Traversal
- func (t *Traversal) Bind(name string) *Traversal
- func (t *Traversal) Both(label ...string) *Traversal
- func (t *Traversal) BothE(label ...string) *Traversal
- func (t *Traversal) Choose(condition Predicate, thenTraversal SubTraversal, elseTraversal ...SubTraversal) *Traversal
- func (t *Traversal) Coalesce(traversals ...SubTraversal) *Traversal
- func (t *Traversal) Count() *Traversal
- func (t *Traversal) CreateIndexIfNotExists(spec IndexSpec) *Traversal
- func (t *Traversal) CreateTextIndexEdges(label, property string, tenantProperty ...string) *Traversal
- func (t *Traversal) CreateTextIndexNodes(label, property string, tenantProperty ...string) *Traversal
- func (t *Traversal) CreateVectorIndexEdges(label, property string, dimension uint, metric VectorDistanceMetric, ...) *Traversal
- func (t *Traversal) CreateVectorIndexNodes(label, property string, dimension uint, metric VectorDistanceMetric, ...) *Traversal
- func (t *Traversal) Dedup() *Traversal
- func (t *Traversal) Drop() *Traversal
- func (t *Traversal) DropEdge(to NodeRef) *Traversal
- func (t *Traversal) DropEdgeByID(ref EdgeRef) *Traversal
- func (t *Traversal) DropEdgeLabeled(to NodeRef, label string) *Traversal
- func (t *Traversal) DropIndex(spec IndexSpec) *Traversal
- func (t *Traversal) E(ref EdgeRef) *Traversal
- func (t *Traversal) EWhere(pred SourcePredicate) *Traversal
- func (t *Traversal) EWithLabel(label string) *Traversal
- func (t *Traversal) EWithLabelWhere(label string, pred SourcePredicate) *Traversal
- func (t *Traversal) EdgeHas(property string, value any) *Traversal
- func (t *Traversal) EdgeHasLabel(label string) *Traversal
- func (t *Traversal) EdgeProperties() *Traversal
- func (t *Traversal) Err() error
- func (t *Traversal) Exists() *Traversal
- func (t *Traversal) Fold() *Traversal
- func (t *Traversal) GetIndexOperation(operationID string) *Traversal
- func (t *Traversal) Group(property string) *Traversal
- func (t *Traversal) GroupCount(property string) *Traversal
- func (t *Traversal) Has(property string, value any) *Traversal
- func (t *Traversal) HasKey(property string) *Traversal
- func (t *Traversal) HasLabel(label string) *Traversal
- func (t *Traversal) ID() *Traversal
- func (t *Traversal) In(label ...string) *Traversal
- func (t *Traversal) InE(label ...string) *Traversal
- func (t *Traversal) InN() *Traversal
- func (t *Traversal) Inject(name string) *Traversal
- func (t *Traversal) Label() *Traversal
- func (t *Traversal) Limit(bound any) *Traversal
- func (t *Traversal) MarshalJSON() ([]byte, error)
- func (t *Traversal) N(ref NodeRef) *Traversal
- func (t *Traversal) NWhere(pred SourcePredicate) *Traversal
- func (t *Traversal) NWithLabel(label string) *Traversal
- func (t *Traversal) NWithLabelWhere(label string, pred SourcePredicate) *Traversal
- func (t *Traversal) Optional(traversal SubTraversal) *Traversal
- func (t *Traversal) OrderBy(property string, order Order) *Traversal
- func (t *Traversal) OrderByMultiple(orderings ...Ordering) *Traversal
- func (t *Traversal) OtherN() *Traversal
- func (t *Traversal) Out(label ...string) *Traversal
- func (t *Traversal) OutE(label ...string) *Traversal
- func (t *Traversal) OutN() *Traversal
- func (t *Traversal) Path() *Traversal
- func (t *Traversal) Project(projections ...Projection) *Traversal
- func (t *Traversal) ProjectBindings(projections ...BindingProjection) *Traversal
- func (t *Traversal) ProjectDistinctBindings(projections ...BindingProjection) *Traversal
- func (t *Traversal) Range(start any, end any) *Traversal
- func (t *Traversal) RemoveProperty(name string) *Traversal
- func (t *Traversal) Repeat(config RepeatConfig) *Traversal
- func (t *Traversal) RetryIndexOperation(operationID string) *Traversal
- func (t *Traversal) Root() (any, error)
- func (t *Traversal) SackAdd(property string) *Traversal
- func (t *Traversal) SackGet() *Traversal
- func (t *Traversal) SackSet(property string) *Traversal
- func (t *Traversal) Select(name string) *Traversal
- func (t *Traversal) SetProperty(name string, value any) *Traversal
- func (t *Traversal) ShortestPath(source, target NodeRef, maxDepth int, options ...ShortestPathOptions) *Traversal
- func (t *Traversal) SimplePath() *Traversal
- func (t *Traversal) Skip(bound any) *Traversal
- func (t *Traversal) Steps() []Step
- func (t *Traversal) Store(name string) *Traversal
- func (t *Traversal) TextSearchEdges(label, property string, queryText any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) TextSearchEdgesWith(label, property string, queryText PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) TextSearchEdgesWithin(label, property string, queryText any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) TextSearchEdgesWithinWith(label, property string, queryText PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) TextSearchNodes(label, property string, queryText any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) TextSearchNodesWith(label, property string, queryText PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) TextSearchNodesWithin(label, property string, queryText any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) TextSearchNodesWithinWith(label, property string, queryText PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) Unfold() *Traversal
- func (t *Traversal) Union(traversals ...SubTraversal) *Traversal
- func (t *Traversal) Validate() error
- func (t *Traversal) ValueMap(properties ...string) *Traversal
- func (t *Traversal) ValueMapAll() *Traversal
- func (t *Traversal) Values(properties ...string) *Traversal
- func (t *Traversal) VectorSearchEdges(label, property string, queryVector any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) VectorSearchEdgesWith(label, property string, queryVector PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) VectorSearchEdgesWithin(label, property string, queryVector any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) VectorSearchEdgesWithinWith(label, property string, queryVector PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) VectorSearchNodes(label, property string, queryVector any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) VectorSearchNodesWith(label, property string, queryVector PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) VectorSearchNodesWithin(label, property string, queryVector any, k any, tenantValue ...any) *Traversal
- func (t *Traversal) VectorSearchNodesWithinWith(label, property string, queryVector PropertyInput, k StreamBound, ...) *Traversal
- func (t *Traversal) Where(pred Predicate) *Traversal
- func (t *Traversal) WithSack(value any) *Traversal
- func (t *Traversal) Within(name string) *Traversal
- func (t *Traversal) Without(name string) *Traversal
- type TraversalDirection
- type TraversalOptions
- type TraversalResult
- type TraversalStrategy
- type TraversedEdge
- type VectorDistanceMetric
- type VectorMemoryOnlyCache
- type Visit
- type WhenThen
- type WriteBatch
- func (b *WriteBatch) Err() error
- func (b *WriteBatch) ForEachParam(param string, body *WriteBatch) *WriteBatch
- func (b *WriteBatch) MarshalJSON() ([]byte, error)
- func (b *WriteBatch) Returning(vars ...string) *WriteBatch
- func (b *WriteBatch) UnmarshalJSON(data []byte) error
- func (b *WriteBatch) Validate() error
- func (b *WriteBatch) VarAs(name string, traversal *Traversal) *WriteBatch
- func (b *WriteBatch) VarAsIf(name string, condition BatchCondition, traversal *Traversal) *WriteBatch
- type WriteQueryBuilder
- func (q *WriteQueryBuilder) ForEachParam(param string, body *WriteBatch) *WriteQueryBuilder
- func (q *WriteQueryBuilder) ParamArray(name string, value any, inner QueryParamType) ParamRef
- func (q *WriteQueryBuilder) ParamBool(name string, value bool) ParamRef
- func (q *WriteQueryBuilder) ParamDateTime(name string, value any) ParamRef
- func (q *WriteQueryBuilder) ParamF32(name string, value any) ParamRef
- func (q *WriteQueryBuilder) ParamF64(name string, value any) ParamRef
- func (q *WriteQueryBuilder) ParamI64(name string, value any) ParamRef
- func (q *WriteQueryBuilder) ParamObject(name string, value any, inner ...QueryParamType) ParamRef
- func (q *WriteQueryBuilder) ParamString(name string, value string) ParamRef
- func (q *WriteQueryBuilder) ParamValue(name string, value any) ParamRef
- func (q *WriteQueryBuilder) Returning(vars ...string) Request
- func (q *WriteQueryBuilder) VarAs(name string, traversal *Traversal) *WriteQueryBuilder
- func (q *WriteQueryBuilder) VarAsIf(name string, condition BatchCondition, traversal *Traversal) *WriteQueryBuilder
- func (q *WriteQueryBuilder) WithTypedParameter(name string, ty QueryParamType, value QueryValue) *WriteQueryBuilder
- func (q *WriteQueryBuilder) WithUntypedParameter(name string, value QueryValue) *WriteQueryBuilder
Constants ¶
This section is empty.
Variables ¶
var ( ErrWriteTraversalInReadBatch = errors.New("helix: read batch cannot contain write traversal") ErrUnsupportedBytesParameter = errors.New("helix: query JSON cannot represent bytes parameters") ErrDuplicateParameter = errors.New("helix: duplicate parameter") ErrEmptyParameterName = errors.New("helix: parameter name must not be empty") ErrMixedParameterModes = errors.New("helix: typed and untyped parameters cannot be mixed") ErrInvalidParameterType = errors.New("helix: invalid parameter type") ErrInvalidDateTimeParameter = errors.New("helix: invalid datetime parameter") )
var ErrConflict = errors.New("helix: conflict")
Functions ¶
func IsConflict ¶ added in v0.1.1
func MarshalRequest ¶
Types ¶
type AggregateFunction ¶
type AggregateFunction string
const ( AggregateCount AggregateFunction = "count" AggregateSum AggregateFunction = "sum" AggregateMin AggregateFunction = "min" AggregateMax AggregateFunction = "max" AggregateMean AggregateFunction = "mean" )
type BatchCondition ¶
type BatchCondition struct {
// contains filtered or unexported fields
}
func PrevNotEmpty ¶
func PrevNotEmpty() BatchCondition
func VarEmpty ¶
func VarEmpty(name string) BatchCondition
func VarMinSize ¶
func VarMinSize(name string, size int) BatchCondition
func VarNotEmpty ¶
func VarNotEmpty(name string) BatchCondition
func (BatchCondition) MarshalJSON ¶
func (b BatchCondition) MarshalJSON() ([]byte, error)
func (*BatchCondition) UnmarshalJSON ¶ added in v0.3.0
func (b *BatchCondition) UnmarshalJSON(data []byte) error
type BatchEntry ¶
type BatchEntry struct {
// contains filtered or unexported fields
}
func (BatchEntry) MarshalJSON ¶
func (b BatchEntry) MarshalJSON() ([]byte, error)
func (*BatchEntry) UnmarshalJSON ¶ added in v0.3.0
func (b *BatchEntry) UnmarshalJSON(data []byte) error
type BatchQuery ¶ added in v0.3.0
type BatchQuery struct {
// contains filtered or unexported fields
}
BatchQuery is the closed read-or-write batch union used by QueryRequest.
func ReadBatchQuery ¶ added in v0.3.0
func ReadBatchQuery(batch *ReadBatch) BatchQuery
func WriteBatchQuery ¶ added in v0.3.0
func WriteBatchQuery(batch *WriteBatch) BatchQuery
func (BatchQuery) MarshalJSON ¶ added in v0.3.0
func (q BatchQuery) MarshalJSON() ([]byte, error)
func (BatchQuery) Validate ¶ added in v0.3.0
func (q BatchQuery) Validate() error
type BetweennessMode ¶ added in v0.3.0
type BetweennessMode uint8
const ( BetweennessExact BetweennessMode = iota + 1 BetweennessSampled BetweennessAuto )
type BetweennessOptions ¶ added in v0.3.0
type BetweennessOptions struct {
Mode BetweennessMode
SampleCount uint64
Seed uint64
ExactThrough uint64
Normalized bool
Endpoints bool
Weighted bool
}
func GraphifyBetweennessOptions ¶ added in v0.3.0
func GraphifyBetweennessOptions() BetweennessOptions
type BindingProjection ¶ added in v0.1.3
type BindingProjection struct {
Kind string `json:"kind"`
Target *BindingTarget `json:"target,omitempty"`
Source string `json:"source,omitempty"`
Alias string `json:"alias"`
Refs []BindingValueRef `json:"refs,omitempty"`
}
func ProjectBinding ¶ added in v0.1.3
func ProjectBinding(target BindingTarget, source, alias string) BindingProjection
func ProjectBindingCoalesce ¶ added in v0.1.3
func ProjectBindingCoalesce(refs []BindingValueRef, alias string) BindingProjection
func ProjectCurrentBinding ¶ added in v0.1.3
func ProjectCurrentBinding(source, alias string) BindingProjection
func ProjectNamedBinding ¶ added in v0.1.3
func ProjectNamedBinding(name, source, alias string) BindingProjection
func (BindingProjection) MarshalJSON ¶ added in v0.3.0
func (p BindingProjection) MarshalJSON() ([]byte, error)
type BindingTarget ¶ added in v0.1.3
type BindingTarget struct {
// contains filtered or unexported fields
}
func Binding ¶ added in v0.1.3
func Binding(name string) BindingTarget
func CurrentBinding ¶ added in v0.1.3
func CurrentBinding() BindingTarget
func (BindingTarget) MarshalJSON ¶ added in v0.1.3
func (t BindingTarget) MarshalJSON() ([]byte, error)
type BindingValueRef ¶ added in v0.1.3
type BindingValueRef struct {
Target BindingTarget `json:"target"`
Source string `json:"source"`
}
func BindingValue ¶ added in v0.1.3
func BindingValue(target BindingTarget, source string) BindingValueRef
func CurrentBindingValue ¶ added in v0.1.3
func CurrentBindingValue(source string) BindingValueRef
func NamedBindingValue ¶ added in v0.1.3
func NamedBindingValue(name, source string) BindingValueRef
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewEmbeddedClient ¶ added in v0.3.0
func NewEmbeddedClient(source HelixDbSource, opts ...ClientOption) (*Client, error)
func NewEmbeddedClientWithConfig ¶ added in v0.3.0
func NewEmbeddedClientWithConfig(source HelixDbSource, cache EmbeddedCacheConfig, opts ...ClientOption) (*Client, error)
func NewEmbeddedReaderClient ¶ added in v0.3.0
func NewEmbeddedReaderClient(source HelixDbSource, opts ...ClientOption) (*Client, error)
func NewEmbeddedReaderClientWithConfig ¶ added in v0.3.0
func NewEmbeddedReaderClientWithConfig(source HelixDbSource, cache EmbeddedCacheConfig, opts ...ClientOption) (*Client, error)
func (*Client) ClearAPIKey ¶
func (*Client) Graph ¶ added in v0.3.0
func (c *Client) Graph(ctx context.Context, selection GraphSelection) (*NativeGraph, error)
Graph executes exactly one ordinary read and returns a reusable native graph.
func (*Client) WithAPIKey ¶
type ClientOption ¶
type ClientOption func(*Client)
func WithAPIKey ¶
func WithAPIKey(apiKey string) ClientOption
func WithHTTPClient ¶
func WithHTTPClient(httpClient *http.Client) ClientOption
type CommunityResult ¶ added in v0.3.0
type CycleResult ¶ added in v0.3.0
type DateTime ¶
type DateTime struct {
// contains filtered or unexported fields
}
func DateTimeFromMillis ¶
func ParseDateTimeRFC3339 ¶
type DegreeKind ¶ added in v0.3.0
type DegreeKind uint8
const ( DegreeIn DegreeKind = iota + 1 DegreeOut DegreeTotal )
type DiskSource ¶ added in v0.3.0
type EdgeRef ¶
type EdgeRef struct {
// contains filtered or unexported fields
}
func (EdgeRef) MarshalJSON ¶
type EdgeTraversalDirection ¶ added in v0.3.0
type EdgeTraversalDirection uint8
const ( EdgeTraversalForward EdgeTraversalDirection = iota + 1 EdgeTraversalReverse )
type EmbeddedCacheConfig ¶ added in v0.3.0
type EmbeddedCacheConfig struct {
VectorMemoryBytes uint64
Mode EmbeddedCacheMode
}
type EmbeddedCacheMode ¶ added in v0.3.0
type EmbeddedCacheMode interface {
// contains filtered or unexported methods
}
type EmitBehavior ¶
type EmitBehavior string
const ( EmitNone EmitBehavior = "none" EmitBefore EmitBehavior = "before" EmitAfter EmitBehavior = "after" EmitAll EmitBehavior = "all" )
type ExecOption ¶
type ExecOption func(*execOptions)
func AwaitDurability ¶
func AwaitDurability(should bool) ExecOption
func WarmOnly ¶
func WarmOnly() ExecOption
func WriterOnly ¶
func WriterOnly() ExecOption
type Expr ¶
type Expr struct {
// contains filtered or unexported fields
}
func ExprDateTime ¶
func ExprDateTime() Expr
func ExprTimestamp ¶
func ExprTimestamp() Expr
func (Expr) MarshalJSON ¶
type GraphDirection ¶ added in v0.3.0
type GraphDirection uint8
GraphDirection controls whether algorithms preserve stored edge direction.
const ( GraphDirected GraphDirection = iota + 1 GraphUndirected )
type GraphEdge ¶ added in v0.3.0
type GraphEdge struct {
ID string
GraphifyKey *string
Source string
Target string
Label *string
Weight *float64
AttributesJSON []byte
}
GraphEdge preserves stable Helix identity and optional Graphify key.
type GraphSelection ¶ added in v0.3.0
type GraphSelection struct {
NodeTraversal *Traversal
EdgeTraversal *Traversal
Direction GraphDirection
NodeProperties []string
EdgeProperties []string
ExternalIdentityProperty string
GraphifyEdgeKeyProperty string
WeightProperty string
MaxNodes uint64
MaxEdges uint64
AllowFullScan bool
}
GraphSelection builds the single ordinary read used by Client.Graph.
type HelixDbSource ¶ added in v0.3.0
type HelixDbSource interface {
// contains filtered or unexported methods
}
type HelixError ¶
type HelixError struct {
Kind ErrorKind
Code QueryErrorCode
Details string
StatusCode int
Err error
}
func (*HelixError) Error ¶
func (e *HelixError) Error() string
func (*HelixError) Unwrap ¶
func (e *HelixError) Unwrap() error
type HybridCache ¶ added in v0.3.0
type InMemorySource ¶ added in v0.3.0
type InMemorySource struct {
Database string
}
type IndexDdlAccepted ¶ added in v0.3.0
type IndexDdlAccepted struct {
Kind string `json:"kind"`
OperationID IndexOperationID `json:"operation_id"`
IndexID string `json:"index_id"`
Generation string `json:"generation"`
}
IndexDdlAccepted reports newly accepted durable lifecycle work.
type IndexDdlAlreadyActive ¶ added in v0.3.0
type IndexDdlAlreadyActive struct {
Kind string `json:"kind"`
IndexID string `json:"index_id"`
Generation string `json:"generation"`
}
IndexDdlAlreadyActive reports an identical active generation.
type IndexDdlExistingOperation ¶ added in v0.3.0
type IndexDdlExistingOperation struct {
Kind string `json:"kind"`
OperationID IndexOperationID `json:"operation_id"`
}
IndexDdlExistingOperation converges on already-running lifecycle work.
type IndexDdlReceipt ¶ added in v0.3.0
type IndexDdlReceipt interface {
// contains filtered or unexported methods
}
IndexDdlReceipt is implemented by every tagged CREATE/DROP receipt variant.
func UnmarshalIndexDdlReceipt ¶ added in v0.3.0
func UnmarshalIndexDdlReceipt(data []byte) (IndexDdlReceipt, error)
UnmarshalIndexDdlReceipt decodes a tagged receipt and ignores additive fields.
type IndexErrorCode ¶ added in v0.3.0
type IndexErrorCode string
IndexErrorCode is a stable machine-readable public lifecycle error.
const ( IndexAlreadyExists IndexErrorCode = "index_already_exists" IndexDefinitionConflict IndexErrorCode = "index_definition_conflict" IndexBusy IndexErrorCode = "index_busy" IndexNotFound IndexErrorCode = "index_not_found" IndexOperationNotFound IndexErrorCode = "index_operation_not_found" IndexOperationNotAbortable IndexErrorCode = "index_operation_not_abortable" IndexIDExhausted IndexErrorCode = "index_id_exhausted" VectorPhysicalIDExhausted IndexErrorCode = "vector_physical_id_exhausted" IndexGenerationExhausted IndexErrorCode = "index_generation_exhausted" IndexRevisionExhausted IndexErrorCode = "index_revision_exhausted" IndexOperationRevisionExhausted IndexErrorCode = "index_operation_revision_exhausted" StaleIndexGeneration IndexErrorCode = "stale_index_generation" WriterFencedCommitOutcomeUnknown IndexErrorCode = "writer_fenced_commit_outcome_unknown" )
type IndexOperationAborted ¶ added in v0.3.0
type IndexOperationAborted struct {
Status string `json:"status"`
IndexOperationStatusCommon
}
IndexOperationAborted completed cleanup for an explicitly aborted build.
type IndexOperationBlocked ¶ added in v0.3.0
type IndexOperationBlocked struct {
Status string `json:"status"`
IndexOperationStatusCommon
BlockerCode IndexOperationBlockerCode `json:"blocker_code"`
Message string `json:"message,omitempty"`
}
IndexOperationBlocked requires an explicit retry or abort.
type IndexOperationBlockerCode ¶ added in v0.3.0
type IndexOperationBlockerCode string
IndexOperationBlockerCode is a stable reason explicit control is required.
const ( IndexBlockerInvalidSourceData IndexOperationBlockerCode = "invalid_source_data" IndexBlockerUniquenessViolation IndexOperationBlockerCode = "uniqueness_violation" IndexBlockerOversizedEntity IndexOperationBlockerCode = "oversized_entity" IndexBlockerManifestLimit IndexOperationBlockerCode = "manifest_limit" IndexBlockerInvariantViolation IndexOperationBlockerCode = "invariant_violation" )
type IndexOperationID ¶ added in v0.3.0
type IndexOperationID string
IndexOperationID is a canonical lowercase non-nil lifecycle UUID.
type IndexOperationProgress ¶ added in v0.3.0
type IndexOperationProgress struct {
Entities string `json:"entities"`
InputBytes string `json:"input_bytes"`
OutputOperations string `json:"output_operations"`
OutputBytes string `json:"output_bytes"`
}
IndexOperationProgress contains decimal-string bounded-work counters.
type IndexOperationQueued ¶ added in v0.3.0
type IndexOperationQueued struct {
Status string `json:"status"`
IndexOperationStatusCommon
}
IndexOperationQueued is runnable, including bounded retry delay.
type IndexOperationRunning ¶ added in v0.3.0
type IndexOperationRunning struct {
Status string `json:"status"`
IndexOperationStatusCommon
}
IndexOperationRunning is currently claimed by a fenced writer.
type IndexOperationStatus ¶ added in v0.3.0
type IndexOperationStatus interface {
// contains filtered or unexported methods
}
IndexOperationStatus is implemented by each tagged status variant.
func UnmarshalIndexOperationStatus ¶ added in v0.3.0
func UnmarshalIndexOperationStatus(data []byte) (IndexOperationStatus, error)
UnmarshalIndexOperationStatus decodes a tagged status and ignores additive fields.
type IndexOperationStatusCommon ¶ added in v0.3.0
type IndexOperationStatusCommon struct {
OperationID IndexOperationID `json:"operation_id"`
IndexID string `json:"index_id"`
Generation string `json:"generation"`
OperationKind string `json:"operation_kind"`
Family string `json:"family"`
Stage string `json:"stage"`
Attempt uint32 `json:"attempt"`
Progress IndexOperationProgress `json:"progress"`
}
IndexOperationStatusCommon contains fields shared by every status variant.
type IndexOperationSucceeded ¶ added in v0.3.0
type IndexOperationSucceeded struct {
Status string `json:"status"`
IndexOperationStatusCommon
}
IndexOperationSucceeded completed a build or drop successfully.
type IndexSpec ¶
type IndexSpec struct {
// contains filtered or unexported fields
}
func EdgeEqualityIndex ¶
func EdgeRangeDescIndex ¶ added in v0.1.2
func EdgeRangeIndex ¶
func EdgeRangeIndexWithDirection ¶ added in v0.1.2
func EdgeRangeIndexWithDirection(label, property string, direction RangeIndexDirection) IndexSpec
func EdgeTextIndex ¶
func EdgeVectorIndex ¶
func EdgeVectorIndex(label, property string, dimension uint, metric VectorDistanceMetric, tenantProperty ...string) IndexSpec
func NodeEqualityIndex ¶
func NodeRangeDescIndex ¶ added in v0.1.2
func NodeRangeIndex ¶
func NodeRangeIndexWithDirection ¶ added in v0.1.2
func NodeRangeIndexWithDirection(label, property string, direction RangeIndexDirection) IndexSpec
func NodeTextIndex ¶
func NodeUniqueEqualityIndex ¶
func NodeVectorIndex ¶
func NodeVectorIndex(label, property string, dimension uint, metric VectorDistanceMetric, tenantProperty ...string) IndexSpec
func (IndexSpec) MarshalJSON ¶
type LayoutOptions ¶ added in v0.3.0
type LayoutOptions struct {
K *float64
Iterations uint64
Seed uint64
Weighted bool
InitialPositions []NodePosition
}
type LouvainOptions ¶ added in v0.3.0
type MemoryCache ¶ added in v0.3.0
type MemoryCache struct{}
type NamedQuery ¶
type NamedQuery struct {
Name string `json:"name,omitempty"`
Root any `json:"root"`
Condition *BatchCondition `json:"condition,omitempty"`
}
type NativeGraph ¶ added in v0.3.0
type NativeGraph struct {
// contains filtered or unexported fields
}
NativeGraph is immutable; algorithms never query Helix after construction.
func (*NativeGraph) AttributesJSON ¶ added in v0.3.0
func (g *NativeGraph) AttributesJSON() ([]byte, error)
func (*NativeGraph) BetweennessCentrality ¶ added in v0.3.0
func (g *NativeGraph) BetweennessCentrality(options BetweennessOptions) ([]NodeScore, error)
func (*NativeGraph) Compose ¶ added in v0.3.0
func (g *NativeGraph) Compose(right *NativeGraph) (*NativeGraph, error)
func (*NativeGraph) ContainsEdge ¶ added in v0.3.0
func (g *NativeGraph) ContainsEdge(id string) bool
func (*NativeGraph) ContainsNode ¶ added in v0.3.0
func (g *NativeGraph) ContainsNode(id string) bool
func (*NativeGraph) Copy ¶ added in v0.3.0
func (g *NativeGraph) Copy() *NativeGraph
func (*NativeGraph) Degree ¶ added in v0.3.0
func (g *NativeGraph) Degree(id string, kind DegreeKind) (NodeDegree, error)
func (*NativeGraph) Degrees ¶ added in v0.3.0
func (g *NativeGraph) Degrees(kind DegreeKind) []NodeDegree
func (*NativeGraph) Edge ¶ added in v0.3.0
func (g *NativeGraph) Edge(id string) (*GraphEdge, error)
func (*NativeGraph) EdgeBetweennessCentrality ¶ added in v0.3.0
func (g *NativeGraph) EdgeBetweennessCentrality(options BetweennessOptions) ([]EdgeScore, error)
func (*NativeGraph) EdgeCount ¶ added in v0.3.0
func (g *NativeGraph) EdgeCount() uint64
func (*NativeGraph) Edges ¶ added in v0.3.0
func (g *NativeGraph) Edges() ([]GraphEdge, error)
func (*NativeGraph) EdgesBetween ¶ added in v0.3.0
func (g *NativeGraph) EdgesBetween(source, target string, direction TraversalDirection) ([]string, error)
func (*NativeGraph) HasEdgeBetween ¶ added in v0.3.0
func (g *NativeGraph) HasEdgeBetween(source, target string, direction TraversalDirection) (bool, error)
func (*NativeGraph) InEdgeIDs ¶ added in v0.3.0
func (g *NativeGraph) InEdgeIDs(id string) ([]string, error)
func (*NativeGraph) IncidentEdgeIDs ¶ added in v0.3.0
func (g *NativeGraph) IncidentEdgeIDs(id string) ([]string, error)
func (*NativeGraph) InducedSubgraph ¶ added in v0.3.0
func (g *NativeGraph) InducedSubgraph(ids []string) (*NativeGraph, error)
func (*NativeGraph) IsDirected ¶ added in v0.3.0
func (g *NativeGraph) IsDirected() bool
func (*NativeGraph) IsMultigraph ¶ added in v0.3.0
func (g *NativeGraph) IsMultigraph() bool
func (*NativeGraph) LouvainCommunities ¶ added in v0.3.0
func (g *NativeGraph) LouvainCommunities(options LouvainOptions) (CommunityResult, error)
func (*NativeGraph) Neighbors ¶ added in v0.3.0
func (g *NativeGraph) Neighbors(id string, direction TraversalDirection) ([]string, error)
func (*NativeGraph) Node ¶ added in v0.3.0
func (g *NativeGraph) Node(id string) (*GraphNode, error)
func (*NativeGraph) NodeCount ¶ added in v0.3.0
func (g *NativeGraph) NodeCount() uint64
func (*NativeGraph) Nodes ¶ added in v0.3.0
func (g *NativeGraph) Nodes() ([]GraphNode, error)
func (*NativeGraph) OutEdgeIDs ¶ added in v0.3.0
func (g *NativeGraph) OutEdgeIDs(id string) ([]string, error)
func (*NativeGraph) Predecessors ¶ added in v0.3.0
func (g *NativeGraph) Predecessors(id string) ([]string, error)
func (*NativeGraph) Relabel ¶ added in v0.3.0
func (g *NativeGraph) Relabel(mapping map[string]string) (*NativeGraph, error)
func (*NativeGraph) ShortestPath ¶ added in v0.3.0
func (g *NativeGraph) ShortestPath(source, target string, direction TraversalDirection, labels []string, maxDepth *uint64) (PathResult, error)
func (*NativeGraph) SimpleCycles ¶ added in v0.3.0
func (g *NativeGraph) SimpleCycles(lengthBound uint64, maxCycles *uint64) (CycleResult, error)
func (*NativeGraph) SpringLayout ¶ added in v0.3.0
func (g *NativeGraph) SpringLayout(options LayoutOptions) ([]NodePosition, error)
func (*NativeGraph) Successors ¶ added in v0.3.0
func (g *NativeGraph) Successors(id string) ([]string, error)
func (*NativeGraph) ToUndirected ¶ added in v0.3.0
func (g *NativeGraph) ToUndirected() (*NativeGraph, error)
func (*NativeGraph) Traverse ¶ added in v0.3.0
func (g *NativeGraph) Traverse(options TraversalOptions) (TraversalResult, error)
type NodeDegree ¶ added in v0.3.0
type NodePosition ¶ added in v0.3.0
type NodeRef ¶
type NodeRef struct {
// contains filtered or unexported fields
}
func (NodeRef) MarshalJSON ¶
type ObjectEntry ¶
type ObjectEntry struct {
Key string
Value PropertyValue
}
func Entry ¶
func Entry(key string, value any) ObjectEntry
type ObjectStorageSource ¶ added in v0.3.0
type Ordering ¶
func (Ordering) MarshalJSON ¶
type ParamRef ¶
type ParamRef struct {
Name string
Type QueryParamType
}
func (ParamRef) Bound ¶
func (p ParamRef) Bound() StreamBound
func (ParamRef) Input ¶
func (p ParamRef) Input() PropertyInput
func (ParamRef) MarshalJSON ¶
type PathResult ¶ added in v0.3.0
type PathResult struct {
Kind PathResultKind
NodeIDs []string
Edges []PathEdge
}
type PathResultKind ¶ added in v0.3.0
type PathResultKind uint8
const ( PathMissingSource PathResultKind = iota + 1 PathMissingTarget PathNoPath PathFound )
type Predicate ¶
type Predicate struct {
// contains filtered or unexported fields
}
func PredContains ¶
func PredContainsExpr ¶
func PredEndsWith ¶
func PredHasKey ¶
func PredIsInExpr ¶
func PredIsNotNull ¶
func PredIsNull ¶
func PredStartsWith ¶
func (Predicate) MarshalJSON ¶
type Projection ¶
type Projection struct {
Source string `json:"source,omitempty"`
Alias string `json:"alias"`
Expr *Expr `json:"expr,omitempty"`
}
func ProjectExpr ¶
func ProjectExpr(alias string, expr Expr) Projection
func ProjectFromEndpoint ¶ added in v0.1.2
func ProjectFromEndpoint(source, alias string) Projection
func ProjectProp ¶
func ProjectProp(source string) Projection
func ProjectPropAs ¶
func ProjectPropAs(source, alias string) Projection
func ProjectToEndpoint ¶ added in v0.1.2
func ProjectToEndpoint(source, alias string) Projection
func (Projection) MarshalJSON ¶
func (p Projection) MarshalJSON() ([]byte, error)
type PropPair ¶
type PropPair struct {
Name string
Value PropertyInput
}
func PropInput ¶
func PropInput(name string, value PropertyInput) PropPair
func (PropPair) MarshalJSON ¶
type PropertyInput ¶
type PropertyInput struct {
// contains filtered or unexported fields
}
func ExprInput ¶
func ExprInput(expr Expr) PropertyInput
func ParamInput ¶
func ParamInput(name string) PropertyInput
func ValueInput ¶
func ValueInput(value any) PropertyInput
func (PropertyInput) MarshalJSON ¶
func (p PropertyInput) MarshalJSON() ([]byte, error)
type PropertyValue ¶
type PropertyValue struct {
// contains filtered or unexported fields
}
func Array ¶
func Array(v ...PropertyValue) PropertyValue
func Bool ¶
func Bool(v bool) PropertyValue
func Bytes ¶
func Bytes(v []byte) PropertyValue
func DateTimeMillis ¶
func DateTimeMillis(v int64) PropertyValue
func F32 ¶
func F32(v float32) PropertyValue
func F32Array ¶
func F32Array(v ...float32) PropertyValue
func F64 ¶
func F64(v float64) PropertyValue
func F64Array ¶
func F64Array(v ...float64) PropertyValue
func I64 ¶
func I64(v int64) PropertyValue
func I64Array ¶
func I64Array(v ...int64) PropertyValue
func MustPropertyValue ¶
func MustPropertyValue(value any) PropertyValue
func Null ¶
func Null() PropertyValue
func Object ¶
func Object(v map[string]PropertyValue) PropertyValue
func ObjectFromEntries ¶
func ObjectFromEntries(entries ...ObjectEntry) PropertyValue
func PropertyValueOf ¶
func PropertyValueOf(value any) (PropertyValue, error)
func String ¶
func String(v string) PropertyValue
func StringArray ¶
func StringArray(v ...string) PropertyValue
func (PropertyValue) MarshalJSON ¶
func (p PropertyValue) MarshalJSON() ([]byte, error)
type QueryErrorCode ¶ added in v0.3.0
type QueryErrorCode string
type QueryParamType ¶
type QueryParamType struct {
// contains filtered or unexported fields
}
func ParamTypeArray ¶
func ParamTypeArray(inner QueryParamType) QueryParamType
func ParamTypeBool ¶
func ParamTypeBool() QueryParamType
func ParamTypeBytes ¶
func ParamTypeBytes() QueryParamType
func ParamTypeDateTime ¶
func ParamTypeDateTime() QueryParamType
func ParamTypeF32 ¶
func ParamTypeF32() QueryParamType
func ParamTypeF64 ¶
func ParamTypeF64() QueryParamType
func ParamTypeI64 ¶
func ParamTypeI64() QueryParamType
func ParamTypeObject ¶
func ParamTypeObject() QueryParamType
func ParamTypeString ¶
func ParamTypeString() QueryParamType
func ParamTypeValue ¶
func ParamTypeValue() QueryParamType
func (QueryParamType) MarshalJSON ¶
func (q QueryParamType) MarshalJSON() ([]byte, error)
func (*QueryParamType) UnmarshalJSON ¶ added in v0.3.0
func (q *QueryParamType) UnmarshalJSON(data []byte) error
func (QueryParamType) Validate ¶ added in v0.3.0
func (q QueryParamType) Validate() error
type QueryRequest ¶ added in v0.3.0
type QueryRequest struct {
// contains filtered or unexported fields
}
func NewQueryRequest ¶ added in v0.3.0
func NewQueryRequest(query BatchQuery) *QueryRequest
func NewReadQueryRequest ¶ added in v0.3.0
func NewReadQueryRequest(query *ReadBatch) *QueryRequest
func NewWriteQueryRequest ¶ added in v0.3.0
func NewWriteQueryRequest(query *WriteBatch) *QueryRequest
func (*QueryRequest) ClearQueryName ¶ added in v0.3.0
func (q *QueryRequest) ClearQueryName()
func (*QueryRequest) InsertTypedParameter ¶ added in v0.3.0
func (q *QueryRequest) InsertTypedParameter(name string, ty QueryParamType, value QueryValue) error
func (*QueryRequest) InsertUntypedParameter ¶ added in v0.3.0
func (q *QueryRequest) InsertUntypedParameter(name string, value QueryValue) error
func (*QueryRequest) MarshalJSON ¶ added in v0.3.0
func (q *QueryRequest) MarshalJSON() ([]byte, error)
func (*QueryRequest) ParamArray ¶ added in v0.3.0
func (q *QueryRequest) ParamArray(name string, value any, inner QueryParamType) ParamRef
func (*QueryRequest) ParamBool ¶ added in v0.3.0
func (q *QueryRequest) ParamBool(name string, value bool) ParamRef
func (*QueryRequest) ParamDateTime ¶ added in v0.3.0
func (q *QueryRequest) ParamDateTime(name string, value any) ParamRef
func (*QueryRequest) ParamF32 ¶ added in v0.3.0
func (q *QueryRequest) ParamF32(name string, value any) ParamRef
func (*QueryRequest) ParamF64 ¶ added in v0.3.0
func (q *QueryRequest) ParamF64(name string, value any) ParamRef
func (*QueryRequest) ParamI64 ¶ added in v0.3.0
func (q *QueryRequest) ParamI64(name string, value any) ParamRef
func (*QueryRequest) ParamObject ¶ added in v0.3.0
func (q *QueryRequest) ParamObject(name string, value any, inner ...QueryParamType) ParamRef
func (*QueryRequest) ParamString ¶ added in v0.3.0
func (q *QueryRequest) ParamString(name string, value string) ParamRef
func (*QueryRequest) ParamValue ¶ added in v0.3.0
func (q *QueryRequest) ParamValue(name string, value any) ParamRef
func (*QueryRequest) RequestType ¶ added in v0.3.0
func (q *QueryRequest) RequestType() QueryRequestType
func (*QueryRequest) SetQueryName ¶ added in v0.3.0
func (q *QueryRequest) SetQueryName(name string)
func (*QueryRequest) Validate ¶ added in v0.3.0
func (q *QueryRequest) Validate() error
func (*QueryRequest) WithQueryName ¶ added in v0.3.0
func (q *QueryRequest) WithQueryName(name string) *QueryRequest
func (*QueryRequest) WithTypedParameter ¶ added in v0.3.0
func (q *QueryRequest) WithTypedParameter(name string, ty QueryParamType, value QueryValue) *QueryRequest
func (*QueryRequest) WithUntypedParameter ¶ added in v0.3.0
func (q *QueryRequest) WithUntypedParameter(name string, value QueryValue) *QueryRequest
type QueryRequestType ¶ added in v0.3.0
type QueryRequestType string
const ( RequestTypeRead QueryRequestType = "read" RequestTypeWrite QueryRequestType = "write" )
type QueryValue ¶ added in v0.3.0
type QueryValue any
func QueryArray ¶ added in v0.3.0
func QueryArray(values ...QueryValue) QueryValue
func QueryBool ¶ added in v0.3.0
func QueryBool(value bool) QueryValue
func QueryF32 ¶ added in v0.3.0
func QueryF32(value float32) QueryValue
func QueryF64 ¶ added in v0.3.0
func QueryF64(value float64) QueryValue
func QueryI64 ¶ added in v0.3.0
func QueryI64(value int64) QueryValue
func QueryNull ¶ added in v0.3.0
func QueryNull() QueryValue
func QueryObject ¶ added in v0.3.0
func QueryObject(values map[string]QueryValue) QueryValue
func QueryString ¶ added in v0.3.0
func QueryString(value string) QueryValue
type RangeIndexDirection ¶ added in v0.1.2
type RangeIndexDirection string
const ( RangeIndexAsc RangeIndexDirection = "asc" RangeIndexDesc RangeIndexDirection = "desc" )
type ReadBatch ¶
type ReadBatch struct {
// contains filtered or unexported fields
}
func (*ReadBatch) ForEachParam ¶
func (*ReadBatch) MarshalJSON ¶
func (*ReadBatch) UnmarshalJSON ¶ added in v0.3.0
type ReadQueryBuilder ¶
type ReadQueryBuilder struct{ QueryRequest }
func ReadQuery ¶
func ReadQuery(name string) *ReadQueryBuilder
func (*ReadQueryBuilder) ForEachParam ¶
func (q *ReadQueryBuilder) ForEachParam(param string, body *ReadBatch) *ReadQueryBuilder
func (*ReadQueryBuilder) ParamArray ¶
func (q *ReadQueryBuilder) ParamArray(name string, value any, inner QueryParamType) ParamRef
func (*ReadQueryBuilder) ParamBool ¶
func (q *ReadQueryBuilder) ParamBool(name string, value bool) ParamRef
func (*ReadQueryBuilder) ParamDateTime ¶
func (q *ReadQueryBuilder) ParamDateTime(name string, value any) ParamRef
func (*ReadQueryBuilder) ParamF32 ¶
func (q *ReadQueryBuilder) ParamF32(name string, value any) ParamRef
func (*ReadQueryBuilder) ParamF64 ¶
func (q *ReadQueryBuilder) ParamF64(name string, value any) ParamRef
func (*ReadQueryBuilder) ParamI64 ¶
func (q *ReadQueryBuilder) ParamI64(name string, value any) ParamRef
func (*ReadQueryBuilder) ParamObject ¶
func (q *ReadQueryBuilder) ParamObject(name string, value any, inner ...QueryParamType) ParamRef
func (*ReadQueryBuilder) ParamString ¶
func (q *ReadQueryBuilder) ParamString(name string, value string) ParamRef
func (*ReadQueryBuilder) ParamValue ¶
func (q *ReadQueryBuilder) ParamValue(name string, value any) ParamRef
func (*ReadQueryBuilder) Returning ¶
func (q *ReadQueryBuilder) Returning(vars ...string) Request
func (*ReadQueryBuilder) VarAs ¶
func (q *ReadQueryBuilder) VarAs(name string, traversal *Traversal) *ReadQueryBuilder
func (*ReadQueryBuilder) VarAsIf ¶
func (q *ReadQueryBuilder) VarAsIf(name string, condition BatchCondition, traversal *Traversal) *ReadQueryBuilder
func (*ReadQueryBuilder) WithTypedParameter ¶ added in v0.3.0
func (q *ReadQueryBuilder) WithTypedParameter(name string, ty QueryParamType, value QueryValue) *ReadQueryBuilder
func (*ReadQueryBuilder) WithUntypedParameter ¶ added in v0.3.0
func (q *ReadQueryBuilder) WithUntypedParameter(name string, value QueryValue) *ReadQueryBuilder
type RepeatConfig ¶
type RepeatConfig struct {
Traversal SubTraversal `json:"traversal"`
Times *int `json:"times"`
Until *Predicate `json:"until"`
Emit EmitBehavior `json:"emit"`
EmitPredicate *Predicate `json:"emit_predicate"`
MaxDepth int `json:"max_depth"`
}
func Repeat ¶
func Repeat(traversal SubTraversal) RepeatConfig
func (RepeatConfig) EmitAfter ¶
func (r RepeatConfig) EmitAfter() RepeatConfig
func (RepeatConfig) EmitAll ¶
func (r RepeatConfig) EmitAll() RepeatConfig
func (RepeatConfig) EmitBefore ¶
func (r RepeatConfig) EmitBefore() RepeatConfig
func (RepeatConfig) EmitIf ¶
func (r RepeatConfig) EmitIf(pred Predicate) RepeatConfig
func (RepeatConfig) MarshalJSON ¶ added in v0.3.0
func (r RepeatConfig) MarshalJSON() ([]byte, error)
func (RepeatConfig) UntilPred ¶
func (r RepeatConfig) UntilPred(pred Predicate) RepeatConfig
func (RepeatConfig) WithMaxDepth ¶
func (r RepeatConfig) WithMaxDepth(max int) RepeatConfig
func (RepeatConfig) WithTimes ¶
func (r RepeatConfig) WithTimes(times int) RepeatConfig
type ShortestPathDirection ¶ added in v0.3.0
type ShortestPathDirection string
const ( ShortestPathOut ShortestPathDirection = "out" ShortestPathIn ShortestPathDirection = "in" ShortestPathBoth ShortestPathDirection = "both" )
type ShortestPathOptions ¶ added in v0.3.0
type ShortestPathOptions struct {
Label string
Direction ShortestPathDirection
}
type SourcePredicate ¶
type SourcePredicate = Predicate
func SourceAnd ¶
func SourceAnd(preds ...SourcePredicate) SourcePredicate
func SourceBetween ¶
func SourceBetween(property string, min any, max any) SourcePredicate
func SourceCompare ¶ added in v0.3.0
func SourceCompare(left Expr, op CompareOp, right Expr) SourcePredicate
func SourceContains ¶ added in v0.3.0
func SourceContains(property, needle string) SourcePredicate
func SourceContainsExpr ¶ added in v0.3.0
func SourceContainsExpr(property string, expr Expr) SourcePredicate
func SourceEndsWith ¶ added in v0.3.0
func SourceEndsWith(property, suffix string) SourcePredicate
func SourceEq ¶
func SourceEq(property string, value any) SourcePredicate
func SourceGt ¶
func SourceGt(property string, value any) SourcePredicate
func SourceGte ¶
func SourceGte(property string, value any) SourcePredicate
func SourceHasKey ¶
func SourceHasKey(property string) SourcePredicate
func SourceIsIn ¶ added in v0.3.0
func SourceIsIn(property string, value any) SourcePredicate
func SourceIsInExpr ¶ added in v0.3.0
func SourceIsInExpr(property string, expr Expr) SourcePredicate
func SourceIsNotNull ¶ added in v0.3.0
func SourceIsNotNull(property string) SourcePredicate
func SourceIsNull ¶ added in v0.3.0
func SourceIsNull(property string) SourcePredicate
func SourceLt ¶
func SourceLt(property string, value any) SourcePredicate
func SourceLte ¶
func SourceLte(property string, value any) SourcePredicate
func SourceNeq ¶
func SourceNeq(property string, value any) SourcePredicate
func SourceNot ¶ added in v0.3.0
func SourceNot(pred SourcePredicate) SourcePredicate
func SourceOr ¶
func SourceOr(preds ...SourcePredicate) SourcePredicate
func SourceStartsWith ¶
func SourceStartsWith(property, prefix string) SourcePredicate
type Step ¶
type Step struct {
// contains filtered or unexported fields
}
func CreateVectorIndexEdgesStep ¶
func CreateVectorIndexEdgesStep( label, property string, dimension uint, metric VectorDistanceMetric, tenantProperty ...string, ) Step
func CreateVectorIndexNodesStep ¶
func CreateVectorIndexNodesStep( label, property string, dimension uint, metric VectorDistanceMetric, tenantProperty ...string, ) Step
func (Step) MarshalJSON ¶
type StreamBound ¶
type StreamBound struct {
// contains filtered or unexported fields
}
func BoundExpr ¶
func BoundExpr(expr Expr) StreamBound
func BoundLiteral ¶
func BoundLiteral(value int) StreamBound
func (StreamBound) MarshalJSON ¶
func (s StreamBound) MarshalJSON() ([]byte, error)
type SubTraversal ¶
type SubTraversal struct {
// contains filtered or unexported fields
}
func Sub ¶
func Sub() SubTraversal
func SubTraversalFromSteps ¶
func SubTraversalFromSteps(steps []Step) SubTraversal
func (SubTraversal) Bind ¶ added in v0.1.3
func (s SubTraversal) Bind(name string) SubTraversal
func (SubTraversal) Both ¶
func (s SubTraversal) Both(label ...string) SubTraversal
func (SubTraversal) Count ¶
func (s SubTraversal) Count() SubTraversal
func (SubTraversal) In ¶
func (s SubTraversal) In(label ...string) SubTraversal
func (SubTraversal) Limit ¶
func (s SubTraversal) Limit(bound any) SubTraversal
func (SubTraversal) MarshalJSON ¶
func (s SubTraversal) MarshalJSON() ([]byte, error)
func (SubTraversal) Out ¶
func (s SubTraversal) Out(label ...string) SubTraversal
func (SubTraversal) Where ¶
func (s SubTraversal) Where(pred Predicate) SubTraversal
type Traversal ¶
type Traversal struct {
// contains filtered or unexported fields
}
func TraversalFromSteps ¶
func (*Traversal) AbortIndexOperation ¶ added in v0.3.0
AbortIndexOperation converts one constructing build into abort cleanup.
func (*Traversal) AggregateBy ¶
func (t *Traversal) AggregateBy(fn AggregateFunction, property string) *Traversal
func (*Traversal) Choose ¶
func (t *Traversal) Choose(condition Predicate, thenTraversal SubTraversal, elseTraversal ...SubTraversal) *Traversal
func (*Traversal) Coalesce ¶
func (t *Traversal) Coalesce(traversals ...SubTraversal) *Traversal
func (*Traversal) CreateIndexIfNotExists ¶
func (*Traversal) CreateTextIndexEdges ¶
func (*Traversal) CreateTextIndexNodes ¶
func (*Traversal) CreateVectorIndexEdges ¶
func (*Traversal) CreateVectorIndexNodes ¶
func (*Traversal) DropEdgeByID ¶
func (*Traversal) DropEdgeLabeled ¶
func (*Traversal) EWhere ¶
func (t *Traversal) EWhere(pred SourcePredicate) *Traversal
func (*Traversal) EWithLabel ¶
func (*Traversal) EWithLabelWhere ¶
func (t *Traversal) EWithLabelWhere(label string, pred SourcePredicate) *Traversal
func (*Traversal) EdgeHasLabel ¶
func (*Traversal) EdgeProperties ¶
func (*Traversal) GetIndexOperation ¶ added in v0.3.0
GetIndexOperation reads one retained operation in the request storage scope.
func (*Traversal) GroupCount ¶
func (*Traversal) MarshalJSON ¶
func (*Traversal) NWhere ¶
func (t *Traversal) NWhere(pred SourcePredicate) *Traversal
func (*Traversal) NWithLabel ¶
func (*Traversal) NWithLabelWhere ¶
func (t *Traversal) NWithLabelWhere(label string, pred SourcePredicate) *Traversal
func (*Traversal) Optional ¶
func (t *Traversal) Optional(traversal SubTraversal) *Traversal
func (*Traversal) OrderByMultiple ¶
func (*Traversal) Project ¶
func (t *Traversal) Project(projections ...Projection) *Traversal
func (*Traversal) ProjectBindings ¶ added in v0.1.3
func (t *Traversal) ProjectBindings(projections ...BindingProjection) *Traversal
func (*Traversal) ProjectDistinctBindings ¶ added in v0.1.3
func (t *Traversal) ProjectDistinctBindings(projections ...BindingProjection) *Traversal
func (*Traversal) RemoveProperty ¶
func (*Traversal) Repeat ¶
func (t *Traversal) Repeat(config RepeatConfig) *Traversal
func (*Traversal) RetryIndexOperation ¶ added in v0.3.0
RetryIndexOperation convergently requeues one blocked operation.
func (*Traversal) ShortestPath ¶ added in v0.3.0
func (t *Traversal) ShortestPath(source, target NodeRef, maxDepth int, options ...ShortestPathOptions) *Traversal
func (*Traversal) SimplePath ¶
func (*Traversal) TextSearchEdges ¶
func (*Traversal) TextSearchEdgesWith ¶
func (t *Traversal) TextSearchEdgesWith(label, property string, queryText PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
func (*Traversal) TextSearchEdgesWithin ¶ added in v0.3.0
func (t *Traversal) TextSearchEdgesWithin(label, property string, queryText any, k any, tenantValue ...any) *Traversal
TextSearchEdgesWithin ranks only the current edge stream.
func (*Traversal) TextSearchEdgesWithinWith ¶ added in v0.3.0
func (t *Traversal) TextSearchEdgesWithinWith(label, property string, queryText PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
func (*Traversal) TextSearchNodes ¶
func (*Traversal) TextSearchNodesWith ¶
func (t *Traversal) TextSearchNodesWith(label, property string, queryText PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
func (*Traversal) TextSearchNodesWithin ¶ added in v0.3.0
func (t *Traversal) TextSearchNodesWithin(label, property string, queryText any, k any, tenantValue ...any) *Traversal
TextSearchNodesWithin ranks only the current node stream.
func (*Traversal) TextSearchNodesWithinWith ¶ added in v0.3.0
func (t *Traversal) TextSearchNodesWithinWith(label, property string, queryText PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
func (*Traversal) Union ¶
func (t *Traversal) Union(traversals ...SubTraversal) *Traversal
func (*Traversal) ValueMapAll ¶
func (*Traversal) VectorSearchEdges ¶
func (*Traversal) VectorSearchEdgesWith ¶
func (t *Traversal) VectorSearchEdgesWith(label, property string, queryVector PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
func (*Traversal) VectorSearchEdgesWithin ¶ added in v0.3.0
func (t *Traversal) VectorSearchEdgesWithin(label, property string, queryVector any, k any, tenantValue ...any) *Traversal
VectorSearchEdgesWithin ranks only the current edge stream.
func (*Traversal) VectorSearchEdgesWithinWith ¶ added in v0.3.0
func (t *Traversal) VectorSearchEdgesWithinWith(label, property string, queryVector PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
func (*Traversal) VectorSearchNodes ¶
func (*Traversal) VectorSearchNodesWith ¶
func (t *Traversal) VectorSearchNodesWith(label, property string, queryVector PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
func (*Traversal) VectorSearchNodesWithin ¶ added in v0.3.0
func (t *Traversal) VectorSearchNodesWithin(label, property string, queryVector any, k any, tenantValue ...any) *Traversal
VectorSearchNodesWithin ranks only the current node stream.
func (*Traversal) VectorSearchNodesWithinWith ¶ added in v0.3.0
func (t *Traversal) VectorSearchNodesWithinWith(label, property string, queryVector PropertyInput, k StreamBound, tenantValue *PropertyInput) *Traversal
type TraversalDirection ¶ added in v0.3.0
type TraversalDirection uint8
const ( TraversalOut TraversalDirection = iota + 1 TraversalIn TraversalBoth )
type TraversalOptions ¶ added in v0.3.0
type TraversalOptions struct {
Strategy TraversalStrategy
Seeds []string
MaxDepth uint64
Direction TraversalDirection
AllowedLabels []string
StopNonSeedAtOrAboveDegree *uint64
}
type TraversalResult ¶ added in v0.3.0
type TraversalResult struct {
Visits []Visit
DiscoveryEdges []TraversedEdge
}
type TraversalStrategy ¶ added in v0.3.0
type TraversalStrategy uint8
const ( TraversalBreadthFirst TraversalStrategy = iota + 1 TraversalDepthFirst )
type TraversedEdge ¶ added in v0.3.0
type VectorDistanceMetric ¶ added in v0.3.0
type VectorDistanceMetric string
const ( VectorDistanceCosine VectorDistanceMetric = "cosine" VectorDistanceEuclidean VectorDistanceMetric = "euclidean" VectorDistanceManhattan VectorDistanceMetric = "manhattan" )
type VectorMemoryOnlyCache ¶ added in v0.3.0
type VectorMemoryOnlyCache struct{}
type WriteBatch ¶
type WriteBatch struct {
// contains filtered or unexported fields
}
func Write ¶
func Write() *WriteBatch
func (*WriteBatch) ForEachParam ¶
func (b *WriteBatch) ForEachParam(param string, body *WriteBatch) *WriteBatch
func (*WriteBatch) MarshalJSON ¶
func (b *WriteBatch) MarshalJSON() ([]byte, error)
func (*WriteBatch) Returning ¶
func (b *WriteBatch) Returning(vars ...string) *WriteBatch
func (*WriteBatch) UnmarshalJSON ¶ added in v0.3.0
func (b *WriteBatch) UnmarshalJSON(data []byte) error
func (*WriteBatch) VarAs ¶
func (b *WriteBatch) VarAs(name string, traversal *Traversal) *WriteBatch
func (*WriteBatch) VarAsIf ¶
func (b *WriteBatch) VarAsIf(name string, condition BatchCondition, traversal *Traversal) *WriteBatch
type WriteQueryBuilder ¶
type WriteQueryBuilder struct{ QueryRequest }
func WriteQuery ¶
func WriteQuery(name string) *WriteQueryBuilder
func (*WriteQueryBuilder) ForEachParam ¶
func (q *WriteQueryBuilder) ForEachParam(param string, body *WriteBatch) *WriteQueryBuilder
func (*WriteQueryBuilder) ParamArray ¶
func (q *WriteQueryBuilder) ParamArray(name string, value any, inner QueryParamType) ParamRef
func (*WriteQueryBuilder) ParamBool ¶
func (q *WriteQueryBuilder) ParamBool(name string, value bool) ParamRef
func (*WriteQueryBuilder) ParamDateTime ¶
func (q *WriteQueryBuilder) ParamDateTime(name string, value any) ParamRef
func (*WriteQueryBuilder) ParamF32 ¶
func (q *WriteQueryBuilder) ParamF32(name string, value any) ParamRef
func (*WriteQueryBuilder) ParamF64 ¶
func (q *WriteQueryBuilder) ParamF64(name string, value any) ParamRef
func (*WriteQueryBuilder) ParamI64 ¶
func (q *WriteQueryBuilder) ParamI64(name string, value any) ParamRef
func (*WriteQueryBuilder) ParamObject ¶
func (q *WriteQueryBuilder) ParamObject(name string, value any, inner ...QueryParamType) ParamRef
func (*WriteQueryBuilder) ParamString ¶
func (q *WriteQueryBuilder) ParamString(name string, value string) ParamRef
func (*WriteQueryBuilder) ParamValue ¶
func (q *WriteQueryBuilder) ParamValue(name string, value any) ParamRef
func (*WriteQueryBuilder) Returning ¶
func (q *WriteQueryBuilder) Returning(vars ...string) Request
func (*WriteQueryBuilder) VarAs ¶
func (q *WriteQueryBuilder) VarAs(name string, traversal *Traversal) *WriteQueryBuilder
func (*WriteQueryBuilder) VarAsIf ¶
func (q *WriteQueryBuilder) VarAsIf(name string, condition BatchCondition, traversal *Traversal) *WriteQueryBuilder
func (*WriteQueryBuilder) WithTypedParameter ¶ added in v0.3.0
func (q *WriteQueryBuilder) WithTypedParameter(name string, ty QueryParamType, value QueryValue) *WriteQueryBuilder
func (*WriteQueryBuilder) WithUntypedParameter ¶ added in v0.3.0
func (q *WriteQueryBuilder) WithUntypedParameter(name string, value QueryValue) *WriteQueryBuilder