def dumpdb(args):
if len(args.args) < <NUM_LIT:2>:<EOL><INDENT>raise ParserError('<STR_LIT>')  <EOL><DEDENT>ds = _get_dataset(args)<EOL>db = Database(ds, fname=args.args[<NUM_LIT:1>])<EOL>mdpath = Path(args.args[<NUM_LIT:2>]) if len(args.args) > <NUM_LIT:2> else ds.tablegroup._fname<EOL>args.log.info('<STR_LIT>'.format(db.to_cldf(mdpath.parent, mdname=mdpath.name)))<EOL>
cldf dumpdb <DATASET> <SQLITE_DB_PATH> [<METADATA_PATH>]