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

@modus/gimbal-plugin-sqlite

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modus/gimbal-plugin-sqlite

SQLite storage helpers for Gimbal and Gimbal plugins

  • 1.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-96.15%
Maintainers
3
Weekly downloads
 
Created
Source

Gimbal sqlite Plugin

npm (scoped) npm CircleCI PRs Welcome MIT Licensed Powered by Modus_Create

A Gimbal plugin to allow storage of data in a SQLite database.

Installation

First, you need to install the plugin to your project:

# with npm
npm install --save-dev @modus/gimbal-plugin-sqlite

# or with yarn
yarn add --dev @modus/gimbal-plugin-sqlite

Next, you need to add the plugin to your Gimbal configuration file:

YAML

plugins:
  - '@modus/gimbal-plugin-sqlite'

JSON

{
  "plugins": ["@modus/gimbal-plugin-sqlite"]
}

JavaScript

modules.exports = {
  plugins: ['@modus/gimbal-plugin-sqlite'],
};

Configuration

By default, this plugin will save the database to ./gimbal.db. In order to change this, pass it as a plugin config:

plugins:
  - plugin: '@modus/gimbal-plugin-sqlite'
    file: artifacts/gimbal_tests.db

@modus/gimbal-plugin-last-value

Allows for getting and saving last value reports. To enable this support, you need to set lastValue on the plugin config:

plugins:
  - plugin: '@modus/gimbal-plugin-sqlite'
    lastValue: true

By default, this will use gimbal_archive as the table. To change these values, pass an object to the lastValue config:

plugins:
  - plugin: '@modus/gimbal-plugin-sqlite'
    lastValue:
      table: test_runs

If the table does not exist, the follow SQL will be executed:

CREATE TABLE IF NOT EXISTS <table_name> (command TEXT, date INTEGER, report BLOB);

FAQs

Package last updated on 06 Sep 2019

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