|
|
|
|
|
by Sphax
1489 days ago
|
|
Only the metadata of the statement is comptime, that is the type annotation for each bind parameters. So if you have this query SELECT * FROM user WHERE age = $age{u16}
You _must_ provide a u16 bind parameter. However the value itself is of course not required to be comptime-known, that would make the whole thing unusable.For what it's worth there are in zig-sqlite variants of the method which bypass the comptime checks; they're not documented properly yet but see all methods named `xyzDynamic`, for example https://github.com/vrischmann/zig-sqlite/blob/master/sqlite.... |
|