diff options
| author | 2022-04-16 16:03:23 +0200 | |
|---|---|---|
| committer | 2022-04-16 16:03:23 +0200 | |
| commit | dadd775a614621f458949a4dafde920c3e3e9d17 (patch) | |
| tree | 5a6adf9449dfdd90c07ed8bda156c1feafc37a6f | |
| parent | add documentation for user defined functions (diff) | |
| download | zig-sqlite-dadd775a614621f458949a4dafde920c3e3e9d17.tar.gz zig-sqlite-dadd775a614621f458949a4dafde920c3e3e9d17.tar.xz zig-sqlite-dadd775a614621f458949a4dafde920c3e3e9d17.zip | |
constrain the error set of createScalarFunction
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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)) { |