Below we use an example database which has a SQLRsync Replica at sqlrsync.com/usgs.gov/earthquakes.db. Alternatively, use your own data by following the Backup SQLite guide.
The earthquakes.db is updated every few minutes with new earthquakes from around the world. This will give you some example data to try with.
Optional: Share via Version Control
Demo: Share the CLI Command using Real Time Replication via Websockets
No account required because the example
sqlrsync.com/usgs.gov/earthquakes.dbis shared publiclyRun the sqlrsync command to PULL the latest copy of the database and
--subscribeto real-time updates:sqlrsync usgs.gov/earthquakes.db --subscribe
Demo: Use the shareable -sqlrsync file to subscribe via Websockets
Visit sqlrsync.com/usgs.gov/earthquakes.db (No account required)
- In the right side-panel, click
Download - Choose
Download -sqlrsync - Move the file to where you'd like the earthquakes.db to be located.
- In the right side-panel, click
Run the -sqlrsync file to PULL the latest copy of the database and
--subscribeto real-time updates:./earthquakes.db-sqlrsync --subscribe
Share your own databases in real time
You need an SQLRsync.com Account:
- Register
- Verify your email address
- Follow the Setup Namespace flow
- Use the
Get Admin Keybutton to copy your Account Admin Key to your clipboard
Go to the directory your-db.sqlite is located:
cd /path/to/appExecute the command:
sqlrsync your-db.sqlite- This will create a new private Replica at sqlrsync.com/
(your namespace)/(hostname)/(path)your-db.sqlite
- This will create a new private Replica at sqlrsync.com/