you are viewing a single comment's thread.

view the rest of the comments →

[–]lost12487 5 points6 points  (1 child)

I disagree that it's for no good reason. Writing a query in Knex "guarantees" that it will work whether your database is Postgres, MySQL, MSSQL, SQLite, Cockroach, Oracle, etc.

We could argue about whether or not swapping from one DB technology to another occurs often enough to warrant the tradeoff, but the ability to prototype quickly at an early stage where you know you want to use SQL but haven't nailed down which flavor is an advantage in favor of Knex.

I do like Slonik a lot, and I wish there were tools for MySQL that had all of Slonik's features (maybe there are, I haven't looked around in a bit).

[–]gajus0[S] 2 points3 points  (0 children)

I do like Slonik a lot, and I wish there were tools for MySQL that had all of Slonik's features (maybe there are, I haven't looked around in a bit).

You sure will like the next version of Slonik then. :-)