Home / Companies / Cockroach Labs / Blog / Post Details
Content Deep Dive

Contextual suggestions for SQL syntax

Blog post from Cockroach Labs

Post Details
Company
Date Published
Author
Raphael 'kena' Poss
Word Count
3,080
Language
English
Hacker News Points
-
Summary

In CockroachDB v23.1, a new feature has been introduced to enhance SQL syntax suggestions, allowing external SQL query editors to provide contextual auto-completion for developers. This feature, initially demonstrated in CockroachDB’s interactive SQL shell, significantly improves user experience through tab completion. It involves a separation of the presentation UI and candidate generation, with the latter being managed server-side to ensure users benefit from updates without needing to upgrade their client executable. By integrating this feature within the Bubbline library and using heuristic-based rules for candidate generation, CockroachDB aims to offer a generous and interactive user experience. This innovation, inspired by the need for a compelling tech demo, also underscores the importance of focusing on core organizational strengths, as the feature leverages existing frameworks without venturing into complex, resource-intensive developments. The initiative reflects a strategic approach to enhancing user interaction while maintaining focus on the company's primary expertise in database technology.