15 releases

0.2.5 Dec 11, 2021
0.2.4 Dec 11, 2021
0.2.1 Aug 20, 2021
0.2.0 Jun 30, 2021
0.1.1 Dec 22, 2020

#77 in #dump

35 downloads per month

GPL-3.0 license

31KB
402 lines

dbdump

A database dump tool

How to use

$ dbdump -h
Database dump tool 0.2.5

yuchunzhou <chunzhou.yu@qq.com>

Dump database data to the file

USAGE:
    dbdump [OPTIONS]

OPTIONS:
    -H, --host <host>            Server address [default: 127.0.0.1]
    -P, --port <port>            Server port [default: 3306]
    -k, --kind <kind>            Database kind [default: mysql] [possible values: sqlite, mysql,
                                 postgresql]
    -u, --user <username>        Login username
    -p, --password <password>    Login password
    -d, --database <database>    Database name
    -t, --table <table>          Target table
    -s, --start <start>          Start row [default: 0]
    -n, --rows <rows>            Rows count [default: 10]
    -f, --format <format>        Output file format [default: csv] [possible values: csv, xls]
    -o, --output <output>        Output file path
    -h, --help                   Print help information
    -V, --version                Print version information

Dependencies

~24–40MB
~672K SLoC