graph

module
v0.0.0-...-b1000f8 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0

README

Hanzo Graph

Hanzo Graph forks Dgraph (github.com/dgraph-io/dgraph, Apache License 2.0) at commit 64804bd2 and cuts it down to what runs inside a single process. It keeps the posting-list engine, the schema and index layers, the tokenizers, the type system, the DQL parser, the UID set algebra, and the wire types — 18 packages, 99 source files, 44 test files, 410 passing tests. Nothing here serves or clusters: no Raft, no gRPC service, no query executor, no integration harness, and the only two main packages are a build-variable emitter and a codec benchmark. Keys and posting lists live in github.com/luxfi/zapdb v1.10.6, which the caller opens in managed mode and for which the caller supplies every start and commit timestamp. DQL parses to a syntax tree and stops there — no package imports the parser, and the executor that walked that tree belonged to the cluster code — so a caller reads by key or by index token and composes UID lists with algo instead of traversing, filtering, or binding variables.

Directories

Path Synopsis
Package algo contains algorithms such as merging, intersecting sorted lists.
Package algo contains algorithms such as merging, intersecting sorted lists.
Package buildvars centralizes the environment variables that configure the dgraph build: binary name, Docker image tags, build-toolchain refs, and derived paths such as /gobin/<binary>.
Package buildvars centralizes the environment variables that configure the dgraph build: binary name, Docker image tags, build-toolchain refs, and derived paths such as /gobin/<binary>.
cmd/buildvars command
Command buildvars emits the buildvars registry as lines of text in a selectable format for consumption by shell eval, GNU Make eval, or direct parsing by a validation script.
Command buildvars emits the buildvars registry as lines of text in a selectable format for consumption by shell eval, GNU Make eval, or direct parsing by a validation script.
benchmark command
Package dql is responsible for lexing and parsing a GraphQL query/mutation.
Package dql is responsible for lexing and parsing a GraphQL query/mutation.
Package posting takes care of posting lists.
Package posting takes care of posting lists.
protos
pb
tok
Package types contains some very common utilities used by Dgraph.
Package types contains some very common utilities used by Dgraph.
x
Package x contains some very common utilities used by Dgraph.
Package x contains some very common utilities used by Dgraph.

Jump to

Keyboard shortcuts

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