redis-di 脚手架

生成RDI的配置文件

用法

Usage: redis-di scaffold [OPTIONS]

选项

  • log_level:

    • 类型: Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])
    • 默认值: info
    • 用法: --log-level -l
  • db_type (必填):

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

    数据库类型

  • strategy:

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

    策略

    输出到目录或标准输出

  • directory:

    • 类型: 字符串
    • 默认值: none
    • 用法: --dir

    包含RDI配置的目录

  • preview:

    • 类型: 字符串
    • 默认值: none
    • 用法: --preview

    将生成的配置文件内容打印到CLI输出

  • help:

    • 类型: BOOL
    • 默认值: false
    • 用法: --help

    显示此消息并退出。

CLI 帮助

Usage: redis-di scaffold [OPTIONS]

  Generates configuration files for RDI

Options:
  -l, --log-level [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 RDI configuration
    --preview TEXT                Print the content of the scaffolded config
                                  file to CLI output
  --help                          Show this message and exit.
RATE THIS PAGE
Back to top ↑