MCPcopy Index your code
hub / github.com/andrewoh531/dynogels-promisified

github.com/andrewoh531/dynogels-promisified @v1.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.3 ↗ · + Follow
0 symbols 0 edges 1 files 0 documented · 0% updated 8y agov1.0.3 · 2016-12-15★ 381 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

dynogels-promisified

I take no credit for this code. It is inspired by vogels-promisified but modified to use Dynogels.

This package promisifies the functions in Dynogels using Bluebird using the default 'Async' suffix. i.e. all methods in Dynogels are modified with an 'Async' suffix.

Usage

var dynogels = require("dynogels-promisified");

Example

var User = module.exports = dynogels.define("User", {
  hashKey : "userId",
  timestamps : false,
  schema : {
    userId: dynogels.types.uuid(),
    name: Joi.string(),
  },
});

User
  .getAsync(userId)
  .then(function(user){
    // ...
  })
  .catch(function(err){
    // ...
  });

User
  .scan()
  .where("userId").equals(userId)
  .execAsync()
  .then(function(user){
    // ...
  })
  .catch(function(err){
    // ...
  });

Core symbols most depended-on inside this repo

Shape

For agents

$ claude mcp add dynogels-promisified \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page