Replies: 2 comments 2 replies
-
For additional data validation you can also use Regarding synchronization: if transaction logging is enabled on the server, any missed You can also check out the new OpenAPI (Swagger) docs I've added to the acebase-server repo last weeks if you'd want to dive deeper into the inner workings of the |
Beta Was this translation helpful? Give feedback.
-
Thank you for the work, waiting for the big release.
|
Beta Was this translation helpful? Give feedback.
-
First of all, thank you a lot for the project, which I really think is great and quite a rare thing to find.
I would like to ask whether it is currently possible to provide custom validation functions and synchronization logic: I am aware of the
.read
and.write
attributes torules.json
but, apart from the difficulties in writing a file inside the database folder1, there are cases in which one would like to perform more complex kinds of validations on node insertion2, and this doesn't seem possible with current "server functions".Moreover I think that also the ability to implement a custom synchronization logic with other databases would benefit a lot to the project, and would provide a sort-of "bring your own transport layer" like it can currently be done with storage, instead of having just the local version and the client-server one.
What I have in mind is the ability to attach custom functions which are notified of whichever modification happens in the database, so that one can stream changes to other databases. As far as I understand from reading other issues and discussions the current
mutated
event does not satisfy this condition since it can loose track of initial state of nodes, for examples on disconnections from the server.Let me know what you think of those proposals, and have a nice weekend.
Footnotes
I sincerely miss the ability to pass custom rules when creating the database in the server. ↩
For example to manage a chat application where users can be added or removed from the chat one would need a way to directly modify the permissions to read and write to the chat path. ↩
Beta Was this translation helpful? Give feedback.
All reactions