redis-di 脚手架

为 Write-behind 和 Debezium 生成配置文件(将数据摄取到 Redis 时)

用法

Usage: redis-di scaffold [OPTIONS]

选项

  • loglevel:

    • 类型:Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])
    • 违约:info
    • 用法:--loglevel -log-level
  • db_type(必填):

    • 类型: Choice([<DbType.MYSQL: 'mysql'>, <DbType.ORACLE: 'oracle'>, <DbType.POSTGRESQL: 'postgresql'>, <DbType.REDIS: 'redis'>, <DbType.SQLSERVER: 'sqlserver'>])
    • 违约:none
    • 用法:--db-type

    DB 类型

  • strategy:

    • 类型: Choice([<Strategy.INGEST: 'ingest'>, <Strategy.WRITE_BEHIND: 'write_behind'>])
    • 违约:ingest
    • 用法:--strategy

    策略

    输出到目录或 stdout

  • directory:

    • 类型:STRING
    • 违约:none
    • 用法:--dir

    包含 Write-behind 配置的目录

  • preview:

    • 类型:Choice(['debezium/application.properties', 'config.yaml'])
    • 违约:none
    • 用法:--preview

    将指定配置文件的内容打印到 CLI 输出

  • help:

    • 类型: BOOL
    • 违约:false
    • 用法:--help

    显示此消息并退出。

CLI 帮助

Usage: redis-di scaffold [OPTIONS]

  Generates configuration files for Write-behind and Debezium (when ingesting data to
  Redis)

Options:
  -log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL]
                                  [default: INFO]
  --db-type [mysql|oracle|postgresql|redis|sqlserver]
                                  DB type  [required]
  --strategy [ingest|write_behind]
                                  Strategy  [default: ingest]
  Output formats: [mutually_exclusive, required]
                                  Output to directory or stdout
    --dir TEXT                    Directory containing Write-behind configuration
    --preview [debezium/application.properties|config.yaml]
                                  Print the content of specified config file
                                  to CLI output
  --help                          Show this message and exit.