Guest User

Untitled

a guest
Apr 11th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. BaseConfiguration conf = new BaseConfiguration();
  2. conf.setProperty("jdbc.url", "jdbc:postgresql://localhost:5432/yourdb");
  3. conf.setProperty("jdbc.username", "postgres");
  4. conf.setProperty("jdbc.password", "password");
  5.  
  6. System.out.println(conf.getString("jdbc.url"));
  7. System.out.println(conf.getString("jdbc.username"));
  8. System.out.println(conf.getString("jdbc.password"));
  9.  
  10. Graph g = SqlgGraph.open(conf); /// this line gives an error because Configuration rather
  11. /// than BasicConfiguration is expected
Add Comment
Please, Sign In to add comment