18 Commits

Author SHA1 Message Date
24c204f435 Added an option to reset or not the logs and some typo 2024-10-27 13:18:26 +01:00
debc646738 Moved the custom types to a library 2024-10-27 12:59:28 +01:00
4df151ea85 Moved help message to config 2024-10-27 11:20:02 +01:00
e5f2f7c5e5 Changed some print to log 2024-10-26 18:52:10 +02:00
c5f931cf04 Better logs
Now log are managed by the std log, did a custom log to print either
into a file or into the default io strout.

The plan is to create a scope in each file and log depending of stuff,
can also use it in library I think, if should still base by the custom
function.

Next step is logging a lot of stuff a bit everywhere.
2024-10-26 17:30:58 +02:00
9d39d47c3b Removed some test and fixed some synthax 2024-10-26 13:47:52 +02:00
2b9ad08abf Cleaned ZiQlParser
Removed 4 members to be variable, includding; state, struct_name, action
and additional_data.

Also make it so it only return ZipponEError
2024-10-22 00:03:38 +02:00
62e4f53477 Automatically create all folder if env var provided
If ZIPPONDB_PATH is found, it will try to create and ur the directory.

If ZIPPONDB_SCHEMA is found, it will try to init the schema using it.
2024-10-20 21:19:25 +02:00
34688a0180 Changed a bit how log work 2024-10-20 09:50:44 +02:00
a6a3c092cc Added logging, all Token use the same Loc 2024-10-20 01:35:12 +02:00
ebb3eec4f4 Switched to csv 2024-10-19 23:24:55 +02:00
6bcb369cbc Date, clean and errors
Added the datatype date, time and datetime

Moved all custom erros to a single file

Cleaned code to be more readable and created some small utils

Other stuffs that I dont recall. Basically preparing for the
relationship implementation
2024-10-19 14:42:13 +02:00
783697d4df Created config.zig and BUFFERSIZE 2024-10-17 19:38:08 +02:00
4069c7d85b Back to CLI in a loop 2024-10-17 01:49:54 +02:00
2b1deca452 Cleaning session
Removed the loop for the CLI, now just take some argument using the
binary. May come back to while loop if I need to keep like the file
engine between session. To run query in parallel.

Moved printError and send to utils and removed duplicate of them.

Organized FileEngine better.

Put the function that convert string to value in a seperate file.

Fix some synthax and make it smaller. Removed unused functions too
2024-10-16 22:36:21 +02:00
b5669e9c2d Some progress, have a good part of the schema and engine building working. Now starting to do the query parser part 2024-09-08 18:11:39 +02:00
be84a8e481 Simple cli and ziql tokenizer 2024-09-02 20:22:46 +02:00
e3f0ff1d84 first commit 2024-09-02 11:02:33 +02:00