summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-23 21:13:55 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-23 21:13:55 +0100
commitcc77ffd0698ed9a533d8e06de53bab9380b45b80 (patch)
tree855771c038986e5bb56cc3ac5f82ae74e952cc68 /MCServer/Plugins/APIDump/APIDesc.lua
parentFixed Lua bindings for cFile:GetFolderContents(). (diff)
downloadcuberite-cc77ffd0698ed9a533d8e06de53bab9380b45b80.tar
cuberite-cc77ffd0698ed9a533d8e06de53bab9380b45b80.tar.gz
cuberite-cc77ffd0698ed9a533d8e06de53bab9380b45b80.tar.bz2
cuberite-cc77ffd0698ed9a533d8e06de53bab9380b45b80.tar.lz
cuberite-cc77ffd0698ed9a533d8e06de53bab9380b45b80.tar.xz
cuberite-cc77ffd0698ed9a533d8e06de53bab9380b45b80.tar.zst
cuberite-cc77ffd0698ed9a533d8e06de53bab9380b45b80.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index bdbea2351..82ba5ba45 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -2668,6 +2668,24 @@ Parser:close();
}, -- AdditionalInfo
}, -- lxp
+ sqlite3 =
+ {
+ Desc = [[
+ ]],
+
+ Functions =
+ {
+ complete = { Params = "string", Return = "bool", Notes = "Returns true if the string sql comprises one or more complete SQL statements and false otherwise." },
+ open = { Params = "string", Return = "Userdata", Notes = [[Opens (or creates if it does not exist) an SQLite database with name filename and returns its handle as userdata (the returned object should be used for all further method calls in connection with this specific database, see {{http://lua.sqlite.org/index.cgi/doc/tip/doc/lsqlite3.wiki#database_methods|Database methods}}). Example: <pre class="prettyprint lang-lua">myDB=sqlite3.open('MyDatabase.sqlite3') -- open
+-- do some database calls...
+myDB:close() -- close
+TakeDamageInfo =</pre>]], },
+ open_memory = { Return = "userdata", Notes = "Opens an SQLite database in memory and returns its handle as userdata. In case of an error, the function returns nil, an error code and an error message. (In-memory databases are volatile as they are never stored on disk.)" },
+ temp_directory = { Params = "string", Notes = "Opens an SQLite database in memory and returns its handle as userdata. In case of an error, the function returns nil, an error code and an error message. (In-memory databases are volatile as they are never stored on disk.)" },
+ version = { Return = "string", Notes = "Returns a string with SQLite version information, in the form 'x.y[.z]'." },
+ },
+ },
+
TakeDamageInfo =
{
Desc = [[