9 releases

new 0.1.8 May 3, 2021
0.1.7 Apr 12, 2021
0.1.6 Jan 8, 2021
0.1.1 Dec 22, 2020

#462 in Database interfaces

50 downloads per month

Apache-2.0

20KB
405 lines

dbdump

A database dump tool

How to use

$ dbdump -h
Database dump tool 0.1.8

yuchunzhou <chunzhou.yu@qq.com>
Dump database data to an ordinary file

USAGE:
    dbdump [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -H, --host <host>            database server address [default: 127.0.0.1]
    -P, --port <port>            database server port [default: 3306]
    -k, --kind <kind>            database kind [default: mysql]  [possible values: sqlite, mysql, postgresql]
    -u, --user <username>        database username
    -p, --password <password>    database password
    -d, --database <database>    which database contains the dumped table
    -t, --table <table>          the target table
    -n, --rows <rows>            how many rows to be dumped [default: 10]
    -f, --format <format>        output file format [default: csv]  [possible values: csv, xls, txt]
    -o, --output <output>        output file name

Dependencies

~20MB
~398K SLoC