Package xyz.block.ftl

Class Database

  • All Implemented Interfaces:

    
    public final class Database
    
                        

    Database is a simple wrapper around the JDBC driver manager that provides a connection to the database specified by the FTL_POSTGRES_DSN_<moduleName>_<dbName> environment variable.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Database(String name)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final <R extends Any> R conn(Function1<Connection, R> block)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait