Fork me on GitHub
#honeysql
<
2021-04-27
>
az22:04:38

Hi all, is there a way convert raw sql to honeysql compliant data? I have a bunch of sql I would like to convert.

Noah Bogart23:04:19

Depending on how much effort you want to put in, you could convert the sql to AST nodes and then convert that to honeysql style nodes

seancorfield23:04:55

The grammar for SQL is extremely complicated and is also different for each database so this is a very hard problem to solve.

seancorfield23:04:46

If you have “simple” SQL, you might be able to do at least some of it via regex-style parsing but it’s still going to be a lot of work @aramz

az23:04:14

Thank you, makes sense

seancorfield23:04:20

(it’s been requested a couple of times against HoneySQL and I’ve rejected it each time as being effectively intractable)