Sofof is an easy, portable, multiusers , Object oriented database for Java SE and EE developers
import org.sofof.command.Bind;
import org.sofof.permission.User;
import org.sofof.Server;
import org.sofof.SessionManager;
import java.io.File;
public class Binding {
public static void main(String[] args) throws SofofException {
Server s = new Server(new File("sofof"), 6969, false);
s.createDatabase();
s.getUsers().add(new User("rami", "secret"));
s.startUp();
try (Session sess = SessionManager.startSession("java:localhost:6969", new User("rami", "secret"), false)) {
sess.execute(new Bind("Sofof database is great").to("posts"));
}
}
}
to start use sofof database you can download it from here and read the documentation
<dependency>
<groupId>io.github.ramimanaf</groupId>
<artifactId>sofof</artifactId>
<version>5.0.0</version>
</dependency>