Package net.blockhost.commons.database.postgres
@NullMarked
package net.blockhost.commons.database.postgres
PostgreSQL database utilities for 6b6t plugins.
This package provides PostgreSQL-specific configuration with HikariCP
connection pooling. Use PostgresConfig in your plugin configuration
and convert to credentials for the core SQLManager.
Quick Start
// Using ConfigLib configuration
@Configuration
public class PluginConfig {
private PostgresConfig database = new PostgresConfig();
public PostgresConfig database() { return database; }
}
// Create SQLManager from config
SQLManager sqlManager = SQLManager.create(config.database())
.poolName("MyPlugin-Pool")
.logger(plugin.getLogger())
.build();
sqlManager.connect();
- See Also:
-
Classes