{"id":22031496,"url":"https://github.com/samuelfaj/nodejs-class_db.js","last_synced_at":"2026-04-09T02:31:52.490Z","repository":{"id":57199536,"uuid":"124791778","full_name":"samuelfaj/Nodejs-class_db.js","owner":"samuelfaj","description":"It makes your MySQL queries easier.","archived":false,"fork":false,"pushed_at":"2018-03-30T05:18:51.000Z","size":267,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T03:21:14.652Z","etag":null,"topics":["connection","database","javascript","mysql","nodejs","query-builder","sql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samuelfaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-11T19:38:52.000Z","updated_at":"2018-03-30T05:18:53.000Z","dependencies_parsed_at":"2022-09-16T15:00:51.778Z","dependency_job_id":null,"html_url":"https://github.com/samuelfaj/Nodejs-class_db.js","commit_stats":null,"previous_names":["samuelfaj/nodejs-class_db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samuelfaj/Nodejs-class_db.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelfaj%2FNodejs-class_db.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelfaj%2FNodejs-class_db.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelfaj%2FNodejs-class_db.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelfaj%2FNodejs-class_db.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelfaj","download_url":"https://codeload.github.com/samuelfaj/Nodejs-class_db.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelfaj%2FNodejs-class_db.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31582631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connection","database","javascript","mysql","nodejs","query-builder","sql"],"created_at":"2024-11-30T08:18:41.291Z","updated_at":"2026-04-09T02:31:52.468Z","avatar_url":"https://github.com/samuelfaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Class_DB\n\u003cimg src=\"https://www.issart.com/blog/wp-content/uploads/2017/03/boxbarimage5.jpg\" width=\"150\" align=\"right\"\u003e\n\n![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)\n[![built with NodeJS](https://img.shields.io/badge/built%20with-Node.js-red.svg)](https://www.php.net/)\n![MySQL Ready](https://img.shields.io/badge/mysql-ready-green.svg)\n\nIt makes your MySQL queries easier.\n\n*Inspired by [PHP's class_db](https://github.com/samuelfaj/class_db)*\n\n## Install\n```\n$ npm install --save class_db\n```\n\n## Examples of Usage\n```javascript\n'use strict';\nconst db     = require('class_db');\nconst mysql  = require('mysql');\n\nlet conn_ = mysql.createPool(config.database);\nlet query = new db(conn_)\n    .table('users')\n    .limit(10);\n\nquery.select(['*'],function (result, rows, fields) {\n    console.log(result, rows);\n});\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelfaj%2Fnodejs-class_db.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelfaj%2Fnodejs-class_db.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelfaj%2Fnodejs-class_db.js/lists"}