summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2022-04-16 16:03:23 +0200
committerGravatar Vincent Rischmann2022-04-16 16:03:23 +0200
commitdadd775a614621f458949a4dafde920c3e3e9d17 (patch)
tree5a6adf9449dfdd90c07ed8bda156c1feafc37a6f /sqlite.zig
parentadd documentation for user defined functions (diff)
downloadzig-sqlite-dadd775a614621f458949a4dafde920c3e3e9d17.tar.gz
zig-sqlite-dadd775a614621f458949a4dafde920c3e3e9d17.tar.xz
zig-sqlite-dadd775a614621f458949a4dafde920c3e3e9d17.zip
constrain the error set of createScalarFunction
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite.zig b/sqlite.zig
index e27abb5..b310939 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -617,7 +617,7 @@ pub const Db = struct {
617 /// 617 ///
618 /// The return type of the function is converted to a SQLite value according to the same rules but reversed. 618 /// The return type of the function is converted to a SQLite value according to the same rules but reversed.
619 /// 619 ///
620 pub fn createScalarFunction(self: *Self, func_name: [:0]const u8, comptime func: anytype, comptime create_flags: CreateFunctionFlag) !void { 620 pub fn createScalarFunction(self: *Self, func_name: [:0]const u8, comptime func: anytype, comptime create_flags: CreateFunctionFlag) Error!void {
621 const Type = @TypeOf(func); 621 const Type = @TypeOf(func);
622 622
623 const fn_info = switch (@typeInfo(Type)) { 623 const fn_info = switch (@typeInfo(Type)) {