<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.spherecommunity.net/index.php?action=history&amp;feed=atom&amp;title=Database</id>
		<title>Database - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.spherecommunity.net/index.php?action=history&amp;feed=atom&amp;title=Database"/>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Database&amp;action=history"/>
		<updated>2026-05-10T15:05:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Database&amp;diff=717&amp;oldid=prev</id>
		<title>Sirius: Added languagemenue</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Database&amp;diff=717&amp;oldid=prev"/>
				<updated>2010-11-26T20:44:42Z</updated>
		
		<summary type="html">&lt;p&gt;Added languagemenue&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:44, 26 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Languages|Database}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__FORCETOC__&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__FORCETOC__&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Using the [[DB]] object reference, scripts can interact with an external MySQL database. The following table details the various properties of the database object in SphereServer:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Using the [[DB]] object reference, scripts can interact with an external MySQL database. The following table details the various properties of the database object in SphereServer:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sirius</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Database&amp;diff=190&amp;oldid=prev</id>
		<title>MrSugarCube: Created page with '__FORCETOC__ Using the DB object reference, scripts can interact with an external MySQL database. The following table details the various properties of the database object in...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Database&amp;diff=190&amp;oldid=prev"/>
				<updated>2009-06-07T14:51:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;__FORCETOC__ Using the &lt;a href=&quot;/index.php?title=DB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;DB (page does not exist)&quot;&gt;DB&lt;/a&gt; object reference, scripts can interact with an external MySQL database. The following table details the various properties of the database object in...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__FORCETOC__&lt;br /&gt;
Using the [[DB]] object reference, scripts can interact with an external MySQL database. The following table details the various properties of the database object in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Before the DB object can be used, MySQL must be enabled along with the database host details, in Sphere.ini.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all database properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the item, the property from the [[ITEMDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AEXECUTE]] ''function, command'' || R || Executes an SQL command in a background thread, calling ''function'' when complete. Returns 1 if the command is successfully queued.&lt;br /&gt;
|-&lt;br /&gt;
| [[AQUERY]] ''function, command'' || R || Executes an SQL command in a background thread, calling ''function'' when complete. Returns 1 if the command is successfully queued.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLOSE]] || W || Closes the connection to the database.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONNECT]] || W || Opens a connection to the database, using the settings from Sphere.ini.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONNECTED]] || R || Returns 1 if the database is connected.&lt;br /&gt;
|-&lt;br /&gt;
| [[ESCAPEDATA]] ''text'' || R || Returns ''text'' as an escaped SQL string.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXECUTE]] ''command'' || W || Exectutes an SQL command that doesn't return any result.&lt;br /&gt;
|-&lt;br /&gt;
| [[QUERY]] ''command'' || W || Executes an SQL command that returns results.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROW]].NUMCOLS || R || Returns the number of columns returned in the last query.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROW]].NUMROWS || R || Returns the number of rows returned in the last query.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROW]]''.n.col_index'' || R || Returns the value of the column at index ''col_index'' in the nth row. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[ROW]]''.n.col_name'' || R || Returns the value of the column named ''col_name'' in the nth row. (zero-based)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>MrSugarCube</name></author>	</entry>

	</feed>