![]() ![]() Properties props = new Properties () props. Spaces are considered to separate command-line arguments, unless escaped with a backslash ( \ ) \\ represents a literal backslash. The value of this property may contain spaces or other special characters, and it should be properly encoded if provided in the connection URL. See Client Connection Defaults for details. For example setting this to -c statement_timeout=5min would set the statement timeout parameter for this session to 5 minutes. Specify ‘options’ connection initialization parameter sent to the PostgreSQL server. The database user on whose behalf the connection is being made. ![]() getConnection ( url, props ) String url = "jdbc:postgresql://localhost/test?user=fred
0 Comments
Leave a Reply. |