danvergara / dblab

The database client every command line junkie deserves.
MIT License
2.4k stars 63 forks source link

Client refactor #183

Closed danvergara closed 1 year ago

danvergara commented 1 year ago

Client refactor

Description

The code involved with the queries build up is too attached to the client and hard-coded, adding a new database comes down to adding a new case to a switch, which is not optimal. The idea is refactor the client and abstract away the way queries are performed. This way, adding a new database will be basically a new struct implementing the databaseQuerier interface.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Ran the test suite and QA'd every database supported.

Checklist: