package granary

  1. Overview
  2. Docs
Pure-OCaml SQL engine

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.0.3.tar.gz
sha256=8b18780ea373be48301d9f333925860a2f9110fc0ac28684295118d72b65a67e
sha512=25ca3c9c5e2b528704a542502e0f37dc33ba003f65622d969b8c2b800778585f8ef0cf89b36e6679832e3993e8303aecddfc662742baf7044d6afe4a796b8f11

doc/granary.sql/Granary_sql/Planner/index.html

Module Granary_sql.PlannerSource

Translate a bound statement into a physical plan.

When ~cat is supplied, the planner may use catalog metadata (e.g. indexes) to choose better plan shapes — for example, an equality predicate on an indexed column produces an Op_index_lookup instead of an Op_seq_scan + Op_filter chain.

When ~cat is omitted, the planner falls back to plans that need no catalog (sequential scan with filtering). This keeps unit tests that don't construct a full catalog compact.