Michael Wiencek bc0a4306b9 MBS-8736: Provide a sample data dump for testing
This dump will be useful for people wanting to set up a development
server with some data to use, but without having to perform a full
import of our entire DB (which takes a lot of time and space).
2018-01-06 20:28:32 -06:00

40 lines
1.2 KiB
Perl
Executable File

#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../lib";
use MooseX::Runnable::Run;
run_application 'MusicBrainz::Script::SampleDataDump', @ARGV;
=head1 SYNOPSIS
This script will generate a sample database dump useful for testing purposes,
with the goal of containing a useful sampling of every entity type. Currently,
the script dumps the following three artists, along with all releases,
recordings, and works related to them:
* b7ffd2af-418f-4be2-bdd1-22f8b48613da (Nine Inch Nails)
* 164f0d73-1234-4e2c-8743-d77bf2191051 (Kanye West)
* 9ddd7abc-9e1b-471d-8031-583bc6bc8be9 (Пётр Ильич Чайковский)
Options:
--help show this help
--database database to dump from (default: READWRITE)
--output-dir location where the dump is outputted
(default: .)
=cut
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2017 MetaBrainz Foundation
This file is part of MusicBrainz, the open internet music database,
and is licensed under the GPL version 2, or (at your option) any
later version: http://www.gnu.org/licenses/gpl-2.0.txt
=cut