🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@communityox/oxmysql

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@communityox/oxmysql

Exports wrapper for oxmysql

latest
Source
npmnpm
Version
1.4.3
Version published
Maintainers
1
Created
Source

OxMySQL exports wrapper for FiveM

Types are fully supported and you will get intellisense on the oxmysql object when using it.

Installation

# With pnpm
pnpm add @communityox/oxmysql

# With Yarn
yarn add @communityox/oxmysql

# With npm
npm install @communityox/oxmysql

Usage

Import as module:

import { oxmysql } from '@communityox/oxmysql';

Import with require:

const { oxmysql } = require('@communityox/oxmysql');

Documentation

View documentation

oxmysql.scalar('SELECT username FROM users', (result) => {
    console.log(result)
}).catch(console.error)

oxmysql.scalar('SELECT username FROM users').then((result) => {
    console.log(result)
}).catch(console.error)

const result = await oxmysql.scalar('SELECT username FROM users').catch(console.error)
console.log(result)

License

LGPL-3.0

Keywords

fivem

FAQs

Package last updated on 02 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts