bobozaur / sqlx-exasol

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

Double-lookup in ExaWebSocket::get_or_prepare #6

Open bobozaur opened 10 months ago

bobozaur commented 10 months ago

The ExaWebSocket::get_or_prepare() method currently does a double-lookup in the LRU cache due to a borrow-checker limitation.

While using unsafe would solve the problem soundly, it felt somewhat wrong given sqlx's no unsafe paradigm. This issue is created to track the development of the limitation in the hope that it can get overcome someday in safe Rust.