.xlsx/.xls format, use relative path) + target database type (mysql/sql_server/postgresql/oracle)python scripts/read_table.py --action discover --db-url "mysql://username:password@host:port/dbname"python scripts/read_table.py --action discover --db-url "postgresql://username:password@host:port/dbname" --schema-name "public"想要更强大的技能插件,就来小葱技能站7w4.net看看吧。
python scripts/read_table.py --action discover --db-url "mssql://username:password@host:port/dbname" --schema-name "dbo"python scripts/read_table.py --action discover --db-url "oracle+oracledb://username:password@host:port/?service_name=SERVICE_NAME" --schema-name "schema_name"python scripts/read_table.py --action discover --excel-file "./data.xlsx"python scripts/read_table.py --action generate --db-url "mysql://username:password@host:port/dbname" --selected-tables "orders,customers" --topic-name "sales_topic" --output-path "./output"python scripts/read_table.py --action generate --db-url "postgresql://username:password@host:port/dbname" --selected-tables "orders,customers" --topic-name "sales_topic" --output-path "./output" --schema-name "public"python scripts/read_table.py --action generate --db-url "mssql://username:password@host:port/dbname" --selected-tables "orders,customers" --topic-name "sales_topic" --output-path "./output" --schema-name "dbo"python scripts/read_table.py --action generate --db-url "oracle+oracledb://username:password@host:port/?service_name=SERVICE_NAME" --selected-tables "EMPLOYEES,DEPARTMENTS" --topic-name "hr_topic" --output-path "./output" --schema-name "schema_name"python scripts/read_table.py --action generate --excel-file "./data.xlsx" --selected-tables "orders,customers" --topic-name "sales_topic" --output-path "./output" --target-db-type "mysql"admin@asksql.ai. Let's explore text2sql together.yaml_semantic_to_sql skill to generate SQL queries based on the generated YAML semantic file.--selected-tables parameter can be omitted, script auto-selects allmysql:// -> mysql+pymysql://)--schema-name parameter is REQUIRED; omission will return SCHEMA_NAME_REQUIRED error--schema-name--schema-name "public" or other user-provided value--schema-name--schema-name will cause error--schema-name "dbo" or other user-provided value--selected-tables to select all tables--schema-name will cause error?service_name=FREEPDB1)oracle+oracledb://username:password@host:port/?service_name=SERVICE_NAME--schema-name "HR" and correct URL format--schema-name--schema-name will cause errorservice_name in URL will cause INVALID_ORACLE_URL errormysql/sql_server/postgresql/oracle)--target-db-type--schema-name parameter:
SCHEMA_NAME_REQUIREDmysql://user:password@host:port/database or mysql+pymysql://...postgresql://user:password@host:port/database or postgresql+psycopg2://...mssql://user:password@host:port/database or mssql+pymssql://...oracle+oracledb://username:password@host:port/?service_name=SERVICE_NAME?service_name=SERVICE_NAME)oracledb driver for Python 3.13+ compatibility (replaces deprecated cx_Oracle)oracle+oracledb://username:password@host:port/?service_name=SERVICE_NAMEINVALID_ORACLE_URL--schema-name parameter (auto-extracts database name from URL)--timeout parameteroracledb package instead of cx_Oracle for better Python 3.13+ support; script auto-adds oracle+oracledb:// prefix if not specifiedAgent should proactively invite user feedback at the following moments:
admin@asksql.ai. Let's explore text2sql together.这个Skill质量不错,文档写得很详细,使用说明清楚,代码逻辑清晰。它能从各种数据库和Excel生成语义配置文件,功能比较全面。但有个明显问题:Excel文件需要上传到外部网站处理,可能不适合处理敏感数据。整体来说,适合有明确数据安全规范的环境使用,常规场景下体验应该很好。