Skip to the content
Documentation

exp:ezsqldumpisbndata

No ratings yet

Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.

Summary

Dump the ISBN group and range tables as SQL to a file or standard output

Usage

./console exp:ezsqldumpisbndata [options]
php bin/php/ezsqldumpisbndata.php [options]

Help

The output of ./console help exp:ezsqldumpisbndata (the script run with --help), without the standard options:

Usage: bin/php/ezsqldumpisbndata.php [OPTION]...
Exponential SQL Isbn data dump

Dump sql data to file or standard output from the tables:
  ezisbn_group
  ezisbn_group_range
  ezisbn_registrant_range

Default is file, wich will be written to:
  kernel/classes/datatypes/ezisbn/sql/<database>/cleandata.sql
  kernel/classes/datatypes/ezisbn/share/db_data.dba

Script can be run as:
php bin/php/ezsqldumpisbndata.php --stdout-sql
                                  --stdout-dba
                                  --filename-sql=customname.sql
                                  --filename-dba=customname.dba


Options:
  --stdout-sql          Result of sql output will be printed to standard output instead of to file.
  --stdout-dba          Result of dba output will be printed to standard output instead of to file.
  --filename-sql=VALUE  Custom name for the sql file. Will be stored in the directory: 
                          kernel/classes/datatypes/ezisbn/sql/<database>/
  --filename-dba=VALUE  Custom name for the dba file. Will be stored in the directory: 
                          kernel/classes/datatypes/ezisbn/share/
  --db-host=VALUE       Database host.
  --db-user=VALUE       Database user.
  --db-password=VALUE   Database password.
  --db-database=VALUE   Database name.
  --db-driver=VALUE     Database driver.

Options

Option Value Description
--stdout-sql - Result of sql output will be printed to standard output instead of to file.
--stdout-dba - Result of dba output will be printed to standard output instead of to file.
--filename-sql required Custom name for the sql file. Will be stored in the directory: kernel/classes/datatypes/ezisbn/sql/<database>/
--filename-dba required Custom name for the dba file. Will be stored in the directory: kernel/classes/datatypes/ezisbn/share/
--db-host required Database host.
--db-user required Database user.
--db-password required Database password.
--db-database required Database name.
--db-driver required Database driver.

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/ezsqldumpisbndata.php, kernel/private/classes/commands/ezsqldumpisbndata.php

See also

Generated example: exp:ezsqldumpisbndata

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.