diff --git a/global/lib/lua/5.1/luasql/mysql.so b/global/lib/lua/5.1/luasql/mysql.so new file mode 100644 index 000000000..f0dee86c3 Binary files /dev/null and b/global/lib/lua/5.1/luasql/mysql.so differ diff --git a/global/lib/lua/5.1/luasql_ext.lua b/global/lib/lua/5.1/luasql_ext.lua new file mode 100644 index 000000000..56262af4f --- /dev/null +++ b/global/lib/lua/5.1/luasql_ext.lua @@ -0,0 +1,41 @@ +--MySQL connection information to use in conjunction with luamysql +--This can be dropped in the eqemu server root directory and will be automatically referenced +--this information can be pulled from the eqemu_config.xml file in the eqemu server root + +-- load driver +local driver = require("luasql_mysql"); + +--declare table +local luasql_ext = {}; + +--set database information +local database_name = "local_dev"; +local user = "root"; +local password = "eqemu"; +local ip_addr = "localhost"; +local port = "3306"; + +function luasql_ext.env(e) + -- create environment object + env = assert (driver.mysql()); + return env; +end + +function luasql_ext.con(e) + -- connect to data source + con = assert (env:connect(database_name,user,password,ip_addr,port)); + return con; +end + +function luasql_ext.rows(connection,statement) + env = assert (driver.mysql()); + local con = connection or assert (env:connect(database_name,user,password,ip_addr,port)); + local cur = assert (con:execute(statement)); + con:close(); + env:close(); + return function() + return cur:fetch() + end +end + +return luasql_ext; diff --git a/global/lib/lua/5.1/luasql_mysql.so b/global/lib/lua/5.1/luasql_mysql.so new file mode 100644 index 000000000..754a4afc1 Binary files /dev/null and b/global/lib/lua/5.1/luasql_mysql.so differ diff --git a/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/br/license.html b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/br/license.html new file mode 100644 index 000000000..085b71f9a --- /dev/null +++ b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/br/license.html @@ -0,0 +1,123 @@ + + + + Licença LuaSQL + + + + + +
+ +
+ +
LuaSQL
+
Conectividade de banco de dados para a linguagem de programação Lua
+
+ +
+ + + +
+

License

+ +

LuaSQL is free software: +it can be used for both academic and commercial purposes at absolutely no cost. +There are no royalties or GNU-like "copyleft" restrictions. +LuaSQL qualifies as +Open Source +software. +Its licenses are compatible with +GPL. +LuaSQL is not in the public domain and the +Kepler Project +keep its copyright. +The legal details are below.

+ +

The spirit of the license is that +you are free to use LuaSQL for any purpose at no cost without having to ask us. +The only requirement is that if you do use LuaSQL, +then you should give us credit by including the appropriate copyright notice +somewhere in your product or its documentation.

+ +

The LuaSQL library is designed and implemented by the +Kepler Project team. +The implementation is not derived from licensed software.

+ +
+

Copyright © 2003-2006 The Kepler Project.

+ +

Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions:

+ +

The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software.

+ +

+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.

+ +
+
+ +
+

Valid XHTML 1.0!

+

+$Id: license.html,v 1.6 2008/06/11 00:26:13 jasonsantos Exp $ +

+
+ +
+ + diff --git a/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/fr/license.html b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/fr/license.html new file mode 100644 index 000000000..0fb986e32 --- /dev/null +++ b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/fr/license.html @@ -0,0 +1,120 @@ + + + + LuaSQL License + + + + + +
+ +
+ +
LuaSQL
+
Database connectivity for the Lua programming language
+
+ +
+ + +
+

License

+ +

LuaSQL is free software: +it can be used for both academic and commercial purposes at absolutely no cost. +There are no royalties or GNU-like "copyleft" restrictions. +LuaSQL qualifies as +Open Source +software. +Its licenses are compatible with +GPL. +LuaSQL is not in the public domain and the +Kepler Project +keep its copyright. +The legal details are below.

+ +

The spirit of the license is that +you are free to use LuaSQL for any purpose at no cost without having to ask us. +The only requirement is that if you do use LuaSQL, +then you should give us credit by including the appropriate copyright notice +somewhere in your product or its documentation.

+ +

The LuaSQL library is designed and implemented by the +Kepler Project team. +The implementation is not derived from licensed software.

+ +
+

Copyright © 2003-2007 The Kepler Project.

+ +

Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions:

+ +

The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software.

+ +

+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.

+ +
+
+ +
+

Valid XHTML 1.0!

+

$Id: license.html,v 1.17 2008/06/11 00:26:13 jasonsantos Exp $

+
+ +
+ + diff --git a/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/us/license.html b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/us/license.html new file mode 100644 index 000000000..13e79ff16 --- /dev/null +++ b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/doc/us/license.html @@ -0,0 +1,120 @@ + + + + LuaSQL License + + + + + +
+ +
+ +
LuaSQL
+
Database connectivity for the Lua programming language
+
+ +
+ + +
+

License

+ +

LuaSQL is free software: +it can be used for both academic and commercial purposes at absolutely no cost. +There are no royalties or GNU-like "copyleft" restrictions. +LuaSQL qualifies as +Open Source +software. +Its licenses are compatible with +GPL. +LuaSQL is not in the public domain and the +Kepler Project +keep its copyright. +The legal details are below.

