Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. /*
  2. * [REQUIRED] Database configuration.
  3. *
  4. * This section is used to configure databases used by Anope.
  5. * You should at least load one database method, otherwise any data you
  6. * have will not be stored!
  7. */
  8.  
  9. /*
  10. * [DEPRECATED] db_old
  11. *
  12. * This is the old binary database format from late Anope 1.7.x, Anope 1.8.x, and
  13. * early Anope 1.9.x. This module only loads these databases, and will NOT save them.
  14. * You should only use this to upgrade old databases to a newer database format by loading
  15. * other database modules in addition to this one, which will be used when saving databases.
  16. */
  17.  
  18. module { name = "m_sqlite" }
  19. sqlite
  20. {
  21. /* The name of this service */
  22. name = "sqlite/main"
  23. /* The database name, it will be created if it does not exist. */
  24. database = "sqlite.db"
  25. }
  26.  
  27. module { name = "db_old" }
  28. db_old
  29. {
  30. /*
  31. * This is the encryption type used by the databases. This must be set correctly or
  32. * your passwords will not work. Valid options are: md5, oldmd5, sha1, and plain.
  33. */
  34. #hash = "md5"
  35. }
  36.  
  37. /*
  38. * m_sqlite
  39. *
  40. * This module allows other modules to use SQLite.
  41. */
  42.  
  43. /*
  44. * [DEPRECATED] db_plain
  45. *
  46. * This is the flatfile database format from Anope-1.9.2 to Anope-1.9.5.
  47. * To convert from this format, load both this and db_flatfile. Be sure to name db_flatfile's
  48. * target database to something else. Start Anope then shut down so the new database will be written.
  49. * Then unload this and restart Anope, loading from the new database.
  50. */
  51.  
  52. module { name = "db_plain" }
  53. db_plain
  54. {
  55. /*
  56. * The database name db_plain should use
  57. */
  58. database = "db_plain.db"
  59. }
  60.  
  61. /*
  62. * db_flatfile
  63. *
  64. * This is the default flatfile database format.
  65. */
  66.  
  67. module { name = "db_flatfile" }
  68. db_flatfile
  69. {
  70. /*
  71. * The database name db_flatfile should use
  72. */
  73. database = "db_flatfile.db"
  74. }
  75.  
  76. /*
  77. * db_sql
  78. *
  79. * This module allows saving and loading databases using one of the SQL engines.
  80. *
  81. * WARNING: This module will delete every table in the database it uses. Be sure
  82. * to put Anope in its own separate database.
  83. */
  84.  
  85. /*
  86. * db_sql_live_read, db_sql_live_write
  87. *
  88. * Enables (live) SQL support.
  89. *
  90. * The db_sql_live modules are an extension to db_sql, and should only be used if
  91. * db_sql is being used.
  92. *
  93. * The db_sql_live_read module pulls data in real time from
  94. * SQL as it is needed by the core.
  95. * At this time this supports the three main tables: ChannelInfo, NickAlias, and NickCore.
  96. *
  97. * The db_sql_live_write module writes data to SQL in real time as it is modified by
  98. * the core.
  99. *
  100. */
  101. #module { name = "db_sql_live_read" }
  102. #module { name = "db_sql_live_write" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement