dsl-knowledge 3.0.0

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

pub mod entry;
pub mod render;
pub mod tables;

pub use entry::{Entry, Kind, PG_DOCS_BASE};
pub use render::{render_markdown, wrap_paragraphs};
pub use tables::{functions, keywords, lookup, types};