1.3.0 • Published 10 months ago

@overextended/oxmysql v1.3.0

Weekly downloads
-
License
LGPL-3.0
Repository
github
Last release
10 months ago

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 @overextended/oxmysql

# With Yarn
yarn add @overextended/oxmysql

# With npm
npm install @overextended/oxmysql

Usage

Import as module:

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

Import with require:

const { oxmysql } = require('@overextended/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

1.3.0

10 months ago

1.2.0

11 months ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago