Gathering detailed insights and metrics for mariadb-utilities
Gathering detailed insights and metrics for mariadb-utilities
Gathering detailed insights and metrics for mariadb-utilities
Gathering detailed insights and metrics for mariadb-utilities
mariaDB Utilities for node-mysql driver with specialized result types, introspection, joins and other helpful functionality.
npm install mariadb-utilities
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
4 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Mar 09, 2017
Latest Version
1.0.1
Package Id
mariadb-utilities@1.0.1
Size
5.93 kB
NPM Version
3.8.6
Node Version
5.11.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Taken the base of the node-mysql-utilities and modified accordingly to work with the MariaDB. Improved the base functionality by adding extra conditional checks. Now using this library we can add the MariaDB JOINS too. Please note that, MariaDB Utilities for node-mysql driver with specialized result types, introspection, joins and other helpful functionality for node.js.
npm install mariadb-utilities
MariDB Utilities can be attached to connection using mix-ins:
var mariadb = require('mysql');
var mariaUtilities = require('./maria-utilities.js');
var connection = mariadb.createConnection({
host: 'localhost',
user: 'root',
password: '',
database: 'maria'
});
mariaUtilities.introspection(connection);
mariaUtilities.upgrade(connection);
connection.connect();
// Testing the MariaDB upgrade Functionality
connection.queryRow('select from users where id = ?', 3, function (err, results) {
console.log(results);
console.log(err);
});
connection.end();
Examples for the MariaDB Utilities upgrade Functionality / Testing the MariaDB upgrade Functionality
connection.queryRow('select from users where id = ?', 3, function (err, results) {
console.log(results);
console.log(err);
});
connection.queryCol('select name from users where age > ?', 17, function (err, results) {
console.log(results);
});
connection.queryValue('select max(age) from users', [], function (err, results) {
console.log(results);
});
connection.queryHash("select * from users where surname like '%a%'", [], function (err, results) {
console.log(results);
});
connection.queryKeyValue('select name, age from users where age > ?', 20, function (err, results) {
console.log(results);
});
console.log(connection.where({
id: 5,
year: ">2010",
price: "100..200",
level: "<=3",
sn: "str?",
label: "str",
code: "!(1,2,4,10,11)"
}));
connection.select("notable",["name","surname"], {age: ">=18"}, {name:'desc'}, function (err, results) {
console.log(err);
});
connection.insert("users",{id: "7", name: "Kanye", surname: "Cliv", age: "21"},function (err, results) {
console.log(results);
});
connection.update("users",{name: "Sanches", surname: "Cast"}, {id: "7"}, function (err, results) {
console.log(results);
//console.log(err);
});
connection.upsert("users",{id: "8", name: "Sanches", surname: "True", age: "22"}, function (err, results) {
console.log(results);
});
connection.delete("users",{id: "8"}, function (err, results) {
console.log(results);
});
connection.count("users",function (err, results) {
console.log(results);
});
Examples for the MariaDB Utilities Join Functionality
// Testing the MariaDB upgrade Join Functionality
connection.innerJoin(['users', 'students'], ['id', 'id'], {users: { age: "<20"}, students: {id: "<6"}}, function (err, results) {
console.log(results);
});
Examples for the MariaDB Utilities introspection Functionality
// Testing the MariaDB introspection Functionality
connection.primary('users', function (err, results) {
console.log(results);
});
connection.foreign('users', function (err, results) {
console.log(results);
});
connection.fields('students', function (err, results) {
console.log(results);
});
connection.databases(function (err, results) {
console.log(results);
});
connection.databaseTables('maria', function (err, results) {
console.log(results);
});
connection.tableInfo('users', function (err, results) {
console.log(results);
});
connection.users(function (err, results) {
console.log(results);
});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More