Socket
Book a DemoInstallSign in
Socket

co-sqlbox

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

co-sqlbox

sqlbox enhancements for generators with co

0.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

co-sqlbox

sqlbox enhancements for generators with co

Installation

$ npm install co-sqlbox

Setup

Simply require co-sqlbox and use the same as sqlbox.

Additions

A number of methods have been added to sqlbox models that will return a thunk. These methods are the following:

  • getThunk
  • mgetThunk
  • saveThunk
  • removeThunk
  • modifyThunk
  • firstThunk
  • allThunk
  • queryThunk

They function exactly the same as their counterparts except that they return a thunk instead of accepting a standard callback.

Example

var savedUser = yield UserModel.saveThunk({ email: 'foo@bar.com' });

License

MIT

Keywords

co

FAQs

Package last updated on 01 Mar 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.