Package io.trino.tests.product.utils
Class JdbcDriverUtils
java.lang.Object
io.trino.tests.product.utils.JdbcDriverUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
setRole
- Throws:
SQLException
-
getSessionProperty
- 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
- Throws:
SQLException
-