# talent-plan/tinysql

A course to build the SQL layer of a distributed database.

Repository: https://github.com/talent-plan/tinysql
Canonical: https://ross.abutalabs.com/products/tinysql
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2023-09-27T04:14:10+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2435, "days_push": 1071, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2047, forks 548 (observed 2026-08-28T04:06:08.894833+00:00)

## What it is
TinySQL is an educational course for building the SQL layer of a distributed relational database in Go, modeled on a simplified TiDB. It covers SQL parsing, DDL, query optimization, execution, and Percolator-style transactions through hands-on projects.

## Use cases
- learn how a SQL database engine works internally
- build a simplified TiDB-like SQL layer in Go
- study SQL parsing and query optimization hands-on
- understand distributed database transactions via Percolator
- practice implementing a database parser and executor
- prepare for database systems engineering interviews

## When to choose
- you know Go and want a project-based database internals course
- you want to understand how TiDB's SQL layer is structured
- you prefer guided labs with autograding over reading papers alone

## When to avoid
- you need a production-ready database for real workloads
- you want to learn the KV/storage layer rather than the SQL layer
- you don't have Go programming experience

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: database, parser, compiler, interpreter
- domain: databases, education, tutorials, microservices
- platform: go, cross-platform
- tags: sql-layer, distributed-database, tidb, course, hands-on-labs, relational-algebra, query-optimizer, percolator

## Member repositories
- talent-plan/tinysql (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:08.894833+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:58.896404+00:00, confidence not recorded.
  - readme: https://github.com/talent-plan/tinysql (fetched 2026-08-28T04:06:08.894833+00:00, sha dd8c93c37a5f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
