X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=blobdiff_plain;f=docs%2Fbefore_begin.rst;h=adc1a2c084692528e4837827f30d07fdbcf2a296;hp=d7521e0d17a2517c55f5626fc7e9ae05895729a0;hb=8cfaf304abebc78dbb7715505f40771dc89bae43;hpb=73bc43ecf69a473464909ef1b4d2236c60fcb1bb diff --git a/docs/before_begin.rst b/docs/before_begin.rst index d7521e0..adc1a2c 100644 --- a/docs/before_begin.rst +++ b/docs/before_begin.rst @@ -33,5 +33,27 @@ to use an SQL server you must create a database yourself. For SQLite, the database file will be created by the program, so it's the simplest way of using m_Librarian. +Database URI +^^^^^^^^^^^^ + +For m_Librarian to use an SQL server create a configuration file and put +it in $HOME/.config/ (if your OS is POSIX-compatible). Name the +configuration file ``m_librarian.conf``. It must be in ``ini``-file +format and must have the only section ``[database]`` with the only key +``URI``. The value for the key must be a Database URI in format accepted +by SQLObject. Some examples:: + + [database] + URI = mysql://user:password@host/database + + [database] + URI = postgres://user@host/database + + [database] + URI = sqlite:///full/path/to/database + +See some more examples in sample/m_librarian.conf. See detailed +description for DB URIs in `SQLObject documentation +`_. .. vim: set tw=72 :