Class DbManager

java.lang.Object
com.storytimeproductions.stweaks.util.DbManager

public class DbManager extends Object
Manages connection and setup for the SQLite database used to store player playtime.
  • Constructor Details

    • DbManager

      public DbManager()
  • Method Details

    • connect

      public void connect()
      Establishes a connection to the SQLite database and creates the playtime table if it doesn't exist.
    • getConnection

      public Connection getConnection()
      Gets the current database connection.
      Returns:
      The active Connection object.
    • disconnect

      public void disconnect()
      Closes the database connection if it is open.