https://github.com/alvarolm/rslite
sqlite row based synchronization for local dbs
https://github.com/alvarolm/rslite
Last synced: 21 days ago
JSON representation
sqlite row based synchronization for local dbs
- Host: GitHub
- URL: https://github.com/alvarolm/rslite
- Owner: alvarolm
- License: mit
- Created: 2024-12-08T20:00:48.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T21:22:45.000Z (6 months ago)
- Last Synced: 2025-05-12T19:15:42.766Z (21 days ago)
- Language: Go
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rslite
Sqlite row based synchronization for local dbs.
Ideal for **manual incremental restore/backups** and **off-network transportation**.At the moment issues an insert or replace query on the destination db for each row, so it may be slow for large datasets and large row values.
### installation
- from source: ```console go install github.com/alvarolm/rslite@latest```
- from builds: https://github.com/alvarolm/rslite/releases/latest
### Usage:
```console
Usage:
rslite [source db] [target db] [flags]Examples:
# Sync all tables from source to target
rslite source.db target.db# Sync only specific tables
rslite source.db target.db -t users,orders# Sync using "Primary Key" filters (sync records with "Primary Key" > 100)
rslite source.db target.db -f gt -p 100# Sync specific tables without deleting existing records
rslite source.db target.db -t users,orders -n# Complex sync with filters and specific tables
rslite source.db target.db -t users,orders -f gte -p 1000 -nFlags:
-f, --filter string filter type: gt, lt, gte, or lte
-h, --help help for syncs
-n, --nodelete don't delete records from target
-t, --tables strings tables to sync (comma-separated)
-v, --value string filter value
```#### TODO:
- implement content hashing comparison
- more testingMIT License
Copyright (c) 2024 Alvaro Leiva Miranda ([email protected])