webql/engine/basic

Copy Markdown

Types

Basic

pub type Basic(storage)

Values

handle_finish_batch

pub fn handle_finish_batch(
  initial: memory.Memory(storage),
  task: Basic(storage),
  merge: fn(memory.Memory(storage), memory.Memory(storage)) -> memory.Memory(
    storage,
  ),
) -> Basic(storage)

handle_finish_plan

pub fn handle_finish_plan(
  task: Basic(storage),
  next: fn(memory.Memory(storage)) -> Result(
    dynamic.Dynamic,
    diagnostic.Diagnostic,
  ),
) -> Basic(storage)

handle_finish_step

pub fn handle_finish_step(
  task: Basic(storage),
  next: fn(Result(dynamic.Dynamic, dynamic.Dynamic)) -> Result(
    memory.Memory(storage),
    diagnostic.Diagnostic,
  ),
) -> Basic(storage)

handle_run

pub fn handle_run(
  next: fn() -> Result(Basic(storage), diagnostic.Diagnostic),
) -> Basic(storage)

handle_start_batch

pub fn handle_start_batch(
  next: fn() -> Result(
    List(Basic(storage)),
    diagnostic.Diagnostic,
  ),
) -> Basic(storage)

handle_start_plan

pub fn handle_start_plan(
  next: fn() -> Result(
    #(
      memory.Memory(storage),
      List(fn(memory.Memory(storage)) -> Basic(storage)),
    ),
    diagnostic.Diagnostic,
  ),
) -> Basic(storage)

handle_start_step

pub fn handle_start_step(
  next: fn() -> Result(Basic(storage), diagnostic.Diagnostic),
) -> Basic(storage)

new

pub fn new() -> engine.Engine(
  Basic(storage),
  memory.Memory(storage),
  diagnostic.Diagnostic,
)

Creates a new basic engine.