Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
sails-google-cloud-datastore
Advanced tools
Readme
A Sails Waterline adapter for Google Cloud Datastore.
Install the adapter from npm:
npm install sails-google-cloud-datastore
Then, configure the adapter in https://github.com/balderdashy/sails by modifying your datastore config:
...
models: {
datastore: 'production'
},
datastores: {
production: {
adapter: 'sails-google-cloud-datastore',
projectId: 'foo',
keyFilename: '/path/to/keyfile.json'
}
},
...
Note: the
keyFilename
configuration is only required if you're not using Application Default Credentials. For more information on setting up explicit service credentials, see here.
Datastore doesn't have a concept of null
, so null values will be transformed to 'NULL' on the fly, and on the off-hand chance you're setting something to 'NULL', that will be transformed to '"NULL"'.
Currently failing ~26 tests or so, mostly because the adapter doesn't support:
avg()
, count()
, sum()
, or setSequence()
.!=
, nin
, or like
in queriesThe Google-provided NodeJS library used under the hood doesn't support OR
, so queries requiring OR are split into multiple queries instead, e.g.:
SELECT * WHERE first_name='DAN' OR last_name='WILKERSON'
becomes
SELECT * WHERE first_name='DAN'
UNION
SELECT * WHERE last_name='WILKERSON'
To test, install the Google Cloud Datastore Emulator, then run npm run test
.
Occasionally the tests will stall, missing when the emulator boots up. I'm guessing my test command is the culprit; improvements welcome!
Licensed under the MIT license.
FAQs
Google Cloud Datastore adapter for Sails.js/Waterline.
The npm package sails-google-cloud-datastore receives a total of 0 weekly downloads. As such, sails-google-cloud-datastore popularity was classified as not popular.
We found that sails-google-cloud-datastore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.