Skip to main content

dsl_knowledge/
lib.rs

1//! Curated SQL knowledge base used by duck-sqllsp completion and hover.
2//!
3//! Public surface:
4//!   - [`Entry`], [`Kind`] -- shape of one knowledge entry.
5//!   - [`keywords`], [`types`], [`functions`] -- lazily-initialized lookup tables.
6//!   - [`lookup`] -- try keyword / type / function in order.
7//!   - [`render_markdown`] -- produce the markdown blob shown in hover and cmp docs.
8//!
9//! All data lives under `tables/`; the `lib.rs` surface is intentionally tiny.
10
11pub mod entry;
12pub mod render;
13pub mod tables;
14
15pub use entry::{Entry, Kind, PG_DOCS_BASE};
16pub use render::{render_markdown, wrap_paragraphs};
17pub use tables::{functions, keywords, lookup, types};