Moved fileEngine to use the root as struct

This commit is contained in:
Adrien Bouvais 2025-01-11 17:55:56 +01:00
parent bd4f0aab7f
commit 0f6f34e706

View File

@ -40,7 +40,8 @@ var path_to_ZipponDB_dir_buffer: [1024]u8 = undefined;
/// Manage everything that is relate to read or write in files
/// Or even get stats, whatever. If it touch files, it's here
pub const FileEngine = struct {
pub const FileEngine = @This();
path_to_ZipponDB_dir: []const u8,
thread_pool: *Pool, // same pool as the ThreadEngine
schema_engine: SchemaEngine = undefined, // This is init after the FileEngine and I attach after. Do I need to init after tho ?
@ -1154,4 +1155,3 @@ pub const FileEngine = struct {
defer file.close();
file.writeAll(null_terminated_schema_buff) catch return ZipponError.WriteError;
}
};