sql

27 repositories

bregman-arie/devops-exercises

A huge, community-built bank of DevOps and SRE interview questions — This repository collects over 2,600 exercises and questions spanning Linux, Kubernetes, Terraform, networking, Git and more. Organized by topic with contributions accepted via pull request, it's aimed at people preparing for DevOps/SRE interviews or wanting to self-assess their knowledge, though it explicitly isn't meant to be studied end-to-end.

PythonAttention 33
★87,069
pingcap/tidb

TiDB positions its distributed SQL database for unpredictable agentic workloads — TiDB is a MySQL-compatible, distributed SQL database combining ACID transactions, HTAP analytics and vector search in one engine. It scales horizontally without downtime and avoids data silos or noisy-neighbor issues, aimed at teams building AI agents that need memory, context and unpredictable scale.

GoAttention 25
★40,805
drawdb-io/drawdb

Browser-based ERD editor with no account required — drawDB lets you design database schemas visually and generate or import SQL directly in the browser, without signing up. It supports multiple databases (PostgreSQL, MySQL, SQLite, Oracle, SQL Server), migrations, and an optional self-hosted server for sharing diagrams.

JavaScriptAttention 16
★40,475
directus/directus

Turn any SQL database into instant APIs and an admin app — Directus wraps existing SQL databases (PostgreSQL, MySQL, SQLite, MSSQL, MariaDB) with instant REST and GraphQL APIs plus a customizable Vue-based admin app. It suits teams who want a headless CMS or no-code backend without migrating data into a proprietary store.

TypeScript🇺🇸 North AmericaAttention 35
★38,847
surrealdb/surrealdb

A multi-model database that merges SQL, NoSQL, and graph in one engine — SurrealDB combines document, graph, and relational data models with a SQL-like query language in a single distributed engine. It targets developers building realtime web apps who want backend-as-a-service style features without stitching together multiple databases, with official clients for Rust, JS, Python, .NET, and PHP.

Rust🇪🇺 EuropeAttention 33
★33,404
cockroachdb/cockroach

A distributed SQL database built for resilience and scale — CockroachDB offers a strongly-consistent, horizontally scalable SQL database that survives disk, machine, rack, and datacenter failures without manual intervention. It suits teams building data-intensive applications who need SQL semantics with ACID transactions and automatic failover, either self-hosted or via CockroachCloud.

GoAttention 32
★32,658
tursodatabase/turso

A Rust-built SQLite alternative that now speaks Postgres too — Turso is an in-process SQL database written in Rust, compatible with SQLite but adding an experimental Postgres frontend. It ships bindings for Rust, JS, Python, Java and .NET, making it useful for developers who want an embeddable database that can bridge SQLite and Postgres ecosystems.

Rust🇺🇸 North AmericaAttention 36
★25,446
dolthub/dolt

A MySQL-compatible database with Git-style version control — Dolt is a SQL database you connect to like MySQL, but with full Git semantics: branch, merge, push, pull and commit data and schema. It's increasingly used for AI agent memory, especially in multi-agent, multi-machine setups where tracking changes to shared state matters.

Go🇺🇸 North AmericaAttention 36
★25,051
sinaptik-ai/pandas-ai

Chat with your database or your datalake (SQL, CSV, parquet). PandasAI makes data analysis conversational using LLMs and RAG.

PythonAttention 19
★23,977
Canner/WrenAI

A Git-versioned semantic layer that lets AI agents write trusted SQL — WrenAI gives agents like Claude Code, Cursor and LangChain a governed semantic layer plus an AI context layer, encoding metric definitions, joins and business meaning as reviewable YAML/Markdown in your own repo. It connects to 22+ sources and turns natural-language questions into governed SQL and shareable dashboards, aimed at teams wanting AI-generated BI they can audit.

PythonAttention 33
★18,477
kysely-org/kysely

A type-safe TypeScript SQL query builder

TypeScript
★14,392
sqlfluff/sqlfluff

A dialect-aware SQL linter built for ELT and dbt workflows — SQLFluff lints and auto-fixes SQL across many dialects (BigQuery, Snowflake, MySQL, etc.) and handles Jinja/dbt templated code. It targets ELT pipelines and dbt users who need consistent SQL style without manual cleanup, with a VS Code extension for editor integration.

PythonAttention 31
★10,045
apache/datafusion

A Rust query engine for building custom SQL and dataframe tools — DataFusion is an extensible SQL and dataframe query engine built on Apache Arrow, written in Rust with Python bindings. It targets developers building analytical databases, query engines or data pipelines who need a fast, embeddable OLAP core rather than a finished database.

RustAttention 52
★9,771
lightdash/lightdash

