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

legion-data-java

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

legion-data-java

  • 1.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Legion::Data

Legion::Data is used by the framework to connect to a database. All database changes should be added as a migration with proper up/downs.

Installation

Add this line to your application's Gemfile:

gem 'legion-data'

And then execute:

$ bundle

Or install it yourself as:

$ gem install legion-data

Usage

You can create a new connection to the database with the following example Legion::Data::Connection.new.database.connection Keep in mind that if you need access to the database as part of a LEX, you should instead add it as a requirement inside your definitions with the following

def requirements
  %w[legion-transport legion-data]
end

and the framework will take care of the rest.

Contributing

Bug reports and pull requests are welcome on GitHub at https://bitbucket.org/legion-io/legion-data.

FAQs

Package last updated on 14 Oct 2020

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