Create SQLite3 Database

Discussion in 'Plugin Development' started by mrkirby153, Jun 27, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    mrkirby153

    How do I create a SQLite 3 database? I don't really want to use SQLite 2 because it is missing some features from SQLite 3. Currently I am creating the database like this:
    Code:java
    1. dbPath = "jdbc:sqlite:" + plugin.getDataFolder().getAbsolutePath() + File.separator + "CraftShips.db";
    2. conn = DriverManager.getConnection(dbPath);
    3. st = conn.createStatement();
    And it creates a SQLite 2 database. I need it to be SQLite3. How can I change it to an sqlite3?
     
Thread Status:
Not open for further replies.

Share This Page