balderdashy / balderdashy/sails
Standalone waterline unable to use getDatastore() and use SendNativeQuery()
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am using Waterline Standalone, from the documentation it said I can use raw SQL by using `SendNativeQuery()`, but to do that I need to get datastore first, but every time I use
`collection.datastores` or 'collection.getDatastore('default')`, it said it is not a function.
Is there any required step to use SendNativeQuery without using Sails?
Contributor guide
Research direction
Review the standalone Waterline documentation and the references to `collection.datastores`, `collection.getDatastore('default')`, and `SendNativeQuery()`. Reproduce the reported calls outside Sails; done means either a documented setup enables the call or the standalone limitation is clarified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100