poolrc
v1.0.0-rc7
Published
pool manager
Downloads
9
Readme
poolrc
The poolrc is a data pooling tool for science projects
init
const poolManager = new (require('poolrc')).base()
add data to the pool
let response = poolManager.add(
data
);
// response {string} generated id
add data to the pool with set
let response = poolManager.set(
name,
data
);
// response {bool}
get data from the pool
let response = poolManager.get({
name
});
// response {any}
edit data in the pool
let response = poolManager.edit(
name,
data
);
// response {bool} - faild if the set not exist
check data exist the pool
poolManager.check({
name
});
get all data from the pool
poolManager.all();
full data export from the pool
poolManager.full();
// object
check exist
let response = poolManager.check(
name
);
// boolean
delete data from the pool
poolManager.del(
name
);
drop all data from the pool
let response = poolManager.drop();
// bool true
empty check
let response = poolManager.empty();
// boolean
size of the pool
let response = poolManager.size();
// respone integer
save full data backup
poolManager.save(file_name);
load full data backup
poolManager.load(file_name);