-
Notifications
You must be signed in to change notification settings - Fork 158
findDoc() setAttribute() destroy() to allow table name specified as 1st param #329
Comments
I don't see why not... open to a PR if you're willing. The reason we have the override (non namespace) is a convenience for building the table on the fly. The only reason you would need/do that is if you're saving - it doesn't make sense otherwise. Also - help me understand the |
Yeah I got the rationale behind the two formats with the ... however there are plenty of use cases (I'm running into in my app) On 7 November 2016 at 17:20, Rob Conery [email protected] wrote:
|
Regrading the In my case, I'm doing something along the lines of:
(righto is a lib that allow and this works perfectly fine. However, attempting to use the second
So for However, with the other three operations, I'm forced to use the latter What do you reckon? On 7 November 2016 at 20:53, Brendan Graetz [email protected] wrote:
|
Ping! |
saveDoc()
allows two forms:From root
db
object:From "name spaced"
db
object:However, with
findDoc()
setAttribute()
destroy()
, this lib only allows the latter "name spaced" variety. The implementation detail of this relies onthis
being used under the hood, and that means that I need to doFunction.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?
The text was updated successfully, but these errors were encountered: