Documentation
¶
Index ¶
- Constants
- func DecodeValue(value *v1.Value) any
- func EncodeValue(value any) (*v1.Value, error)
- type Client
- func (c *Client) Capabilities(ctx context.Context) (*v1.CapabilitiesResponse, error)
- func (c *Client) Close() error
- func (c *Client) CreateEdgeIdentityConfig(ctx context.Context, edgeType string, identityProperties []string, ...) (*CreateIdentityConfigResult, error)
- func (c *Client) CreateEdgePropertyIndex(ctx context.Context, schema string, property string, ifNotExists bool) (*CreatePropertyIndexResult, error)
- func (c *Client) CreateVertexIdentityConfig(ctx context.Context, schema string, identityProperties []string, ...) (*CreateIdentityConfigResult, error)
- func (c *Client) CreateVertexPropertyIndex(ctx context.Context, schema string, property string, ifNotExists bool) (*CreatePropertyIndexResult, error)
- func (c *Client) Execute(ctx context.Context, query string, parameters map[string]any, ...) (*Result, error)
- func (c *Client) ExecutePrepared(ctx context.Context, prepared PreparedQuery, opts ...QueryOption) (*Result, error)
- func (c *Client) Explain(ctx context.Context, query string, opts ...QueryOption) (*ExplainResult, error)
- type CreateIdentityConfigResult
- type CreatePropertyIndexResult
- type Diagnostic
- type ExplainResult
- type Option
- type PreparedQuery
- type QueryOption
- type Result
- type Row
- type Stats
Constants ¶
View Source
const ( DefaultTarget = "127.0.0.1:7443" DefaultTenant = "default" SDKVersion = "0.1.0" )
Variables ¶
This section is empty.
Functions ¶
func DecodeValue ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Capabilities ¶
func (*Client) CreateEdgeIdentityConfig ¶ added in v0.2.0
func (*Client) CreateEdgePropertyIndex ¶
func (*Client) CreateVertexIdentityConfig ¶ added in v0.2.0
func (*Client) CreateVertexPropertyIndex ¶
func (*Client) ExecutePrepared ¶
func (c *Client) ExecutePrepared(ctx context.Context, prepared PreparedQuery, opts ...QueryOption) (*Result, error)
func (*Client) Explain ¶
func (c *Client) Explain(ctx context.Context, query string, opts ...QueryOption) (*ExplainResult, error)
type CreateIdentityConfigResult ¶ added in v0.2.0
type CreateIdentityConfigResult struct {
Created bool
RawVertex *v1.CreateVertexIdentityConfigResponse
RawEdge *v1.CreateEdgeIdentityConfigResponse
}
type CreatePropertyIndexResult ¶
type CreatePropertyIndexResult struct {
Created bool
IndexedEntities int64
RawVertex *v1.CreateVertexPropertyIndexResponse
RawEdge *v1.CreateEdgePropertyIndexResponse
}
type Diagnostic ¶
type ExplainResult ¶
type ExplainResult struct {
JSON []byte
Stats Stats
Warnings []Diagnostic
Raw *v1.ExplainResponse
}
type Option ¶
type Option func(*config)
func WithClientContext ¶
func WithClientContext(clientContext *v1.ClientContext) Option
func WithDialOptions ¶
func WithDialOptions(options ...grpc.DialOption) Option
func WithTenant ¶
type PreparedQuery ¶
type QueryOption ¶
type QueryOption func(*v1.RequestOptions)
func WithFallbackToCypher ¶
func WithFallbackToCypher() QueryOption
func WithReadOnly ¶
func WithReadOnly() QueryOption
func WithStats ¶
func WithStats() QueryOption
func WithWarnings ¶
func WithWarnings() QueryOption
type Result ¶
type Result struct {
Columns []string
Rows []Row
Stats Stats
Warnings []Diagnostic
Raw *v1.QueryResponse
}
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
examples
|
|
|
advanced_cyber_threat_detection
command
|
|
|
basic_usage
command
|
|
Click to show internal directories.
Click to hide internal directories.