Skip to content

riamamac/postgres_lsp

This branch is 80 commits behind supabase-community/postgres-language-server:main.

Folders and files

NameName
Last commit message
Last commit date
Dec 11, 2024
Feb 25, 2025
Feb 25, 2025
Feb 25, 2025
Feb 12, 2025
Jul 9, 2023
Jan 31, 2025
Jan 31, 2025
Feb 25, 2025
Jun 5, 2024
Feb 25, 2025
Feb 12, 2025
Feb 15, 2024
Nov 23, 2024
Jan 31, 2025
Jul 31, 2024
Feb 25, 2025
Feb 24, 2025
May 17, 2023
Feb 12, 2025
Jan 31, 2025
Dec 11, 2024
Jan 14, 2025
Feb 19, 2025
Feb 20, 2025
Jul 9, 2023
Dec 12, 2023
Jan 14, 2025
Dec 11, 2024
Dec 28, 2024

Repository files navigation

Postgres Language Server

Postgres Language Server

A collection of language tools and a Language Server Protocol (LSP) implementation for Postgres, focusing on developer experience and reliable SQL tooling.

Overview

This project provides a toolchain for Postgres development, built on Postgres' own parser libpg_query to ensure 100% syntax compatibility. It is built on a Server-Client architecture with a transport-agnostic design. This means all features can be accessed not only through the Language Server Protocol, but also through other interfaces like a CLI, HTTP APIs, or a WebAssembly module. The goal is to make all the great Postgres tooling out there as accessible as possible, and to build anything that is missing ourselves.

Currently, the following features are implemented:

  • Autocompletion
  • Syntax Error Highlighting
  • Type-checking (via EXPLAIN error insights)
  • Linter, inspired by Squawk

Our current focus is on refining and enhancing these core features while building a robust and easily accessible infrastructure. For future plans and opportunities to contribute, please check out the issues and discussions. Any contributions are welcome!

Contributors

Acknowledgements

A big thanks to the following projects, without which this project wouldn't have been possible:

  • libpg_query: For extracting the Postgres' parser
  • Biome: For implementing a toolchain infrastructure we could copy from
  • Squawk: For the linter inspiration

About

A Language Server for Postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.9%
  • Other 1.1%