I tried to do it but couldn't find open source MIT licensed SQL parser which is needed to make it secure against SQL injection.
Metabase works well is such scenarios.
Metabase works well is such scenarios.
Maybe pick a language that has better libraries for language parsing and analysis?