- Added a new data type self, that represent the id of the intity itself - Fixed multi threading for parsing, now each thread use it's own writer and I concat them at the end - Added a schemaStruct id to the list - Other fixe and stuff to go with the rest New step, multi threading for all function then finally relationship
37 lines
879 B
Zig
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,
|
|
link_array,
|
|
date_array,
|
|
time_array,
|
|
datetime_array,
|
|
|
|
pub fn is_array(self: DataType) bool {
|
|
return switch (self) {
|
|
.int_array, .float_array, .link_array, .str_array, .bool_array, .date_array, .time_array, .datetime_array => true,
|
|
else => false,
|
|
};
|
|
}
|
|
};
|