Skip to main content

dsl_completion/
lib.rs

1//! Context-aware SQL completion engine.
2//!
3//! Public entry point is [`complete`]: given the source text, parsed
4//! statements, resolved scopes, catalog snapshot, and cursor offset, it
5//! returns a flat list of [`Item`]s. The LSP server crate maps each
6//! [`Item`] onto an LSP `CompletionItem`; using a plain struct here keeps
7//! this crate free of LSP wire dependencies and unit-testable in
8//! milliseconds.
9
10pub mod context;
11pub mod contexts;
12pub mod create_index;
13pub mod create_table;
14pub mod detectors;
15pub mod engine;
16pub mod fallback;
17pub mod item;
18pub mod json_path;
19pub mod merge;
20pub mod phase;
21pub mod plpgsql_locals;
22pub mod render;
23pub mod source_tables;
24pub mod sources;
25
26pub use engine::{complete, complete_with_derived};
27pub use item::{Item, ItemKind};