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

team_fastlane-sequel_base_service

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

team_fastlane-sequel_base_service

  • 1.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= Team Fastlane Base Service

A service base for a ruby micro service using Sequel

== Installation

As described by the link:../README.adoc[main readme].

== Usage

=== Health Check

You can use the link:../bin/health_check[health_check] executable to provide a method of checking the health of the server (database included). For example within a docker file like this:

[source, Dockerfile]

HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD [ "bundle", "exec", "health_check" ]

This makes use of an exposed endpoint called /health_check, which you can only use for a custom ping to check for it.

=== Default responses

This also provides some default json responses to be used in your controller. See link:./app/controllers/concerns/responses.rb[responses.rb] for more details.

To use these responses let your ApplicationController inherit from ApiBaseController and you are set.

=== Oracle Binding Variables

This Gem automatically interrupts all Oracle DB statements and substitues the values with binding variables. + It is possible to deactivate this behaviour:

Sequel::Oracle::Database.skip_binding_variables = true

Beware that this is a global setting which de-/activates binding variables for the whole application.

=== Parameter handling

You get automatically camelCase to snake_case transformation for the request and the reverse for responses via the olive_branch gem.

There will be a default parameter filtering enabled. It filters passwords of various key names in development and everything in production.

FAQs

Package last updated on 01 Feb 2024

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