Verified Commit c19e8894 authored by Martin Raifer's avatar Martin Raifer
Browse files

put example code from javadoc into code block

parent b7f2b6f8
......@@ -34,12 +34,16 @@ import org.heigit.bigspatialdata.oshdb.util.tagtranslator.TagTranslator;
public class OSHDBDriver {
/** open connection to oshdb instance.
props example:
oshdb="ignite:Path_To_Config" \ "h2:Path_To_Database"
prefix="global"
keytable="jdbc:postgresql://IP_OR_URL/keytables\${prefix}?user=ohsome&password=secret"
#multithreading default false, only used by h2 connections
multithreading=true
*
* <p>props example:</p>
*
* <pre>{@code
* oshdb="ignite:Path_To_Config" \ "h2:Path_To_Database"
* prefix="global"
* keytable="jdbc:postgresql://IP_OR_URL/keytables\${prefix}?user=ohsome&password=secret"
* #multithreading default false, only used by h2 connections
* multithreading=true
* }</pre>
*/
public static void connect(Map<String, String> props, Consumer<OSHDBConnection> connect)
throws Exception {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment