
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
The library dl-nosqldb allows to connect with Cassandra database and manage data.
npm install dl-nosqldb
const NoSqlDb = require(dl-nosqldb);
http://doc.grupa.onet/display/NOS/API+Reference
This library is compatible with callback and promise invoke. Below there are examples of usage:
'use strict';
const Nosqldb = require('dl-nosqldb').Nosqldb;
const nosqldb = new Nosqldb(datasource);
let key = [namespaId];
let colValues = {
name: 'nosql',
deleted: false
};
nosqldb.insert(table, key, colValues)
.then((data) => {
return callback(null, data);
})
.catch((err) =>{
return callback(err);
});
'use strict';
const Nosqldb = require('dl-nosqldb').Nosqldb;
const nosqldb = new Nosqldb(datasource);
let key = [namespaId];
let colValues = {
name: 'nosql',
deleted: false
};
nosqldb.insert(table, key, colValues, {}, callback);
return data by key
nosqldb.get('table_name', ['col_1_value', 'col_1_value'])
return data by part of key
nosqldb.getRange('table_name', ['col_1_value']')
return data from many get query, optionaly limitation to the values of defined columns
nosqldb.multiGet([
{
"table": "table_name",
"key": ['col_1_value', 'col_2_value']
},
{
"table": "table_name2",
"key": ['col_1_value2', 'col_2_value2']
}
]);
nosqldb.multiGet([
{
"table": "table_name",
"key": ['col_1_value', 'col_2_value'],
"columns": ["col_2", "col_3", "col_4"]
},
{
"table": "table_name2",
"key": ['col_1_value2', 'col_2_value2'],
"columns": ["col_2", "col_3", "col_4"]
}
]);
added new element
nosqldb.insert("table_name", ['col_1_value', 'col_2_value'], { "col_3": "test", "col_4": "test" });
nosqldb.insert("table_name", ['col_1_value', 'col_2_value'], { "col_3": "test", "col_4": "test" }, {"ttl": 200});
added new elements in one query
nosqldb.multiInsert( [
{
"table": "table_name",
"key": ['col_1_value', 'col_2_value'],
"columns": { "col_3": "test", "col_4": "test" }
},
{
"table": "table_name",
"key": ['col_1_value2', 'col_2_value2'],
"columns": { "col_3": "test", "col_4": "test" },
"ttl": 200
}
]);
update data by key
nosqldb.update("table_name", ['col_1_value', 'col_2_value'], { "col_3": [ "=", "testnew"]});
remove data by key
nosqldb.remove("table_name", ['col_1_value', 'col_2_value']);
execute list of operations (insert or remove only)
nosqldb.batch([
{
"name": "insert",
"params": {
"table": "table_name",
"key": ["col_1_value", "col_2_value"],
"columns": { "col_3": "test", "col_4": "test" },
"ttl": 200
}
},
{
"name": "insert",
"params": {
"table": "table_name",
"key": ["col_1_value2", "col_2_value2"],
"columns": { "col_3": "test", "col_4": "test" }
}
},
{
"name": "remove
"params": {
"table": "table_name",
"key": ["col_1_value", "col_2_value"]
}
}
]);
FAQs
DL nosqldb library
The npm package dl-nosqldb receives a total of 0 weekly downloads. As such, dl-nosqldb popularity was classified as not popular.
We found that dl-nosqldb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.