def createdb(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>db.write_from_tg()<EOL>args.log.info('<STR_LIT>'.format(ds, db.fname))<EOL>
cldf createdb <DATASET> <SQLITE_DB_PATH>

Load CLDF dataset <DATASET> into a SQLite DB, where <DATASET> may be the path to
- a CLDF metadata file
- a CLDF core data file