Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import bhgomes.jaql.*;
  2.  
  3. public class MakeDatabase {
  4. public static void main(String[] args) {
  5. // Method 1
  6. Database db1 = JAQL.open("db1", JAQL.SQLITE_DRIVER, "jdbc:sqlite:db1.db");
  7. db1.info("Built a Database with JAQL convenience class");
  8.  
  9. // Method 2
  10. Database db2 = new Database("db2").open(JAQL.SQLITE_DRIVER, "jdbc:sqlite:db1.db");
  11. db2.info("Built a Database using the Database JAQL Object");
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement