70 Commits

Author SHA1 Message Date
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
d851c8f908 DELETE UPDATE and ADD now send the list of affected uuid 2024-10-19 18:43:39 +02:00
49853458ce Fixed the json output for GRAB 2024-10-19 18:12:16 +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
673148ba77 Update tokenizer
Added time and datetime to the schema tokenizer

Added date, time and datetime literal to the ziqltokenizer
2024-10-17 23:06:59 +02:00
69069d39db Base date type 2024-10-17 21:43:50 +02:00
783697d4df Created config.zig and BUFFERSIZE 2024-10-17 19:38:08 +02:00
be9d4cb63d
Create Technical docs.md 2024-10-17 16:49:17 +02:00
4069c7d85b Back to CLI in a loop 2024-10-17 01:49:54 +02:00
edfd00f939 Updated gitignore 2024-10-17 00:37:27 +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
29af5a7ac0 Start cleaning before working one 0.2 2024-10-16 20:26:40 +02:00
c93538f4b0
Update README.md 2024-10-14 18:01:40 +02:00
d15a494fb8
Create LICENSE 2024-10-14 14:35:14 +02:00
d099353509
Update README.md 2024-10-14 11:24:15 +02:00
e67b5afa0a
Update README.md 2024-10-14 11:20:17 +02:00
8f1ce5462f Checked spelling of REDME and ZiQL.md 2024-10-14 00:15:18 +02:00
7d2400b257 Update README and small stuff
Changed the zipponschema example   to have friends as list of string

Better README, created ZiQL.md for more details on query

Added fast build option
2024-10-13 23:40:30 +02:00
04263493db Fixed some memory errors and synthax 2024-10-13 23:38:50 +02:00
0fe3eb5560 Can send string array in JSON 2024-10-13 13:32:58 +02:00
68e91a62fd Clean a bit ZiQL parser and add condition check
Added a check at the end of parse Condition to check if the condition is
valid. Like < between string is not for example.

Also removed the state send_all to check inside filter_and_send instead
so update and delete can do the same.

And some small bugs/erros
2024-10-13 13:30:30 +02:00
78d7ed2c0a Fix environment variable
I was freeing the path just after getting it, changed that
2024-10-13 13:28:26 +02:00
e45d8579a9 Added the db metrics, use and init command
Now the DataEngine is deinit and init again everytime the user swap
database using db use. If a db is not selected, it will display an error
2024-10-13 11:26:44 +02:00
ac4186529d Implement send all and send JSON
Now send the JSON using the additional data.

Also implemented the empty filter and the no filter like GRAB User {}
and GRAB User
2024-10-12 19:02:23 +02:00
e6357c4d74 Added DELETE
Basically use the same function as update but instead of rewiting an
updated row, I skip it
2024-10-12 16:20:34 +02:00
94e3905009 Implemented UPDATE and error for ZiQL Parser
Created a function that is use by UPDATE to take a list of uuids and a
map of new value. Can be optimize later but work rn.

Also started to creat more proper error handeling with custom error
starting with ZiQLError
2024-10-12 15:26:24 +02:00
fbcca0dc09 Implemented dynamic schema
Started by doing a SchemaEngine but at the end I just put everything
inside the FileEngine.

Now you can use 'schema init path/to/schema' to initialize the struct
folders and first data file, Also save a copy of the schema in a file in
the ZipponDB folder.
2024-10-11 17:51:45 +02:00
e2e8bc4d80 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
2024-10-09 23:32:37 +02:00
b008f434a6 Passed to one tabular file for each struct
Created a new Parser unique for the FileEngine to read each line.
It is slower as I need to parser character by character because their is
no fixed len for the data in files. Before I was just reading until the
end of the file.

Im gonna need to find some tricks to improve the parsing of data. I am
thinking using the stream directly instead of doing streamUntilDelimiter
2024-10-09 23:20:28 +02:00
8c8b10ef2a Changed command schema build to schema init 2024-10-09 20:19:20 +02:00
cda2ee16a8 Passe basic GRAB query ! 2024-10-09 20:12:07 +02:00
84495e831f
Update README.md 2024-10-09 14:16:49 +02:00
1012255c6b
Update README.md 2024-10-09 13:56:25 +02:00
25843ec7d2
Update README.md 2024-10-09 12:32:12 +02:00
59b29816d5 Update README 2024-10-08 23:41:14 +02:00
1840dea70b
Update README.md 2024-10-08 15:57:13 +02:00
f937fafcca
Update README.md 2024-10-08 14:28:17 +02:00
907aeef35b
Update README.md 2024-10-08 14:24:23 +02:00
4586b8493a
Update dataParser.zig 2024-10-08 09:44:56 +02:00
0bb27027a0
Update README.md 2024-10-08 09:40:26 +02:00
67fb49ded5 Working new ZiQL pqrser for basic ADD and GRAB !!! 2024-10-08 00:18:25 +02:00
9829cb24b0 fix README 2024-10-08 00:18:00 +02:00
7646927a00 fix 2024-10-07 23:38:15 +02:00
406ef1de48 fix 2024-10-07 23:34:04 +02:00
6d72997165 fix 2024-10-07 23:27:38 +02:00
817ba4de2f Better root organization 2024-10-07 23:27:05 +02:00
3c3d40a019 Better banner 2024-10-07 19:13:26 +02:00
02606a54ef fix 2024-10-07 18:54:42 +02:00