STAG-AUTOTEMPLATE(1p)

πŸ“¦
version 0.12 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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