Show HN: GoSQL – A query engine in 319 LoC

I've always been curious about how SQL engines actually work.

So I built a minimum viable SQL engine in Go.

- Supports CSV files as tables

- Supports SELECT, FROM, WHERE, LIMIT

It's very simple:

1. Parses query string

2. Converts it into an AST representation

3. Executes the query against the CSV

4. Returns the results

81 points archiewood 2 years ago 9 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton