Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.23k stars 1.43k forks source link

Use `knex` instead of `rawQuery` everywhere, remove `rawQuery` from codebase. #13960

Closed samwho closed 2 weeks ago

samwho commented 2 weeks ago

Description

This PR moves our tests to using knex in favour of our custom rawQuery. knex has a knex.raw() method we can use if we need to issue raw SQL, and those instances should be few and far between. knex's DSL for running queries should be preferred everywhere.

linear[bot] commented 2 weeks ago

BUDI-8238 Rewrite postgres.spec.ts to use Knex