Skip to content

delarmuss/redm-mysql-async

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

RedM Async

RedM-async MySQL Async for RedM

INSTALLATION

Set it as a dependency in you __resource.lua or fxmanifest.lua

-- client
client_scripts {
	-- Not possible, resource is only server sided
	...
}

-- server
server_scripts {
	'@mysql-async/lib/MySQL.lua',
	...
}

API

MySQL.Async.execute(query, parameters, callback)

MySQL.Async.fetchAll(query, parameters, callback)

MySQL.Async.fetchScalar(query, parameters, callback)

MySQL.Async.transaction(queries, parameters, callback)

MySQL.Sync.execute(query, parameters)

MySQL.Sync.fetchAll(query, parameters)

MySQL.Sync.fetchScalar(query, parameters)

MySQL.Sync.transaction(queries, parameters, callback)

MySQL.ready(callback)

INFO

It uses the https://github.com/warxander/vSql library to provide a connection to your mysql server.

About

MySQL for RedM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%