获取帮助

使用SQL Rewriter前,您可以通过以下指令获取帮助。

  1. gs_dbmind component sql_rewriter --help

显示如下帮助信息:

  1. usage: [-h] [--db-host DB_HOST] [--db-user DB_USER] [--schema SCHEMA]
  2. db_port database file
  3. SQL Rewriter
  4. positional arguments:
  5. db_port Port for database
  6. database Name for database
  7. file File containing SQL statements which need to rewrite
  8. optional arguments:
  9. -h, --help show this help message and exit
  10. --db-host DB_HOST Host for database
  11. --db-user DB_USER Username for database log-in
  12. --schema SCHEMA Schema name for the current business data

密码通过管道输入或交互式输入,对于免密用户,任意输入都可通过检验。