Fsdb::F...ct_to_db(3)

πŸ“¦
version 3.9 Β· 3 versions
, in epel 9

πŸŽ€ 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 πŸ«–
  • -i or --input InputSource β€” Read from InputSource, typically a file name, or "-" for standard input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
  • -o or --output OutputDestination β€” Write to OutputDestination, typically a file name, or "-" for standard output, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
  • --autorun or --noautorun β€” By default, programs process automatically, but Fsdb::Filter objects in Perl do not run until you invoke the run() method. The --(no)autorun option 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.

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