Skip to content

Instantly share code, notes, and snippets.

View z3z1ma's full-sized avatar
🧑‍🔬
Innovating

Alexander Butler z3z1ma

🧑‍🔬
Innovating
View GitHub Profile
@z3z1ma
z3z1ma / sql_ls.py
Last active October 25, 2024 23:01
A simple language server implementation for SQLMesh using PyGLS
#!/usr/bin/env python
"""A Language Server Protocol (LSP) server for SQL with SQLMesh integration."""
import asyncio
import gc
import io
import logging
import re
import typing as t
import weakref