{"id":22813081,"url":"https://github.com/coderivan/mysql-util","last_synced_at":"2025-09-01T01:12:39.016Z","repository":{"id":42764043,"uuid":"277564921","full_name":"CoderIvan/mysql-util","owner":"CoderIvan","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T19:50:34.000Z","size":323,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T09:42:53.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CoderIvan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-06T14:30:34.000Z","updated_at":"2021-04-13T07:10:53.000Z","dependencies_parsed_at":"2023-02-07T23:30:31.189Z","dependency_job_id":null,"html_url":"https://github.com/CoderIvan/mysql-util","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderIvan%2Fmysql-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderIvan%2Fmysql-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderIvan%2Fmysql-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderIvan%2Fmysql-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoderIvan","download_url":"https://codeload.github.com/CoderIvan/mysql-util/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385410,"owners_count":20768668,"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":[],"created_at":"2024-12-12T12:14:58.975Z","updated_at":"2025-03-30T21:42:21.397Z","avatar_url":"https://github.com/CoderIvan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysql util\n\n![Node.js CI](https://github.com/CoderIvan/mysql-util/workflows/Node.js%20CI/badge.svg)\n![Node.js Package](https://github.com/CoderIvan/mysql-util/workflows/Node.js%20Package/badge.svg)\n\n# Unit Test\n![image](https://user-images.githubusercontent.com/7960859/114267955-377dd300-9a31-11eb-9c84-553cdaf799e4.png)\n![image](https://user-images.githubusercontent.com/7960859/114267957-3ba9f080-9a31-11eb-8ce2-91202bf090a4.png)\n\n# How To Use\n\n```javascript\nconst { mysql } = require('@z-ivan/mysql-util')\n\nconst pool = mysql.createPool({\n\thost: 'localhost',\n\tport: 3306,\n\tuser: 'root',\n\tpassword: 'root',\n\tdatabase: 'test',\n})\n\n// SELECT * FROM test\nawait pool.exec((squel) =\u003e squel.select().from('test').where('a = ?', 1))\n\n\n// SELECT * FROM test WHERE (a = ?) LIMIT 10 OFFSET 10\n// SELECT COUNT(*) AS \"_count\" FROM test WHERE (a = ?)\nawait pool.page((squel) =\u003e squel.select().from('test').where('a = ?', 1).limit(10).offset(10))\n\npool.end()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderivan%2Fmysql-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderivan%2Fmysql-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderivan%2Fmysql-util/lists"}