I’m using the zig-sqlite library and was considering storing away some “prepared statements” in a context structure for reuse. I couldn’t figure out how to declare the type of the struct field since the type itself seems to use the sql statement string.
While I’ll eventually figure it out, I have a broader question - how do we do this in the general case … where the type of a value is determined by some complex comptime computation tucked away inside a library?