The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Yath::Command::db::sweeper - Sweep a database

DESCRIPTION

Deletes old data from a database

USAGE

    $ yath [YATH OPTIONS] db-sweeper [COMMAND OPTIONS]

OPTIONS

Database Options

--db-config ARG
--db-config=ARG
--no-db-config

Module that implements 'MODULE->yath_db_config(%params)' which should return a App::Yath::Schema::Config instance.

Can also be set with the following environment variables: YATH_DB_CONFIG

--db-driver Pg
--db-driver MySQL
--db-driver SQLite
--db-driver MariaDB
--db-driver Percona
--db-driver PostgreSQL
--no-db-driver

DBI Driver to use

Can also be set with the following environment variables: YATH_DB_DRIVER

--db-dsn ARG
--db-dsn=ARG
--no-db-dsn

DSN to use when connecting to the db

Can also be set with the following environment variables: YATH_DB_DSN

--db-host ARG
--db-host=ARG
--no-db-host

hostname to use when connecting to the db

Can also be set with the following environment variables: YATH_DB_HOST

--db-name ARG
--db-name=ARG
--no-db-name

Name of the database to use

Can also be set with the following environment variables: YATH_DB_NAME

--db-pass ARG
--db-pass=ARG
--no-db-pass

Password to use when connecting to the db

Can also be set with the following environment variables: YATH_DB_PASS

--db-port ARG
--db-port=ARG
--no-db-port

port to use when connecting to the db

Can also be set with the following environment variables: YATH_DB_PORT

--db-socket ARG
--db-socket=ARG
--no-db-socket

socket to use when connecting to the db

Can also be set with the following environment variables: YATH_DB_SOCKET

--db-user ARG
--db-user=ARG
--no-db-user

Username to use when connecting to the db

Can also be set with the following environment variables: YATH_DB_USER, USER

Sweeper Options

--coverage
--no-coverage

Delete old coverage data (default: yes)

--events
--no-events

Delete old event data (default: yes)

--interval ARG
--interval=ARG
--no-interval

Interval (sql format) to delete (things older than this) defeult: '7 days'

--job-concurrency ARG
--job-concurrency=ARG
--no-job-concurrency

How many jobs to process concurrently (This compounds with run concurrency)

Can also be set with the following environment variables: YATH_SWEEPER_JOB_CONCURRENCY

--job-tries
--no-job-tries

Delete old job try data (default: yes)

--job-try-fields
--no-job-try-fields

Delete old job field data (default: yes)

--jobs
--no-jobs

Delete old job data (default: yes)

--name ARG
--name=ARG
--no-name

Give a name to the sweep

Can also be set with the following environment variables: YATH_SWEEPER_NAME

--reports
--no-reports

Delete old report data (default: yes)

--resources
--no-resources

Delete old resource data (default: yes)

--run-concurrency ARG
--run-concurrency=ARG
--no-run-concurrency

How many runs to process concurrently (This compounds with job concurrency)

Can also be set with the following environment variables: YATH_SWEEPER_RUN_CONCURRENCY

--run-fields
--no-run-fields

Delete old run_field data (default: yes)

--runs
--no-runs

Delete old run data (default: yes)

--subtests
--no-subtests

Delete old subtest data (default: yes)

SOURCE

The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/