HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
stevenmiller888
ts-mysql-parser
TypeScript2020–2020
stevenmiller888 / ts-mysql-parser

ts-mysql-parser

A standalone, grammar-complete MySQL parser.

2Distinct people
2Mentions
0Explicit recommenders
73GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A standalone, grammar-complete MySQL parser.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day2 dated mentions

Observed mentions: 2020-03-09 23:44:14 UTC to 2020-03-22 14:24:10 UTC.

012020-03-09 00:00:00 UTC to 2020-03-10 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsMar 92020-03-10 00:00:00 UTC to 2020-03-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-11 00:00:00 UTC to 2020-03-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-12 00:00:00 UTC to 2020-03-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-13 00:00:00 UTC to 2020-03-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-14 00:00:00 UTC to 2020-03-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-15 00:00:00 UTC to 2020-03-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMar 152020-03-16 00:00:00 UTC to 2020-03-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-17 00:00:00 UTC to 2020-03-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-18 00:00:00 UTC to 2020-03-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-19 00:00:00 UTC to 2020-03-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-20 00:00:00 UTC to 2020-03-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-21 00:00:00 UTC to 2020-03-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-03-22 00:00:00 UTC to 2020-03-23 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 22

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Mar 92020-03-09 00:00:00 UTC2020-03-10 00:00:00 UTC110
Mar 102020-03-10 00:00:00 UTC2020-03-11 00:00:00 UTC000
Mar 112020-03-11 00:00:00 UTC2020-03-12 00:00:00 UTC000
Mar 122020-03-12 00:00:00 UTC2020-03-13 00:00:00 UTC000
Mar 132020-03-13 00:00:00 UTC2020-03-14 00:00:00 UTC000
Mar 142020-03-14 00:00:00 UTC2020-03-15 00:00:00 UTC000
Mar 152020-03-15 00:00:00 UTC2020-03-16 00:00:00 UTC000
Mar 162020-03-16 00:00:00 UTC2020-03-17 00:00:00 UTC000
Mar 172020-03-17 00:00:00 UTC2020-03-18 00:00:00 UTC000
Mar 182020-03-18 00:00:00 UTC2020-03-19 00:00:00 UTC000
Mar 192020-03-19 00:00:00 UTC2020-03-20 00:00:00 UTC000
Mar 202020-03-20 00:00:00 UTC2020-03-21 00:00:00 UTC000
Mar 212020-03-21 00:00:00 UTC2020-03-22 00:00:00 UTC000
Mar 222020-03-22 00:00:00 UTC2020-03-23 00:00:00 UTC101

What Hacker News says

2 sources
This is exactly what I did in the beginning :) But custdev showed that companies do not care about it. They are ready to take Django/RoR/Laravel developers who know only ORM. Such developers are cheaper, they are easier to hire. Some people also think that it's faster to develop this way :) They prefer to start dealing with problems after they get on production DB. They shift developer problems to DBA. There is research saying that the price of fixing a bug in production is on average 400 times the price of fixing it at the development stage. Ok, the boss call the shots :) I had to make a pivot to DBA needs. It was a bit upsetting at first, but then I realized that it was even simpler. You need to do a lot more tools for developers to make them feel comfortable. A few words about open source. At first, I used this AST parser for PostgreSQ
Read the rest
L https://github.com/lfittl/libpg_query But it's frozen on Postgresql 10. And we don't know if there'll be any updates. No official AST parser for MySQL. There's a hard way to get a bison/ANTLR grammar parser. Two weeks ago there was a parser like this for MySQL: https://github.com/stevenmiller888/ts-mysql-parser. There's also a parser from vitess: https://github.com/vitessio/vitess/tree/master/go/vt/sqlpars... The only problem is that the grammar for these parsers was written by hand and is not related to the official MySQL repository. For example, the vitess parser does not support the syntax of MySQL 8.0, and MySQL 5.7 does not support more than 40%. There is also such a tool https://www.jooq.org/. It supports some of its own generalized SQL syntax, which does not take into account the specifics of different databases. Look, there is another tool that uses libpg_query - sqlc: https://news.ycombinator.com/item?id=21765689. And the author of ts-mysql-parser also offers an analyzer: https://github.com/stevenmiller888/ts-mysql-analyzer There are only four rules at the moment... Anyway, all hard work starts after you have the right AST parser in your hands. And if you don't spend all your time on it, it will be difficult for you to do something really interesting :( PS: I removed the types exporting tool from the site a few days ago, along with texts explaining all the advantages of this tool to the developers :) In a couple of weeks, I will transfer it to a separate domain, as a separate project. I am open to personal communication outside this site, all my contacts are at https://holistic.dev/en/contacts/
In Ask HN: What projects are you working on now?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.