Moved fileEngine to use the root as struct
This commit is contained in:
parent
bd4f0aab7f
commit
0f6f34e706
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user