Fsdb::F...ct_to_db(3)
π NAME π
okay so this is sqlselect_to_db, and it lives on the Fsdb::F...ct_to_db(3) page from the User Contributed Perl Documentation. Itβs giving βconvert MySQL or MariaDB selected tables to fsdbβ energy π
β¨ SYNOPSIS β¨
sqlselect_to_db <source.sqlselect_table >dest.fsdb
π DESCRIPTION π
Converts a MySQL or MariaDB tables to Fsdb format.
The input is not fsdb. The first non-box row is taken to be the names of the columns.
The output is two-space-separated fsdb. (Someday more general field separators should be supported.)
This module also supports the standard fsdb options:
π«Ά standard fsdb options π«Ά
-dβ Enable debugging output. spill the debugging tea, bestie π«-ior--inputInputSource β Read from InputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-oor--outputOutputDestination β Write to OutputDestination, typically a file name, or"-"for standard output, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.--autorunor--noautorunβ By default, programs process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()method. The--(no)autorunoption controls that behavior within Perl.--helpβ Show help.--manβ Show full manual.
π SAMPLE USAGE π
πΈ Input πΈ
+----------------+---------------+--------------------+------+-------------------------+
| username | firstname | lastname | id | email |
+----------------+---------------+--------------------+------+-------------------------+
| johnh | John | Heidemann | 134 | johnh@isi.edu |
+----------------+---------------+--------------------+------+-------------------------+
1 row in set (0.01 sec)
π Command π
sqlselect_to_db
π« Output π«
#fsdb -F S username firstname lastname id email
johnh John Heidemann 134 johnh@isi.edu
# | sqlselect_to_db
π¦ SEE ALSO π¦
Fsdb. db_to_csv.
π CLASS FUNCTIONS π
π new π
$filter = new Fsdb::Filter::csv_to_db(@arguments);
Create a new csv_to_db object, taking command-line arguments.
π set_defaults π
$filter->set_defaults();
Internal: set up defaults.
π parse_options π
$filter->parse_options(@ARGV);
Internal: parse command-line arguments.
π setup π
$filter->setup();
Internal: setup, parse headers.
π run π
$filter->run();
Internal: run over each rows.
π AUTHOR and COPYRIGHT π
Copyright (C) 2014-2018 by John Heidemann <johnh@isi.edu>
This program is distributed under terms of the GNU general public license, version 2. See the file COPYING with the distribution for details.
mwah π thatβs the page! footer tea: perl v5.32.1, dated 2024-08-02, and itβs the Fsdb::F...ct_to_db(3) page. go be iconic, bestie β¨π«Ά
π¦ where this page comes from
- epel 9: perl-Fsdb 2:3.9-1.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms