Since you already know TypeScript, I think it is important to note that this project uses a new TypeScript 4.1 feature called Template Literal Types to do pattern matching in order to parse the SQL string.
https://devblogs.microsoft.com/typescript/announcing-typescr...