Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

SQlite replication with Litereplica

$
0
0

Looking for a way to do the replication in SQlite (inside the DB layer), I found Litereplica from this post. I am not a DB expert and I have never done master/slave setup before, so sorry if I ask some basic things. I feel I really did not understand how the litereplica works). Here are my problems:

  1. In order to compile the library (following the instructions in https://github.com/litereplica/litereplica), I had to run these commands:

    • git clone https://github.com/litereplica/litereplica
    • cd litereplica
    • make
    • make install

However, I got an error using make command since there was no makefile inside the litereplica directory. So, I ran the make command in sqlite3.6 folder (which was inside litereplica directory) and faced this error:

sqlite3.c:6572:10: fatal error: 'nanomsg/nn.h' file not found

I know I have to install nanomsg and binn libraries, but I am not sure in which directory I have to install them.

Also, if I have to install one of those sqlite versions inside litereplica folder (sqlite3.6, 3.7 or 3.8), then what is the difference with the case if I directly installed sqlite3? (I mean where is the litereplica code then?)

  1. How should I setup master/slave (in the same server, same application) with litereplica? for example, if I want to implement the basic replica with the simple topology, the litereplica site provided a sample code for all the cases, but I did not understand where in the application I have to write these codes? (how should I separate master/slave there?)

I really appreciate if someone even could provided me with a link/tutorial where I can better understand how to work with litereplica and/or do the replication in SQlite.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>