Package io.trino.tests.utils
Class JdbcDriverUtils
- java.lang.Object
-
- io.trino.tests.utils.JdbcDriverUtils
-
public final class JdbcDriverUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetSessionProperty(Connection connection, String key)static StringgetSessionPropertyDefault(Connection connection, String key)static voidresetSessionProperty(Connection connection, String key)static voidsetRole(Connection connection, String role)static voidsetSessionProperty(Connection connection, String key, String value)
-
-
-
Method Detail
-
setRole
public static void setRole(Connection connection, String role) throws SQLException
- Throws:
SQLException
-
getSessionProperty
public static String getSessionProperty(Connection connection, String key) throws SQLException
- Throws:
SQLException
-
getSessionPropertyDefault
public static String getSessionPropertyDefault(Connection connection, String key) throws SQLException
- Throws:
SQLException
-
setSessionProperty
public static void setSessionProperty(Connection connection, String key, String value) throws SQLException
- Throws:
SQLException
-
resetSessionProperty
public static void resetSessionProperty(Connection connection, String key) throws SQLException
- Throws:
SQLException
-
-