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

loopback-connector-redshift

v0.0.2

Published

LoopBack Redshift Connector

Downloads

7

Readme

loopback-connector-redshift

The Redshift Connector module for for loopback-datasource-juggler.

This is based up the [loopback-connector-postgresql](PostgreSQL Connector) for LoopBack with updates that make the connector usable with Redshift.

This connector is in the early stages of development and not all features work.

Connector settings

The connector can be configured using the following settings from the data source.

  • url: The URL to the database, such as postgres://test:[email protected]:5439/dev
  • host or hostname: The host name or ip address of the Redshift DB server
  • port: The port number of the Redshift DB server
  • username or user: The user name to connect to the Redshift DB
  • password: The password
  • database: The Redshift database name
  • debug (default to false)

The Redshift connector uses node-postgres as the driver. See more information about configuration parameters, check https://github.com/brianc/node-postgres/wiki/Client#constructors.

Methods

While the automated tests have not yet been updated for use with Redshift, I have manually tested all of the checked REST API methods and have confirmed them as working.

  • [x] PATCH /model
  • [x] GET /model
  • [x] PUT /model
  • [x] POST /model
  • [x] PATCH /model/{id}
  • [x] GET /model/{id}
  • [x] HEAD /model/{id}
  • [x] PUT /model/{id}
  • [x] DELETE /model/{id}
  • [x] GET /model/{id}/exists
  • [x] POST /model/{id}/replace
  • [ ] GET /model/change-stream
  • [ ] POST /model/change-stream
  • [x] GET /model/count
  • [x] GET /model/findOne
  • [x] POST /model/replaceOrCreate
  • [x] POST /model/update
  • [x] POST /model/upsertWithWhere

Discovery and Migration

Most of the discovery and migration code is still from the original PostgreSQL connector and therefore, probably doesn't work. I've updated a few portions of the code, but the only function that I've tried so far is autoMigrate and this worked with the built-in LoopBack tables. The rest will be updated in time.

Tests

Tests are the original PostgreSQL tests and nothing is going to work right now.