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

dbt

v0.4.11

Published

Database Shell Toolkit

Downloads

51

Readme

dbt

                         ________
    _ _    _        ____//______\\_____
 __| | |__| |_     /__________________/|
| _  |  _ |  _|    |     |______|    | |
|____|____|___|    |_________________|/

Usage

The dbt command makes it easy to connect to your database, create snapshots and restore from these at a later time.

To connect to the database:

dbt

To create a snapshot:

dbt --snapshot

To restore from the most recent snapshot, based on timestamp on file:

dbt --restore

To restore from a specific snapshot:

dbt --restore db/snapshots/my_database.dump

By default the snapshots are stored in db/snapshots but they can be saved anywhere if the path is specified.

To find out what configuration is being used:

dbt --info

To find out what configuration is being used in a particular environment:

dbt --env test --info

Configuration

The connection configuration is read from config/ in the form of a database.yml (Ruby on Rails) or database.json (Sequelize) file.

NOTE: You will need to be able to connect to the default Postgres database for your user if you want to be able to drop and restore databases from snapshots. If you can run the psql command successfully without any options, and that role has the ability to create and drop databases, it should work.

Compatibility

Full support for PostgreSQL, partial support for MySQL.

Notes

Often saving and restoring PostgreSQL database snapshots takes a little work to get things to line up correctly. dbt should handle most of that for you.

The ownership is automatically changed to whatever username is defined in the database configuration.

Copyright

(C) 2014-2020 Scott Tadman, PostageApp Ltd. and other contributors.

Using the MIT License as described in the LICENSE file.