def analyze(path, names):
    """Run ANALYZE against the whole database, or against specific named indexes and tables

    Example:

    \b
        sqlite-utils analyze chickens.db
    """
    db = sqlite_utils.Database(path)
    try:
        if names:
            for name in names:
                db.analyze(name)
        else:
            db.analyze()
    except OperationalError as e:
        raise click.ClickException(e)
Run ANALYZE against the whole database, or against specific named indexes and tables

    Example:

    
        sqlite-utils analyze chickens.db
    
sqlite_utils/cli.py