at1.4-sql
v0.0.1
Published
SQL CLI tools and assets for AskTao 1.4.
Readme
at1.4-sql
AskTao 1.4 SQL CLI for generating GBK-encoded SQL files from bundled templates.
Installation
npm install -g at1.4-sqlUsage
Run the interactive menu:
at1.4-sqlGenerate initialization SQL without prompts:
at1.4-sql --mode init --zone 逐鹿中原 --public-ip 1.2.3.4Generate drop database SQL:
at1.4-sql --mode drop --out output/drop.sqlUse custom SQL templates:
at1.4-sql --mode init --sqls-dir ./sqls --zone 逐鹿中原 --public-ip 1.2.3.4SQL Templates
Bundled templates are published with the package under sqls/:
all_ddl.sql: DDL dump.all_dml.sql: DML dump with__ASKTAO_ZONE_NAME__and__ASKTAO_PUBLIC_IP__placeholders.drop.sql: drop database SQL template.
All SQL template files and generated SQL outputs are GBK encoded.
