summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndreas Habel <mail@exceptionfault.de>2008-09-17 11:32:45 +0000
committerAndreas Habel <mail@exceptionfault.de>2008-09-17 11:32:45 +0000
commita2af298fd993a129b657671a41f20e3975baf0ef (patch)
tree9e99436db881465af9738a6637ece7ef6b05fe5f /docs
parentfb677eeec95d583b8b1928a907c815c95f8c4594 (diff)
downloadmanaserv-a2af298fd993a129b657671a41f20e3975baf0ef.tar.gz
manaserv-a2af298fd993a129b657671a41f20e3975baf0ef.tar.xz
manaserv-a2af298fd993a129b657671a41f20e3975baf0ef.zip
* Added installation scripts to set up database schemas for mysql, sqlite and postgresql. The create table statements have been completely removed out from the c++ source into separate, provider specific sql files. Accountserver will no longer create a sqlite file if none present.
* Added database specific config parameters to configure each provider independent. * Simplified the connect routine of DALStorage class since every dataprovider is now responsible to retrieve its own parameters. * Extended abstract dataprovider to support transactions, functionally implemented for SQLite and mySQL. * Added methods to retrieve last inserted auto-increment value and the number of modified rows by the last statement. * Rewrite of DALStorage class to be a little more transactional. * Fixed a bug when deleting a character. Old function left data in quests table and guilds table. * Doxygen now also includes non-documented functions and provides a dictionary for all classes
Diffstat (limited to 'docs')
-rw-r--r--docs/tmwserv.xml51
1 files changed, 45 insertions, 6 deletions
diff --git a/docs/tmwserv.xml b/docs/tmwserv.xml
index a16b063..1f20d32 100644
--- a/docs/tmwserv.xml
+++ b/docs/tmwserv.xml
@@ -1,12 +1,51 @@
<?xml version="1.0"?>
<!-- An example configuration file for ~/.tmwserv.xml -->
<configuration>
- <!--
- Database configuration (unused by sqlite3).
- -->
- <option name="dbhost" value=""/>
- <option name="dbpass" value=""/>
- <option name="dbuser" value=""/>
+
+<!-- Database configuration ***************************************************
+ Uncomment one of the following parts according to the database backend you
+ would like to use.
+-->
+
+<!--
+ SQLite specific configuration.
+
+ sqlite_database: name and path to the sqlite database file
+ optional, default="tmw.db"
+-->
+<!-- <option name="sqlite_database" value="tmw.db"/> -->
+
+
+<!--
+ mySQL specific configuration.
+
+ mysql_hostname: ip or hostname of the database server
+ optional, default="localhost"
+ mysql_port: the port where the mysql server listens to
+ optional, default=3306
+ mysql_database: name of the installed database
+ optional, default="tmw"
+ mysql_username: name of the user to connect to the database server
+ optional, default="tmw"
+ mysql_password: password to use whith the mysql_username
+ optional, default="tmw"
+-->
+<!--
+<option name="mysql_hostname" value="localhost"/>
+<option name="mysql_port" value="3306"/>
+<option name="mysql_database" value="tmw"/>
+<option name="mysql_username" value="tmw"/>
+<option name="mysql_password" value="tmw"/>
+-->
+
+
+<!--
+ PostgreSQL specific configuration.
+
+ TODO!
+-->
+
+<!-- end of database configuration *************************************** -->
<!--
New player starting location. The map should be defined in data/maps.xml.