定制 darkterminal/turso-syncd 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

darkterminal/turso-syncd

最新稳定版本:v1.0.1

Composer 安装命令:

composer require darkterminal/turso-syncd

包简介

README 文档

README

~ TursoSyncd ~

Turso Dabatabase Background Sync in the Background

Installation

Globally Install

composer global require darkterminal/turso-syncd

or you can install locally within your porject:

composer require darkterminal/turso-syncd

Usage

turso-syncd --database=<database_name> --organization=<organization_name> --token=<token> [--file_recorder=<file>] [--action_log_file=<file>] [--errors_log_file=<file>]

Options

  • --database=<database_name> or -d: The name of the database.
  • --organization=<organization_name> or -o: The name of the organization.
  • --token=<token> or -t: The token for authentication.
  • --file_recorder=<file>: Specify file recorder.
  • --action_log_file=<file>: Specify action log file.
  • --errors_log_file=<file>: Specify errors log file.
  • --help: Display this help message.

Extend in Your Own Daemon

<?php

use Darkterminal\TursoSyncd;

require_once "vendor/autoload.php";

$databaseName       = "your-database-name";
$organizationName   = "your-organization-name";
$token              = "your-turso-token";
$config             = [
    'file_recorder'     => "/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();

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-03-15