use serde::Serialize;
#[derive(Debug, Clone, Serialize)]
pub struct Entry {
pub label: &'static str,
pub kind: Kind,
pub doc: &'static str,
pub signature: Option<&'static str>,
pub example: &'static str,
pub url: &'static str,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
pub enum Kind {
Keyword,
Type,
Function,
}
pub const PG_DOCS_BASE: &str = "https://www.postgresql.org/docs/current/";
pub(crate) fn pg(path: &'static str) -> &'static str {
Box::leak(format!("{PG_DOCS_BASE}{path}").into_boxed_str())
}