Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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();
```