Skip to content

Commit 662ff28

Browse files
cmment
1 parent 83a1f76 commit 662ff28

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • crates/pgls_hover/src/hoverables

crates/pgls_hover/src/hoverables/table.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ impl ToHoverMarkdown for Table {
113113
}
114114
}
115115

116+
// `extract_basic_default_literal` will extract simple default literals for table hover.
117+
// Example: `'anonymous'::text` -> `anonymous`, `(42)::int8` -> `42`, `now()` -> ignored.
116118
fn extract_basic_default_literal(default_expr: &str) -> Option<String> {
117119
let mut cast_parts = default_expr.split("::");
118120
let mut value = cast_parts.next().unwrap_or(default_expr).trim();

0 commit comments

Comments
 (0)