db_mongodb_admin.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?xml version="1.0" encoding='ISO-8859-1'?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!-- Include general documentation entities -->
  5. <!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
  6. %docentities;
  7. ]>
  8. <!-- Module User's Guide -->
  9. <chapter>
  10. <title>&adminguide;</title>
  11. <section>
  12. <title>Overview</title>
  13. <para>
  14. This module provides DB APIv1 connector for MongoDB NoSQL server.
  15. </para>
  16. <para>
  17. It can be used as a replacement for other database modules such as
  18. db_mysql, db_postgres, a.s.o. Not all the specs of DB APIv1 are
  19. implemented, thus the usage of this module might be restricted to
  20. specific modules.
  21. </para>
  22. <para>
  23. You can read more about MongoDB at:
  24. <ulink url="http://www.mongodb.org">http://www.mongodb.org</ulink>.
  25. </para>
  26. <section>
  27. <title>Limitations</title>
  28. <itemizedlist>
  29. <listitem>
  30. <para>
  31. This module has implemented INSERT, UPDATE and DELETE. Query
  32. (SELECT) is not yet storing the result.
  33. </para>
  34. </listitem>
  35. </itemizedlist>
  36. </section>
  37. </section>
  38. <section>
  39. <title>Dependencies</title>
  40. <section>
  41. <title>&kamailio; Modules</title>
  42. <para>
  43. The following modules must be loaded before this module:
  44. <itemizedlist>
  45. <listitem>
  46. <para>
  47. <emphasis>none</emphasis>.
  48. </para>
  49. </listitem>
  50. </itemizedlist>
  51. </para>
  52. </section>
  53. <section>
  54. <title>External Libraries or Applications</title>
  55. <para>
  56. The following libraries or applications must be installed before running
  57. &kamailio; with this module loaded:
  58. <itemizedlist>
  59. <listitem>
  60. <para>
  61. <emphasis>mongo-c-driver</emphasis> - available at
  62. <ulink url="https://github.com/mongodb/mongo-c-driver">https://github.com/mongodb/mongo-c-driver</ulink>
  63. </para>
  64. </listitem>
  65. </itemizedlist>
  66. </para>
  67. </section>
  68. </section>
  69. <section>
  70. <title>Usage</title>
  71. <para>
  72. Load the module and set the the DB URL for specific modules to:
  73. mongodb://username:password@host:port/database. Username, password
  74. and port are optional.
  75. </para>
  76. <example>
  77. <title>Usage</title>
  78. <programlisting format="linespecific">
  79. ...
  80. loadmodule "db_mongodb.so"
  81. ...
  82. #!define DBURL "mongodb://localhost/kamailio"
  83. modparam("acc", "db_url", DBURL)
  84. ...
  85. </programlisting>
  86. </example>
  87. </section>
  88. </chapter>