---
name: "stag-autotemplate"
section: "1p"
platform: "linux"
package: "libdbix-dbstag-perl"
version: "0.12-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/stag-autotemplate"
---

# stag-autotemplate(1p)

Generates Stag SQL Templates files

## NAME

stag-autotemplate.pl - Generates Stag SQL Templates files

## SYNOPSIS

```
  stag-autotemplate.pl \
    -s my-schema-name -dir ./templates my-sample-data.xml
  stag-autotemplate.pl \
    -s my-schema-name -dir ./templates -no_pp my-stagschema.sxpr
```

## DESCRIPTION

Generates Stag SQL Templates files based on sample data or a stag-schema

See the script

```
  stag-autoschema.pl
```

for generating stag schemas from sample data

## ARGUMENTS

- \-no\_pp

  do not pre-process (the input is a stag schema, not a sample data file)

- \-dir

  directory in which to write autogenerated templates
