4 ms·
> I just rewrote 300ish advanced PostgreSQL queries to mysql queries. Translation from one set of tokens to another is exactly the primary use case of LLMs. Th
by daveguy 1y ago
> I just rewrote 300ish advanced PostgreSQL queries to mysql queries.
Translation from one set of tokens to another is exactly the primary use case of LLMs. This is exactly what it should be good at. Developing new queries, much less so. Translation from one set of database queries to another was already very well defined and well covered before LLMs came about.
- skydhash 1y agoAlso, both are formal grammar so if you really wanted to create a 1:1 translator, it's possible to do so (see virtual machines). But it's not as useful per se as no one really switch databases on a whim. If you really want to do so, you want to do it correctly.
- theappsecguy 1y agoI mean, using a good ORM with DB adapter options could achieve this in minutes. Sure, LLM has utility here for raw queries, hardly "replace SWEs" type of utility though
- DonHopkins 1y agoA good reason to have "300ish advanced PostgreSQL queries" is because an "ORM with DB adapter" is inadequate for your requirements.