SQL::Tr...er::xSV(3)

πŸ’… SQL::Translator::Parser::xSV(3) πŸ’…

okay so this is the manual page for SQL::Translator::Parser::xSV, straight out of the User Contributed Perl Documentation corner of the internet. It’s giving β€œparser for arbitrarily delimited text files” and honestly? iconic. πŸ¦‹

✨ NAME ✨

SQL::Translator::Parser::xSV β€” parser for arbitrarily delimited text files. No cap: the delimiter can be whatever you need, bestie. πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

Load it up like this:

use SQL::Translator;
use SQL::Translator::Parser::xSV;

my $translator  =  SQL::Translator->new(
    parser      => 'xSV',
    parser_args => { field_separator => "\t" },
);

🌸 DESCRIPTION 🌸

This bad boy parses arbitrarily delimited text files. For the arguments on how to parse the file β€” e.g., field_separator, record_separator β€” see the Text::RecordParser manpage. That’s where the parsing knobs live, iykyk. πŸŽ€

Other arguments include:

πŸ’… OPTIONS πŸ’…

  • scan_fields β€” indicates that the columns should be scanned to determine data types and field sizes. True by default. πŸ•΅οΈβ€β™€οΈ
  • trim_fields β€” a shortcut to sending filters to Text::RecordParser; it will create callbacks that trim leading and trailing spaces from fields and headers. True by default. βœ‚οΈ

Field names will automatically be normalized by SQL::Translator::Utils::normalize_name. Automatic field-name glow-up, periodt. ✨

πŸ‘‘ AUTHORS πŸ‘‘

Shoutout to the icons who made this happen:

  • Darren Chamberlain <darren@cpan.org>
  • Ken Y. Clark <kclark@cpan.org>

πŸ”₯ SEE ALSO πŸ”₯

Text::RecordParser, SQL::Translator. Go read those too, bestie. 🫢

πŸ’Œ Sign-off: this page is serving perl v5.42.0 realness, dated 2024-12-12, and the manual is SQL::Tr...er::xSV(3) β€” mwah! 🫢✨
πŸ“¦ where this page comes from