bobozaur / sqlx-exasol

An Exasol database driver for the Rust SQLx framework
Apache License 2.0
1 stars 0 forks source link

Compile-time query support #9

Open bobozaur opened 10 months ago

bobozaur commented 10 months ago

Right now the driver does not support the sqlx-cli or the compile-time query macros due to the sqlx incorporated drivers being hardcoded in the API that decides what driver to use. This is understandable, given that a proper plugin system would be required to allow 3rd party drivers to be used in the same manner.

There are the inventory and linkme crates but each has its caveats.

Nevertheless, some change must first happen in sqlx before any 3rd party driver is able to, firstly, implement the QueryDriver API and, secondly, be seamlessly plugged in so that the compile-time query checking can actually use the driver.