Created the engines folder
Created a new folder to clean a bit the repo, put the file and schema engine inside. As those and Parser depend on the types.zig, I also add this folder inside the new engines folder
This commit is contained in:
parent
b008f434a6
commit
e2e8bc4d80
@ -46,7 +46,7 @@ pub fn build(b: *std.Build) void {
|
||||
const run_tests4 = b.addRunArtifact(tests4);
|
||||
|
||||
const tests5 = b.addTest(.{
|
||||
.root_source_file = b.path("src/types/uuid.zig"),
|
||||
.root_source_file = b.path("src/engines/types/uuid.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.name = "UUID",
|
||||
@ -55,7 +55,7 @@ pub fn build(b: *std.Build) void {
|
||||
const run_tests5 = b.addRunArtifact(tests5);
|
||||
|
||||
const tests6 = b.addTest(.{
|
||||
.root_source_file = b.path("src/fileEngine.zig"),
|
||||
.root_source_file = b.path("src/engines/file.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.name = "File Engine",
|
||||
|
@ -1,6 +1,6 @@
|
||||
const std = @import("std");
|
||||
const Allocator = std.mem.Allocator;
|
||||
const DataEngine = @import("fileEngine.zig").FileEngine;
|
||||
const DataEngine = @import("engines/file.zig").FileEngine;
|
||||
const cliTokenizer = @import("tokenizers/cli.zig").Tokenizer;
|
||||
const cliToken = @import("tokenizers/cli.zig").Token;
|
||||
const ziqlTokenizer = @import("tokenizers/ziql.zig").Tokenizer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
const std = @import("std");
|
||||
const schemaEngine = @import("schemaEngine.zig");
|
||||
const schemaEngine = @import("schema.zig");
|
||||
const Allocator = std.mem.Allocator;
|
||||
const UUID = @import("types/uuid.zig").UUID;
|
||||
const DataType = @import("types/dataType.zig").DataType;
|
||||
@ -437,12 +437,6 @@ test "Get list of UUID using condition" {
|
||||
try data_engine.getUUIDListUsingCondition(condition, &uuid_array);
|
||||
}
|
||||
|
||||
test "Open dir" {
|
||||
const dir = std.fs.cwd();
|
||||
const sub_dir = try dir.openDir("src/types", .{});
|
||||
_ = sub_dir;
|
||||
}
|
||||
|
||||
// Series of functions to use just before creating an entity.
|
||||
// Will transform the string of data into data of the right type./
|
||||
|
@ -1,7 +1,7 @@
|
||||
const std = @import("std");
|
||||
const Allocator = std.mem.Allocator;
|
||||
const Toker = @import("schemaTokenizer.zig").Tokenizer;
|
||||
const Token = @import("schemaTokenizer.zig").Token;
|
||||
const Toker = @import("tokenizers/schema.zig").Tokenizer;
|
||||
const Token = @import("tokenizers/schema.zig").Token;
|
||||
|
||||
pub const Parser = struct {
|
||||
file: std.fs.File,
|
||||
@ -181,3 +181,5 @@ pub const Parser = struct {
|
||||
self.writeToFile("\";");
|
||||
}
|
||||
};
|
||||
|
||||
// TODO: Some test, weird that there isn't any yet
|
||||
|
@ -1,10 +1,10 @@
|
||||
const std = @import("std");
|
||||
const schemaEngine = @import("schemaEngine.zig");
|
||||
const DataEngine = @import("fileEngine.zig").FileEngine;
|
||||
const Condition = @import("fileEngine.zig").FileEngine.Condition;
|
||||
const schemaEngine = @import("engines/schema.zig");
|
||||
const DataEngine = @import("engines/file.zig").FileEngine;
|
||||
const Condition = @import("engines/file.zig").FileEngine.Condition;
|
||||
const Tokenizer = @import("tokenizers/ziql.zig").Tokenizer;
|
||||
const Token = @import("tokenizers/ziql.zig").Token;
|
||||
const UUID = @import("types/uuid.zig").UUID;
|
||||
const UUID = @import("engines/types/uuid.zig").UUID;
|
||||
const Allocator = std.mem.Allocator;
|
||||
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user