+ +

The spirit of the license is that +you are free to use LuaSQL for any purpose at no cost without having to ask us. +The only requirement is that if you do use LuaSQL, +then you should give us credit by including the appropriate copyright notice +somewhere in your product or its documentation.

+ +

The LuaSQL library is designed and implemented by the +Kepler Project team. +The implementation is not derived from licensed software.

+ +
+

Copyright © 2003-2016 The Kepler Project.

+ +

Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions:

+ +

The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software.

+ +

+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.

+ +
+
+ +
+

Valid XHTML 1.0!

+

$Id: license.html,v 1.17 2008/06/11 00:26:13 jasonsantos Exp $

+
+ +
+ + diff --git a/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/luasql-mysql-2.3.5-1.rockspec b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/luasql-mysql-2.3.5-1.rockspec new file mode 100644 index 000000000..ac1cbdbcb --- /dev/null +++ b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/luasql-mysql-2.3.5-1.rockspec @@ -0,0 +1,35 @@ +package = "LuaSQL-MySQL" +version = "2.3.5-1" +source = { + url = "git://github.com/keplerproject/luasql.git", + branch = "v2.3.5", +} +description = { + summary = "Database connectivity for Lua (MySQL driver)", + detailed = [[ + LuaSQL is a simple interface from Lua to a DBMS. It enables a + Lua program to connect to databases, execute arbitrary SQL statements + and retrieve results in a row-by-row cursor fashion. + ]], + license = "MIT/X11", + homepage = "http://www.keplerproject.org/luasql/" +} +dependencies = { + "lua >= 5.1" +} +external_dependencies = { + MYSQL = { + header = "mysql.h" + } +} +build = { + type = "builtin", + modules = { + ["luasql.mysql"] = { + sources = { "src/luasql.c", "src/ls_mysql.c" }, + libraries = { "mysqlclient" }, + incdirs = { "$(MYSQL_INCDIR)" }, + libdirs = { "$(MYSQL_LIBDIR)" } + } + } +} diff --git a/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/rock_manifest b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/rock_manifest new file mode 100644 index 000000000..b23cfa0b9 --- /dev/null +++ b/global/lib/luarocks/rocks/luasql-mysql/2.3.5-1/rock_manifest @@ -0,0 +1,36 @@ +rock_manifest = { + doc = { + br = { + ['examples.html'] = "ddc16a018fa1a65cdce283dca0925356", + ['history.html'] = "b5b65b2e94d29163b3553474521d690e", + ['index.html'] = "a296a03e6ed1b4290289f22872a824fe", + ['license.html'] = "4b1a85bd9cfdbd5e4e6f64f29ad591f8", + ['luasql.png'] = "a858d251851675daefb731baacafd1b8", + ['manual.html'] = "296c8dc866d5a343bce3419890c59607" + }, + fr = { + ['doc.css'] = "d0a913514fb190240b3b4033d105cbc0", + ['examples.html'] = "ac400f8c25880c355239cc553863bf20", + ['history.html'] = "cbab789ae8fe289409f6af05b16e5691", + ['index.html'] = "9a2c0bed67d59f2713da8e107f759cb6", + ['license.html'] = "66567e98ce30262a987b42bd88db71a8", + ['luasql.png'] = "a858d251851675daefb731baacafd1b8", + ['manual.html'] = "45ad06d64a62e56047d17e73ce9f608f" + }, + us = { + ['doc.css'] = "d0a913514fb190240b3b4033d105cbc0", + ['examples.html'] = "ac400f8c25880c355239cc553863bf20", + ['history.html'] = "a937ce3ca0a070b3b82b8f29db4805c6", + ['index.html'] = "90a31f9551bbcde04cb5e54daa2c3ee2", + ['license.html'] = "62f494ac81fe39a4f6afcda9a6d7b310", + ['luasql.png'] = "a858d251851675daefb731baacafd1b8", + ['manual.html'] = "45ad06d64a62e56047d17e73ce9f608f" + } + }, + lib = { + luasql = { + ['mysql.so'] = "84b855efa7269b46fdc7ea9a4a60e42c" + } + }, + ['luasql-mysql-2.3.5-1.rockspec'] = "0703ea942b7ad2230423e7560a3e982e" +} diff --git a/global/lib/luarocks/rocks/manifest b/global/lib/luarocks/rocks/manifest new file mode 100644 index 000000000..abe158bbe --- /dev/null +++ b/global/lib/luarocks/rocks/manifest @@ -0,0 +1,37 @@ +commands = {} +dependencies = { + ['luasql-mysql'] = { + ['2.3.5-1'] = { + { + constraints = { + { + op = ">=", + version = { + 5, 1, string = "5.1" + } + } + }, + name = "lua" + } + } + } +} +modules = { + ['luasql.mysql'] = { + "luasql-mysql/2.3.5-1" + } +} +repository = { + ['luasql-mysql'] = { + ['2.3.5-1'] = { + { + arch = "installed", + commands = {}, + dependencies = {}, + modules = { + ['luasql.mysql'] = "luasql/mysql.so" + } + } + } + } +}