Skip to content

Instantly share code, notes, and snippets.

@bshambaugh
Created April 3, 2018 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bshambaugh/651cf6888e8184f5bde091b331b08b8a to your computer and use it in GitHub Desktop.
Save bshambaugh/651cf6888e8184f5bde091b331b08b8a to your computer and use it in GitHub Desktop.
loading a basic configuration...
BaseConfiguration conf = new BaseConfiguration();
conf.setProperty("jdbc.url", "jdbc:postgresql://localhost:5432/yourdb");
conf.setProperty("jdbc.username", "postgres");
conf.setProperty("jdbc.password", "password");
System.out.println(conf.getString("jdbc.url"));
System.out.println(conf.getString("jdbc.username"));
System.out.println(conf.getString("jdbc.password"));
Graph g = SqlgGraph.open(conf); /// this line gives an error because Configuration rather
/// than BasicConfiguration is expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment