summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-23 21:32:18 +0100
committermadmaxoft <github@xoft.cz>2013-11-23 21:32:18 +0100
commit3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b (patch)
treedf6adef440e8e71c0aa62448bc97c04c7a8501f5
parentAPIDump: The descriptions are read from multiple files. (diff)
downloadcuberite-3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b.tar
cuberite-3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b.tar.gz
cuberite-3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b.tar.bz2
cuberite-3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b.tar.lz
cuberite-3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b.tar.xz
cuberite-3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b.tar.zst
cuberite-3ef7f2008f87d2ea1f99a1dc008a4688d9b13c7b.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua20
1 files changed, 16 insertions, 4 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 1ad5bf5e4..8778727e1 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -2439,11 +2439,23 @@ Parser:close();
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
+ open = { Params = "FileName", Return = "DBClass", 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">
+-- open the database:
+myDB = sqlite3.open('MyDatabaseFile.sqlite3')
+
-- 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.)" },
+
+-- Close the database:
+myDB:close()
+</pre>
+ ]], },
+ open_memory = { Return = "DBClass", 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]'." },
},