Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wmfs/tymly-pg-plugin

Package Overview
Dependencies
Maintainers
1
Versions
328
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wmfs/tymly-pg-plugin

Replace Tymly's out-the-box memory storage with PostgreSQL

  • 1.24.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
182
decreased by-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

tymly-pg-plugin

Tymly Package npm (scoped) Build Status codecov CodeFactor Dependabot badge Commitizen friendly JavaScript Style Guide license

Plugin for TymlyJS that provides PostgreSQL persistence

Install

$ npm install pg-info --save

Services

Audit

The audit service allows Tymly to keep a history of change in records.

If you do not want a model to keep a history of changes then add the flag "audit": false to it's json definition. Tymly will store this history in the 'rewind' model.

This service will pick up any file in the /pg-scripts directory of a blueprint with the following file naming convention: audit-{function-name}.sql where {function-name} is the name of your function.

This function will then be applied to all models by default unless they have "audit":false.

Storage

Keeps storage of relevant blueprint objects and creates them in the database provided at PG_CONNECTION_STRING.

Testing

Before running these tests, you'll need a test PostgreSQL database available and set a PG_CONNECTION_STRING environment variable to point to it, for example:

PG_CONNECTION_STRING=postgres://postgres:postgres@localhost:5432/my_test_db

$ npm test

License

MIT

Keywords

FAQs

Package last updated on 13 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc