Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions mysql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ local QueueTable = {}
local tostring = tostring
local table = table

--[[
Replacement tables
--]]
-- Replacement tables

local Replacements = {
sqlite = {
Expand All @@ -30,15 +28,11 @@ local Replacements = {
}
}

--[[
Phrases
--]]
-- Phrases

local MODULE_NOT_EXIST = "[mysql] The %s module does not exist!\n"

--[[
Begin Query Class.
--]]
-- Begin Query Class.

local QUERY_CLASS = {}
QUERY_CLASS.__index = QUERY_CLASS
Expand Down Expand Up @@ -604,14 +598,12 @@ end
-- Called when the database connects sucessfully.
function mysql:OnConnected()
MsgC(Color(25, 235, 25), "[mysql] Connected to the database!\n")

hook.Run("DatabaseConnected")
end

-- Called when the database connection fails.
function mysql:OnConnectionFailed(errorText)
ErrorNoHalt(string.format("[mysql] Unable to connect to the database!\n%s\n", errorText))

hook.Run("DatabaseConnectionFailed", errorText)
end

Expand Down