From 229488d3f7fdd5d47bcab9f9e360dd096b95d11b Mon Sep 17 00:00:00 2001 From: Daniel GP <96537843+DaniGP17@users.noreply.github.com> Date: Sat, 23 Dec 2023 16:39:14 +0100 Subject: [PATCH] Remove crypto and remove oxmysql old export --- debug.lua | 5 ----- fxmanifest.lua | 3 +-- src/db/Query.js | 1 - src/db/exports/scripts/oxmysql.json | 21 --------------------- 4 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 src/db/exports/scripts/oxmysql.json diff --git a/debug.lua b/debug.lua index b4688ba..172943c 100644 --- a/debug.lua +++ b/debug.lua @@ -100,9 +100,4 @@ end) RegisterNUICallback("triggerServerEvent", function(data) TriggerServerEvent(data.event, data.data) -end) - -Citizen.CreateThread(function() - Wait(500) - ExecuteCommand("debug_ui") end) \ No newline at end of file diff --git a/fxmanifest.lua b/fxmanifest.lua index 3d5b3f9..ebbafe7 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -26,8 +26,7 @@ files { convar_category 'IcMySQL' { 'IcMySQL Configuration', { - { 'Connection String', 'mysql_connection_string', 'CV_STRING', 'mysql://user:password@localhost/database' }, - { 'Debug', 'mysql_debug', 'CV_BOOL', 'false' } + { 'Connection Data', 'mysqlCredentials_1', 'CV_STRING', 'host=127.0.0.1;user=root; password=1234; database=fxserver; port=3306' }, } } diff --git a/src/db/Query.js b/src/db/Query.js index 8cb5413..a454725 100644 --- a/src/db/Query.js +++ b/src/db/Query.js @@ -1,5 +1,4 @@ const { ParseError } = require('../errors/Parser.js'); -const crypto = require("crypto"); const { ReplaceNamedParams, ReplaceDotParams, ConvertNilParams } = require('./Params.js'); const { QueryTypes } = require('sequelize'); const { GetConnection, ReleaseConnection } = require('./Connections.js'); diff --git a/src/db/exports/scripts/oxmysql.json b/src/db/exports/scripts/oxmysql.json deleted file mode 100644 index 7432782..0000000 --- a/src/db/exports/scripts/oxmysql.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "oxmysql", - "functions": { - "insert_async": "AwaitInsert", - "insert": "Insert", - "prepare_async": "AwaitPrepare", - "prepare": "Prepare", - "query_async": "AwaitQuery", - "query": "Query", - "rawExecute_async": "AwaitRaw", - "rawExecute": "Raw", - "scalar_async": "AwaitScalar", - "scalar": "Scalar", - "single_async": "AwaitSingle", - "single": "Single", - "transaction_async": "AwaitTransaction", - "transaction": "Transaction", - "update_async": "AwaitUpdate", - "update": "Update" - } -} \ No newline at end of file