anchor.diff:    }
   
     Future<Iterable<PackageInfo>> _getPackageInfoDependencies(PackageInfo packageInfo, [Set<PackageInfo> handledPackages]) async {
  -    var results = await (await dbPool(_config).query("""
  +    var results = await (await query(_config, """
           SELECT DISTINCT p2.name, p2.version, p2.id, p2.source_type FROM packages AS p1
               INNER JOIN packages_dependencies AS pd ON p1.id = pd.package_id
               INNER JOIN packages AS p2 ON p2.id = pd.dependency_id
  
positive.code:       query += " WHERE p.created_at > ?";
      }
      var values = dateTime != null ? [dateTime] : [];
      var results = await (await dbPool(_config).prepareExecute(query, values)).toList();
      return results.map((Row r) {
        return new PackageInfo(r.name, new Version(r.version), id: r.id, source: key(packageSourceIds, r.source_type));
      });
    }
  
    Future<Iterable<PackageInfo>> getErroredPackageInfos() async {
      var erroredPackageInfos = await dbPool(_config).query("""
        SELECT package_name AS name, package_version AS version FROM errors
      """);
      return (await erroredPackageInfos.toList()).map((p) {
  
negative.code:   }
  
    Future<Iterable<Package>> _getDependencies(Package package) async {
      var results = await (await query(_config, """
          SELECT DISTINCT p.name, p.version, p.id, p.source_type
              FROM entities AS r
              INNER JOIN entities AS d ON r.declaration_id = d.id
  