creators

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package creators provides executors for Cypher data creation clauses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	Store *storage.DB
	// contains filtered or unexported fields
}

Creator executes CREATE clauses to create new nodes and relationships in the graph.

func NewCreator

func NewCreator(store *storage.DB) *Creator

NewCreator creates a new Creator instance that operates on the given storage.

func (*Creator) Execute

func (c *Creator) Execute(t *tx.Transaction, clause *ast.CreateClause) (affectedNodes, affectedRels int, err error)

Execute creates nodes and relationships as specified by the CREATE clause. It returns the count of affected nodes and relationships.

Jump to

Keyboard shortcuts

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