1Fsdb::Filter::yaml_to_dUbs(e3r)Contributed Perl DocumentFastdibo:n:Filter::yaml_to_db(3)
2
3
4

NAME

6       yaml_to_db - convert a subset of YAML into fsdb
7

SYNOPSIS

9           yaml_to_db <source.yaml
10

DESCRIPTION

12       Converts a very limited subset of YAML into Fsdb format.
13
14       The input is YAML-format (not fsdb).  The input is parsed as YAML,
15       assuming the file is an array of dictionary entries.  We extract the
16       dictionary names and output this as an fsdb table.
17
18       The output is tab-separated fsdb.  (Someday more general field
19       separators should be supported.)
20

OPTIONS

22       This module also supports the standard fsdb options:
23
24       -d  Enable debugging output.
25
26       -i or --input InputSource
27           Read from InputSource, typically a file name, or "-" for standard
28           input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
29           objects.
30
31       -o or --output OutputDestination
32           Write to OutputDestination, typically a file name, or "-" for
33           standard output, or (if in Perl) a IO::Handle, Fsdb::IO or
34           Fsdb::BoundedQueue objects.
35
36       --autorun or --noautorun
37           By default, programs process automatically, but Fsdb::Filter
38           objects in Perl do not run until you invoke the run() method.  The
39           "--(no)autorun" option controls that behavior within Perl.
40
41       --help
42           Show help.
43
44       --man
45           Show full manual.
46

SAMPLE USAGE

48   Input:
49               - name: ACM
50                 role: sponsor
51                 alttext: ACM, the Association for Computing Machinery
52                 image: logos/acm-small.jpg
53                 link:  https://www.acm.org/
54                 date: 2016-01-01
55
56               - name: SIGCOMM
57                 role: sponsor
58                 alttext: SIGCOMM, ACM'S Special Interest Group on Communication
59                 image: logos/sigcommlogo.png
60                 link:  http://sigcomm.org
61                 date: 2016-01-02
62
63               - name: SIGMETRICS
64                 role: sponsor
65                 alttext: SIGMETRICS, ACM'S Special Interest Group on Performance Evaluation
66                 image: logos/sigmetrics-small.png
67                 link:  http://www.sigmetrics.org
68                 date: 2016-01-03
69
70   Command:
71               yaml_to_db <gnupod.yaml
72
73   Output:
74               #fsdb -F t alttext date image link name role
75               ACM, the Association for Computing Machinery    2016-01-01      logos/acm-small.jpg     https://www.acm.org/    ACM     sponsor
76               SIGCOMM, ACM'S Special Interest Group on Communication  2016-01-02      logos/sigcommlogo.png   http://sigcomm.org      SIGCOMM sponsor
77               SIGMETRICS, ACM'S Special Interest Group on Performance Evaluation      2016-01-03      logos/sigmetrics-small.png      http://www.sigmetrics.org       SIGMETRICS      sponsor
78               #   | yaml_to_db
79

SEE ALSO

81       Fsdb.
82

CLASS FUNCTIONS

84   new
85           $filter = new Fsdb::Filter::yaml_to_db(@arguments);
86
87       Create a new yaml_to_db object, taking command-line arguments.
88
89   set_defaults
90           $filter->set_defaults();
91
92       Internal: set up defaults.
93
94   parse_options
95           $filter->parse_options(@ARGV);
96
97       Internal: parse command-line arguments.
98
99   setup
100           $filter->setup();
101
102       Internal: setup, parse headers.
103
104   run
105           $filter->run();
106
107       Internal: run over each rows.
108
110       Copyright (C) 2011-2018 by John Heidemann <johnh@isi.edu>
111
112       This program is distributed under terms of the GNU general public
113       license, version 2.  See the file COPYING with the distribution for
114       details.
115
116
117
118perl v5.34.1                      2022-04-04       Fsdb::Filter::yaml_to_db(3)
Impressum