I was looking for a way to replicate my database (in SQLite) on the same server. I've read in this book that SQLite has no internal support for database replication. Searching Stackoverflow for similar questions, I found this post where @Bernardo Ramos suggested using Litereplica saying that it supports master/slave replication for SQLite3 databases.
I've read the details page of this site where it explains how Litereplica works and what should we do on the master and on the slave side. But it didn't explain how to set up master slave and I did not understand how could I build master and slave on the same server. Also, in the application code, where and how should I define/differentiate master and slave?
Thanks,