{"id":19506102,"url":"https://github.com/thymona/fivem-mysql","last_synced_at":"2025-07-02T03:05:16.510Z","repository":{"id":114169166,"uuid":"325389813","full_name":"ThymonA/fivem-mysql","owner":"ThymonA","description":"MySQL library/resource made for FiveM. Fastest MySQL library for FiveM","archived":false,"fork":false,"pushed_at":"2021-04-21T20:36:26.000Z","size":90,"stargazers_count":15,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-26T02:49:32.547Z","etag":null,"topics":["fivem","fivem-script","library","mysql","mysql-performance","performance","sql","standalone","standalone-library"],"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/ThymonA.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-29T21:23:29.000Z","updated_at":"2025-01-07T18:57:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"80a07094-4755-426b-9e90-ea2049b80602","html_url":"https://github.com/ThymonA/fivem-mysql","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ThymonA/fivem-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThymonA%2Ffivem-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThymonA%2Ffivem-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThymonA%2Ffivem-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThymonA%2Ffivem-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThymonA","download_url":"https://codeload.github.com/ThymonA/fivem-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThymonA%2Ffivem-mysql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263066556,"owners_count":23408387,"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":["fivem","fivem-script","library","mysql","mysql-performance","performance","sql","standalone","standalone-library"],"created_at":"2024-11-10T22:35:38.983Z","updated_at":"2025-07-02T03:05:16.474Z","avatar_url":"https://github.com/ThymonA.png","language":"TypeScript","readme":"# FiveM MySQL - MySQL library for FiveM\n[![N|CoreV](https://i.imgur.com/wA7DmUS.png)](https://github.com/ThymonA/fivem-mysql)\n[![Issues](https://img.shields.io/github/issues/ThymonA/fivem-mysql.svg?style=for-the-badge)](https://github.com/ThymonA/fivem-mysql/issues)\n[![License](https://img.shields.io/github/license/ThymonA/fivem-mysql.svg?style=for-the-badge)](https://github.com/ThymonA/fivem-mysql/blob/master/LICENSE)\n[![Forks](https://img.shields.io/github/forks/ThymonA/fivem-mysql.svg?style=for-the-badge)](https://github.com/ThymonA/fivem-mysql)\n[![Stars](https://img.shields.io/github/stars/ThymonA/fivem-mysql.svg?style=for-the-badge)](https://github.com/ThymonA/fivem-mysql)\n\nThis mysql-async Library for FiveM intends to provide function to connect to a MySQL in a Sync and Async way. This resource is inspired by [`fivem-mysql-async`](https://github.com/brouznouf/fivem-mysql-async) and written by [ThymonA](https://github.com/ThymonA/)\n\n### **Example**\nIf you want to know how this resource works? check the [`example.lua`](https://github.com/ThymonA/fivem-mysql/blob/master/example.lua) file inside this resource.\n\n### **Config the `server.cfg`**\n**Config** | **Description** | **Default**\n:----------|:----------------|:----------------\n`mysql_connection_string` | MySQL connection string, there are two variants possible: Check **`Connections strings`** under this table. | `mysql://root@localhost/fivem`\n`mysql_level` | Warn level used to print message in console, there are couble of options like: `info`, `debug`, `warn`, `error` or `fatal` | `warn`\n`mysql_slow_query_warning` | When an query takes longer than the defined number, print an query warn message in console to let the server know that the executed query is slow | `500` (ms)\n\n#### **Connections strings:**\n**Variants:**\n* `mysql://root:pass1234@localhost/fivem`\n* `server=localhost;userid=root;password=pass1234;database=fivem`\n\n### **Issues**\nMake sure you provide all information possible when reporting an issue.\n\n### **Changelog**\nFor a detailed changelog either check the commits or read [`https://github.com/ThymonA/fivem-mysql/releases`](https://github.com/ThymonA/fivem-mysql/releases)\n\n### **Features**\n\n* Async / Sync.\n* It uses the [node-mysql2](https://github.com/sidorares/node-mysql2) library to provide a connection to your mysql server and is faster than the [mysql](https://github.com/mysqljs/mysql) library.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthymona%2Ffivem-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthymona%2Ffivem-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthymona%2Ffivem-mysql/lists"}