aboutsummaryrefslogtreecommitdiff
path: root/gamemode/config/sv_sql.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-11-03 18:23:45 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2018-11-03 18:23:45 -0400
commit28affa22541b9ef251707793f6b1c1a26d663592 (patch)
tree622754894d75c74dc5e8516ccf184ad4bf328fef /gamemode/config/sv_sql.lua
parentc639e7c7c6ab1595fdce39f56312e3d6a886bbe8 (diff)
downloadartery-28affa22541b9ef251707793f6b1c1a26d663592.tar.gz
artery-28affa22541b9ef251707793f6b1c1a26d663592.tar.bz2
artery-28affa22541b9ef251707793f6b1c1a26d663592.zip
Started on new npc system
Started work on the new npc system
Diffstat (limited to 'gamemode/config/sv_sql.lua')
-rw-r--r--gamemode/config/sv_sql.lua14
1 files changed, 14 insertions, 0 deletions
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