ZipponDB/lib/types/out.zig
MrBounty 979690fec4 IN filter working
Now if I do like GRAB User { best_friends IN {name = 'Bob'}} it should
work

At least now the condition value is a hashmap with key as UUID.
2024-11-17 21:52:11 +01:00

37 lines
879 B
Zig

// This file is just to expose what I need to grab
pub const UUID = @import("uuid.zig").UUID;
pub const DateTime = @import("date.zig").DateTime;
pub const OR = @import("uuid.zig").OR;
pub const AND = @import("uuid.zig").AND;
pub const s2t = @import("stringToType.zig");
/// Suported dataType for the DB
/// Maybe start using a unionenum
pub const DataType = enum {
int,
float,
str,
bool,
link,
self, // self represent itself, it is the id
date,
time,
datetime,
int_array,
float_array,
str_array,
bool_array,
date_array,
time_array,
datetime_array,
link_array,
pub fn is_array(self: DataType) bool {
return switch (self) {
.int_array, .float_array, .str_array, .bool_array, .date_array, .time_array, .datetime_array, .link_array => true,
else => false,
};
}
};