From 28affa22541b9ef251707793f6b1c1a26d663592 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 3 Nov 2018 18:23:45 -0400 Subject: Started on new npc system Started work on the new npc system --- gamemode/config/sv_sql.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gamemode/config/sv_sql.lua') diff --git a/gamemode/config/sv_sql.lua b/gamemode/config/sv_sql.lua index a4b5daa..501f8e1 100644 --- a/gamemode/config/sv_sql.lua +++ b/gamemode/config/sv_sql.lua @@ -1,7 +1,20 @@ +--- Defaults relating to the sql database. +-- If you need to change the defaults, nrequire() thi +-- module, then change any of the fields. +-- @server sv_sql.lua + local sql = {} --SQL stuff, be careful to keep this secret! +--- The values in the sql table +-- @table mysql_config +-- @field boolean EnableMySQL=true Should we use MySQLOO to store the data? +-- @field string Host=localhost The hostname that the mysql database lives on +-- @field string Username=root The username to log into the database +-- @field string Password=root The password to log into the database +-- @field number Database_port=3306 The port to connect to the database on +-- @field string Preferred_module=mysqloo The perfered module to use for sql, when multiple are avaliable. local parse = { ["EnableMySQL"] = tobool, ["Host"] = tostring, @@ -34,4 +47,5 @@ for _,line in pairs(string.Explode("\n",mysqlconfig,false)) do sql[key] = parse[key](value) end + return sql -- cgit v1.2.3-70-g09d2