搜索

PythonReactSEOPDF
GitHub Skill

extract-script

Generate extraction scripts from Mustache/SSP templates

starlake-ai☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Extract Script Skill

Generates extraction scripts from Mustache or SSP (Scalate) templates. This is useful for generating custom SQL DDL scripts (CREATE, ALTER, DROP) for different database platforms.

Usage

starlake extract-script [options]

Options

  • --domain <value>: Comma-separated list of domains to generate scripts for (default: all)
  • --template <value>: Path to the template directory containing Mustache/SSP templates (required)
  • --audit-schema <value>: Audit DB schema that will contain the audit export table (required)
  • --delta-column <value>: Default date column used for incremental extraction tracking
  • --reportFormat <value>: Report output format: console, json, or html

Configuration Context

DDL Templates

Templates are organized by database platform in metadata/extract/ddl/:

metadata/extract/ddl/
├── bigquery/
│   ├── create.ssp
│   ├── alter.ssp
│   └── drop.ssp
├── postgres/
│   └── drop.ssp
└── synapse/
    ├── create.ssp
    ├── alter.ssp
    └── drop.ssp
Template Variables

Templates receive the following variables:

  • Domain/schema information (name, tables)
  • Table attributes (columns, types, constraints)
  • Database-specific type mappings from types/default.sl.yml

Examples

Generate DDL Scripts for All Domains
starlake extract-script --template metadata/extract/ddl/bigquery --audit-schema audit
Generate Scripts for Specific Domains
starlake extract-script --domain sales,hr --template metadata/extract/ddl/postgres --audit-schema audit
Generate with Delta Column for Incremental
starlake extract-script --template metadata/extract/ddl/synapse --audit-schema audit --delta-column updated_at

Related Skills

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!