{"id":25893138,"url":"https://github.com/t99/mysql-toolkit-js","last_synced_at":"2026-05-09T19:39:04.741Z","repository":{"id":57164247,"uuid":"436680652","full_name":"T99/mysql-toolkit-js","owner":"T99","description":"My personal toolkit of functions and functionality for working with MySQL servers in TypeScript.","archived":false,"fork":false,"pushed_at":"2022-11-23T18:35:07.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-01T19:08:20.477Z","etag":null,"topics":["database","mysql","sql","toolkit","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/T99.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["T99"]}},"created_at":"2021-12-09T16:12:48.000Z","updated_at":"2021-12-17T19:59:34.000Z","dependencies_parsed_at":"2023-01-22T01:49:57.606Z","dependency_job_id":null,"html_url":"https://github.com/T99/mysql-toolkit-js","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T99%2Fmysql-toolkit-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T99%2Fmysql-toolkit-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T99%2Fmysql-toolkit-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T99%2Fmysql-toolkit-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/T99","download_url":"https://codeload.github.com/T99/mysql-toolkit-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241574971,"owners_count":19984776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","sql","toolkit","typescript"],"created_at":"2025-03-02T21:30:30.817Z","updated_at":"2026-05-09T19:39:04.691Z","avatar_url":"https://github.com/T99.png","language":"TypeScript","funding_links":["https://github.com/sponsors/T99"],"categories":[],"sub_categories":[],"readme":"# MySQL Toolkit\n\nMy personal toolkit of functions and functionality for working with MySQL servers in TypeScript.\n\n### [Find @t99/mysql-toolkit on NPM.](https://www.npmjs.com/package/@t99/mysql-toolkit)\n\n## Table of Contents\n\n - [Installation](#installation)\n - [Basic Usage](#basic-usage)\n - [Documentation](#documentation)\n - [License](#license)\n\n## Installation\n\nInstall from NPM with\n\n```\n$ npm install --save @t99/mysql-toolkit\n```\n\n## Basic Usage\n\nThe most common usage of this library is in using connection pools. Connection\npools are utilities for automatically distributing (and re-using) connections to\na given database server.\n\n```typescript\nimport { DatabaseConnectionPool } from \"@t99/mysql-toolkit\";\n\nconst pool: DatabaseConnectionPool = new DatabaseConnectionPool({\n\thost: \"my.database.com\",\n\tuser: \"username\",\n\tpassword: \"hunter1\",\n\tdatabase: \"plaintext_passwords\",\n});\n```\n\nThis is a thin wrapper over the popular NPM library [`mysql`](https://www.npmjs.com/package/mysql).\nYou might even notice that the config object being passed to the constructor\nabove matches that which is expected to the constructor of the `mysql` library's\n`Connection` object.\n\nNow that we have this connection established, we can use it to query the\ndatabase that we've connected to:\n\n```typescript\nimport { MySQLQueryResults } from \"@t99/mysql-toolkit\";\n\nconst queryResult: MySQLQueryResults = await pool.query(\n\t\"SELECT * FROM passwords\"\n);\n```\n\n## Documentation\n\nSee the [wiki](https://github.com/T99/mysql-toolkit-js/wiki) for full documentation.\n\n## License\n\n@t99/mysql-toolkit is made available under the GNU General Public License v3.\n\nCopyright (C) 2022 Trevor Sears\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft99%2Fmysql-toolkit-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft99%2Fmysql-toolkit-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft99%2Fmysql-toolkit-js/lists"}