mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
chore(lib): typos
This commit is contained in:
1 parent
571691c2f5
commit
61d78dc893
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -19,7 +19,7 @@ npm install @overextended/oxmysql
|
||||
|
||||
Import as module:
|
||||
|
||||
```ts
|
||||
```js
|
||||
import { oxmysql } from '@overextended/oxmysql';
|
||||
```
|
||||
|
||||
@@ -34,15 +34,15 @@ const { oxmysql } = require('@overextended/oxmysql');
|
||||
[View documentation](https://overextended.github.io/docs/oxmysql)
|
||||
|
||||
```js
|
||||
MySQL.scalar('SELECT username FROM uses', (result) => {
|
||||
oxmysql.scalar('SELECT username FROM users', (result) => {
|
||||
console.log(result)
|
||||
}).catch(console.error)
|
||||
|
||||
MySQL.scalar('SELECT username FROM uses').then((result) => {
|
||||
oxmysql.scalar('SELECT username FROM users').then((result) => {
|
||||
console.log(result)
|
||||
}).catch(console.error)
|
||||
|
||||
const result = await MySQL.scalar('SELECT username FROM uses').catch(console.error)
|
||||
const result = await oxmysql.scalar('SELECT username FROM users').catch(console.error)
|
||||
console.log(result)
|
||||
```
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@overextended/oxmysql",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "Exports wrapper for oxmysql",
|
||||
"types": "MySQL.d.ts",
|
||||
"main": "MySQL.js",
|
||||
|
||||
Reference in new issue
Block a user