This thread on SQLite peaked my interest. Especially post 6.1 pointing to a Rust library .
Is this done in Nim / can it be done in Nim?
(not a (library) feature request, purely interest)
I believe thats what happens in my sqlite debby wrapper:
https://github.com/treeform/debby/blob/master/src/debby/sqlite.nim#L120
I am never re-encoding the string just passing pointers and length to bind. I assume no copy happens but I have not verified this with a debugger.
It sucks that mysql or postgres do not provide this functionally and require costly binary encodings!