SQL::Translator::Parser::xSV(3pm)

SQL::Translator::Parser::xSV3pm

Parser for arbitrarily delimited text files

Usage

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

Overview

Parses arbitrarily delimited text files. See the Text::RecordParser manpage for arguments on how to parse the file (e.g., "field_separator", "record_separator"). 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, 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".

Releases

10 releases since Debian 4.0 (Etch); the text changed 9 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13

Authors

Darren Chamberlain <[email protected]>, Ken Y. Clark <[email protected]>.

From libsql-translator-perl 1.66-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.