(Nostrdatabase) Return the reason for not saving the event on the database
Closed this issue · 3 comments
Currently when inserting a event in the database it just returns true or false, it would be nice if it also returned a string with a reason for not inserting the event in the database.
Another thing i need is a option to accept ephemeral events, I need this for using with nip 46 on citrine
I'm trying to test the performance and memory limit against the current sqlite database on citrine
Returning the reason is a good idea, I'm going to add this.
Another thing i need is a option to accept ephemeral events
Regarding this, for now I'll allow to accept ephemeral events in a separate branch to allow you to test this.
You'll can follow this guide to compile the AAR. Later move it to your app and add these to the build.gradle.kts
:
implementation("net.java.dev.jna:jna:5.12.0@aar")
implementation(files("lib/lib-release.aar"))
Another thing i need is a option to accept ephemeral events
Done. Check lmdb-save-ephemeral
branch. Commit 566d185
It worked. Thank you