Created
April 3, 2018 21:07
-
-
Save bshambaugh/651cf6888e8184f5bde091b331b08b8a to your computer and use it in GitHub Desktop.
loading a basic configuration...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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