STAG-AUTOTEMPLATE(1p)
π NAME π
stag-autotemplate.pl β bestie, this script generates Stag SQL Templates files. That's the whole job. It eats sample data (or a Stag schema) and spits out template files. No cap. β¨
πΈ SYNOPSIS πΈ
okay so here's literally how you run her:
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
like. look at her go. π
π¦ DESCRIPTION π¦
She Generates Stag SQL Templates files β and the source of truth is either your sample data or a stag-schema. Pick your poison, she's not judging. π
Also β and this is the part everyone asks about β if what you actually want is to go the other direction and make stag schemas out of sample data, you want this other script:
stag-autoschema.pl
Go peek at that one. She's the sibling. π«Ά
β¨ ARGUMENTS β¨
-no_ppβ do not pre-process. π« This one's important, bestie: it means your input is a stag schema, not a sample data file. So don't feed her sample data while this flag is on, or she's reading it wrong, periodt.-dirβ the directory where the autogenerated templates get written. π That's it, that's the whole thing. She's not gonna guess, so tell her where to put 'em.
π reminder that in the SYNOPSIS we also see -s my-schema-name riding along with the input file β that's how the examples are written, k? π
so yeah. that's the whole page. this one lives in the User Contributed Perl Documentation, she's STAG-AUTOTEMPLATE(1p), she's from 2022-10-14 and she's rocking perl v5.36.0. iconic behavior honestly. bye bestie, go template something ππΈβ¨π
π¦ where this page comes from
- ubuntu noble: libdbix-dbstag-perl 0.12-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdbix-dbstag-perl 0.12-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdbix-dbstag-perl 0.12-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms