fix formatting

This commit is contained in:
Linden committed 2021-12-23 21:33:42 +11:00
1 parent 40dee21923
commit eef4b7bdf9
8 files changed
+9 -2

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ When selecting data it will return all matching rows and columns, otherwise it w
end end
end) end)
``` ```
=== "JavaScript" === "JavaScript"
**Callback** **Callback**
```js ```js
+1
View File
@@ -18,6 +18,7 @@ Returns the first column for a single row.
print(firstname) print(firstname)
end) end)
``` ```
=== "JavaScript" === "JavaScript"
**Callback** **Callback**
```js ```js
+1
View File
@@ -22,6 +22,7 @@ Returns the columns for a single row.
end end
end) end)
``` ```
=== "JavaScript" === "JavaScript"
**Callback** **Callback**
```js ```js
+2
View File
@@ -1,3 +1,5 @@
--- ---
title: Index title: Index
--- ---
todo: include some information about proper formatting, placeholders, bad practices, etc.
+1
View File
@@ -18,6 +18,7 @@ Inserts a new entry into the database and returns the insert id for the row, if
print(id) print(id)
end) end)
``` ```
=== "JavaScript" === "JavaScript"
**Callback** **Callback**
```js ```js
+2
View File
@@ -3,6 +3,7 @@ title: prepare
--- ---
The only function that provides true [prepared statements](https://github.com/sidorares/node-mysql2#using-prepared-statements), granting native protection and query planning by MySQL. The only function that provides true [prepared statements](https://github.com/sidorares/node-mysql2#using-prepared-statements), granting native protection and query planning by MySQL.
Prepare can be used to execute frequently called queries faster and accepts multiple sets of parameters to be used with a single query. 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 - Date will not return the datestring commonly used in FiveM
- TINYINT 1 and BIT will not return a boolean - TINYINT 1 and BIT will not return a boolean
- You can only use `?` value placeholders, `??` column placeholders and named placeholders will throw an error - You can only use `?` value placeholders, `??` column placeholders and named placeholders will throw an error
@@ -32,6 +33,7 @@ When using SELECT, the return value will match `fetchAll, fetchSingle, or fetchS
end end
end) end)
``` ```
=== "JavaScript" === "JavaScript"
**Callback** **Callback**
```js ```js
-2
View File
@@ -1,5 +1,3 @@
TODO: update information and formatting
--- ---
title: transaction title: transaction
--- ---
+1
View File
@@ -22,6 +22,7 @@ Returns the number of affected rows when executing an UPDATE or DELETE query.
end end
end) end)
``` ```
=== "JavaScript" === "JavaScript"
**Callback** **Callback**
```js ```js