model

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeTable = "node"
	EdgeTable = "edge"
)

Variables

This section is empty.

Functions

func ConstraintName

func ConstraintName(table string, constraint graph.Constraint) string

func EdgePartitionTableName

func EdgePartitionTableName(graphID int32) string

func IndexName

func IndexName(table string, index graph.Index) string

func NodePartitionTableName

func NodePartitionTableName(graphID int32) string

Types

type Graph

type Graph struct {
	ID         int32
	Name       string
	Partitions GraphPartitions
}

type GraphPartition

type GraphPartition struct {
	Name        string
	Indexes     map[string]graph.Index
	Constraints map[string]graph.Constraint
}

func NewGraphPartition

func NewGraphPartition(name string) GraphPartition

func NewGraphPartitionFromSchema

func NewGraphPartitionFromSchema(name string, indexes []graph.Index, constraints []graph.Constraint) GraphPartition

type GraphPartitions

type GraphPartitions struct {
	Node GraphPartition
	Edge GraphPartition
}

type IndexChangeSet

type IndexChangeSet struct {
	NodeIndexesToRemove     []string
	EdgeIndexesToRemove     []string
	NodeConstraintsToRemove []string
	EdgeConstraintsToRemove []string
	NodeIndexesToAdd        map[string]graph.Index
	EdgeIndexesToAdd        map[string]graph.Index
	NodeConstraintsToAdd    map[string]graph.Constraint
	EdgeConstraintsToAdd    map[string]graph.Constraint
}

func NewIndexChangeSet

func NewIndexChangeSet() IndexChangeSet

Jump to

Keyboard shortcuts

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