From eef4b7bdf9144d767efd0a67f303669c192fa55d Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Thu, 23 Dec 2021 21:22:12 +1100 Subject: [PATCH] fix formatting --- docs/usage/fetchAll.md | 1 + docs/usage/fetchScalar.md | 1 + docs/usage/fetchSingle.md | 1 + docs/usage/index.md | 4 +++- docs/usage/insert.md | 1 + docs/usage/prepare.md | 2 ++ docs/usage/transaction.md | 2 -- docs/usage/update.md | 1 + 8 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/usage/fetchAll.md b/docs/usage/fetchAll.md index 70b293d..14fca48 100644 --- a/docs/usage/fetchAll.md +++ b/docs/usage/fetchAll.md @@ -27,6 +27,7 @@ When selecting data it will return all matching rows and columns, otherwise it w end end) ``` + === "JavaScript" **Callback** ```js diff --git a/docs/usage/fetchScalar.md b/docs/usage/fetchScalar.md index 7ef5a45..8c37404 100644 --- a/docs/usage/fetchScalar.md +++ b/docs/usage/fetchScalar.md @@ -18,6 +18,7 @@ Returns the first column for a single row. print(firstname) end) ``` + === "JavaScript" **Callback** ```js diff --git a/docs/usage/fetchSingle.md b/docs/usage/fetchSingle.md index 2b12658..40e4faf 100644 --- a/docs/usage/fetchSingle.md +++ b/docs/usage/fetchSingle.md @@ -22,6 +22,7 @@ Returns the columns for a single row. end end) ``` + === "JavaScript" **Callback** ```js diff --git a/docs/usage/index.md b/docs/usage/index.md index c74a5ec..b9932e2 100644 --- a/docs/usage/index.md +++ b/docs/usage/index.md @@ -1,3 +1,5 @@ --- title: Index ---- \ No newline at end of file +--- + +todo: include some information about proper formatting, placeholders, bad practices, etc. \ No newline at end of file diff --git a/docs/usage/insert.md b/docs/usage/insert.md index 7f246b4..cc32c93 100644 --- a/docs/usage/insert.md +++ b/docs/usage/insert.md @@ -18,6 +18,7 @@ Inserts a new entry into the database and returns the insert id for the row, if print(id) end) ``` + === "JavaScript" **Callback** ```js diff --git a/docs/usage/prepare.md b/docs/usage/prepare.md index 727f11f..d72e99e 100644 --- a/docs/usage/prepare.md +++ b/docs/usage/prepare.md @@ -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. 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 - TINYINT 1 and BIT will not return a boolean - 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) ``` + === "JavaScript" **Callback** ```js diff --git a/docs/usage/transaction.md b/docs/usage/transaction.md index 79dc880..35d4021 100644 --- a/docs/usage/transaction.md +++ b/docs/usage/transaction.md @@ -1,5 +1,3 @@ -TODO: update information and formatting - --- title: transaction --- diff --git a/docs/usage/update.md b/docs/usage/update.md index aa54777..24435d3 100644 --- a/docs/usage/update.md +++ b/docs/usage/update.md @@ -22,6 +22,7 @@ Returns the number of affected rows when executing an UPDATE or DELETE query. end end) ``` + === "JavaScript" **Callback** ```js