@groovy.util.logging.Slf4j class Snowflake extends java.lang.Object
A class that manages connecting to Snowflake, as well as providing information about that connection. Used by core plugin tasks as well as the SnowflakeSpec specification.
Type | Name and description |
---|---|
java.lang.String |
connectionDatabase The connection database in case it wasn't in the connection. |
java.lang.String |
connectionRole The connection role in case it wasn't in the connection. |
java.lang.String |
connectionSchema The connection schema in case it wasn't in the connection. |
java.lang.String |
ephemeralName The ephemeral Snowflake clone name. |
com.snowflake.snowpark_java.Session |
session The Snowpark session. |
SnowConfig |
snowConfig SnowConfig object. |
Constructor and description |
---|
Snowflake
() Empty constructor for use in the Gradle project. |
Snowflake
(java.lang.String connection) Constructor using auto-detected credentials config file. |
Snowflake
(java.io.File config, java.lang.String connection) Constructor using explicit credentials config file as a File object. |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
getScalarValue(java.lang.String sql) Return the first column from the first row of a SELECT statement. |
|
java.lang.Boolean |
hasSession() Determines whether a session exists. |
|
java.lang.Boolean |
isUsingEphemeral() Whether an ephemeral clone is in use. |
|
java.lang.Object |
setEphemeralContext() Set ephemeral context in the Snowflake session. |
|
java.lang.Object |
setOriginalContext() Set original connection context in the Snowflake session. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The connection database in case it wasn't in the connection.
The connection role in case it wasn't in the connection.
The connection schema in case it wasn't in the connection.
The ephemeral Snowflake clone name.
The Snowpark session.
SnowConfig object.
Empty constructor for use in the Gradle project.
Constructor using auto-detected credentials config file.
Constructor using explicit credentials config file as a File object.
Return the first column from the first row of a SELECT statement.
Determines whether a session exists.
Whether an ephemeral clone is in use.
Set ephemeral context in the Snowflake session.
Set original connection context in the Snowflake session.
Groovy Documentation