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.
Readme
Allows fluent syntax for Cassandra Query Language (cql). Basically it creates CQL string queries from JavaScript code.
NOTE! Only CQL3 is supported.
Example:
var stringQuery = fcql.select(['key', 'email', 'last_name'])
.from('user_profiles')
.where( { key: 'my_user' }).build();
results with
SELECT key, email, last_name
FROM user_profiles
WHERE key = 'my_user';
Also raw strings work:
var stringQuery = fcql.select('key, email, last_name')
.from('user_profiles')
.where('key="my_user"').build();
results the same as above.
var fcql = require('fcql');
fcql.create().table('my_mega_table', {
name: fcql.text, // allows usage of both hardcoded ('text') and/or fcql-provided CQL types
eventDate: 'timestamp',
device: fcql.uuid,
sensor: 'int',
description: 'text',
PRIMARY_KEY: [ ['name', 'eventDate'], 'device', 'sensor' ]
}).build();
results with
CREATE TABLE my_mega_table (
name text,
eventDate timestamp,
device uuid,
sensor int,
description text,
PRIMARY KEY ((name, eventDate), device, sensor)
);
fcql.select('something').from('somewhere').where({
aStringKey: {GT: '0', LE: '9'},
anIntKey: 123,
aDateKey: [new Date(3141592653589), new Date(2141592653589)]
});
results with
SELECT something FROM somewhere WHERE
aStringKey > '0' AND aStringKey <= '9'
AND anIntKey = 123
AND aDateKey IN ('2069-07-21T00:37:33.589Z', '2037-11-11T22:50:53.589Z');
It is Open Open Source. Whoever sends a PR, which gets accepted, receives the write permissions.
FAQs
Fluent syntax for Apache Cassandra CQL
The npm package fcql receives a total of 4 weekly downloads. As such, fcql popularity was classified as not popular.
We found that fcql 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.