Interface Database


public interface Database
FlectonePulse's connection to its storage backend.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Opens the connection pool and migrates the schema if needed.
    void
    Closes the connection pool.
    void
    Creates the tables if they are missing.
    boolean
     
  • Method Details

    • config

      Config.Database config()
      Returns:
      the database section of the configuration
    • connect

      void connect() throws IOException
      Opens the connection pool and migrates the schema if needed.
      Throws:
      IOException - if the connection or migration fails
    • init

      void init()
      Creates the tables if they are missing.
    • disconnect

      void disconnect()
      Closes the connection pool.
    • isClosed

      boolean isClosed()
      Returns:
      true if the pool is closed or was never opened