capy

package module
v0.0.0-...-88b10d6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 8 Imported by: 0

README

Capy

A graph database for distributed applications.

Features

  • Define schemas and queries in GraphQL
  • Branch and merge using property based CRDTs
  • Change history tracking using a merkle DAG
  • Time traveling queries using the commit graph

Getting started

See the examples directory for samples and guides.

Documentation

Index

Constants

View Source
const RootLinkKey = "root"

RootLinkKey is the key for the head root link.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func Open

func Open(ctx context.Context, store storage.Storage, inputSchema string) (*DB, error)

Open creates a new DB instance using the given store and schema.

func (*DB) Dump

func (db *DB) Dump(ctx context.Context) (map[string][]string, error)

func (*DB) Execute

func (db *DB) Execute(ctx context.Context, params graphql.QueryParams) (datamodel.Node, error)

func (*DB) Export

func (db *DB) Export(ctx context.Context, out io.Writer) error

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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