
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
pilmee-mysql
Advanced tools
Library to manage mysql, using the mysql module, shortens the programming necessary to provide greater ease so the developer. Power by @pilmee

Library to manage mysql, using the mysql module, shortens the programming necessary to provide greater ease so the developer. Power by @pilmee
$ npm install pilmee-mysql
var db = require('pilmee-mysql');
db.configure(function(){
db.set('host', 'localhost');
db.set('user', 'root');
db.set('database', 'ninjacode');
});
db.run('SELECT * FROM noticias ORDER BY id DESC', function(err, result){
console.log('\n Records: ' + db.results());
});
var db = require('pilmee-mysql');
db.configure(function(){
db.set('host', 'localhost');
db.set('user', 'root');
db.set('database', 'ninjacode');
});
db.run('SELECT * FROM noticias ORDER BY id DESC', function(err, result){
db.list(result, 'id', 'titulo', function(){
console.log('\n Records: ' + db.results());
});
});
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path');
var db = require('pilmee-mysql');
db.configure(function(){
db.set('host', 'localhost');
db.set('user', 'root');
db.set('database', 'ninjacode');
});
var app = express();
app.configure(function(){
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('your secret here'));
app.use(express.session());
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
});
app.configure('development', function(){
app.use(express.errorHandler());
});
app.get('/', function(req, res){
db.run('SELECT * FROM noticias', function(err, result, field){
res.json(result);
});
});
app.get('/xml', function(req, res){
db.run('SELECT * FROM noticias', function(err, result, field){
db.toXML(result, function(xml){
res.send(xml);
});
});
});
http.createServer(app).listen(app.get('port'), function(){
console.log("Express server listening on port " + app.get('port'));
});
FAQs
Library to manage mysql, using the mysql module, shortens the programming necessary to provide greater ease so the developer. Power by @pilmee
We found that pilmee-mysql 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.