mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
refactor: Add h1 headers to all pages missing it (#137)
* refactor: Add h1 headers to all pages missing it * refactor: missed example h3 * change hooks example heading to bold text --------- Co-authored-by: Luke <[email protected]>
This commit is contained in:
1 parent
74227cc262
commit
1d2c490b26
95 files changed
+2167
-2289
No files matched your search
@@ -4,6 +4,8 @@ title: insert
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# Insert
|
||||
|
||||
Inserts a new entry into the database and returns the insert id for the row, if valid.
|
||||
|
||||
## Promise
|
||||
|
||||
@@ -4,6 +4,8 @@ title: prepare
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# Prepare
|
||||
|
||||
Prepare can be used to execute frequently called queries faster and accepts multiple sets of parameters to be used with a single query.
|
||||
|
||||
- Date will not return the datestring commonly used in FiveM
|
||||
|
||||
@@ -4,6 +4,8 @@ title: query
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# Query
|
||||
|
||||
When selecting data, returns all matching rows and columns; otherwise, returns data like insertId, affectedRows, etc.
|
||||
|
||||
## Promise
|
||||
|
||||
@@ -4,6 +4,8 @@ title: rawExecute
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# RawExecute
|
||||
|
||||
rawExecute can be used to execute frequently called queries faster and accepts multiple sets of parameters to be used with a single query.
|
||||
|
||||
- Date will not return the datestring commonly used in FiveM
|
||||
|
||||
@@ -4,6 +4,8 @@ title: scalar
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# Scalar
|
||||
|
||||
Returns the first column for a single row.
|
||||
|
||||
## Promise
|
||||
|
||||
@@ -4,6 +4,8 @@ title: single
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# Single
|
||||
|
||||
Returns all selected columns for a single row.
|
||||
|
||||
## Promise
|
||||
|
||||
@@ -4,6 +4,8 @@ title: transaction
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# Transaction
|
||||
|
||||
A transaction executes multiple queries and commits them only if all succeed.
|
||||
If one fails, none of the queries are committed.
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ title: update
|
||||
|
||||
import { Tab, Tabs } from 'nextra-theme-docs';
|
||||
|
||||
# Update
|
||||
|
||||
Returns the number of rows affected by the query.
|
||||
|
||||
## Promise
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Benchmark
|
||||
|
||||
```lua
|
||||
-- Internal benchmark
|
||||
Low: 0.1222ms | Avg: 0.14188357ms | Total: 1418.8357ms (10000 queries)
|
||||
|
||||
@@ -4,6 +4,8 @@ title: Common Issues
|
||||
|
||||
import { Callout } from 'nextra/components';
|
||||
|
||||
# Common Issues
|
||||
|
||||
## Unable to establish a connection
|
||||
|
||||
This is usually the result of incorrect database settings or your password containing reserved characters.
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Placeholders
|
||||
|
||||
Placeholders allow for query parameters to be safely executed, preventing [common SQL injection methods](https://bobby-tables.com/).
|
||||
|
||||
Parameters can be passed an an array or map (referred to as named named parameters).
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
title: Using the Debug UI
|
||||
---
|
||||
|
||||
# Using the Debug UI
|
||||
|
||||
import { Callout } from 'nextra/components';
|
||||
|
||||
The debug UI lets you easily see all the queries that have been executed by resources, query response times, and per-resource statistics.
|
||||
|
||||
Reference in new issue
Block a user