Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
M
massive-js
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 2
    • Merge Requests 2
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Dian Fay
  • massive-js
  • Issues
  • #329

Closed
Open
Opened Nov 06, 2016 by Dian Fay@dmfayMaintainer

findDoc() setAttribute() destroy() to allow table name specified as 1st param

Created by: bguiz

saveDoc() allows two forms:

From root db object:

db.saveDoc("doggies", {name : "Fido", age : 10}, (err, doc) => { /* ... */});

From "name spaced" db object:

db.doggies.saveDoc({name : "Fido", age : 10}, (err, doc) => { /* ... */});

However, with findDoc() setAttribute() destroy(), this lib only allows the latter "name spaced" variety. The implementation detail of this relies on this being used under the hood, and that means that I need to do Function.prototype.bind() ion my code base.

It would be great if the other document functions also support the former variety, and return an error if the table does not exist yet.

Possible?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dmfay/massive-js#329