Class PgServiceConfParser


  • public class PgServiceConfParser
    extends java.lang.Object
    helps to read Connection Service File. https://www.postgresql.org/docs/current/libpq-pgservice.html
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Properties getServiceProperties​(java.lang.String serviceName)
      Read pg_service.conf resource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getServiceProperties

        public static java.util.Properties getServiceProperties​(java.lang.String serviceName)
        Read pg_service.conf resource
        Parameters:
        serviceName - service name to search for
        Returns:
        key value pairs