Search

PythonReactSEOPDF
GitHub Skill

extract-script

Generate extraction scripts from Mustache/SSP templates

starlake-ai☆ 0 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

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

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-03-11
Index updated
2026-03-11
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

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