Documentation
¶
Overview ¶
Package ingest provides the public ingestion API for mache.
Types are defined in internal/ingest and re-exported here via type aliases so that external consumers (e.g. venturi) can use mache's ingestion engine without importing internal packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NewASTWalker = ii.NewASTWalker
NewASTWalker constructs a walker over an open, caller-owned leyline _ast DB.
var NewEngine = ii.NewEngine
NewEngine creates a new ingestion engine for the given schema and store.
var NewJsonWalker = ii.NewJsonWalker
NewJsonWalker creates a new JSONPath-based walker.
var NewSQLiteWriter = ii.NewSQLiteWriter
NewSQLiteWriter opens (creating/truncating) a SQLite projection target.
var StreamSQLite = ii.StreamSQLite
StreamSQLite iterates over all records in a SQLite database, calling fn for each one. Only one parsed record is alive at a time, keeping memory constant.
Functions ¶
This section is empty.
Types ¶
type ASTWalker ¶ added in v0.22.0
ASTWalker projects an open, caller-owned leyline _ast SQLite database. Pair it with an Engine via Engine.SetASTWalker for custom projection control.
type Engine ¶
Engine drives the ingestion process: schema traversal, file walking, and node creation for both JSON and tree-sitter source paths.
type IngestionTarget ¶
type IngestionTarget = ii.IngestionTarget
IngestionTarget combines Graph reading with writing capabilities. The graph.MemoryStore type satisfies this interface.
type JsonWalker ¶
type JsonWalker = ii.JsonWalker
JsonWalker implements the Walker interface for JSON-like data using JSONPath.
type SQLiteWriter ¶ added in v0.22.0
type SQLiteWriter = ii.SQLiteWriter
SQLiteWriter is the IngestionTarget that persists a projection to a SQLite .db (nodes/node_defs/node_refs per the schema). It is exported for consumers that need custom ingestion control; most callers should use build.ParseWithSchema or build.ParseWithSchemaRef.