BI as Code Meets AI Agents for Governed Analytics — Lightdash is an open-source BI platform built around a shared context layer that defines metrics, joins, and permissions once, then feeds dashboards, AI agents, data apps, and MCP. Teams manage analytics like software, with Git, CI, and CLI previews for changes, while business users query data in plain English without bypassing governance.

TypeScript🇪🇺 EuropeAttention 20
★6,280
sqlalchemy/alembic

The migration toolkit built by SQLAlchemy's own author — Alembic generates version-controlled migration scripts for SQLAlchemy schemas, with upgrade/downgrade steps, transactional DDL support on databases like Postgres and SQL Server, and autogeneration from model changes. It favors minimalist one-line operations (alter_column, rename_table) over rebuilding full Table definitions, making it a practical fit for teams already using SQLAlchemy.

Python
★4,496
bytebase/dbhub

Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite, ClickHouse.

TypeScript🇺🇸 North AmericaAttention 40
★4,069
ShayanAbbas1/dbdelve

A Rust/GPUI database client built to replace bloated Electron tools — DBDelve is an early-stage, free database client built in Rust with GPUI instead of Electron or JVM, aiming for instant startup and smooth scrolling through million-row tables. It already supports Postgres, MySQL, MariaDB, SQLite, Snowflake, SQL Server, MongoDB, Redis and more, with theming from Catppuccin, Tokyo Night and others. Good fit for devs wanting a lightweight, non-paywalled alternative to heavier GUI clients.

RustAttention 45
★2,288
apache/datafusion-ballista

Rust-native distributed SQL engine built on DataFusion, now with two execution modes — Ballista extends Apache DataFusion for distributed query execution, offered as a lighter Rust-native alternative to Spark, Trino and Presto. It now supports two modes sharing one cluster: a Spark-like staged mode with shuffle files and adaptive re-planning for batch/ETL, and an experimental pipelined mode streaming Arrow Flight for interactive queries.

RustAttention 21
★2,186
getnao/nao

Self-hosted agent that turns plain-English questions into SQL insights — nao is a self-hosted framework for building and deploying analytics agents. Data teams define context (data, metadata, docs, tools, MCPs) via the nao-core CLI, then expose a chat UI so business users can query warehouses like BigQuery, Snowflake or Databricks in plain English, with versioning and performance tracking.

TypeScriptAttention 38
★2,051
ClickHouse/ClickBench

A Reproducible, Multi-Engine Benchmark for Analytical Databases — ClickBench tests dozens of OLAP, OLTP, serverless, and specialized databases (including DuckDB, BigQuery, Snowflake, Doris, DataFusion, chDB) against a real anonymized web-analytics dataset. Results are reproducible in ~20 minutes via documented shell scripts, making it useful for anyone comparing analytical database performance before adopting one.

Shell🇺🇸 North America
★1,172
snowflakedb/snowflake-connector-python

Python DB API driver for Snowflake reaches 5.0.0, then moves on — Version 5.0.0 marks the last release here: future development shifts to snowflakedb/drivers. The connector implements PEP 249 DB API 2.0 with no JDBC/ODBC dependency, letting Python apps query Snowflake directly on Linux, Mac, and Windows with Python 3.10+.

Python
★733
dbt-labs/dbt-charts

Dashboards as YAML, written for agents and audited by humans — dbt Charts (CLI `dct`) compiles declarative YAML board definitions, wrapped around SQL, into interactive dashboards. It targets the mess of vibe-coded dashboard stacks by giving AI agents a simple syntax to write and humans a clear artifact to audit, with a playground and MCP support for agent workflows.

Python
★598
DanielRendox/RoutineTracker

An Android planner calendar app and a habit tracker that aims to simplify scheduling consistent activities and tracking your progress.

Kotlin
★359
kackerx/sqlmux

A tmux-style terminal database client with Vim keybindings for PostgreSQL, MySQL, SqlServer, Redis, and more.

GoAttention 36
★337
hugues31/duckpad

A visual SQL workspace built on DuckDB with cell-level lineage — Duckpad is an open-source SQL workspace built on DuckDB that lets you compose data pipelines visually, explore results, and trace any result cell back to its source values. It adds Git-based versioning, repeatable Jobs, and a context-aware AI assistant, aimed at data engineers who want transparency and control over transformations.

Python🇪🇺 Europe
★298
infino-ai/infino

Retrieval library for agents. Full-text, vector, graph, and SQL indexes, stored on Parquet.

Rust
★198
0227lia/data-science-portfolio

A student portfolio that keeps data science claims honest — This Astro/TypeScript static site presents six reproducible public-data case studies spanning data engineering, geospatial analysis, forecasting, operations research, NLP and ML. It explicitly separates observed results from modeled scenarios and sources all displayed metrics from committed runs in linked repos, useful for anyone evaluating a data science student's work critically.

TypeScript
★0