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
e039d95e
Commit
e039d95e
authored
Jun 09, 2020
by
Rafael Troilo
Browse files
update README.md
parent
36a34271
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e039d95e
...
...
@@ -4,11 +4,11 @@ Simple oshdb database driver for opening a connection to ignite or h2 instances.
## Usage:
```
java
Map
<
String
,
String
>
props
=
new
HashMap
<>
();
Properties
props
=
new
Properties
();
//props.put("oshdb", "h2:PATH_TO_H2");
props
.
put
(
"oshdb"
,
"ignite:PATH_TO_CFG"
);
props
.
put
(
"prefix"
,
"global"
);
props
.
put
(
"keytable"
,
"jdbc:postgresql://localhost/keytables-${prefix}?user=ohsome&password=secret"
);
props
.
setProperty
(
"oshdb"
,
"ignite:PATH_TO_CFG"
);
props
.
setProperty
(
"prefix"
,
"global"
);
props
.
setProperty
(
"keytable"
,
"jdbc:postgresql://localhost/keytables-${prefix}?user=ohsome&password=secret"
);
OSHDBDriver
.
connect
(
props
,
oshdb
->
{
try
{
...
...
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