Giter Site home page Giter Site logo

s0l0leveling / fivem-mysql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thymona/fivem-mysql

0.0 0.0 0.0 90 KB

MySQL library/resource made for FiveM. Fastest MySQL library for FiveM

License: GNU General Public License v3.0

Lua 34.06% TypeScript 59.32% JavaScript 6.62%

fivem-mysql's Introduction

FiveM MySQL - MySQL library for FiveM

N|CoreV Issues License Forks Stars

This 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 and written by ThymonA

Example

If you want to know how this resource works? check the example.lua file inside this resource.

Config the server.cfg

Config Description Default
mysql_connection_string MySQL connection string, there are two variants possible: Check Connections strings under this table. mysql://root@localhost/fivem
mysql_level Warn level used to print message in console, there are couble of options like: info, debug, warn, error or fatal warn
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)

Connections strings:

Variants:

  • mysql://root:pass1234@localhost/fivem
  • server=localhost;userid=root;password=pass1234;database=fivem

Issues

Make sure you provide all information possible when reporting an issue.

Changelog

For a detailed changelog either check the commits or read https://github.com/ThymonA/fivem-mysql/releases

Features

  • Async / Sync.
  • It uses the node-mysql2 library to provide a connection to your mysql server and is faster than the mysql library.

fivem-mysql's People

Contributors

thymona avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.