Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darkterminal/turso-syncd
Turso Database Background Sync
https://github.com/darkterminal/turso-syncd
database distributed edge sqlite synchronization turso
Last synced: about 2 months ago
JSON representation
Turso Database Background Sync
- Host: GitHub
- URL: https://github.com/darkterminal/turso-syncd
- Owner: darkterminal
- License: gpl-3.0
- Created: 2024-03-15T21:15:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T11:54:50.000Z (9 months ago)
- Last Synced: 2024-04-08T12:52:59.287Z (9 months ago)
- Topics: database, distributed, edge, sqlite, synchronization, turso
- Language: PHP
- Homepage:
- Size: 21.4 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
~ TursoSyncd ~
Turso Dabatabase Background Sync in the Background
Installation
**Globally Install**
```bash
composer global require darkterminal/turso-syncd
```or you can install locally within your porject:
```bash
composer require darkterminal/turso-syncd
```Usage
```bash
turso-syncd --database= --organization= --token= [--file_recorder=] [--action_log_file=] [--errors_log_file=]
```Options
- `--database=` or `-d`: The name of the database.
- `--organization=` or `-o`: The name of the organization.
- `--token=` or `-t`: The token for authentication.
- `--file_recorder=`: Specify file recorder.
- `--action_log_file=`: Specify action log file.
- `--errors_log_file=`: Specify errors log file.
- `--help`: Display this help message.Extend in Your Own Daemon
```php
"/path/to/your/recorder-file/recorded_queries.json",
'action_log_file' => "/path/to/your/action-log-file/actions.log",
'errors_log_file' => "/path/to/your/error-log-file/errors.log",
];$tursoSyncd = new TursoSyncd($databaseName, $organizationName, $token, $config);
$tursoSyncd->start();
```