{"id":15295815,"url":"https://github.com/kierendev/noxdb","last_synced_at":"2026-04-13T12:31:26.534Z","repository":{"id":75685170,"uuid":"91992582","full_name":"kierendev/noxdb","owner":"kierendev","description":"basic mysql wrapper for node","archived":false,"fork":false,"pushed_at":"2017-05-24T02:06:11.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T12:51:38.778Z","etag":null,"topics":["database","mysql-database","mysql-wrapper","mysqljs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/noxdb","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/kierendev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-21T22:54:12.000Z","updated_at":"2023-03-18T10:07:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"36240f74-0d25-4077-87dd-645d7b55e60d","html_url":"https://github.com/kierendev/noxdb","commit_stats":null,"previous_names":["kierenbp/noxdb"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kierendev/noxdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kierendev%2Fnoxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kierendev%2Fnoxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kierendev%2Fnoxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kierendev%2Fnoxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kierendev","download_url":"https://codeload.github.com/kierendev/noxdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kierendev%2Fnoxdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","mysql-database","mysql-wrapper","mysqljs"],"created_at":"2024-09-30T18:08:17.024Z","updated_at":"2026-04-13T12:31:26.517Z","avatar_url":"https://github.com/kierendev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NoxDB - A MySQLjs Wrapper\n[![Travis](https://img.shields.io/travis/KierenBP/noxdb.svg)]()\n[![npm](https://img.shields.io/npm/v/noxdb.svg)]()\n[![license](https://img.shields.io/github/license/kierenbp/noxdb.svg)]()\n\n\nA small wrapper for [MySQL.js](https://github.com/mysqljs/mysql). Contains the most basic queries and was mainly built for use in quick projects that don't need a lot of heavy MySQL queries.\n\n# Install Instructions \nYarnPkg: `yarn add noxdb`\n\nNPM: `npm install --save noxdb`\n\n# Database Functions\n`const NoxDb = require('noxdb');`\n\n    const db = new NoxDB({\n        host: '127.0.0.1',\n        port: 3306,\n        user: 'root',\n        password: '',\n        database: 'test'\n    })\n\n\n## Fetch - Get table content - Returns array that contains the rows in objects\n### Select Query\n\n`db.fetch({params})` (Promise)\n\nParams:\n\n`table` - Table to query - *string*\n\n    'table'\n\n`select` - Columns to select - *Array that contains strings that match column names*\n\n    ['column', 'column']\n    \n`count` - Columns to count - *Array that contains strings that match column names* \n\n    ['column', 'column']\n\n`where` - specify row/s - *Array of objects* \n\n    {\n      col: `Name of column`,\n      value: `Value in column`\n    }\n\n`orderby` - Order query by - *Array of objects* \n\n    {\n      col: `Name of column to order by`, \n      order: `Order By (asc, desc)`\n    }\n\n`limit` - Limit by (and offset) - *Object* \n\n    { \n      `offset`: `Offset amount`, `amount`: `Amount of rows`\n    }\n\n`join` - JOIN other tables to the query - *Object*\n\n    {\n      type: `Type of JOIN (LEFT JOIN, RIGHT JOIN, JOIN etc.)`,\n      table: `Table to join`,\n      col: `Colum to combine from joining table`,\n      value: `Normally a column on existing table to combine with (eg. userid to userid)`\n    }\n\n## Insert\n### Insert Query - Insert into selected table - Returns an object that contains the insert id\n\n`db.insert({params})`  (Promise)\n\nParams:\n\n`table` - Table to query - *string*\n\n    'table'\n\n`values` - Values to insert into table - *Object. Keys name of column, props value to put into column*\n\n    {\n     column: `Value in column`\n    }\n\n## Update\n### Update Query - Update a selected column - Returns object\n\n`db.update({params})`  (Promise)\n\nParams:\n\n`table` - Table to query - *string*\n\n    'table'\n\n`values` - Values to update on specified column  - *Object. Keys name of column, props value to put into column*\n\n    {\n     column: `New Value in column`\n    }\n\n`where` - target row/s you want to update - *Object. Keys name of column, props value that you are searching for*\n\n    {\n     column: `Value in column`\n    }\n\n## Delete\n### Delete Query - Update a selected column - Returns object\n\n`db.delete({params})`  (Promise)\n\nParams:\n\n\n`table` - Table to query - *string*\n\n    'table'\n`where` - target row/s you want to delete - *Object. Keys name of column, props value that you are searching for*\n\n    {\n     column: `Value in column`\n    }","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkierendev%2Fnoxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkierendev%2Fnoxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkierendev%2Fnoxdb/lists"}