ghmattimysql compatibility
oxmysql now provides for dependency checks, and creates event handlers for ghmattimysql exports.
You shouldn't really use them, they just exist for closed-source resources and compiled (C#) resources.
Exports are only being provided for execute, scalar, transaction, store
and their "sync" (async_retval) variants.
npm package
If you missed it, we released @overextended/oxmysql as a node module.
This gives you access to similar syntax as Lua, with basic typescript support.
import { oxmysql as MySQL } from '@overextended/oxmysql';
MySQL.scalar('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier], (firstname) => {
console.log(firstname)
})
const firstname = await MySQL.scalar('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier])
console.log(firstname)
Features
- oxmysql exports wrapper as node package (Luke)
- lib: readme for npm package (Luke)
- provide exports for ghmattimysql (Linden)
Code Refactoring
- lib/ts: improve typing and methods (Linden)
- lib/lua: safeargs type checks and cb reassignment (Linden)
- lib/lua: improve definitions (Linden)