npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

unitn-database-utils

v1.2.5

Published

This utils allows to check the correctness of multiple zip files formatted according to the standard provided by professor Velegrakis.

Downloads

22

Readme

UNITN-DATABASE-UTILS

This utils allows to check the correctness of multiple zip files formatted according to the standard provided by professor Velegrakis.

USAGE

RUNNING THE TOOL

  1. run

    npm i -g unitn-database-utils

    or

    pnpm i -g unitn-database-utils

    if you're using pnpm

  2. create a folder containing all the zip archives you wish to check, formatted as required by the professor (WARNING: failing to comply to the given specs will result in an error!!)

  3. create a .env file containing the psql connection parameters, as follows:

    DB_USER=exampleuser
    DB_HOST=examplehost
    DATABASE=exampledatabase
    PASSWORD=examplepassword
    PORT=exampleport

    Note that the parameters are directly passed to psql, so if you usually connect from terminal by just typing psql with no additional parameters, then you can omit the .env file altogether and is should workd.

    You can also omit parameters you don't need, such as PASSWORD if you don't need it.

  4. open a terminal in the directory you just created, and run freciagrosa,

READING THE OUTPUT

The script will produce files containing the differences between the queries' results, using the following convention:

query_<query-number>-<author-1>-<author-2>.txt

where

  • query_number is the number of the query for which the results differ,
  • author-1 and author-2 are the authors of the queries being compared. Specifically, the file will contain all the tuples that appear in the author-1's results but NOT in the author-2's results. For anyone interested this is achieved by running: (author-1-s query) EXCEPT (author-2's query) so if the query fails it could be due the columns returned by the single queries.

SQL_123456.zip

UNDERSTANDING THE ERROR MESSAGES

The script should be solid enough to handle malformed input, but as a general rule of thumb note that if it's crashing it's probably your queries'fault, usually the final ; is missing or you are returning the wrong number/order of columns.

NOTES

The script creates lots of temporary directories where it unzips the zip archives, they should get removed after each run, if they don't get removed because it crashes feel free to remove them yourself.