github overextended/oxmysql v2.4.0

latest releases: v2.12.0, v2.11.2, v2.11.1...
2 years ago

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)

Continuous Integration

  • release/pre-release: copy only lua lib files (Luke)
  • release: version bumper (Linden)

Chores

  • update discord link in readme (Luke)
  • lib: bump package version (Luke)

Don't miss a new oxmysql release

NewReleases is sending notifications on new releases.