writer

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSingle added in v0.7.0

func NewSingle(qs graph.QuadStore, opts graph.IgnoreOpts) (graph.QuadWriter, error)

func NewSingleReplication

func NewSingleReplication(qs graph.QuadStore, opts graph.Options) (graph.QuadWriter, error)

Types

type Single

type Single struct {
	// contains filtered or unexported fields
}

func (*Single) AddQuad

func (s *Single) AddQuad(ctx context.Context, q quad.Quad) error

func (*Single) AddQuadSet

func (s *Single) AddQuadSet(ctx context.Context, set []quad.Quad) error

func (*Single) ApplyTransaction added in v0.5.0

func (s *Single) ApplyTransaction(ctx context.Context, t *graph.Transaction) error

func (*Single) Close

func (s *Single) Close() error

func (*Single) RemoveNode added in v0.6.0

func (s *Single) RemoveNode(ctx context.Context, v quad.Value) error

RemoveNode removes all quads with the given value.

It returns ErrNodeNotExists if node is missing.

func (*Single) RemoveQuad

func (s *Single) RemoveQuad(ctx context.Context, q quad.Quad) error

Jump to

Keyboard shortcuts

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