vrischmann / zig-sqlite

zig-sqlite is a small wrapper around sqlite's C API, making it easier to use with Zig.
MIT License
367 stars 49 forks source link

Workaround SQLITE_TRANSIENT #158

Closed vrischmann closed 6 months ago

vrischmann commented 6 months ago

Description

On some architectures SQLITE_TRANSIENT is translated in such a way that it fails to compile, see https://github.com/ziglang/zig/issues/15893

This PR works around this problem by using a C function to return the proper destructor type.