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

sense-sql-engine

v0.1.11

Published

SQL engine for Sense supporting Redshift, Postgres, MySql, and SQLite.

Downloads

2

Readme

SQL Engine for Sense

A SQL engine for Sense supporting Redshift, MySql, Postgres, and SQLite3.

Note: This engine is not yet officially supported due to known bugs in the chunker.

Installation

You can install this engine in Sense using:

npm install sense-sql-engine

Usage

Database connection info must be stored securely in environmental variables (Project > Environment). For instance, if you have a database you want to call MYREDSHIFT, store the connection info as:

MYREDSHIFT=driver://user:pass@hostname/database

The driver can be postgresql (redshift or postgres), mysql, or sqlite.

You can then select the database from within a SQL dashboard or script using:

CONNECT MYREDSHIFT;

Your connection information will never appear in any dashboard output. You can then execute queries like you would normally:

CONNECT MYREDSHIFT;
SELECT * FROM users WHERE created_at > CURRENT_TIMESTAMP - INTERVAL '7 days'

You can switch between multiple databases in a single script by issuing multiple CONNECT statements. Connection names are case insensitive.

Tips

  • Make sure to always limit the amount of data you return using like LIMIT.
  • Comments are markdown formatted.

Support

  • Email: [email protected]
  • Twitter: https://twitter.com/SensePlatform
  • Google Group: https://groups.google.com/forum/?fromgroups#!forum/sense-users
  • IRC: #senseplatform on irc.freenode.net

LICENSE

MIT