summaryrefslogtreecommitdiff
path: root/data/example.conf
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-04-27 15:38:50 -0400
committerAdam <Adam@anope.org>2012-04-27 15:38:50 -0400
commit5068483cb917ba1c8ed3a0d20f7bfcb996f0aa3e (patch)
treecf2bf4096b72f68b595a3bbe9d0e75d34ad2641d /data/example.conf
parent83ee20fc2910e9ea0cac250e767d20f17576d98a (diff)
Add db_sql:prefix allow prefixing all anope tables similarly, and changed db_sql to update the databases incrementally instead of one big flush
Diffstat (limited to 'data/example.conf')
-rw-r--r--data/example.conf13
1 files changed, 9 insertions, 4 deletions
diff --git a/data/example.conf b/data/example.conf
index e27067e9a..3b8fc6628 100644
--- a/data/example.conf
+++ b/data/example.conf
@@ -1091,11 +1091,10 @@ db_flatfile
* db_sql
*
* This module allows saving and loading databases using one of the SQL engines.
- * This module does not use any real time reading or writing to SQL. Changes to
- * the SQL tables not done by Anope will have no effect and will be overwritten.
+ * This module loads the databases once on startup, then incrementally updates
+ * objects in the database as they are changed within Anope in real time. Changes
+ * to the SQL tables not done by Anope will have no effect and will be overwritten.
*
- * WARNING: This module will delete every table in the database it uses. Be sure
- * to put Anope in its own separate database.
*/
#module { name = "db_sql" }
@@ -1116,6 +1115,12 @@ db_sql
* For MySQL, this should probably be mysql/main.
*/
engine = "sqlite/main"
+
+ /*
+ * An optional prefix to prepended to the name of each created table.
+ * Do not use the same prefix for other programs.
+ */
+ #prefix = "anope_db_"
}
/*