Skip to main content

Crate dsl_knowledge

Crate dsl_knowledge 

Source
Expand description

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.

Re-exports§

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

Modules§

entry
Shape of a single knowledge-base entry.
render
Markdown renderer for knowledge-base entries.
tables
Knowledge-base tables, lazily initialised on first use.