Interface Database
public interface Database
FlectonePulse's connection to its storage backend.
-
Method Details
-
config
Config.Database config()- Returns:
- the database section of the configuration
-
connect
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
-