Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
big-data
ohsome
helpers
oshdb database driver
Commits
c19e8894
Verified
Commit
c19e8894
authored
Feb 25, 2020
by
Martin Raifer
Browse files
put example code from javadoc into code block
parent
b7f2b6f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/heigit/ohsome/oshdb/helpers/OSHDBDriver.java
View file @
c19e8894
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment