Install
openclaw skills install database-semantic-generatorGenerate semantic YAML files from databases or Excel; use when users need to quickly build semantic models, generate topic configs or export table structure definitions from MySQL/SQL Server/PostgreSQL/Oracle databases and Excel files
openclaw skills install database-semantic-generator.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"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.