diff --git a/.gitignore b/.gitignore index dbd8a42..10f6c07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .zig-cache +.venv ZipponDB engine engine.o diff --git a/README.md b/README.md index 0645059..b43abc1 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ GRAB User [10; name] {age > 10} |ASC name| ## ADD -The `ADD` action will add one entity into the database (batch are comming). +The `ADD` action will add one entity into the database. The synthax is similare but use `()`, this mean that the data is not yet in the database if between `()`. Here an example: @@ -153,6 +153,18 @@ ADD User (name = 'Bob', age = 30, email = 'bob@email.com', scores = [1 100 44 82 You need to specify all member when adding an entity (default value are comming). +#### Not implemented + +And you can also add them in batch +``` +ADD User (name = 'Bob', age = 30, email = 'bob@email.com', scores = [1 100 44 82]) (name = 'Bob2', age = 33, email = 'bob2@email.com', scores = []) +``` + +You don't need to specify the member in the second entity as long as the order is respected +``` +ADD User (name = 'Bob', age = 30, email = 'bob@email.com', scores = [1 100 44 82]) ('Bob2', 33, 'bob2@email.com', []) +``` + ## DELETE Similare to `GRAB` but delete all entity found using the filter and return the list of UUID deleted. @@ -231,7 +243,6 @@ TODO: Create a tech doc of what is happening inside. - [ ] ZiQL parser - [ ] Schema engine - [X] File engine -- [ ] Loging #### v0.2 - Usable - [ ] B-Tree