SYMBOL INDEX (3380 symbols across 214 files) FILE: aaa_test.go function TestShowServerVersion (line 7) | func TestShowServerVersion(t *testing.T) { FILE: arrow_chunk.go type arrowResultChunk (line 15) | type arrowResultChunk struct method decodeArrowChunk (line 22) | func (arc *arrowResultChunk) decodeArrowChunk(ctx context.Context, row... method decodeArrowBatchRaw (line 59) | func (arc *arrowResultChunk) decodeArrowBatchRaw() (*[]arrow.Record, e... function buildFirstArrowChunk (line 73) | func buildFirstArrowChunk(rowsetBase64 string, loc *time.Location, alloc... FILE: arrow_stream.go type ArrowStreamLoader (line 28) | type ArrowStreamLoader interface type ArrowStreamBatch (line 40) | type ArrowStreamBatch struct method NumRows (line 50) | func (asb *ArrowStreamBatch) NumRows() int64 { return asb.numrows } method GetStream (line 55) | func (asb *ArrowStreamBatch) GetStream(ctx context.Context) (io.ReadCl... method downloadChunkStreamHelper (line 79) | func (asb *ArrowStreamBatch) downloadChunkStreamHelper(ctx context.Con... type streamWrapReader (line 65) | type streamWrapReader struct method Close (line 70) | func (w *streamWrapReader) Close() error { type snowflakeArrowStreamChunkDownloader (line 133) | type snowflakeArrowStreamChunkDownloader struct method Location (line 144) | func (scd *snowflakeArrowStreamChunkDownloader) Location() *time.Locat... method TotalRows (line 151) | func (scd *snowflakeArrowStreamChunkDownloader) TotalRows() int64 { re... method RowTypes (line 153) | func (scd *snowflakeArrowStreamChunkDownloader) RowTypes() []query.Exe... method JSONData (line 157) | func (scd *snowflakeArrowStreamChunkDownloader) JSONData() [][]*string { method maybeFirstBatch (line 161) | func (scd *snowflakeArrowStreamChunkDownloader) maybeFirstBatch() ([]b... method GetBatches (line 182) | func (scd *snowflakeArrowStreamChunkDownloader) GetBatches() (out []Ar... method NextResultSet (line 219) | func (scd *snowflakeArrowStreamChunkDownloader) NextResultSet(ctx cont... method hasNextResultSet (line 254) | func (scd *snowflakeArrowStreamChunkDownloader) hasNextResultSet() bool { FILE: arrow_test.go function TestArrowBatchDataProvider (line 19) | func TestArrowBatchDataProvider(t *testing.T) { function TestArrowBigInt (line 60) | func TestArrowBigInt(t *testing.T) { function TestArrowBigFloat (line 98) | func TestArrowBigFloat(t *testing.T) { function TestArrowIntPrecision (line 138) | func TestArrowIntPrecision(t *testing.T) { function TestArrowFloatPrecision (line 230) | func TestArrowFloatPrecision(t *testing.T) { function TestArrowTimePrecision (line 360) | func TestArrowTimePrecision(t *testing.T) { function TestArrowVariousTypes (line 449) | func TestArrowVariousTypes(t *testing.T) { function TestArrowMemoryCleanedUp (line 556) | func TestArrowMemoryCleanedUp(t *testing.T) { FILE: arrowbatches/batches.go type ArrowBatch (line 18) | type ArrowBatch struct method WithContext (line 26) | func (rb *ArrowBatch) WithContext(ctx context.Context) *ArrowBatch { method Fetch (line 33) | func (rb *ArrowBatch) Fetch() (*[]arrow.Record, error) { method GetRowCount (line 76) | func (rb *ArrowBatch) GetRowCount() int { method GetLocation (line 81) | func (rb *ArrowBatch) GetLocation() *time.Location { method GetRowTypes (line 86) | func (rb *ArrowBatch) GetRowTypes() []query.ExecResponseRowType { method ArrowSnowflakeTimestampToTime (line 91) | func (rb *ArrowBatch) ArrowSnowflakeTimestampToTime(rec arrow.Record, ... method GetAllocator (line 133) | func (rb *ArrowBatch) GetAllocator() memory.Allocator { function GetArrowBatches (line 99) | func GetArrowBatches(rows sf.SnowflakeRows) ([]*ArrowBatch, error) { function countArrowBatchRows (line 125) | func countArrowBatchRows(recs *[]arrow.Record) (cnt int) { FILE: arrowbatches/batches_test.go type testConn (line 30) | type testConn struct method close (line 140) | func (tc *testConn) close() { method queryRows (line 147) | func (tc *testConn) queryRows(ctx context.Context, t *testing.T, query... function repoRoot (line 37) | func repoRoot(t *testing.T) string { function readPrivateKey (line 61) | func readPrivateKey(t *testing.T, path string) *rsa.PrivateKey { function testConfig (line 85) | func testConfig(t *testing.T) *sf.Config { function openTestConn (line 121) | func openTestConn(ctx context.Context, t *testing.T) *testConn { function queryRawRows (line 172) | func queryRawRows(ctx context.Context, t *testing.T, query string) (sf.S... function TestGetArrowBatches (line 182) | func TestGetArrowBatches(t *testing.T) { function TestGetArrowBatchesHighPrecision (line 215) | func TestGetArrowBatchesHighPrecision(t *testing.T) { function TestGetArrowBatchesLargeResultSet (line 247) | func TestGetArrowBatchesLargeResultSet(t *testing.T) { function TestGetArrowBatchesWithTimestampOption (line 305) | func TestGetArrowBatchesWithTimestampOption(t *testing.T) { function TestGetArrowBatchesJSONResponseError (line 341) | func TestGetArrowBatchesJSONResponseError(t *testing.T) { function TestTimestampConversionDistantDates (line 406) | func TestTimestampConversionDistantDates(t *testing.T) { function TestTimestampConversionWithOriginalTimestamp (line 502) | func TestTimestampConversionWithOriginalTimestamp(t *testing.T) { FILE: arrowbatches/context.go constant UseNanosecondTimestamp (line 11) | UseNanosecondTimestamp = ia.UseNanosecondTimestamp constant UseMicrosecondTimestamp (line 12) | UseMicrosecondTimestamp = ia.UseMicrosecondTimestamp constant UseMillisecondTimestamp (line 13) | UseMillisecondTimestamp = ia.UseMillisecondTimestamp constant UseSecondTimestamp (line 14) | UseSecondTimestamp = ia.UseSecondTimestamp constant UseOriginalTimestamp (line 15) | UseOriginalTimestamp = ia.UseOriginalTimestamp function WithArrowBatches (line 19) | func WithArrowBatches(ctx context.Context) context.Context { function WithTimestampOption (line 25) | func WithTimestampOption(ctx context.Context, option ia.TimestampOption)... function WithUtf8Validation (line 31) | func WithUtf8Validation(ctx context.Context) context.Context { FILE: arrowbatches/converter.go function arrowToRecord (line 26) | func arrowToRecord(ctx context.Context, record arrow.Record, pool memory... function arrowToRecordSingleColumn (line 53) | func arrowToRecordSingleColumn(ctx context.Context, field arrow.Field, c... function arrowStringRecordToColumn (line 219) | func arrowStringRecordToColumn( function intToBigFloat (line 247) | func intToBigFloat(val int64, scale int64) *big.Float { function ArrowSnowflakeTimestampToTime (line 254) | func ArrowSnowflakeTimestampToTime( function extractEpoch (line 312) | func extractEpoch(value int64, scale int) int64 { function extractFraction (line 316) | func extractFraction(value int64, scale int) int64 { FILE: arrowbatches/converter_test.go function stringIntToDecimal (line 23) | func stringIntToDecimal(src string) (decimal128.Num, bool) { function decimalToBigInt (line 33) | func decimalToBigInt(num decimal128.Num) *big.Int { function TestArrowToRecord (line 39) | func TestArrowToRecord(t *testing.T) { FILE: arrowbatches/schema.go function recordToSchema (line 13) | func recordToSchema(sc *arrow.Schema, rowType []query.ExecResponseRowTyp... function recordToSchemaRecursive (line 19) | func recordToSchemaRecursive(inFields []arrow.Field, rowType []query.Exe... function recordToSchemaSingleField (line 39) | func recordToSchemaSingleField(fieldMetadata query.FieldMetadata, f arro... FILE: assert_test.go function assertNilE (line 16) | func assertNilE(t *testing.T, actual any, descriptions ...string) { function assertNilF (line 21) | func assertNilF(t *testing.T, actual any, descriptions ...string) { function assertNotNilE (line 26) | func assertNotNilE(t *testing.T, actual any, descriptions ...string) { function assertNotNilF (line 31) | func assertNotNilF(t *testing.T, actual any, descriptions ...string) { function assertErrIsF (line 36) | func assertErrIsF(t *testing.T, actual, expected error, descriptions ...... function assertErrIsE (line 41) | func assertErrIsE(t *testing.T, actual, expected error, descriptions ...... function assertErrorsAsF (line 46) | func assertErrorsAsF(t *testing.T, err error, target any, descriptions .... function assertEqualE (line 51) | func assertEqualE(t *testing.T, actual any, expected any, descriptions .... function assertEqualF (line 56) | func assertEqualF(t *testing.T, actual any, expected any, descriptions .... function assertEqualIgnoringWhitespaceE (line 61) | func assertEqualIgnoringWhitespaceE(t *testing.T, actual string, expecte... function assertEqualEpsilonE (line 66) | func assertEqualEpsilonE(t *testing.T, actual, expected, epsilon float64... function assertDeepEqualE (line 71) | func assertDeepEqualE(t *testing.T, actual any, expected any, descriptio... function assertNotEqualF (line 76) | func assertNotEqualF(t *testing.T, actual any, expected any, description... function assertNotEqualE (line 81) | func assertNotEqualE(t *testing.T, actual any, expected any, description... function assertBytesEqualE (line 86) | func assertBytesEqualE(t *testing.T, actual []byte, expected []byte, des... function assertTrueF (line 91) | func assertTrueF(t *testing.T, actual bool, descriptions ...string) { function assertTrueE (line 96) | func assertTrueE(t *testing.T, actual bool, descriptions ...string) { function assertFalseF (line 101) | func assertFalseF(t *testing.T, actual bool, descriptions ...string) { function assertFalseE (line 106) | func assertFalseE(t *testing.T, actual bool, descriptions ...string) { function assertStringContainsE (line 111) | func assertStringContainsE(t *testing.T, actual string, expectedToContai... function assertStringContainsF (line 116) | func assertStringContainsF(t *testing.T, actual string, expectedToContai... function assertEmptyStringE (line 121) | func assertEmptyStringE(t *testing.T, actual string, descriptions ...str... function assertHasPrefixF (line 126) | func assertHasPrefixF(t *testing.T, actual string, expectedPrefix string... function assertHasPrefixE (line 131) | func assertHasPrefixE(t *testing.T, actual string, expectedPrefix string... function assertBetweenE (line 136) | func assertBetweenE(t *testing.T, value float64, min float64, max float6... function assertBetweenInclusiveE (line 141) | func assertBetweenInclusiveE(t *testing.T, value float64, min float64, m... function assertEmptyE (line 146) | func assertEmptyE[T any](t *testing.T, actual []T, descriptions ...strin... function fatalOnNonEmpty (line 151) | func fatalOnNonEmpty(t *testing.T, errMsg string) { function errorOnNonEmpty (line 158) | func errorOnNonEmpty(t *testing.T, errMsg string) { function formatErrorMessage (line 165) | func formatErrorMessage(errMsg string) string { function validateNil (line 169) | func validateNil(actual any, descriptions ...string) string { function validateNotNil (line 177) | func validateNotNil(actual any, descriptions ...string) string { function validateErrIs (line 185) | func validateErrIs(actual, expected error, descriptions ...string) string { function validateErrorsAs (line 201) | func validateErrorsAs(err error, target any, descriptions ...string) str... function validateEqual (line 214) | func validateEqual(actual any, expected any, descriptions ...string) str... function removeWhitespaces (line 225) | func removeWhitespaces(s string) string { function validateEqualIgnoringWhitespace (line 233) | func validateEqualIgnoringWhitespace(actual string, expected string, des... function validateEqualEpsilon (line 244) | func validateEqualEpsilon(actual, expected, epsilon float64, description... function validateDeepEqual (line 251) | func validateDeepEqual(actual any, expected any, descriptions ...string)... function validateNotEqual (line 262) | func validateNotEqual(actual any, expected any, descriptions ...string) ... function validateBytesEqual (line 273) | func validateBytesEqual(actual []byte, expected []byte, descriptions ...... function validateStringContains (line 284) | func validateStringContains(actual string, expectedToContain string, des... function validateEmptyString (line 295) | func validateEmptyString(actual string, descriptions ...string) string { function validateHasPrefix (line 303) | func validateHasPrefix(actual string, expectedPrefix string, description... function validateValueBetween (line 314) | func validateValueBetween(value float64, min float64, max float64, descr... function validateValueBetweenInclusive (line 326) | func validateValueBetweenInclusive(value float64, min float64, max float... function validateEmpty (line 338) | func validateEmpty[T any](value []T, descriptions ...string) string { function joinDescriptions (line 346) | func joinDescriptions(descriptions ...string) string { function isNil (line 350) | func isNil(value any) bool { FILE: async.go method processAsync (line 11) | func (sr *snowflakeRestful) processAsync( method getAsync (line 49) | func (sr *snowflakeRestful) getAsync( function getQueryResultWithRetriesForAsyncMode (line 141) | func getQueryResultWithRetriesForAsyncMode( FILE: async_test.go function TestAsyncMode (line 10) | func TestAsyncMode(t *testing.T) { function TestAsyncModePing (line 46) | func TestAsyncModePing(t *testing.T) { function TestAsyncModeMultiStatement (line 62) | func TestAsyncModeMultiStatement(t *testing.T) { function TestAsyncModeCancel (line 89) | func TestAsyncModeCancel(t *testing.T) { function TestAsyncQueryFail (line 100) | func TestAsyncQueryFail(t *testing.T) { function TestMultipleAsyncQueries (line 119) | func TestMultipleAsyncQueries(t *testing.T) { function retrieveRows (line 153) | func retrieveRows(rows *sql.Rows, ch chan string) { function TestLongRunningAsyncQuery (line 170) | func TestLongRunningAsyncQuery(t *testing.T) { function TestLongRunningAsyncQueryFetchResultByID (line 201) | func TestLongRunningAsyncQueryFetchResultByID(t *testing.T) { FILE: auth.go constant clientType (line 30) | clientType = "Go" constant clientStoreTemporaryCredential (line 34) | clientStoreTemporaryCredential = "CLIENT_STORE_TEMPORARY_CREDENTIAL" constant clientRequestMfaToken (line 35) | clientRequestMfaToken = "CLIENT_REQUEST_MFA_TOKEN" constant idTokenAuthenticator (line 36) | idTokenAuthenticator = "ID_TOKEN" constant AuthTypeSnowflake (line 44) | AuthTypeSnowflake = sfconfig.AuthTypeSnowflake constant AuthTypeOAuth (line 46) | AuthTypeOAuth = sfconfig.AuthTypeOAuth constant AuthTypeExternalBrowser (line 48) | AuthTypeExternalBrowser = sfconfig.AuthTypeExternalBrowser constant AuthTypeOkta (line 50) | AuthTypeOkta = sfconfig.AuthTypeOkta constant AuthTypeJwt (line 52) | AuthTypeJwt = sfconfig.AuthTypeJwt constant AuthTypeTokenAccessor (line 54) | AuthTypeTokenAccessor = sfconfig.AuthTypeTokenAccessor constant AuthTypeUsernamePasswordMFA (line 56) | AuthTypeUsernamePasswordMFA = sfconfig.AuthTypeUsernamePasswordMFA constant AuthTypePat (line 58) | AuthTypePat = sfconfig.AuthTypePat constant AuthTypeOAuthAuthorizationCode (line 60) | AuthTypeOAuthAuthorizationCode = sfconfig.AuthTypeOAuthAuthorizationCode constant AuthTypeOAuthClientCredentials (line 62) | AuthTypeOAuthClientCredentials = sfconfig.AuthTypeOAuthClientCredentials constant AuthTypeWorkloadIdentityFederation (line 64) | AuthTypeWorkloadIdentityFederation = sfconfig.AuthTypeWorkloadIdentityFe... function isOauthNativeFlow (line 67) | func isOauthNativeFlow(authType AuthType) bool { type authRequestClientEnvironment (line 86) | type authRequestClientEnvironment struct type authRequestData (line 107) | type authRequestData struct type authRequest (line 125) | type authRequest struct type nameValueParameter (line 129) | type nameValueParameter struct type authResponseSessionInfo (line 134) | type authResponseSessionInfo struct type authResponseMain (line 141) | type authResponseMain struct type authResponse (line 165) | type authResponse struct function postAuth (line 172) | func postAuth( function getHeaders (line 239) | func getHeaders() map[string]string { function authenticate (line 250) | func authenticate( function newAuthRequestClientEnvironment (line 369) | func newAuthRequestClientEnvironment() authRequestClientEnvironment { function createRequestBody (line 419) | func createRequestBody(sc *snowflakeConn, sessionParameters map[string]any, type oauthLockKey (line 551) | type oauthLockKey struct method lockID (line 573) | func (o *oauthLockKey) lockID() string { function newOAuthAuthorizationCodeLockKey (line 557) | func newOAuthAuthorizationCodeLockKey(tokenRequestURL, user string) *oau... function newRefreshTokenLockKey (line 565) | func newRefreshTokenLockKey(tokenRequestURL, user string) *oauthLockKey { function authenticateByAuthorizationCode (line 577) | func authenticateByAuthorizationCode(sc *snowflakeConn) (string, error) { function prepareJWTToken (line 608) | func prepareJWTToken(config *Config) (string, error) { type tokenLockKey (line 642) | type tokenLockKey struct method lockID (line 664) | func (m *tokenLockKey) lockID() string { function newMfaTokenLockKey (line 648) | func newMfaTokenLockKey(snowflakeHost, user string) *tokenLockKey { function newIDTokenLockKey (line 656) | func newIDTokenLockKey(snowflakeHost, user string) *tokenLockKey { function authenticateWithConfig (line 668) | func authenticateWithConfig(sc *snowflakeConn) error { function doRefreshTokenWithLock (line 779) | func doRefreshTokenWithLock(sc *snowflakeConn) { function chooseLockerForAuth (line 797) | func chooseLockerForAuth(cfg *Config) locker { function isEligibleForParallelLogin (line 807) | func isEligibleForParallelLogin(cfg *Config, cacheEnabled ConfigBool) bo... FILE: auth_generic_test_methods_test.go function getAuthTestConfigFromEnv (line 9) | func getAuthTestConfigFromEnv() (*Config, error) { function getAuthTestsConfig (line 22) | func getAuthTestsConfig(t *testing.T, authMethod AuthType) (*Config, err... function isTestRunningInDockerContainer (line 31) | func isTestRunningInDockerContainer() bool { FILE: auth_oauth.go constant oauthSuccessHTML (line 25) | oauthSuccessHTML = `
constant localApplicationClientCredentials (line 30) | localApplicationClientCredentials = "LOCAL_APPLICATION" type oauthClient (line 37) | type oauthClient struct method authenticateByOAuthAuthorizationCode (line 93) | func (oauthClient *oauthClient) authenticateByOAuthAuthorizationCode()... method doAuthenticateByOAuthAuthorizationCode (line 133) | func (oauthClient *oauthClient) doAuthenticateByOAuthAuthorizationCode... method setupListener (line 187) | func (oauthClient *oauthClient) setupListener() (*net.TCPListener, int... method exchangeAccessToken (line 197) | func (oauthClient *oauthClient) exchangeAccessToken(codeReq *http.Requ... method buildAuthorizationCodeConfig (line 228) | func (oauthClient *oauthClient) buildAuthorizationCodeConfig(callbackP... method eligibleForDefaultClientCredentials (line 247) | func (oauthClient *oauthClient) eligibleForDefaultClientCredentials() ... method isSnowflakeAsIDP (line 251) | func (oauthClient *oauthClient) isSnowflakeAsIDP() bool { method authorizationURL (line 256) | func (oauthClient *oauthClient) authorizationURL() string { method defaultAuthorizationURL (line 260) | func (oauthClient *oauthClient) defaultAuthorizationURL() string { method tokenURL (line 264) | func (oauthClient *oauthClient) tokenURL() string { method defaultTokenURL (line 268) | func (oauthClient *oauthClient) defaultTokenURL() string { method buildRedirectURI (line 272) | func (oauthClient *oauthClient) buildRedirectURI(port int) string { method buildScopes (line 279) | func (oauthClient *oauthClient) buildScopes() []string { method authenticateByOAuthClientCredentials (line 354) | func (oauthClient *oauthClient) authenticateByOAuthClientCredentials()... method buildClientCredentialsConfig (line 375) | func (oauthClient *oauthClient) buildClientCredentialsConfig() (*clien... method refreshToken (line 387) | func (oauthClient *oauthClient) refreshToken() error { method accessTokenSpec (line 442) | func (oauthClient *oauthClient) accessTokenSpec() *secureTokenSpec { method refreshTokenSpec (line 446) | func (oauthClient *oauthClient) refreshTokenSpec() *secureTokenSpec { method logIfHTTPInUse (line 450) | func (oauthClient *oauthClient) logIfHTTPInUse(u string) { function newOauthClient (line 48) | func newOauthClient(ctx context.Context, cfg *Config, sc *snowflakeConn)... type oauthBrowserResult (line 87) | type oauthBrowserResult struct function handleOAuthSocket (line 290) | func handleOAuthSocket(tcpListener *net.TCPListener, successChan chan []... type authorizationCodeProvider (line 333) | type authorizationCodeProvider interface type browserBasedAuthorizationCodeProvider (line 339) | type browserBasedAuthorizationCodeProvider struct method run (line 342) | func (provider *browserBasedAuthorizationCodeProvider) run(authorizati... method createState (line 346) | func (provider *browserBasedAuthorizationCodeProvider) createState() s... method createCodeVerifier (line 350) | func (provider *browserBasedAuthorizationCodeProvider) createCodeVerif... type tokenExchangeResponseBody (line 437) | type tokenExchangeResponseBody struct FILE: auth_oauth_test.go function TestUnitOAuthAuthorizationCode (line 17) | func TestUnitOAuthAuthorizationCode(t *testing.T) { function TestUnitOAuthClientCredentials (line 167) | func TestUnitOAuthClientCredentials(t *testing.T) { function TestAuthorizationCodeFlow (line 260) | func TestAuthorizationCodeFlow(t *testing.T) { function TestClientCredentialsFlow (line 529) | func TestClientCredentialsFlow(t *testing.T) { function TestEligibleForDefaultClientCredentials (line 637) | func TestEligibleForDefaultClientCredentials(t *testing.T) { type nonInteractiveAuthorizationCodeProvider (line 720) | type nonInteractiveAuthorizationCodeProvider struct method run (line 729) | func (provider *nonInteractiveAuthorizationCodeProvider) run(authoriza... method createState (line 752) | func (provider *nonInteractiveAuthorizationCodeProvider) createState()... method createCodeVerifier (line 759) | func (provider *nonInteractiveAuthorizationCodeProvider) createCodeVer... method assertResponseBodyContains (line 763) | func (provider *nonInteractiveAuthorizationCodeProvider) assertRespons... FILE: auth_test.go function TestUnitPostAuth (line 24) | func TestUnitPostAuth(t *testing.T) { function postAuthFailServiceIssue (line 59) | func postAuthFailServiceIssue(_ context.Context, _ *snowflakeRestful, _ ... function postAuthFailWrongAccount (line 65) | func postAuthFailWrongAccount(_ context.Context, _ *snowflakeRestful, _ ... function postAuthFailUnknown (line 71) | func postAuthFailUnknown(_ context.Context, _ *snowflakeRestful, _ *http... function postAuthSuccessWithErrorCode (line 77) | func postAuthSuccessWithErrorCode(_ context.Context, _ *snowflakeRestful... function postAuthSuccessWithInvalidErrorCode (line 85) | func postAuthSuccessWithInvalidErrorCode(_ context.Context, _ *snowflake... function postAuthSuccess (line 93) | func postAuthSuccess(_ context.Context, _ *snowflakeRestful, _ *http.Cli... function postAuthCheckSAMLResponse (line 106) | func postAuthCheckSAMLResponse(_ context.Context, _ *snowflakeRestful, _... function postAuthCheckOAuth (line 132) | func postAuthCheckOAuth( function postAuthCheckPasscode (line 166) | func postAuthCheckPasscode(_ context.Context, _ *snowflakeRestful, _ *ht... function postAuthCheckPasscodeInPassword (line 187) | func postAuthCheckPasscodeInPassword(_ context.Context, _ *snowflakeRest... function postAuthCheckUsernamePasswordMfa (line 208) | func postAuthCheckUsernamePasswordMfa(_ context.Context, _ *snowflakeRes... function postAuthCheckUsernamePasswordMfaToken (line 231) | func postAuthCheckUsernamePasswordMfaToken(_ context.Context, _ *snowfla... function postAuthCheckUsernamePasswordMfaFailed (line 254) | func postAuthCheckUsernamePasswordMfaFailed(_ context.Context, _ *snowfl... function postAuthCheckExternalBrowser (line 272) | func postAuthCheckExternalBrowser(_ context.Context, _ *snowflakeRestful... function postAuthCheckExternalBrowserToken (line 295) | func postAuthCheckExternalBrowserToken(_ context.Context, _ *snowflakeRe... function postAuthCheckExternalBrowserFailed (line 318) | func postAuthCheckExternalBrowserFailed(_ context.Context, _ *snowflakeR... type restfulTestWrapper (line 336) | type restfulTestWrapper struct method postAuthOktaWithNewToken (line 340) | func (rtw restfulTestWrapper) postAuthOktaWithNewToken(_ context.Conte... function getDefaultSnowflakeConn (line 386) | func getDefaultSnowflakeConn() *snowflakeConn { function TestUnitAuthenticateWithTokenAccessor (line 409) | func TestUnitAuthenticateWithTokenAccessor(t *testing.T) { function TestUnitAuthenticate (line 454) | func TestUnitAuthenticate(t *testing.T) { function TestUnitAuthenticateSaml (line 538) | func TestUnitAuthenticateSaml(t *testing.T) { function TestUnitAuthenticateOAuth (line 562) | func TestUnitAuthenticateOAuth(t *testing.T) { function TestUnitAuthenticatePasscode (line 578) | func TestUnitAuthenticatePasscode(t *testing.T) { function TestUnitAuthenticateJWT (line 602) | func TestUnitAuthenticateJWT(t *testing.T) { function TestUnitAuthenticateUsernamePasswordMfa (line 673) | func TestUnitAuthenticateUsernamePasswordMfa(t *testing.T) { function TestUnitAuthenticateWithConfigMFA (line 702) | func TestUnitAuthenticateWithConfigMFA(t *testing.T) { function TestMfaParallelLogin (line 725) | func TestMfaParallelLogin(t *testing.T) { function TestUnitAuthenticateWithConfigOkta (line 776) | func TestUnitAuthenticateWithConfigOkta(t *testing.T) { function TestUnitAuthenticateWithExternalBrowserParallel (line 806) | func TestUnitAuthenticateWithExternalBrowserParallel(t *testing.T) { function TestUnitAuthenticateWithConfigExternalBrowserWithFailedSAMLResponse (line 910) | func TestUnitAuthenticateWithConfigExternalBrowserWithFailedSAMLResponse... function TestUnitAuthenticateExternalBrowser (line 926) | func TestUnitAuthenticateExternalBrowser(t *testing.T) { function TestUsernamePasswordMfaCaching (line 957) | func TestUsernamePasswordMfaCaching(t *testing.T) { function TestUsernamePasswordMfaCachingWithPasscode (line 984) | func TestUsernamePasswordMfaCachingWithPasscode(t *testing.T) { function TestUsernamePasswordMfaCachingWithPasscodeInPassword (line 1012) | func TestUsernamePasswordMfaCachingWithPasscodeInPassword(t *testing.T) { function TestDisableUsernamePasswordMfaCaching (line 1038) | func TestDisableUsernamePasswordMfaCaching(t *testing.T) { function TestExternalBrowserCaching (line 1066) | func TestExternalBrowserCaching(t *testing.T) { function TestDisableExternalBrowserCaching (line 1093) | func TestDisableExternalBrowserCaching(t *testing.T) { function TestOktaRetryWithNewToken (line 1117) | func TestOktaRetryWithNewToken(t *testing.T) { function TestContextPropagatedToAuthWhenUsingOpen (line 1150) | func TestContextPropagatedToAuthWhenUsingOpen(t *testing.T) { function TestContextPropagatedToAuthWhenUsingOpenDB (line 1162) | func TestContextPropagatedToAuthWhenUsingOpenDB(t *testing.T) { function TestPatSuccessfulFlow (line 1176) | func TestPatSuccessfulFlow(t *testing.T) { function TestPatTokenRotation (line 1194) | func TestPatTokenRotation(t *testing.T) { function TestPatInvalidToken (line 1215) | func TestPatInvalidToken(t *testing.T) { function TestWithOauthAuthorizationCodeFlowManual (line 1232) | func TestWithOauthAuthorizationCodeFlowManual(t *testing.T) { function TestWithOAuthClientCredentialsFlowManual (line 1272) | func TestWithOAuthClientCredentialsFlowManual(t *testing.T) { FILE: auth_wif.go constant awsWif (line 28) | awsWif wifProviderType = "AWS" constant gcpWif (line 29) | gcpWif wifProviderType = "GCP" constant azureWif (line 30) | azureWif wifProviderType = "AZURE" constant oidcWif (line 31) | oidcWif wifProviderType = "OIDC" constant gcpMetadataFlavorHeaderName (line 33) | gcpMetadataFlavorHeaderName = "Metadata-Flavor" constant gcpMetadataFlavor (line 34) | gcpMetadataFlavor = "Google" constant defaultMetadataServiceBase (line 35) | defaultMetadataServiceBase = "http://169.254.169.254" constant defaultGcpIamCredentialsBase (line 36) | defaultGcpIamCredentialsBase = "https://iamcredentials.googleapis.com" constant snowflakeAudience (line 37) | snowflakeAudience = "snowflakecomputing.com" type wifProviderType (line 40) | type wifProviderType type wifAttestation (line 42) | type wifAttestation struct type wifAttestationCreator (line 48) | type wifAttestationCreator interface type wifAttestationProvider (line 52) | type wifAttestationProvider struct method getAttestation (line 87) | func (p *wifAttestationProvider) getAttestation(identityProvider strin... function createWifAttestationProvider (line 61) | func createWifAttestationProvider(ctx context.Context, cfg *Config, tele... type awsAttestastationMetadataProviderFactory (line 102) | type awsAttestastationMetadataProviderFactory type awsIdentityAttestationCreator (line 104) | type awsIdentityAttestationCreator struct method createAttestation (line 191) | func (c *awsIdentityAttestationCreator) createAttestation() (*wifAttes... method createStsRequest (line 256) | func (c *awsIdentityAttestationCreator) createStsRequest(hostname stri... method signRequestWithSigV4 (line 268) | func (c *awsIdentityAttestationCreator) signRequestWithSigV4(ctx conte... method createBase64EncodedRequestCredential (line 275) | func (c *awsIdentityAttestationCreator) createBase64EncodedRequestCred... type gcpIdentityAttestationCreator (line 110) | type gcpIdentityAttestationCreator struct method createAttestation (line 295) | func (c *gcpIdentityAttestationCreator) createAttestation() (*wifAttes... method createGcpIdentityTokenFromMetadataService (line 303) | func (c *gcpIdentityAttestationCreator) createGcpIdentityTokenFromMeta... method createTokenRequest (line 323) | func (c *gcpIdentityAttestationCreator) createTokenRequest() (*http.Re... method createGcpIdentityViaImpersonation (line 334) | func (c *gcpIdentityAttestationCreator) createGcpIdentityViaImpersonat... method fetchServiceToken (line 375) | func (c *gcpIdentityAttestationCreator) fetchServiceToken(client *http... method fetchImpersonatedToken (line 411) | func (c *gcpIdentityAttestationCreator) fetchImpersonatedToken(targetS... type oidcIdentityAttestationCreator (line 117) | type oidcIdentityAttestationCreator struct method createAttestation (line 521) | func (c *oidcIdentityAttestationCreator) createAttestation() (*wifAtte... type awsAttestationMetadataProvider (line 121) | type awsAttestationMetadataProvider interface type defaultAwsAttestationMetadataProvider (line 127) | type defaultAwsAttestationMetadataProvider struct method awsCredentials (line 146) | func (s *defaultAwsAttestationMetadataProvider) awsCredentials() (aws.... method awsCredentialsViaRoleChaining (line 150) | func (s *defaultAwsAttestationMetadataProvider) awsCredentialsViaRoleC... method assumeRole (line 163) | func (s *defaultAwsAttestationMetadataProvider) assumeRole(creds aws.C... method awsRegion (line 187) | func (s *defaultAwsAttestationMetadataProvider) awsRegion() string { function createDefaultAwsAttestationMetadataProvider (line 133) | func createDefaultAwsAttestationMetadataProvider(ctx context.Context, cf... function stsHostname (line 246) | func stsHostname(region string) string { function fetchTokenFromMetadataService (line 460) | func fetchTokenFromMetadataService(req *http.Request, cfg *Config, telem... function extractSubIssWithoutVerifyingSignature (line 485) | func extractSubIssWithoutVerifyingSignature(token string) (subject strin... function extractClaimsMap (line 511) | func extractClaimsMap(token string) (map[string]any, error) { type azureAttestationMetadataProvider (line 545) | type azureAttestationMetadataProvider interface type defaultAzureAttestationMetadataProvider (line 551) | type defaultAzureAttestationMetadataProvider struct method identityEndpoint (line 553) | func (p *defaultAzureAttestationMetadataProvider) identityEndpoint() s... method identityHeader (line 557) | func (p *defaultAzureAttestationMetadataProvider) identityHeader() str... method clientID (line 561) | func (p *defaultAzureAttestationMetadataProvider) clientID() string { type azureIdentityAttestationCreator (line 565) | type azureIdentityAttestationCreator struct method createAttestation (line 574) | func (a *azureIdentityAttestationCreator) createAttestation() (*wifAtt... method azureFunctionsIdentityRequest (line 650) | func (a *azureIdentityAttestationCreator) azureFunctionsIdentityReques... method azureVMIdentityRequest (line 666) | func (a *azureIdentityAttestationCreator) azureVMIdentityRequest() (*h... function determineEntraResource (line 629) | func determineEntraResource(config *Config) string { function extractTokenFromJSON (line 637) | func extractTokenFromJSON(tokenJSON string) (string, error) { FILE: auth_wif_test.go type mockWifAttestationCreator (line 18) | type mockWifAttestationCreator struct method createAttestation (line 23) | func (m *mockWifAttestationCreator) createAttestation() (*wifAttestati... function TestGetAttestation (line 32) | func TestGetAttestation(t *testing.T) { function TestAwsIdentityAttestationCreator (line 151) | func TestAwsIdentityAttestationCreator(t *testing.T) { type mockAwsAttestationMetadataProvider (line 354) | type mockAwsAttestationMetadataProvider struct method awsCredentials (line 368) | func (m *mockAwsAttestationMetadataProvider) awsCredentials() (aws.Cre... method awsCredentialsViaRoleChaining (line 372) | func (m *mockAwsAttestationMetadataProvider) awsCredentialsViaRoleChai... method awsRegion (line 382) | func (m *mockAwsAttestationMetadataProvider) awsRegion() string { function TestGcpIdentityAttestationCreator (line 386) | func TestGcpIdentityAttestationCreator(t *testing.T) { function TestOidcIdentityAttestationCreator (line 463) | func TestOidcIdentityAttestationCreator(t *testing.T) { function TestAzureIdentityAttestationCreator (line 554) | func TestAzureIdentityAttestationCreator(t *testing.T) { type mockAzureAttestationMetadataProvider (line 715) | type mockAzureAttestationMetadataProvider struct method identityEndpoint (line 721) | func (m *mockAzureAttestationMetadataProvider) identityEndpoint() stri... method identityHeader (line 725) | func (m *mockAzureAttestationMetadataProvider) identityHeader() string { method clientID (line 729) | func (m *mockAzureAttestationMetadataProvider) clientID() string { function azureFunctionsMetadataProvider (line 733) | func azureFunctionsMetadataProvider() *mockAzureAttestationMetadataProvi... function azureVMMetadataProvider (line 741) | func azureVMMetadataProvider() *mockAzureAttestationMetadataProvider { function TestWorkloadIdentityAuthOnCloudVM (line 753) | func TestWorkloadIdentityAuthOnCloudVM(t *testing.T) { FILE: auth_with_external_browser_test.go function TestExternalBrowserSuccessful (line 14) | func TestExternalBrowserSuccessful(t *testing.T) { function TestExternalBrowserFailed (line 30) | func TestExternalBrowserFailed(t *testing.T) { function TestExternalBrowserTimeout (line 48) | func TestExternalBrowserTimeout(t *testing.T) { function TestExternalBrowserMismatchUser (line 66) | func TestExternalBrowserMismatchUser(t *testing.T) { function TestClientStoreCredentials (line 87) | func TestClientStoreCredentials(t *testing.T) { type ExternalBrowserProcessResult (line 130) | type ExternalBrowserProcessResult struct function cleanupBrowserProcesses (line 146) | func cleanupBrowserProcesses(t *testing.T) { function provideExternalBrowserCredentials (line 154) | func provideExternalBrowserCredentials(t *testing.T, ExternalBrowserProc... function verifyConnectionToSnowflakeAuthTests (line 163) | func verifyConnectionToSnowflakeAuthTests(t *testing.T, cfg *Config) (er... function setupExternalBrowserTest (line 182) | func setupExternalBrowserTest(t *testing.T) *Config { FILE: auth_with_keypair_test.go function TestKeypairSuccessful (line 11) | func TestKeypairSuccessful(t *testing.T) { function TestKeypairInvalidKey (line 19) | func TestKeypairInvalidKey(t *testing.T) { function setupKeyPairTest (line 28) | func setupKeyPairTest(t *testing.T) *Config { function loadRsaPrivateKeyForKeyPair (line 36) | func loadRsaPrivateKeyForKeyPair(t *testing.T, envName string) *rsa.Priv... FILE: auth_with_mfa_test.go function TestMfaSuccessful (line 12) | func TestMfaSuccessful(t *testing.T) { function setupMfaTest (line 34) | func setupMfaTest(t *testing.T) *Config { function getTOPTcodes (line 48) | func getTOPTcodes(t *testing.T) []string { function verifyConnectionToSnowflakeUsingTotpCodes (line 59) | func verifyConnectionToSnowflakeUsingTotpCodes(t *testing.T, cfg *Config... FILE: auth_with_oauth_okta_authorization_code_test.go function TestOauthOktaAuthorizationCodeSuccessful (line 10) | func TestOauthOktaAuthorizationCodeSuccessful(t *testing.T) { function TestOauthOktaAuthorizationCodeMismatchedUsername (line 26) | func TestOauthOktaAuthorizationCodeMismatchedUsername(t *testing.T) { function TestOauthOktaAuthorizationCodeOktaTimeout (line 47) | func TestOauthOktaAuthorizationCodeOktaTimeout(t *testing.T) { function TestOauthOktaAuthorizationCodeUsingTokenCache (line 55) | func TestOauthOktaAuthorizationCodeUsingTokenCache(t *testing.T) { function setupOauthOktaAuthorizationCodeTest (line 78) | func setupOauthOktaAuthorizationCodeTest(t *testing.T) *Config { FILE: auth_with_oauth_okta_client_credentials_test.go function TestOauthOktaClientCredentialsSuccessful (line 9) | func TestOauthOktaClientCredentialsSuccessful(t *testing.T) { function TestOauthOktaClientCredentialsMismatchedUsername (line 15) | func TestOauthOktaClientCredentialsMismatchedUsername(t *testing.T) { function TestOauthOktaClientCredentialsUnauthorized (line 25) | func TestOauthOktaClientCredentialsUnauthorized(t *testing.T) { function setupOauthOktaClientCredentialsTest (line 33) | func setupOauthOktaClientCredentialsTest(t *testing.T) *Config { FILE: auth_with_oauth_snowflake_authorization_code_test.go function TestOauthSnowflakeAuthorizationCodeSuccessful (line 10) | func TestOauthSnowflakeAuthorizationCodeSuccessful(t *testing.T) { function TestOauthSnowflakeAuthorizationCodeMismatchedUsername (line 29) | func TestOauthSnowflakeAuthorizationCodeMismatchedUsername(t *testing.T) { function TestOauthSnowflakeAuthorizationCodeTimeout (line 51) | func TestOauthSnowflakeAuthorizationCodeTimeout(t *testing.T) { function TestOauthSnowflakeAuthorizationCodeUsingTokenCache (line 59) | func TestOauthSnowflakeAuthorizationCodeUsingTokenCache(t *testing.T) { function TestOauthSnowflakeAuthorizationCodeWithoutTokenCache (line 85) | func TestOauthSnowflakeAuthorizationCodeWithoutTokenCache(t *testing.T) { function setupOauthSnowflakeAuthorizationCodeTest (line 114) | func setupOauthSnowflakeAuthorizationCodeTest(t *testing.T) *Config { function getOauthSnowflakeAuthorizationCodeTestCredentials (line 141) | func getOauthSnowflakeAuthorizationCodeTestCredentials() (*Config, error) { FILE: auth_with_oauth_snowflake_authorization_code_wildcards_test.go function TestOauthSnowflakeAuthorizationCodeWildcardsSuccessful (line 10) | func TestOauthSnowflakeAuthorizationCodeWildcardsSuccessful(t *testing.T) { function TestOauthSnowflakeAuthorizationCodeWildcardsMismatchedUsername (line 29) | func TestOauthSnowflakeAuthorizationCodeWildcardsMismatchedUsername(t *t... function TestOauthSnowflakeAuthorizationWildcardsCodeTimeout (line 51) | func TestOauthSnowflakeAuthorizationWildcardsCodeTimeout(t *testing.T) { function TestOauthSnowflakeAuthorizationCodeWildcardsWithoutTokenCache (line 59) | func TestOauthSnowflakeAuthorizationCodeWildcardsWithoutTokenCache(t *te... function setupOauthSnowflakeAuthorizationCodeWildcardsTest (line 88) | func setupOauthSnowflakeAuthorizationCodeWildcardsTest(t *testing.T) *Co... FILE: auth_with_oauth_test.go function TestOauthSuccessful (line 12) | func TestOauthSuccessful(t *testing.T) { function TestOauthInvalidToken (line 21) | func TestOauthInvalidToken(t *testing.T) { function TestOauthMismatchedUser (line 32) | func TestOauthMismatchedUser(t *testing.T) { function setupOauthTest (line 46) | func setupOauthTest(t *testing.T) *Config { function getOauthTestToken (line 54) | func getOauthTestToken(t *testing.T, cfg *Config) (string, error) { function formData (line 91) | func formData(cfg *Config) url.Values { type OAuthTokenResponse (line 102) | type OAuthTokenResponse struct FILE: auth_with_okta_test.go function TestOktaSuccessful (line 9) | func TestOktaSuccessful(t *testing.T) { function TestOktaWrongCredentials (line 15) | func TestOktaWrongCredentials(t *testing.T) { function TestOktaWrongAuthenticator (line 25) | func TestOktaWrongAuthenticator(t *testing.T) { function setupOktaTest (line 38) | func setupOktaTest(t *testing.T) *Config { FILE: auth_with_pat_test.go type PatToken (line 12) | type PatToken struct function TestEndToEndPatSuccessful (line 17) | func TestEndToEndPatSuccessful(t *testing.T) { function TestEndToEndPatMismatchedUser (line 26) | func TestEndToEndPatMismatchedUser(t *testing.T) { function TestEndToEndPatInvalidToken (line 38) | func TestEndToEndPatInvalidToken(t *testing.T) { function setupEndToEndPatTest (line 47) | func setupEndToEndPatTest(t *testing.T) *Config { function getEndToEndPatSetupCommandVariables (line 56) | func getEndToEndPatSetupCommandVariables() (*Config, error) { function createEndToEndPatToken (line 63) | func createEndToEndPatToken(t *testing.T) *PatToken { function removeEndToEndPatToken (line 83) | func removeEndToEndPatToken(t *testing.T, patTokenName string) { function connectUsingOktaConnectionAndExecuteCustomCommand (line 99) | func connectUsingOktaConnectionAndExecuteCustomCommand(t *testing.T, cfg... FILE: authexternalbrowser.go constant samlSuccessHTML (line 24) | samlSuccessHTML = ` constant bufSize (line 31) | bufSize = 8192 function buildResponse (line 36) | func buildResponse(body string) (bytes.Buffer, error) { function createLocalTCPListener (line 56) | func createLocalTCPListener(port int) (*net.TCPListener, error) { function openBrowser (line 86) | func openBrowser(browserURL string) error { function getIdpURLProofKey (line 106) | func getIdpURLProofKey( function getLoginURL (line 164) | func getLoginURL(sr *snowflakeRestful, user string, callbackPort int) (s... function generateProofKey (line 176) | func generateProofKey() string { function getTokenFromResponse (line 192) | func getTokenFromResponse(response string) (string, error) { type authenticateByExternalBrowserResult (line 209) | type authenticateByExternalBrowserResult struct function authenticateByExternalBrowser (line 215) | func authenticateByExternalBrowser(ctx context.Context, sr *snowflakeRes... function doAuthenticateByExternalBrowser (line 241) | func doAuthenticateByExternalBrowser(ctx context.Context, sr *snowflakeR... type samlResponseProvider (line 344) | type samlResponseProvider interface type externalBrowserSamlResponseProvider (line 348) | type externalBrowserSamlResponseProvider struct method run (line 351) | func (e externalBrowserSamlResponseProvider) run(url string) error { FILE: authexternalbrowser_test.go function TestGetTokenFromResponseFail (line 15) | func TestGetTokenFromResponseFail(t *testing.T) { function TestGetTokenFromResponse (line 32) | func TestGetTokenFromResponse(t *testing.T) { function TestBuildResponse (line 54) | func TestBuildResponse(t *testing.T) { function postAuthExternalBrowserError (line 64) | func postAuthExternalBrowserError(_ context.Context, _ *snowflakeRestful... function postAuthExternalBrowserErrorDelayed (line 68) | func postAuthExternalBrowserErrorDelayed(_ context.Context, _ *snowflake... function postAuthExternalBrowserFail (line 73) | func postAuthExternalBrowserFail(_ context.Context, _ *snowflakeRestful,... function postAuthExternalBrowserFailWithCode (line 80) | func postAuthExternalBrowserFailWithCode(_ context.Context, _ *snowflake... function TestUnitAuthenticateByExternalBrowser (line 88) | func TestUnitAuthenticateByExternalBrowser(t *testing.T) { function TestAuthenticationTimeout (line 124) | func TestAuthenticationTimeout(t *testing.T) { function Test_createLocalTCPListener (line 141) | func Test_createLocalTCPListener(t *testing.T) { function TestUnitGetLoginURL (line 154) | func TestUnitGetLoginURL(t *testing.T) { type nonInteractiveSamlResponseProvider (line 180) | type nonInteractiveSamlResponseProvider struct method run (line 184) | func (provider *nonInteractiveSamlResponseProvider) run(url string) er... FILE: authokta.go type authOKTARequest (line 17) | type authOKTARequest struct type authOKTAResponse (line 22) | type authOKTAResponse struct function authenticateBySAML (line 53) | func authenticateBySAML( function postBackURL (line 172) | func postBackURL(htmlData []byte) (url *url.URL, err error) { function isPrefixEqual (line 190) | func isPrefixEqual(u1 *url.URL, u2 *url.URL) bool { function postAuthSAML (line 204) | func postAuthSAML( function postAuthOKTA (line 266) | func postAuthOKTA( function getSSO (line 312) | func getSSO( FILE: authokta_test.go function TestUnitPostBackURL (line 13) | func TestUnitPostBackURL(t *testing.T) { function TestUnitIsPrefixEqual (line 39) | func TestUnitIsPrefixEqual(t *testing.T) { function getTestError (line 70) | func getTestError(_ context.Context, _ *snowflakeRestful, _ *url.URL, _ ... function getTestAppBadGatewayError (line 77) | func getTestAppBadGatewayError(_ context.Context, _ *snowflakeRestful, _... function getTestHTMLSuccess (line 84) | func getTestHTMLSuccess(_ context.Context, _ *snowflakeRestful, _ *url.U... function TestUnitPostAuthSAML (line 91) | func TestUnitPostAuthSAML(t *testing.T) { function TestUnitPostAuthOKTA (line 113) | func TestUnitPostAuthOKTA(t *testing.T) { function TestUnitGetSSO (line 135) | func TestUnitGetSSO(t *testing.T) { function postAuthSAMLError (line 161) | func postAuthSAMLError(_ context.Context, _ *snowflakeRestful, _ map[str... function postAuthSAMLAuthFail (line 165) | func postAuthSAMLAuthFail(_ context.Context, _ *snowflakeRestful, _ map[... function postAuthSAMLAuthFailWithCode (line 172) | func postAuthSAMLAuthFailWithCode(_ context.Context, _ *snowflakeRestful... function postAuthSAMLAuthSuccessButInvalidURL (line 180) | func postAuthSAMLAuthSuccessButInvalidURL(_ context.Context, _ *snowflak... function postAuthSAMLAuthSuccessButInvalidTokenURL (line 191) | func postAuthSAMLAuthSuccessButInvalidTokenURL(_ context.Context, _ *sno... function postAuthSAMLAuthSuccessButInvalidSSOURL (line 202) | func postAuthSAMLAuthSuccessButInvalidSSOURL(_ context.Context, _ *snowf... function postAuthSAMLAuthSuccess (line 213) | func postAuthSAMLAuthSuccess(_ context.Context, _ *snowflakeRestful, _ m... function postAuthOKTAError (line 224) | func postAuthOKTAError(_ context.Context, _ *snowflakeRestful, _ map[str... function postAuthOKTASuccess (line 228) | func postAuthOKTASuccess(_ context.Context, _ *snowflakeRestful, _ map[s... function getSSOError (line 232) | func getSSOError(_ context.Context, _ *snowflakeRestful, _ *url.Values, ... function getSSOSuccessButInvalidURL (line 236) | func getSSOSuccessButInvalidURL(_ context.Context, _ *snowflakeRestful, ... function getSSOSuccess (line 240) | func getSSOSuccess(_ context.Context, _ *snowflakeRestful, _ *url.Values... function getSSOSuccessButWrongPrefixURL (line 244) | func getSSOSuccessButWrongPrefixURL(_ context.Context, _ *snowflakeRestf... function TestUnitAuthenticateBySAML (line 248) | func TestUnitAuthenticateBySAML(t *testing.T) { function TestDisableSamlURLCheck (line 327) | func TestDisableSamlURLCheck(t *testing.T) { FILE: azure_storage_client.go type snowflakeAzureClient (line 26) | type snowflakeAzureClient struct method createClient (line 44) | func (util *snowflakeAzureClient) createClient(info *execResponseStage... method getFileHeader (line 72) | func (util *snowflakeAzureClient) getFileHeader(ctx context.Context, m... method uploadFile (line 152) | func (util *snowflakeAzureClient) uploadFile( method nativeDownloadFile (line 281) | func (util *snowflakeAzureClient) nativeDownloadFile( method extractContainerNameAndPath (line 353) | func (util *snowflakeAzureClient) extractContainerNameAndPath(location... method detectAzureTokenExpireError (line 371) | func (util *snowflakeAzureClient) detectAzureTokenExpireError(resp *ht... type azureLocation (line 31) | type azureLocation struct type azureAPI (line 36) | type azureAPI interface function computeMD5ForFile (line 387) | func computeMD5ForFile(f *os.File) ([]byte, error) { function createContainerClient (line 398) | func createContainerClient(clientURL string, cfg *Config, telemetry *sno... FILE: azure_storage_client_test.go function TestExtractContainerNameAndPath (line 20) | func TestExtractContainerNameAndPath(t *testing.T) { function TestUnitDetectAzureTokenExpireError (line 45) | func TestUnitDetectAzureTokenExpireError(t *testing.T) { type azureObjectAPIMock (line 110) | type azureObjectAPIMock struct method UploadStream (line 118) | func (c *azureObjectAPIMock) UploadStream(ctx context.Context, body io... method UploadFile (line 122) | func (c *azureObjectAPIMock) UploadFile(ctx context.Context, file *os.... method GetProperties (line 126) | func (c *azureObjectAPIMock) GetProperties(ctx context.Context, o *blo... method DownloadFile (line 130) | func (c *azureObjectAPIMock) DownloadFile(ctx context.Context, file *o... method DownloadStream (line 134) | func (c *azureObjectAPIMock) DownloadStream(ctx context.Context, o *bl... function TestUploadFileWithAzureUploadFailedError (line 138) | func TestUploadFileWithAzureUploadFailedError(t *testing.T) { function TestUploadStreamWithAzureUploadFailedError (line 200) | func TestUploadStreamWithAzureUploadFailedError(t *testing.T) { function TestUploadFileWithAzureUploadTokenExpired (line 254) | func TestUploadFileWithAzureUploadTokenExpired(t *testing.T) { function TestUploadFileWithAzureUploadNeedsRetry (line 331) | func TestUploadFileWithAzureUploadNeedsRetry(t *testing.T) { function TestDownloadOneFileToAzureFailed (line 408) | func TestDownloadOneFileToAzureFailed(t *testing.T) { function TestGetFileHeaderErrorStatus (line 456) | func TestGetFileHeaderErrorStatus(t *testing.T) { function TestUploadFileToAzureClientCastFail (line 555) | func TestUploadFileToAzureClientCastFail(t *testing.T) { function TestUploadFileToAzureSetsBlobContentMD5 (line 603) | func TestUploadFileToAzureSetsBlobContentMD5(t *testing.T) { function TestUploadStreamToAzureSetsBlobContentMD5 (line 671) | func TestUploadStreamToAzureSetsBlobContentMD5(t *testing.T) { function TestAzureGetHeaderClientCastFail (line 726) | func TestAzureGetHeaderClientCastFail(t *testing.T) { FILE: bind_uploader.go constant bindStageName (line 19) | bindStageName = "SYSTEM$BIND" constant createTemporaryStageStmt (line 20) | createTemporaryStageStmt = "CREATE OR REPLACE TEMPORARY STAGE " + bindSt... constant inputStreamBufferSize (line 24) | inputStreamBufferSize = 1024 * 1024 * 10 type bindUploader (line 27) | type bindUploader struct method upload (line 47) | func (bu *bindUploader) upload(bindings []driver.NamedValue) (*execRes... method uploadStreamInternal (line 78) | func (bu *bindUploader) uploadStreamInternal( method createStageIfNeeded (line 105) | func (bu *bindUploader) createStageIfNeeded() error { method buildRowsAsBytes (line 132) | func (bu *bindUploader) buildRowsAsBytes(columns []driver.NamedValue) ... method createCSVRecord (line 187) | func (bu *bindUploader) createCSVRecord(data []any) []byte { type bindingSchema (line 35) | type bindingSchema struct type bindingValue (line 41) | type bindingValue struct method processBindings (line 205) | func (sc *snowflakeConn) processBindings( function getBindValues (line 238) | func getBindValues(bindings []driver.NamedValue, params *syncParams) (ma... function bindingName (line 290) | func bindingName(nv driver.NamedValue, idx int) string { function arrayBindValueCount (line 297) | func arrayBindValueCount(bindValues []driver.NamedValue) (int, error) { function isArrayBind (line 309) | func isArrayBind(bindings []driver.NamedValue) bool { function supportedArrayBind (line 321) | func supportedArrayBind(nv *driver.NamedValue) bool { function supportedDecfloatBind (line 353) | func supportedDecfloatBind(nv *driver.NamedValue) bool { function supportedNullBind (line 367) | func supportedNullBind(nv *driver.NamedValue) bool { function supportedStructuredObjectWriterBind (line 376) | func supportedStructuredObjectWriterBind(nv *driver.NamedValue) bool { function supportedStructuredArrayBind (line 384) | func supportedStructuredArrayBind(nv *driver.NamedValue) bool { function supportedStructuredMapBind (line 389) | func supportedStructuredMapBind(nv *driver.NamedValue) bool { FILE: bindings_test.go constant createTableSQL (line 22) | createTableSQL = `create or replace table test_prep_statement(c1 INTEGER, constant deleteTableSQL (line 25) | deleteTableSQL = "drop table if exists TEST_PREP_STATEMENT" constant insertSQL (line 26) | insertSQL = "insert into TEST_PREP_STATEMENT values(?, ?, ?, ?, ?, ... constant selectAllSQL (line 27) | selectAllSQL = "select * from TEST_PREP_STATEMENT ORDER BY 1" constant createTableSQLBulkArray (line 29) | createTableSQLBulkArray = `create or replace table test_bulk_array(c1 IN... constant deleteTableSQLBulkArray (line 31) | deleteTableSQLBulkArray = "drop table if exists test_bulk_array" constant insertSQLBulkArray (line 32) | insertSQLBulkArray = "insert into test_bulk_array values(?, ?, ?, ?... constant selectAllSQLBulkArray (line 33) | selectAllSQLBulkArray = "select * from test_bulk_array ORDER BY 1" constant createTableSQLBulkArrayDateTimeTimestamp (line 35) | createTableSQLBulkArrayDateTimeTimestamp = `create or replace table test... constant deleteTableSQLBulkArrayDateTimeTimestamp (line 37) | deleteTableSQLBulkArrayDateTimeTimestamp = "drop table if exists test_bu... constant insertSQLBulkArrayDateTimeTimestamp (line 38) | insertSQLBulkArrayDateTimeTimestamp = "insert into test_bulk_array_... constant selectAllSQLBulkArrayDateTimeTimestamp (line 39) | selectAllSQLBulkArrayDateTimeTimestamp = "select * from test_bulk_arra... constant enableFeatureMaxLOBSize (line 41) | enableFeatureMaxLOBSize = "ALTER SESSION SET FEATURE_INCREASED_MAX_... constant unsetFeatureMaxLOBSize (line 42) | unsetFeatureMaxLOBSize = "ALTER SESSION UNSET FEATURE_INCREASED_MA... constant enableLargeVarcharAndBinary (line 43) | enableLargeVarcharAndBinary = "ALTER SESSION SET ENABLE_LARGE_VARCHAR_A... constant disableLargeVarcharAndBinary (line 44) | disableLargeVarcharAndBinary = "ALTER SESSION SET ENABLE_LARGE_VARCHAR_A... constant unsetLargeVarcharAndBinary (line 45) | unsetLargeVarcharAndBinary = "ALTER SESSION UNSET ENABLE_LARGE_VARCHAR... constant smallSize (line 47) | smallSize = 16 * 1024 * 1024 constant largeSize (line 48) | largeSize = 64 * 1024 * 1024 constant lobRandomRange (line 50) | lobRandomRange = 100000 function TestBindingFloat64 (line 53) | func TestBindingFloat64(t *testing.T) { function TestBindingUint64 (line 83) | func TestBindingUint64(t *testing.T) { function TestBindingDateTimeTimestamp (line 96) | func TestBindingDateTimeTimestamp(t *testing.T) { function TestBindingBinary (line 167) | func TestBindingBinary(t *testing.T) { function TestBindingTimestampTZ (line 189) | func TestBindingTimestampTZ(t *testing.T) { function TestBindingTimePtrInStruct (line 222) | func TestBindingTimePtrInStruct(t *testing.T) { function TestBindingTimeInStruct (line 271) | func TestBindingTimeInStruct(t *testing.T) { function TestBindingInterface (line 319) | func TestBindingInterface(t *testing.T) { function TestBindingInterfaceString (line 351) | func TestBindingInterfaceString(t *testing.T) { function TestBulkArrayBindingUUID (line 383) | func TestBulkArrayBindingUUID(t *testing.T) { function TestBulkArrayBindingInterfaceNil (line 453) | func TestBulkArrayBindingInterfaceNil(t *testing.T) { function TestBulkArrayBindingInterface (line 520) | func TestBulkArrayBindingInterface(t *testing.T) { function TestBulkArrayBindingInterfaceDateTimeTimestamp (line 617) | func TestBulkArrayBindingInterfaceDateTimeTimestamp(t *testing.T) { function TestBindingArray (line 717) | func TestBindingArray(t *testing.T) { function TestBindingBulkArray (line 723) | func TestBindingBulkArray(t *testing.T) { function testBindingArray (line 730) | func testBindingArray(t *testing.T, bulk bool) { function TestBulkArrayBinding (line 819) | func TestBulkArrayBinding(t *testing.T) { function TestSupportedDecfloatBind (line 875) | func TestSupportedDecfloatBind(t *testing.T) { function TestBindingsWithSameValue (line 939) | func TestBindingsWithSameValue(t *testing.T) { function TestBulkArrayBindingTimeWithPrecision (line 1063) | func TestBulkArrayBindingTimeWithPrecision(t *testing.T) { function TestBulkArrayMultiPartBinding (line 1104) | func TestBulkArrayMultiPartBinding(t *testing.T) { function TestBulkArrayMultiPartBindingInt (line 1151) | func TestBulkArrayMultiPartBindingInt(t *testing.T) { function TestBulkArrayMultiPartBindingWithNull (line 1188) | func TestBulkArrayMultiPartBindingWithNull(t *testing.T) { function TestFunctionParameters (line 1252) | func TestFunctionParameters(t *testing.T) { function TestVariousBindingModes (line 1330) | func TestVariousBindingModes(t *testing.T) { function skipMaxLobSizeTestOnGithubActions (line 1416) | func skipMaxLobSizeTestOnGithubActions(t *testing.T) { function TestLOBRetrievalWithArrow (line 1422) | func TestLOBRetrievalWithArrow(t *testing.T) { function TestLOBRetrievalWithJSON (line 1426) | func TestLOBRetrievalWithJSON(t *testing.T) { function testLOBRetrieval (line 1430) | func testLOBRetrieval(t *testing.T, useArrowFormat bool) { function TestMaxLobSize (line 1460) | func TestMaxLobSize(t *testing.T) { function TestInsertLobDataWithLiteralArrow (line 1483) | func TestInsertLobDataWithLiteralArrow(t *testing.T) { function TestInsertLobDataWithLiteralJSON (line 1489) | func TestInsertLobDataWithLiteralJSON(t *testing.T) { function TestInsertLobDataWithBindingsArrow (line 1495) | func TestInsertLobDataWithBindingsArrow(t *testing.T) { function TestInsertLobDataWithBindingsJSON (line 1501) | func TestInsertLobDataWithBindingsJSON(t *testing.T) { function testInsertLOBData (line 1507) | func testInsertLOBData(t *testing.T, useArrowFormat bool, isLiteral bool) { function fastStringGeneration (line 1600) | func fastStringGeneration(size int) string { function getRandomDate (line 1628) | func getRandomDate() time.Time { function getRandomBool (line 1632) | func getRandomBool() bool { FILE: chunk.go constant defaultChunkBufferSize (line 14) | defaultChunkBufferSize int64 = 8 << 10 constant defaultStringBufferSize (line 15) | defaultStringBufferSize int64 = 512 type largeChunkDecoder (line 18) | type largeChunkDecoder struct method mkError (line 53) | func (lcd *largeChunkDecoder) mkError(s string) error { method decode (line 57) | func (lcd *largeChunkDecoder) decode() ([][]*string, error) { method decodeRow (line 88) | func (lcd *largeChunkDecoder) decodeRow() ([]*string, error) { method decodeCell (line 119) | func (lcd *largeChunkDecoder) decodeCell() (*string, error) { method decodeString (line 139) | func (lcd *largeChunkDecoder) decodeString() (string, error) { method decodeEscaped (line 163) | func (lcd *largeChunkDecoder) decodeEscaped() error { method readRune (line 204) | func (lcd *largeChunkDecoder) readRune() rune { method getu4WithPrefix (line 212) | func (lcd *largeChunkDecoder) getu4WithPrefix() (rune, int) { method getu4 (line 230) | func (lcd *largeChunkDecoder) getu4() rune { method nextByteNonWhitespace (line 249) | func (lcd *largeChunkDecoder) nextByteNonWhitespace() byte { method rewind (line 261) | func (lcd *largeChunkDecoder) rewind(n int) { method nextByte (line 266) | func (lcd *largeChunkDecoder) nextByte() byte { method ensureBytes (line 286) | func (lcd *largeChunkDecoder) ensureBytes(n int) { method fillBuffer (line 301) | func (lcd *largeChunkDecoder) fillBuffer(b []byte) int { function decodeLargeChunk (line 33) | func decodeLargeChunk(r io.Reader, rowCount int, cellCount int) ([][]*st... FILE: chunk_downloader.go type chunkDownloader (line 30) | type chunkDownloader interface type snowflakeChunkDownloader (line 43) | type snowflakeChunkDownloader struct method totalUncompressedSize (line 74) | func (scd *snowflakeChunkDownloader) totalUncompressedSize() (acc int6... method start (line 81) | func (scd *snowflakeChunkDownloader) start() error { method schedule (line 149) | func (scd *snowflakeChunkDownloader) schedule() { method checkErrorRetry (line 171) | func (scd *snowflakeChunkDownloader) checkErrorRetry() error { method next (line 200) | func (scd *snowflakeChunkDownloader) next() (chunkRowType, error) { method reset (line 247) | func (scd *snowflakeChunkDownloader) reset() { method getChunkMetas (line 251) | func (scd *snowflakeChunkDownloader) getChunkMetas() []query.ExecRespo... method getQueryResultFormat (line 255) | func (scd *snowflakeChunkDownloader) getQueryResultFormat() resultForm... method setNextChunkDownloader (line 259) | func (scd *snowflakeChunkDownloader) setNextChunkDownloader(nextDownlo... method getNextChunkDownloader (line 263) | func (scd *snowflakeChunkDownloader) getNextChunkDownloader() chunkDow... method getRowType (line 267) | func (scd *snowflakeChunkDownloader) getRowType() []query.ExecResponse... method getRawArrowBatches (line 278) | func (scd *snowflakeChunkDownloader) getRawArrowBatches() []*rawArrowB... method releaseRawArrowBatches (line 288) | func (scd *snowflakeChunkDownloader) releaseRawArrowBatches() { method getConfigParams (line 304) | func (scd *snowflakeChunkDownloader) getConfigParams() (*syncParams, e... method startArrowBatches (line 326) | func (scd *snowflakeChunkDownloader) startArrowBatches() error { type rawArrowBatchData (line 272) | type rawArrowBatchData struct function getChunk (line 311) | func getChunk( type largeResultSetReader (line 362) | type largeResultSetReader struct method Read (line 367) | func (r *largeResultSetReader) Read(p []byte) (n int, err error) { function downloadChunk (line 394) | func downloadChunk(ctx context.Context, scd *snowflakeChunkDownloader, i... function downloadChunkHelper (line 410) | func downloadChunkHelper(ctx context.Context, scd *snowflakeChunkDownloa... function decodeChunk (line 452) | func decodeChunk(ctx context.Context, scd *snowflakeChunkDownloader, idx... function populateJSONRowSet (line 543) | func populateJSONRowSet(dst []chunkRowType, src [][]*string) { function countRawArrowBatchRows (line 550) | func countRawArrowBatchRows(recs *[]arrow.Record) (cnt int) { function getAllocator (line 560) | func getAllocator(ctx context.Context) memory.Allocator { function usesArrowBatches (line 568) | func usesArrowBatches(ctx context.Context) bool { FILE: chunk_downloader_test.go function TestChunkDownloaderDoesNotStartWhenArrowParsingCausesError (line 11) | func TestChunkDownloaderDoesNotStartWhenArrowParsingCausesError(t *testi... function TestWithArrowBatchesWhenQueryReturnsNoRowsWhenUsingNativeGoSQLInterface (line 33) | func TestWithArrowBatchesWhenQueryReturnsNoRowsWhenUsingNativeGoSQLInter... function TestWithArrowBatchesWhenQueryReturnsRowsAndReadingRows (line 46) | func TestWithArrowBatchesWhenQueryReturnsRowsAndReadingRows(t *testing.T) { function TestWithArrowBatchesWhenQueryReturnsNoRowsAndReadingRows (line 54) | func TestWithArrowBatchesWhenQueryReturnsNoRowsAndReadingRows(t *testing... function TestWithArrowBatchesWhenQueryReturnsNoRowsAndReadingArrowBatchData (line 62) | func TestWithArrowBatchesWhenQueryReturnsNoRowsAndReadingArrowBatchData(... FILE: chunk_test.go function TestBadChunkData (line 22) | func TestBadChunkData(t *testing.T) { function TestValidChunkData (line 49) | func TestValidChunkData(t *testing.T) { function TestSmallBufferChunkData (line 95) | func TestSmallBufferChunkData(t *testing.T) { function TestEnsureBytes (line 116) | func TestEnsureBytes(t *testing.T) { function testDecodeOk (line 136) | func testDecodeOk(t *testing.T, s string) { function testDecodeErr (line 172) | func testDecodeErr(t *testing.T, s string) { function TestEnableArrowBatches (line 178) | func TestEnableArrowBatches(t *testing.T) { function TestWithArrowBatchesAsync (line 254) | func TestWithArrowBatchesAsync(t *testing.T) { function TestWithArrowBatchesButReturningJSON (line 330) | func TestWithArrowBatchesButReturningJSON(t *testing.T) { function TestWithArrowBatchesButReturningJSONAsync (line 334) | func TestWithArrowBatchesButReturningJSONAsync(t *testing.T) { function testWithArrowBatchesButReturningJSON (line 338) | func testWithArrowBatchesButReturningJSON(t *testing.T, async bool) { function TestWithArrowBatchesMultistatement (line 366) | func TestWithArrowBatchesMultistatement(t *testing.T) { function TestWithArrowBatchesMultistatementAsync (line 370) | func TestWithArrowBatchesMultistatementAsync(t *testing.T) { function testWithArrowBatchesMultistatement (line 374) | func testWithArrowBatchesMultistatement(t *testing.T, async bool) { function TestWithArrowBatchesMultistatementWithJSONResponse (line 408) | func TestWithArrowBatchesMultistatementWithJSONResponse(t *testing.T) { function TestWithArrowBatchesMultistatementWithLargeResultSet (line 433) | func TestWithArrowBatchesMultistatementWithLargeResultSet(t *testing.T) { function TestQueryArrowStream (line 471) | func TestQueryArrowStream(t *testing.T) { function TestQueryArrowStreamDescribeOnly (line 490) | func TestQueryArrowStreamDescribeOnly(t *testing.T) { function TestRetainChunkWOHighPrecision (line 508) | func TestRetainChunkWOHighPrecision(t *testing.T) { function TestQueryArrowStreamMultiStatement (line 541) | func TestQueryArrowStreamMultiStatement(t *testing.T) { function TestQueryArrowStreamMultiStatementForJSONData (line 552) | func TestQueryArrowStreamMultiStatementForJSONData(t *testing.T) { FILE: ci/scripts/hang_webserver.py class HTTPRequestHandler (line 9) | class HTTPRequestHandler(BaseHTTPRequestHandler): method do_POST (line 12) | def do_POST(self): method ocspMocks (line 25) | def ocspMocks(self): method authMocks (line 45) | def authMocks(self): method __respond (line 65) | def __respond(self, http_code, content_type='application/json', body=N... class ThreadedHTTPServer (line 76) | class ThreadedHTTPServer(ThreadingMixIn, HTTPServer): method shutdown (line 79) | def shutdown(self): class SimpleHttpServer (line 83) | class SimpleHttpServer(): method __init__ (line 84) | def __init__(self, ip, port): method start (line 87) | def start(self): method waitForThread (line 92) | def waitForThread(self): method stop (line 95) | def stop(self): FILE: client.go type InternalClient (line 12) | type InternalClient interface type httpClient (line 17) | type httpClient struct method Get (line 21) | func (cli *httpClient) Get( method Post (line 29) | func (cli *httpClient) Post( FILE: client_configuration.go constant levelOff (line 15) | levelOff string = "OFF" constant levelError (line 16) | levelError string = "ERROR" constant levelWarn (line 17) | levelWarn string = "WARN" constant levelInfo (line 18) | levelInfo string = "INFO" constant levelDebug (line 19) | levelDebug string = "DEBUG" constant levelTrace (line 20) | levelTrace string = "TRACE" constant defaultConfigName (line 24) | defaultConfigName = "sf_client_config.json" constant clientConfEnvName (line 25) | clientConfEnvName = "SF_CLIENT_CONFIG_FILE" function getClientConfig (line 28) | func getClientConfig(filePathFromConnectionString string) (*ClientConfig... function findClientConfigFilePath (line 41) | func findClientConfigFilePath(filePathFromConnectionString string, confi... function searchForConfigFile (line 54) | func searchForConfigFile(directories []string) (string, error) { function existsFile (line 71) | func existsFile(filePath string) (bool, error) { function clientConfigPredefinedDirs (line 82) | func clientConfigPredefinedDirs() []string { type ClientConfig (line 103) | type ClientConfig struct type ClientConfigCommonProps (line 108) | type ClientConfigCommonProps struct function parseClientConfiguration (line 113) | func parseClientConfiguration(filePath string) (*ClientConfig, error) { function getUnknownValues (line 141) | func getUnknownValues(fileContents []byte) map[string]any { function parsingClientConfigError (line 160) | func parsingClientConfigError(err error) error { function validateClientConfiguration (line 164) | func validateClientConfiguration(clientConfig *ClientConfig) error { function validateLogLevel (line 174) | func validateLogLevel(clientConfig ClientConfig) error { function toLogLevel (line 185) | func toLogLevel(logLevelString string) (string, error) { FILE: client_configuration_test.go function TestFindConfigFileFromConnectionParameters (line 12) | func TestFindConfigFileFromConnectionParameters(t *testing.T) { function TestFindConfigFileFromEnvVariable (line 26) | func TestFindConfigFileFromEnvVariable(t *testing.T) { function TestFindConfigFileFromFirstPredefinedDir (line 39) | func TestFindConfigFileFromFirstPredefinedDir(t *testing.T) { function TestFindConfigFileFromSubsequentDirectoryIfNotFoundInPreviousOne (line 50) | func TestFindConfigFileFromSubsequentDirectoryIfNotFoundInPreviousOne(t ... function TestNotFindConfigFileWhenNotDefined (line 61) | func TestNotFindConfigFileWhenNotDefined(t *testing.T) { function TestCreatePredefinedDirs (line 72) | func TestCreatePredefinedDirs(t *testing.T) { function TestGetClientConfig (line 86) | func TestGetClientConfig(t *testing.T) { function TestNoResultForGetClientConfigWhenNoFileFound (line 101) | func TestNoResultForGetClientConfigWhenNoFileFound(t *testing.T) { function TestParseConfiguration (line 108) | func TestParseConfiguration(t *testing.T) { function TestParseAllLogLevels (line 154) | func TestParseAllLogLevels(t *testing.T) { function TestParseConfigurationFails (line 174) | func TestParseConfigurationFails(t *testing.T) { function TestUnknownValues (line 232) | func TestUnknownValues(t *testing.T) { function TestConfigFileOpenSymlinkFail (line 302) | func TestConfigFileOpenSymlinkFail(t *testing.T) { function createFile (line 317) | func createFile(t *testing.T, fileName string, fileContents string, dire... function createTestDirectories (line 324) | func createTestDirectories(t *testing.T) struct { function predefinedTestDirs (line 347) | func predefinedTestDirs(dirs struct { function createClientConfigContent (line 355) | func createClientConfigContent(logLevel string, logPath string) string { FILE: client_test.go type DummyTransport (line 10) | type DummyTransport struct method RoundTrip (line 15) | func (t *DummyTransport) RoundTrip(r *http.Request) (*http.Response, e... function TestInternalClient (line 28) | func TestInternalClient(t *testing.T) { FILE: cmd/arrow/transform_batches_to_rows/transform_batches_to_rows.go function main (line 16) | func main() { FILE: cmd/logger/logger.go function main (line 10) | func main() { FILE: cmd/mfa/mfa.go function main (line 12) | func main() { FILE: cmd/programmatic_access_token/pat.go function main (line 13) | func main() { FILE: cmd/variant/insertvariantobject.go function main (line 16) | func main() { FILE: connection.go constant httpHeaderContentType (line 25) | httpHeaderContentType = "Content-Type" constant httpHeaderAccept (line 26) | httpHeaderAccept = "accept" constant httpHeaderUserAgent (line 27) | httpHeaderUserAgent = "User-Agent" constant httpHeaderServiceName (line 28) | httpHeaderServiceName = "X-Snowflake-Service" constant httpHeaderContentLength (line 29) | httpHeaderContentLength = "Content-Length" constant httpHeaderHost (line 30) | httpHeaderHost = "Host" constant httpHeaderValueOctetStream (line 31) | httpHeaderValueOctetStream = "application/octet-stream" constant httpHeaderContentEncoding (line 32) | httpHeaderContentEncoding = "Content-Encoding" constant httpClientAppID (line 33) | httpClientAppID = "CLIENT_APP_ID" constant httpClientAppVersion (line 34) | httpClientAppVersion = "CLIENT_APP_VERSION" constant statementTypeIDSelect (line 38) | statementTypeIDSelect = int64(0x1000) constant statementTypeIDDml (line 39) | statementTypeIDDml = int64(0x3000) constant statementTypeIDMultiTableInsert (line 40) | statementTypeIDMultiTableInsert = statementTypeIDDml + int64(0x500) constant statementTypeIDMultistatement (line 41) | statementTypeIDMultistatement = int64(0xA000) constant sessionClientSessionKeepAlive (line 45) | sessionClientSessionKeepAlive = "client_session_keep_a... constant sessionClientSessionKeepAliveHeartbeatFrequency (line 46) | sessionClientSessionKeepAliveHeartbeatFrequency = "client_session_keep_a... constant sessionClientValidateDefaultParameters (line 47) | sessionClientValidateDefaultParameters = "CLIENT_VALIDATE_DEFAU... constant sessionArrayBindStageThreshold (line 48) | sessionArrayBindStageThreshold = "client_stage_array_bi... constant serviceName (line 49) | serviceName = "service_name" type resultType (line 52) | type resultType constant snowflakeResultType (line 55) | snowflakeResultType ContextKey = "snowflakeResultType" constant execResultType (line 56) | execResultType resultType = "exec" constant queryResultType (line 57) | queryResultType resultType = "query" type execKey (line 60) | type execKey constant executionType (line 63) | executionType execKey = "executionType" constant executionTypeStatement (line 64) | executionTypeStatement string = "statement" type snowflakeConn (line 70) | type snowflakeConn struct method exec (line 89) | func (sc *snowflakeConn) exec( method Begin (line 251) | func (sc *snowflakeConn) Begin() (driver.Tx, error) { method BeginTx (line 255) | func (sc *snowflakeConn) BeginTx( method cleanup (line 286) | func (sc *snowflakeConn) cleanup() { method Close (line 294) | func (sc *snowflakeConn) Close() (err error) { method PrepareContext (line 315) | func (sc *snowflakeConn) PrepareContext( method ExecContext (line 330) | func (sc *snowflakeConn) ExecContext( method QueryContext (line 396) | func (sc *snowflakeConn) QueryContext( method queryContextInternal (line 419) | func (sc *snowflakeConn) queryContextInternal( method Prepare (line 475) | func (sc *snowflakeConn) Prepare(query string) (driver.Stmt, error) { method Exec (line 479) | func (sc *snowflakeConn) Exec( method Query (line 486) | func (sc *snowflakeConn) Query( method Ping (line 493) | func (sc *snowflakeConn) Ping(ctx context.Context) error { method CheckNamedValue (line 509) | func (sc *snowflakeConn) CheckNamedValue(nv *driver.NamedValue) error { method GetQueryStatus (line 516) | func (sc *snowflakeConn) GetQueryStatus( method AddTelemetryData (line 535) | func (sc *snowflakeConn) AddTelemetryData(_ context.Context, eventDate... method QueryArrowStream (line 545) | func (sc *snowflakeConn) QueryArrowStream(ctx context.Context, query s... function extractQueryContext (line 224) | func extractQueryContext(data *execResponse) (queryContext, error) { function buildQueryContext (line 230) | func buildQueryContext(qcc *queryContextCache) (requestQueryContext, err... function buildSnowflakeConn (line 598) | func buildSnowflakeConn(ctx context.Context, config Config) (*snowflakeC... FILE: connection_configuration_test.go function TestTomlConnection (line 12) | func TestTomlConnection(t *testing.T) { FILE: connection_test.go constant serviceNameStub (line 27) | serviceNameStub = "SV" constant serviceNameAppend (line 28) | serviceNameAppend = "a" function TestInvalidConnection (line 31) | func TestInvalidConnection(t *testing.T) { function postQueryMock (line 53) | func postQueryMock(_ context.Context, _ *snowflakeRestful, _ *url.Values, function TestExecWithEmptyRequestID (line 74) | func TestExecWithEmptyRequestID(t *testing.T) { function TestGetQueryResultUsesTokenFromTokenAccessor (line 106) | func TestGetQueryResultUsesTokenFromTokenAccessor(t *testing.T) { function TestGetQueryResultTokenExpiry (line 145) | func TestGetQueryResultTokenExpiry(t *testing.T) { function TestGetQueryResultTokenNotSet (line 196) | func TestGetQueryResultTokenNotSet(t *testing.T) { function TestCheckNamedValue (line 245) | func TestCheckNamedValue(t *testing.T) { function TestExecWithSpecificRequestID (line 311) | func TestExecWithSpecificRequestID(t *testing.T) { function TestExecContextPropagationIntegrationTest (line 344) | func TestExecContextPropagationIntegrationTest(t *testing.T) { function TestServiceName (line 400) | func TestServiceName(t *testing.T) { function closeSessionMock (line 433) | func closeSessionMock(_ context.Context, _ *snowflakeRestful, _ time.Dur... function TestCloseIgnoreSessionGone (line 440) | func TestCloseIgnoreSessionGone(t *testing.T) { function TestClientSessionPersist (line 455) | func TestClientSessionPersist(t *testing.T) { function TestFetchResultByQueryID (line 474) | func TestFetchResultByQueryID(t *testing.T) { function TestFetchRunningQueryByID (line 516) | func TestFetchRunningQueryByID(t *testing.T) { function TestFetchErrorQueryByID (line 558) | func TestFetchErrorQueryByID(t *testing.T) { function TestFetchMalformedJsonQueryByID (line 595) | func TestFetchMalformedJsonQueryByID(t *testing.T) { function TestIsPrivateLink (line 631) | func TestIsPrivateLink(t *testing.T) { function TestBuildPrivatelinkConn (line 653) | func TestBuildPrivatelinkConn(t *testing.T) { function TestOcspAddressesSetup (line 664) | func TestOcspAddressesSetup(t *testing.T) { function TestGetQueryStatus (line 712) | func TestGetQueryStatus(t *testing.T) { function TestAddTelemetryDataViaSnowflakeConnection (line 741) | func TestAddTelemetryDataViaSnowflakeConnection(t *testing.T) { function TestConfigureTelemetry (line 759) | func TestConfigureTelemetry(t *testing.T) { function TestGetInvalidQueryStatus (line 784) | func TestGetInvalidQueryStatus(t *testing.T) { function TestExecWithServerSideError (line 795) | func TestExecWithServerSideError(t *testing.T) { function TestConcurrentReadOnParams (line 831) | func TestConcurrentReadOnParams(t *testing.T) { function postQueryTest (line 885) | func postQueryTest(_ context.Context, _ *snowflakeRestful, _ *url.Values... function postQueryFail (line 889) | func postQueryFail(_ context.Context, _ *snowflakeRestful, _ *url.Values... function TestErrorReportingOnConcurrentFails (line 902) | func TestErrorReportingOnConcurrentFails(t *testing.T) { function executeQueryAndConfirmMessage (line 916) | func executeQueryAndConfirmMessage(db *sql.DB, query string, expectedErr... function TestQueryArrowStreamError (line 926) | func TestQueryArrowStreamError(t *testing.T) { function TestExecContextError (line 953) | func TestExecContextError(t *testing.T) { function TestQueryContextError (line 975) | func TestQueryContextError(t *testing.T) { function TestPrepareQuery (line 1000) | func TestPrepareQuery(t *testing.T) { function TestBeginCreatesTransaction (line 1010) | func TestBeginCreatesTransaction(t *testing.T) { type EmptyTransporter (line 1019) | type EmptyTransporter struct method RoundTrip (line 1021) | func (t EmptyTransporter) RoundTrip(*http.Request) (*http.Response, er... function castToTransport (line 1027) | func castToTransport(rt http.RoundTripper) *http.Transport { function TestGetTransport (line 1034) | func TestGetTransport(t *testing.T) { function TestGetCRLTransport (line 1094) | func TestGetCRLTransport(t *testing.T) { FILE: connection_util.go method isClientSessionKeepAliveEnabled (line 17) | func (sc *snowflakeConn) isClientSessionKeepAliveEnabled() bool { method getClientSessionKeepAliveHeartbeatFrequency (line 25) | func (sc *snowflakeConn) getClientSessionKeepAliveHeartbeatFrequency() (... method startHeartBeat (line 41) | func (sc *snowflakeConn) startHeartBeat() { method stopHeartBeat (line 56) | func (sc *snowflakeConn) stopHeartBeat() { method getArrayBindStageThreshold (line 66) | func (sc *snowflakeConn) getArrayBindStageThreshold() int { method connectionTelemetry (line 78) | func (sc *snowflakeConn) connectionTelemetry(cfg *Config) { method processFileTransfer (line 100) | func (sc *snowflakeConn) processFileTransfer( function getFileStream (line 150) | func getFileStream(ctx context.Context) (io.Reader, error) { function isFileGetStream (line 162) | func isFileGetStream(ctx context.Context) bool { function getFileTransferOptions (line 167) | func getFileTransferOptions(ctx context.Context) *SnowflakeFileTransferO... function writeFileStream (line 179) | func writeFileStream(ctx context.Context, streamBuf *bytes.Buffer) error { method populateSessionParameters (line 192) | func (sc *snowflakeConn) populateSessionParameters(parameters []nameValu... method configureTelemetry (line 220) | func (sc *snowflakeConn) configureTelemetry() { function isAsyncMode (line 231) | func isAsyncMode(ctx context.Context) bool { function isDescribeOnly (line 235) | func isDescribeOnly(ctx context.Context) bool { function isInternal (line 239) | func isInternal(ctx context.Context) bool { function isLogQueryTextEnabled (line 243) | func isLogQueryTextEnabled(ctx context.Context) bool { function isLogQueryParametersEnabled (line 247) | func isLogQueryParametersEnabled(ctx context.Context) bool { function isBooleanContextEnabled (line 251) | func isBooleanContextEnabled(ctx context.Context, key ContextKey) bool { function setResultType (line 260) | func setResultType(ctx context.Context, resType resultType) context.Cont... function getResultType (line 264) | func getResultType(ctx context.Context) resultType { function isDml (line 269) | func isDml(v int64) bool { function isDql (line 273) | func isDql(data *execResponseData) bool { function updateRows (line 277) | func updateRows(data execResponseData) (int64, error) { function isMultiStmt (line 295) | func isMultiStmt(data *execResponseData) bool { function getResumeQueryID (line 300) | func getResumeQueryID(ctx context.Context) (string, error) { function populateChunkDownloader (line 322) | func populateChunkDownloader( function checkIsPrivateLink (line 355) | func checkIsPrivateLink(host string) bool { function isStatementContext (line 359) | func isStatementContext(ctx context.Context) bool { FILE: connectivity_diagnosis.go type connectivityDiagnoser (line 22) | type connectivityDiagnoser struct method openAndReadAllowlistJSON (line 122) | func (cd *connectivityDiagnoser) openAndReadAllowlistJSON(filePath str... method resolveHostname (line 139) | func (cd *connectivityDiagnoser) resolveHostname(hostname string) { method isAcceptableStatusCode (line 153) | func (cd *connectivityDiagnoser) isAcceptableStatusCode(statusCode int... method fetchCRL (line 157) | func (cd *connectivityDiagnoser) fetchCRL(uri string) error { method doHTTP (line 204) | func (cd *connectivityDiagnoser) doHTTP(request *http.Request) error { method doHTTPSGetCerts (line 233) | func (cd *connectivityDiagnoser) doHTTPSGetCerts(request *http.Request... method createRequest (line 297) | func (cd *connectivityDiagnoser) createRequest(uri string) (*http.Requ... method checkProxy (line 306) | func (cd *connectivityDiagnoser) checkProxy(req *http.Request) { method performConnectivityCheck (line 325) | func (cd *connectivityDiagnoser) performConnectivityCheck(entryType, h... function newConnectivityDiagnoser (line 26) | func newConnectivityDiagnoser(cfg *Config) *connectivityDiagnoser { type allowlistEntry (line 32) | type allowlistEntry struct type allowlist (line 38) | type allowlist struct function createDiagnosticClient (line 51) | func createDiagnosticClient(cfg *Config) *http.Client { function createDiagnosticDialContext (line 67) | func createDiagnosticDialContext() func(ctx context.Context, network, ad... function createDiagnosticTransport (line 100) | func createDiagnosticTransport(cfg *Config) *http.Transport { function performDiagnosis (line 362) | func performDiagnosis(cfg *Config, downloadCRLs bool) { FILE: connectivity_diagnosis_test.go function setupTestLogger (line 25) | func setupTestLogger() (buffer *bytes.Buffer, cleanup func()) { function TestSetupTestLogger (line 40) | func TestSetupTestLogger(t *testing.T) { type tcDiagnosticClient (line 69) | type tcDiagnosticClient struct type tcOpenAllowlistJSON (line 75) | type tcOpenAllowlistJSON struct type tcAcceptableStatusCode (line 82) | type tcAcceptableStatusCode struct type tcFetchCRL (line 87) | type tcFetchCRL struct type tcCreateRequest (line 94) | type tcCreateRequest struct type tcDoHTTP (line 100) | type tcDoHTTP struct type tcDoHTTPSGetCerts (line 108) | type tcDoHTTPSGetCerts struct type tcResolveHostname (line 116) | type tcResolveHostname struct type tcPerformConnectivityCheck (line 121) | type tcPerformConnectivityCheck struct function TestCreateDiagnosticClient (line 130) | func TestCreateDiagnosticClient(t *testing.T) { function TestCreateDiagnosticDialContext (line 159) | func TestCreateDiagnosticDialContext(t *testing.T) { function TestOpenAndReadAllowlistJSON (line 179) | func TestOpenAndReadAllowlistJSON(t *testing.T) { function TestIsAcceptableStatusCode (line 237) | func TestIsAcceptableStatusCode(t *testing.T) { function TestFetchCRL (line 257) | func TestFetchCRL(t *testing.T) { function TestCreateRequest (line 327) | func TestCreateRequest(t *testing.T) { function TestDoHTTP (line 363) | func TestDoHTTP(t *testing.T) { function TestDoHTTPSGetCerts (line 464) | func TestDoHTTPSGetCerts(t *testing.T) { function TestCheckProxy (line 530) | func TestCheckProxy(t *testing.T) { function TestResolveHostname (line 600) | func TestResolveHostname(t *testing.T) { function TestPerformConnectivityCheck (line 636) | func TestPerformConnectivityCheck(t *testing.T) { function TestPerformDiagnosis (line 685) | func TestPerformDiagnosis(t *testing.T) { FILE: connector.go type InternalSnowflakeDriver (line 11) | type InternalSnowflakeDriver interface type Connector (line 17) | type Connector struct method Connect (line 28) | func (t Connector) Connect(ctx context.Context) (driver.Conn, error) { method Driver (line 38) | func (t Connector) Driver() driver.Driver { function NewConnector (line 23) | func NewConnector(driver InternalSnowflakeDriver, config Config) driver.... FILE: connector_test.go type noopTestDriver (line 15) | type noopTestDriver struct method Open (line 20) | func (d *noopTestDriver) Open(_ string) (driver.Conn, error) { method OpenWithConfig (line 24) | func (d *noopTestDriver) OpenWithConfig(_ context.Context, config Conf... function TestConnector (line 29) | func TestConnector(t *testing.T) { function TestConnectorWithMissingConfig (line 58) | func TestConnectorWithMissingConfig(t *testing.T) { function TestConnectorCancelContext (line 78) | func TestConnectorCancelContext(t *testing.T) { FILE: converter.go constant format (line 29) | format = "2006-01-02 15:04:05.999999999" constant numberDefaultPrecision (line 30) | numberDefaultPrecision = 38 constant jsonFormatStr (line 31) | jsonFormatStr = "json" constant numberMaxPrecisionInBits (line 33) | numberMaxPrecisionInBits = 127 constant decfloatPrintingPrec (line 36) | decfloatPrintingPrec = 40 type timezoneType (line 38) | type timezoneType constant TimestampNTZType (line 45) | TimestampNTZType timezoneType = iota constant TimestampLTZType (line 47) | TimestampLTZType constant TimestampTZType (line 49) | TimestampTZType constant DateType (line 51) | DateType constant TimeType (line 53) | TimeType type interfaceArrayBinding (line 56) | type interfaceArrayBinding struct function isInterfaceArrayBinding (line 62) | func isInterfaceArrayBinding(t any) bool { function isJSONFormatType (line 73) | func isJSONFormatType(tsmode types.SnowflakeType) bool { function goTypeToSnowflake (line 78) | func goTypeToSnowflake(v driver.Value, tsmode types.SnowflakeType) types... function snowflakeTypeToGo (line 134) | func snowflakeTypeToGo(ctx context.Context, dbtype types.SnowflakeType, ... function snowflakeTypeToGoForMaps (line 225) | func snowflakeTypeToGoForMaps[K comparable](ctx context.Context, valueMe... function valueToString (line 254) | func valueToString(v driver.Value, tsmode types.SnowflakeType, params *s... function isUUIDImplementer (line 309) | func isUUIDImplementer(v reflect.Value) bool { function arrayToString (line 335) | func arrayToString(v driver.Value, tsmode types.SnowflakeType, params *s... function mapToString (line 462) | func mapToString(v driver.Value, tsmode types.SnowflakeType, params *syn... function toNullableInt64 (line 640) | func toNullableInt64(val any) (int64, bool) { function toNullableTime (line 655) | func toNullableTime(val any) (time.Time, bool, error) { function stringOrIntToString (line 665) | func stringOrIntToString(v reflect.Value) string { function goTypeToFieldMetadata (line 672) | func goTypeToFieldMetadata(typ reflect.Type, tsmode types.SnowflakeType,... function isSliceOfSlices (line 800) | func isSliceOfSlices(v any) bool { function isArrayOfStructs (line 805) | func isArrayOfStructs(v any) bool { function structValueToString (line 809) | func structValueToString(v driver.Value, tsmode types.SnowflakeType, par... function timeTypeValueToString (line 907) | func timeTypeValueToString(tm time.Time, tsmode types.SnowflakeType) (bi... function extractTimestamp (line 929) | func extractTimestamp(srcValue *string) (sec int64, nsec int64, err erro... function stringToValue (line 961) | func stringToValue(ctx context.Context, dest *driver.Value, srcColumnMet... function jsonToMap (line 1130) | func jsonToMap(ctx context.Context, keyMetadata, valueMetadata query.Fie... function jsonToMapWithKeyType (line 1176) | func jsonToMapWithKeyType[K comparable](ctx context.Context, valueMetada... function buildArrayFromMap (line 1295) | func buildArrayFromMap[K comparable, V any](ctx context.Context, valueMe... function buildStructuredTypeFromMap (line 1311) | func buildStructuredTypeFromMap(values map[string]any, fieldMetadata []q... function ifNotNullOrDefault (line 1319) | func ifNotNullOrDefault[T any](t any, def T) T { function buildMapValues (line 1326) | func buildMapValues[K comparable, Vnullable any, VnotNullable any](mapVa... function buildStructuredArray (line 1349) | func buildStructuredArray(ctx context.Context, fieldMetadata query.Field... function buildStructuredArrayRecursive (line 1414) | func buildStructuredArrayRecursive[T any](ctx context.Context, fieldMeta... function copyArrayAndConvert (line 1426) | func copyArrayAndConvert[T any](input []any, convertFunc func(input any)... function buildStructuredTypeRecursive (line 1437) | func buildStructuredTypeRecursive(ctx context.Context, m map[string]any,... function intToBigFloat (line 1463) | func intToBigFloat(val int64, scale int64) *big.Float { function decimalToBigInt (line 1469) | func decimalToBigInt(num decimal128.Num) *big.Int { function decimalToBigFloat (line 1475) | func decimalToBigFloat(num decimal128.Num, scale int64) *big.Float { function arrowSnowflakeTimestampToTime (line 1481) | func arrowSnowflakeTimestampToTime( function extractEpoch (line 1539) | func extractEpoch(value int64, scale int) int64 { function extractFraction (line 1543) | func extractFraction(value int64, scale int) int64 { function arrowToValues (line 1549) | func arrowToValues( function arrowToValue (line 1573) | func arrowToValue(ctx context.Context, rowIdx int, srcColumnMeta query.F... function buildMapFromNativeArrow (line 1699) | func buildMapFromNativeArrow(ctx context.Context, rowIdx int, keyMetadat... function buildListFromNativeArrow (line 1726) | func buildListFromNativeArrow(ctx context.Context, rowIdx int, fieldMeta... function buildArrowListRecursive (line 2046) | func buildArrowListRecursive[T any](ctx context.Context, rowIdx int, fie... function mapStructuredArrayNativeArrowRows (line 2060) | func mapStructuredArrayNativeArrowRows[T any](offsets []int32, rowIdx in... function extractInt64 (line 2072) | func extractInt64(values arrow.Array, j int) (int64, error) { function buildStructuredMapFromArrow (line 2088) | func buildStructuredMapFromArrow[K comparable](ctx context.Context, rowI... function buildListFromNativeArrowMap (line 2262) | func buildListFromNativeArrowMap[K comparable, V any](ctx context.Contex... function buildTimeFromNativeArrowArray (line 2272) | func buildTimeFromNativeArrowArray[K comparable](mapNullValuesEnabled bo... function mapStructuredMapNativeArrowFixedValue (line 2289) | func mapStructuredMapNativeArrowFixedValue[V any](valueMetadata query.Fi... function extractNumberFromArrow (line 2297) | func extractNumberFromArrow(values *arrow.Array, j int, higherPrecision ... function mapStructuredMapNativeArrowRows (line 2313) | func mapStructuredMapNativeArrowRows[K comparable, V any](m map[K]V, off... function arrowToStructuredType (line 2326) | func arrowToStructuredType(ctx context.Context, structs *array.Struct, f... function arrowStringToValue (line 2393) | func arrowStringToValue(srcValue *array.String, rowIdx int) snowflakeVal... function arrowDecimal128ToValue (line 2400) | func arrowDecimal128ToValue(srcValue *array.Decimal128, rowIdx int, high... function arrowInt64ToValue (line 2418) | func arrowInt64ToValue(srcValue *array.Int64, rowIdx int, higherPrecisio... function arrowInt32ToValue (line 2426) | func arrowInt32ToValue(srcValue *array.Int32, rowIdx int, higherPrecisio... function arrowInt16ToValue (line 2434) | func arrowInt16ToValue(srcValue *array.Int16, rowIdx int, higherPrecisio... function arrowInt8ToValue (line 2442) | func arrowInt8ToValue(srcValue *array.Int8, rowIdx int, higherPrecision ... function arrowIntToValue (line 2450) | func arrowIntToValue(srcColumnMeta query.FieldMetadata, higherPrecision ... function arrowRealToValue (line 2467) | func arrowRealToValue(srcValue *array.Float64, rowIdx int) snowflakeValue { function arrowDecFloatToValue (line 2474) | func arrowDecFloatToValue(ctx context.Context, srcValue *array.Struct, r... function parseTwosComplementBigEndian (line 2514) | func parseTwosComplementBigEndian(b []byte) (*big.Int, error) { function arrowBoolToValue (line 2535) | func arrowBoolToValue(srcValue *array.Boolean, rowIdx int) snowflakeValue { function arrowBinaryToValue (line 2542) | func arrowBinaryToValue(srcValue *array.Binary, rowIdx int) snowflakeVal... function arrowDateToValue (line 2549) | func arrowDateToValue(srcValue *array.Date32, rowID int) snowflakeValue { function arrowTimeToValue (line 2556) | func arrowTimeToValue(srcValue arrow.Array, rowIdx int, scale int) snowf... type intArray (line 2571) | type intArray type int32Array (line 2572) | type int32Array type int64Array (line 2573) | type int64Array type float64Array (line 2574) | type float64Array type float32Array (line 2575) | type float32Array type decfloatArray (line 2576) | type decfloatArray type boolArray (line 2577) | type boolArray type stringArray (line 2578) | type stringArray type byteArray (line 2579) | type byteArray type timestampNtzArray (line 2580) | type timestampNtzArray type timestampLtzArray (line 2581) | type timestampLtzArray type timestampTzArray (line 2582) | type timestampTzArray type dateArray (line 2583) | type dateArray type timeArray (line 2584) | type timeArray function Array (line 2589) | func Array(a any, typ ...any) (any, error) { function snowflakeArrayToString (line 2695) | func snowflakeArrayToString(nv *driver.NamedValue, stream bool) (types.S... function interfaceSliceToString (line 2842) | func interfaceSliceToString(interfaceSlice reflect.Value, stream bool, t... function higherPrecisionEnabled (line 2960) | func higherPrecisionEnabled(ctx context.Context) bool { function decfloatMappingEnabled (line 2964) | func decfloatMappingEnabled(ctx context.Context) bool { type TypedNullTime (line 2975) | type TypedNullTime struct function convertTzTypeToSnowflakeType (line 2980) | func convertTzTypeToSnowflakeType(tzType timezoneType) types.SnowflakeTy... function getTimestampBindValue (line 2996) | func getTimestampBindValue(x time.Time, stream bool, t types.SnowflakeTy... function convertTimeToTimeStamp (line 3003) | func convertTimeToTimeStamp(x time.Time, t types.SnowflakeType) (string,... function decoderWithNumbersAsStrings (line 3019) | func decoderWithNumbersAsStrings(srcValue *string) *json.Decoder { FILE: converter_test.go function stringIntToDecimal (line 25) | func stringIntToDecimal(src string) (decimal128.Num, bool) { function stringFloatToDecimal (line 35) | func stringFloatToDecimal(src string, scale int64) (decimal128.Num, bool) { function stringFloatToInt (line 51) | func stringFloatToInt(src string, scale int64) (int64, bool) { type testValueToStringStructuredObject (line 66) | type testValueToStringStructuredObject struct method Write (line 72) | func (o *testValueToStringStructuredObject) Write(sowc StructuredObjec... function TestValueToString (line 85) | func TestValueToString(t *testing.T) { function TestExtractTimestamp (line 218) | func TestExtractTimestamp(t *testing.T) { function TestStringToValue (line 236) | func TestStringToValue(t *testing.T) { type tcArrayToString (line 290) | type tcArrayToString struct function TestArrayToString (line 296) | func TestArrayToString(t *testing.T) { function TestArrowToValues (line 322) | func TestArrowToValues(t *testing.T) { function TestTimestampLTZLocation (line 871) | func TestTimestampLTZLocation(t *testing.T) { function TestSmallTimestampBinding (line 900) | func TestSmallTimestampBinding(t *testing.T) { function TestTimestampConversionWithoutArrowBatches (line 936) | func TestTimestampConversionWithoutArrowBatches(t *testing.T) { function TestTimeTypeValueToString (line 988) | func TestTimeTypeValueToString(t *testing.T) { function TestIsArrayOfStructs (line 1022) | func TestIsArrayOfStructs(t *testing.T) { function TestSqlNull (line 1043) | func TestSqlNull(t *testing.T) { function TestNumbersScanType (line 1058) | func TestNumbersScanType(t *testing.T) { function mustArray (line 1194) | func mustArray(v any, typ ...any) driver.Value { FILE: crl.go constant snowflakeCrlCacheValidityTimeEnv (line 22) | snowflakeCrlCacheValidityTimeEnv = "SNOWFLAKE_CRL_CACHE_VALIDITY_TIME" type distributionPointName (line 26) | type distributionPointName struct type issuingDistributionPoint (line 30) | type issuingDistributionPoint struct type crlValidator (line 34) | type crlValidator struct method verifyPeerCertificates (line 163) | func (cv *crlValidator) verifyPeerCertificates(rawCerts [][]byte, veri... method validateChains (line 193) | func (cv *crlValidator) validateChains(chains [][]*x509.Certificate) [... method validateCertificate (line 244) | func (cv *crlValidator) validateCertificate(cert *x509.Certificate, pa... method validateCrlAgainstCrlURL (line 259) | func (cv *crlValidator) validateCrlAgainstCrlURL(cert *x509.Certificat... method validateCrl (line 317) | func (cv *crlValidator) validateCrl(crl *x509.RevocationList, parent *... method getFromCache (line 334) | func (cv *crlValidator) getFromCache(crlURL string) (*x509.RevocationL... method updateCache (line 392) | func (cv *crlValidator) updateCache(crlURL string, crl *x509.Revocatio... method downloadCrl (line 429) | func (cv *crlValidator) downloadCrl(crlURL string) (*x509.RevocationLi... method crlURLToPath (line 483) | func (cv *crlValidator) crlURLToPath(crlURL string) string { method verifyAgainstIdpExtension (line 488) | func (cv *crlValidator) verifyAgainstIdpExtension(crl *x509.Revocation... method getOrCreateMutex (line 508) | func (cv *crlValidator) getOrCreateMutex(crlURL string) *sync.Mutex { type crlCacheCleanerType (line 44) | type crlCacheCleanerType struct method startPeriodicCacheCleanup (line 535) | func (ccc *crlCacheCleanerType) startPeriodicCacheCleanup() { method stopPeriodicCacheCleanup (line 561) | func (ccc *crlCacheCleanerType) stopPeriodicCacheCleanup() { method cleanupInMemoryCache (line 575) | func (ccc *crlCacheCleanerType) cleanupInMemoryCache() { method cleanupOnDiskCache (line 590) | func (ccc *crlCacheCleanerType) cleanupOnDiskCache() { type crlInMemoryCacheValueType (line 53) | type crlInMemoryCacheValueType struct function newCrlValidator (line 67) | func newCrlValidator(certRevocationCheckMode CertRevocationCheckMode, al... function initCrlCacheCleaner (line 81) | func initCrlCacheCleaner() { constant CertRevocationCheckDisabled (line 132) | CertRevocationCheckDisabled = sfconfig.CertRevocationCheckDisabled constant CertRevocationCheckAdvisory (line 135) | CertRevocationCheckAdvisory = sfconfig.CertRevocationCheckAdvisory constant CertRevocationCheckEnabled (line 137) | CertRevocationCheckEnabled = sfconfig.CertRevocationCheckEnabled type crlValidationResult (line 140) | type crlValidationResult constant crlRevoked (line 143) | crlRevoked crlValidationResult = iota constant crlUnrevoked (line 144) | crlUnrevoked constant crlError (line 145) | crlError type certValidationResult (line 148) | type certValidationResult constant certRevoked (line 151) | certRevoked certValidationResult = iota constant certUnrevoked (line 152) | certUnrevoked constant certError (line 153) | certError constant defaultCrlHTTPClientTimeout (line 157) | defaultCrlHTTPClientTimeout = 10 * time.Second constant defaultCrlCacheValidityTime (line 158) | defaultCrlCacheValidityTime = 24 * time.Hour constant defaultCrlOnDiskCacheRemovalDelay (line 159) | defaultCrlOnDiskCacheRemovalDelay = 7 * time.Hour constant defaultCrlDownloadMaxSize (line 160) | defaultCrlDownloadMaxSize = 20 * 1024 * 1024 function isShortLivedCertificate (line 519) | func isShortLivedCertificate(cert *x509.Certificate) bool { function defaultCrlOnDiskCacheDir (line 622) | func defaultCrlOnDiskCacheDir() (string, error) { FILE: crl_test.go type allowCertificatesWithoutCrlURLType (line 27) | type allowCertificatesWithoutCrlURLType type inMemoryCacheDisabledType (line 28) | type inMemoryCacheDisabledType type onDiskCacheDisabledType (line 29) | type onDiskCacheDisabledType type downloadMaxSizeType (line 30) | type downloadMaxSizeType type notAfterType (line 32) | type notAfterType type crlEndpointType (line 33) | type crlEndpointType type revokedCert (line 35) | type revokedCert type thisUpdateType (line 37) | type thisUpdateType type nextUpdateType (line 38) | type nextUpdateType function newTestCrlValidator (line 40) | func newTestCrlValidator(t *testing.T, checkMode CertRevocationCheckMode... function TestCrlCheckModeDisabledNoHttpCall (line 70) | func TestCrlCheckModeDisabledNoHttpCall(t *testing.T) { function TestCrlModes (line 80) | func TestCrlModes(t *testing.T) { function cleanupCrlCache (line 805) | func cleanupCrlCache(t *testing.T) { function TestRealCrlWithIdpExtension (line 817) | func TestRealCrlWithIdpExtension(t *testing.T) { function TestParallelRequestToTheSameCrl (line 830) | func TestParallelRequestToTheSameCrl(t *testing.T) { function TestIsShortLivedCertificate (line 859) | func TestIsShortLivedCertificate(t *testing.T) { type malformedCrlRoundTripper (line 938) | type malformedCrlRoundTripper struct method RoundTrip (line 941) | func (m *malformedCrlRoundTripper) RoundTrip(req *http.Request) (*http... function createCa (line 949) | func createCa(t *testing.T, issuerCert *x509.Certificate, issuerPrivateK... function createLeafCert (line 968) | func createLeafCert(t *testing.T, issuerCert *x509.Certificate, issuerPr... function createCert (line 996) | func createCert(t *testing.T, template, issuerCert *x509.Certificate, is... function calculateKeyID (line 1014) | func calculateKeyID(t *testing.T, pubKey any) []byte { function createCrl (line 1021) | func createCrl(t *testing.T, issuerCert *x509.Certificate, issuerPrivate... type crlEndpointDef (line 1057) | type crlEndpointDef struct function newCrlEndpointDef (line 1062) | func newCrlEndpointDef(endpoint string, crl *x509.RevocationList) *crlEn... function createCrlServer (line 1069) | func createCrlServer(t *testing.T) (*http.Server, int) { function registerCrlEndpoints (line 1085) | func registerCrlEndpoints(t *testing.T, server *http.Server, endpointDef... function fullCrlURL (line 1095) | func fullCrlURL(port int, endpoint string) string { function closeServer (line 1099) | func closeServer(t *testing.T, server *http.Server) { function TestCrlE2E (line 1104) | func TestCrlE2E(t *testing.T) { FILE: ctx_test.go function TestCtxVal (line 11) | func TestCtxVal(t *testing.T) { function TestLogCtx (line 41) | func TestLogCtx(t *testing.T) { FILE: datatype.go function dataTypeMode (line 50) | func dataTypeMode(v driver.Value) (tsmode types.SnowflakeType, err error) { type SnowflakeParameter (line 89) | type SnowflakeParameter struct function populateSnowflakeParameter (line 111) | func populateSnowflakeParameter(colname string, p *SnowflakeParameter) a... function ScanSnowflakeParameter (line 156) | func ScanSnowflakeParameter(rows *sql.Rows) (*SnowflakeParameter, error) { FILE: datatype_test.go function TestDataTypeMode (line 11) | func TestDataTypeMode(t *testing.T) { function TestPopulateSnowflakeParameter (line 52) | func TestPopulateSnowflakeParameter(t *testing.T) { FILE: datetime.go type formatReplacement (line 14) | type formatReplacement struct function timeToString (line 36) | func timeToString(t time.Time, dateTimeType string, sp *syncParams) (str... function snowflakeFormatToGoFormat (line 48) | func snowflakeFormatToGoFormat(sfFormat string) (string, error) { function dateTimeOutputFormatByType (line 75) | func dateTimeOutputFormatByType(dateTimeType string, sp *syncParams) (st... function dateTimeInputFormatByType (line 104) | func dateTimeInputFormatByType(dateTimeType string, sp *syncParams) (str... FILE: datetime_test.go function TestSnowflakeFormatToGoFormatUnitTest (line 8) | func TestSnowflakeFormatToGoFormatUnitTest(t *testing.T) { function TestIncorrectSecondsFraction (line 61) | func TestIncorrectSecondsFraction(t *testing.T) { function TestSnowflakeFormatToGoFormatIntegrationTest (line 66) | func TestSnowflakeFormatToGoFormatIntegrationTest(t *testing.T) { FILE: driver.go type SnowflakeDriver (line 15) | type SnowflakeDriver struct method Open (line 18) | func (d SnowflakeDriver) Open(dsn string) (driver.Conn, error) { method OpenConnector (line 35) | func (d SnowflakeDriver) OpenConnector(dsn string) (driver.Connector, ... method OpenWithConfig (line 50) | func (d SnowflakeDriver) OpenWithConfig(ctx context.Context, config Co... function runningOnGithubAction (line 101) | func runningOnGithubAction() bool { function skipRegistration (line 111) | func skipRegistration() bool { function init (line 115) | func init() { FILE: driver_ocsp_test.go function setenv (line 18) | func setenv(k, v string) { function unsetenv (line 25) | func unsetenv(k string) { function deleteOCSPCacheFile (line 33) | func deleteOCSPCacheFile() { function deleteOCSPCacheAll (line 38) | func deleteOCSPCacheAll() { function cleanup (line 44) | func cleanup() { function TestOCSPFailOpen (line 53) | func TestOCSPFailOpen(t *testing.T) { function isFailToConnectOrAuthErr (line 91) | func isFailToConnectOrAuthErr(driverErr *SnowflakeError) bool { function TestOCSPFailOpenWithoutFileCache (line 95) | func TestOCSPFailOpenWithoutFileCache(t *testing.T) { function TestOCSPFailOpenRevokedStatus (line 135) | func TestOCSPFailOpenRevokedStatus(t *testing.T) { function TestOCSPFailClosedRevokedStatus (line 182) | func TestOCSPFailClosedRevokedStatus(t *testing.T) { function TestOCSPFailOpenCacheServerTimeout (line 229) | func TestOCSPFailOpenCacheServerTimeout(t *testing.T) { function TestOCSPFailClosedCacheServerTimeout (line 275) | func TestOCSPFailClosedCacheServerTimeout(t *testing.T) { function TestOCSPFailOpenResponderTimeout (line 337) | func TestOCSPFailOpenResponderTimeout(t *testing.T) { function TestOCSPFailClosedResponderTimeout (line 384) | func TestOCSPFailClosedResponderTimeout(t *testing.T) { function TestOCSPFailOpenResponder404 (line 438) | func TestOCSPFailOpenResponder404(t *testing.T) { function TestOCSPFailClosedResponder404 (line 479) | func TestOCSPFailClosedResponder404(t *testing.T) { function TestExpiredCertificate (line 520) | func TestExpiredCertificate(t *testing.T) { function TestOCSPFailOpenNoOCSPURL (line 605) | func TestOCSPFailOpenNoOCSPURL(t *testing.T) { function TestOCSPFailClosedNoOCSPURL (line 646) | func TestOCSPFailClosedNoOCSPURL(t *testing.T) { function TestOCSPUnexpectedResponses (line 693) | func TestOCSPUnexpectedResponses(t *testing.T) { function TestConnectionToMultipleConfigurations (line 758) | func TestConnectionToMultipleConfigurations(t *testing.T) { FILE: driver_test.go constant selectNumberSQL (line 50) | selectNumberSQL = "SELECT %s::NUMBER(%v, %v) AS C" constant selectVariousTypes (line 51) | selectVariousTypes = "SELECT 1.0::NUMBER(30,2) as C1, 2::NUMBER(18,0)... constant selectRandomGenerator (line 52) | selectRandomGenerator = "SELECT SEQ8(), RANDSTR(1000, RANDOM()) FROM TAB... constant PSTLocation (line 53) | PSTLocation = "America/Los_Angeles" function init (line 61) | func init() { function createDSN (line 93) | func createDSN(timezone string) { function setup (line 152) | func setup() (string, error) { function teardown (line 180) | func teardown() error { function TestMain (line 193) | func TestMain(m *testing.M) { type DBTest (line 210) | type DBTest struct method mustQueryT (line 215) | func (dbt *DBTest) mustQueryT(t *testing.T, query string, args ...any)... method mustQuery (line 248) | func (dbt *DBTest) mustQuery(query string, args ...any) (rows *RowsExt... method mustQueryContext (line 253) | func (dbt *DBTest) mustQueryContext(ctx context.Context, query string,... method mustQueryContextT (line 258) | func (dbt *DBTest) mustQueryContextT(ctx context.Context, t *testing.T... method query (line 291) | func (dbt *DBTest) query(query string, args ...any) (*sql.Rows, error) { method mustQueryAssertCount (line 295) | func (dbt *DBTest) mustQueryAssertCount(query string, expected int, ar... method prepare (line 307) | func (dbt *DBTest) prepare(query string) (*sql.Stmt, error) { method fail (line 311) | func (dbt *DBTest) fail(method, query string, err error) { method mustExec (line 318) | func (dbt *DBTest) mustExec(query string, args ...any) (res sql.Result) { method mustExecT (line 322) | func (dbt *DBTest) mustExecT(t *testing.T, query string, args ...any) ... method mustExecContext (line 326) | func (dbt *DBTest) mustExecContext(ctx context.Context, query string, ... method mustExecContextT (line 334) | func (dbt *DBTest) mustExecContextT(ctx context.Context, t *testing.T,... method exec (line 342) | func (dbt *DBTest) exec(query string, args ...any) (sql.Result, error) { method mustDecimalSize (line 346) | func (dbt *DBTest) mustDecimalSize(ct *sql.ColumnType) (pr int64, sc i... method mustFailDecimalSize (line 355) | func (dbt *DBTest) mustFailDecimalSize(ct *sql.ColumnType) { method mustLength (line 362) | func (dbt *DBTest) mustLength(ct *sql.ColumnType) (cLen int64) { method mustFailLength (line 371) | func (dbt *DBTest) mustFailLength(ct *sql.ColumnType) { method mustNullable (line 378) | func (dbt *DBTest) mustNullable(ct *sql.ColumnType) (canNull bool) { method mustPrepare (line 387) | func (dbt *DBTest) mustPrepare(query string) (stmt *sql.Stmt) { method forceJSON (line 395) | func (dbt *DBTest) forceJSON() { method forceArrow (line 399) | func (dbt *DBTest) forceArrow() { method forceNativeArrow (line 405) | func (dbt *DBTest) forceNativeArrow() { // structured types method enableStructuredTypes (line 411) | func (dbt *DBTest) enableStructuredTypes() { method enableStructuredTypesBinding (line 426) | func (dbt *DBTest) enableStructuredTypesBinding() { type SCTest (line 438) | type SCTest struct method fail (line 443) | func (sct *SCTest) fail(method, query string, err error) { method mustExec (line 450) | func (sct *SCTest) mustExec(query string, args []driver.Value) driver.... method mustQuery (line 457) | func (sct *SCTest) mustQuery(query string, args []driver.Value) driver... method mustQueryContext (line 465) | func (sct *SCTest) mustQueryContext(ctx context.Context, query string,... type testConfig (line 473) | type testConfig struct function runDBTest (line 477) | func runDBTest(t *testing.T, test func(dbt *DBTest)) { function runDBTestWithConfig (line 481) | func runDBTestWithConfig(t *testing.T, testCfg *testConfig, test func(db... function runSnowflakeConnTest (line 491) | func runSnowflakeConnTest(t *testing.T, test func(sct *SCTest)) { function runSnowflakeConnTestWithConfig (line 495) | func runSnowflakeConnTestWithConfig(t *testing.T, testCfg *testConfig, t... function getDbHandlerFromConfig (line 514) | func getDbHandlerFromConfig(t *testing.T, cfg *Config) *sql.DB { function runningOnAWS (line 524) | func runningOnAWS() bool { function runningOnGCP (line 528) | func runningOnGCP() bool { function runningOnLinux (line 532) | func runningOnLinux() bool { function TestKnownUserInvalidPasswordParameters (line 536) | func TestKnownUserInvalidPasswordParameters(t *testing.T) { function TestCommentOnlyQuery (line 557) | func TestCommentOnlyQuery(t *testing.T) { function TestEmptyQuery (line 574) | func TestEmptyQuery(t *testing.T) { function TestEmptyQueryWithRequestID (line 590) | func TestEmptyQueryWithRequestID(t *testing.T) { function TestRequestIDFromTwoDifferentSessions (line 602) | func TestRequestIDFromTwoDifferentSessions(t *testing.T) { function TestCRUD (line 699) | func TestCRUD(t *testing.T) { function TestInt (line 797) | func TestInt(t *testing.T) { function testInt (line 801) | func testInt(t *testing.T, json bool) { function TestFloat32 (line 835) | func TestFloat32(t *testing.T) { function testFloat32 (line 839) | func testFloat32(t *testing.T, json bool) { function TestFloat64 (line 873) | func TestFloat64(t *testing.T) { function testFloat64 (line 877) | func testFloat64(t *testing.T, json bool) { function TestDecfloat (line 908) | func TestDecfloat(t *testing.T) { function TestString (line 1070) | func TestString(t *testing.T) { function testString (line 1074) | func testString(t *testing.T, json bool) { type testUUID (line 1130) | type testUUID struct method Scan (line 1148) | func (uuid *testUUID) Scan(src any) error { method Value (line 1187) | func (uuid testUUID) Value() (driver.Value, error) { function newTestUUID (line 1134) | func newTestUUID() testUUID { function parseTestUUID (line 1138) | func parseTestUUID(str string) testUUID { function TestUUID (line 1191) | func TestUUID(t *testing.T) { function testUUIDWithFormat (line 1200) | func testUUIDWithFormat(t *testing.T, json, arrow bool) { type tcDateTimeTimestamp (line 1240) | type tcDateTimeTimestamp struct type timeTest (line 1246) | type timeTest struct method genQuery (line 1251) | func (tt timeTest) genQuery() string { method run (line 1255) | func (tt timeTest) run(t *testing.T, dbt *DBTest, dbtype, tlayout stri... function TestSimpleDateTimeTimestampFetch (line 1303) | func TestSimpleDateTimeTimestampFetch(t *testing.T) { function testSimpleDateTimeTimestampFetch (line 1307) | func testSimpleDateTimeTimestampFetch(t *testing.T, json bool) { function TestDateTime (line 1339) | func TestDateTime(t *testing.T) { function testDateTime (line 1343) | func testDateTime(t *testing.T, json bool) { function TestTimestampLTZ (line 1407) | func TestTimestampLTZ(t *testing.T) { function testTimestampLTZ (line 1411) | func testTimestampLTZ(t *testing.T, json bool) { function TestTimestampTZ (line 1480) | func TestTimestampTZ(t *testing.T) { function testTimestampTZ (line 1484) | func testTimestampTZ(t *testing.T, json bool) { function TestNULL (line 1528) | func TestNULL(t *testing.T) { function testNULL (line 1532) | func testNULL(t *testing.T, json bool) { function TestVariant (line 1688) | func TestVariant(t *testing.T) { function testVariant (line 1692) | func testVariant(t *testing.T, json bool) { function TestArray (line 1710) | func TestArray(t *testing.T) { function testArray (line 1714) | func testArray(t *testing.T, json bool) { function TestLargeSetResult (line 1732) | func TestLargeSetResult(t *testing.T) { function testLargeSetResult (line 1737) | func testLargeSetResult(t *testing.T, numrows int, json bool) { function TestPingpongQuery (line 1764) | func TestPingpongQuery(t *testing.T) { function TestDML (line 1779) | func TestDML(t *testing.T) { function insertData (line 1805) | func insertData(dbt *DBTest, commit bool) error { function queryTestTx (line 1840) | func queryTestTx(tx *sql.Tx) (*map[int]string, error) { function queryTest (line 1859) | func queryTest(dbt *DBTest) (*map[int]string, error) { function TestCancelQuery (line 1877) | func TestCancelQuery(t *testing.T) { function TestCancelQueryWithConnectionContext (line 1892) | func TestCancelQueryWithConnectionContext(t *testing.T) { function TestPing (line 1938) | func TestPing(t *testing.T) { function TestDoubleDollar (line 1958) | func TestDoubleDollar(t *testing.T) { function TestTimezoneSessionParameter (line 1980) | func TestTimezoneSessionParameter(t *testing.T) { function TestLargeSetResultCancel (line 2000) | func TestLargeSetResultCancel(t *testing.T) { function TestValidateDatabaseParameter (line 2028) | func TestValidateDatabaseParameter(t *testing.T) { function TestSpecifyWarehouseDatabase (line 2100) | func TestSpecifyWarehouseDatabase(t *testing.T) { function TestFetchNil (line 2119) | func TestFetchNil(t *testing.T) { function TestPingInvalidHost (line 2139) | func TestPingInvalidHost(t *testing.T) { function TestOpenWithConfig (line 2166) | func TestOpenWithConfig(t *testing.T) { function TestOpenWithConfigCancel (line 2194) | func TestOpenWithConfigCancel(t *testing.T) { function TestOpenWithInvalidConfig (line 2227) | func TestOpenWithInvalidConfig(t *testing.T) { function TestOpenWithTransport (line 2241) | func TestOpenWithTransport(t *testing.T) { function TestClientSessionKeepAliveParameter (line 2276) | func TestClientSessionKeepAliveParameter(t *testing.T) { function TestTimePrecision (line 2299) | func TestTimePrecision(t *testing.T) { function initPoolWithSize (line 2312) | func initPoolWithSize(t *testing.T, db *sql.DB, poolSize int) { function initPoolWithSizeAndReturnErrors (line 2325) | func initPoolWithSizeAndReturnErrors(db *sql.DB, poolSize int) []error { function runSelectCurrentUser (line 2349) | func runSelectCurrentUser(t *testing.T, db *sql.DB) string { function runSmokeQuery (line 2360) | func runSmokeQuery(t *testing.T, db *sql.DB) { function runSmokeQueryAndReturnErrors (line 2371) | func runSmokeQueryAndReturnErrors(db *sql.DB) error { function runSmokeQueryWithConn (line 2391) | func runSmokeQueryWithConn(t *testing.T, conn *sql.Conn) { FILE: dsn.go constant configBoolNotSet (line 20) | configBoolNotSet = sfconfig.BoolNotSet constant ConfigBoolTrue (line 22) | ConfigBoolTrue = sfconfig.BoolTrue constant ConfigBoolFalse (line 24) | ConfigBoolFalse = sfconfig.BoolFalse function DSN (line 28) | func DSN(cfg *Config) (string, error) { return sfconfig.DSN(cfg) } function ParseDSN (line 31) | func ParseDSN(dsn string) (*Config, error) { return sfconfig.ParseDSN(ds... function GetConfigFromEnv (line 34) | func GetConfigFromEnv(properties []*ConfigParam) (*Config, error) { function transportConfigFor (line 38) | func transportConfigFor(tt transportType) *transportConfig { FILE: easy_logging.go type initTrials (line 17) | type initTrials struct method setInitTrial (line 31) | func (i *initTrials) setInitTrial(clientConfigFileInput string) { method increaseReconfigureCounter (line 36) | func (i *initTrials) increaseReconfigureCounter() { function initEasyLogging (line 40) | func initEasyLogging(clientConfigFileInput string) error { function easyLoggingInitError (line 81) | func easyLoggingInitError(err error) error { function reconfigureEasyLogging (line 89) | func reconfigureEasyLogging(logLevel string, logPath string) error { function createLogWriter (line 124) | func createLogWriter(logPath string) (io.Writer, *os.File, error) { function allowedToInitialize (line 136) | func allowedToInitialize(clientConfigFileInput string) bool { function getLogLevel (line 145) | func getLogLevel(logLevel string) (string, error) { function getLogPath (line 153) | func getLogPath(logPath string) (string, error) { function isDirAccessCorrect (line 184) | func isDirAccessCorrect(dirPath string) (bool, *os.FileMode, error) { function dirExists (line 199) | func dirExists(dirPath string) (bool, error) { FILE: easy_logging_test.go function TestInitializeEasyLoggingOnlyOnceWhenConfigGivenAsAParameter (line 16) | func TestInitializeEasyLoggingOnlyOnceWhenConfigGivenAsAParameter(t *tes... function TestConfigureEasyLoggingOnlyOnceWhenInitializedWithoutConfigFilePath (line 46) | func TestConfigureEasyLoggingOnlyOnceWhenInitializedWithoutConfigFilePat... function TestReconfigureEasyLoggingIfConfigPathWasNotGivenForTheFirstTime (line 94) | func TestReconfigureEasyLoggingIfConfigPathWasNotGivenForTheFirstTime(t ... function TestEasyLoggingFailOnUnknownLevel (line 134) | func TestEasyLoggingFailOnUnknownLevel(t *testing.T) { function TestEasyLoggingFailOnNotExistingConfigFile (line 148) | func TestEasyLoggingFailOnNotExistingConfigFile(t *testing.T) { function TestLogToConfiguredFile (line 159) | func TestLogToConfiguredFile(t *testing.T) { function TestDataRace (line 194) | func TestDataRace(t *testing.T) { function notEmptyLines (line 211) | func notEmptyLines(lines string) []string { function cleanUp (line 218) | func cleanUp() { function toClientConfigLevel (line 226) | func toClientConfigLevel(logLevel string) string { function filterStrings (line 238) | func filterStrings(values []string, keep func(string) bool) []string { function defaultConfig (line 248) | func defaultConfig(t *testing.T) *Config { function openWithClientConfigFile (line 254) | func openWithClientConfigFile(t *testing.T, clientConfigFile string) err... method reset (line 262) | func (i *initTrials) reset() { FILE: encrypt_util.go constant gcmIvLengthInBytes (line 17) | gcmIvLengthInBytes = 12 function encryptStreamCBC (line 36) | func encryptStreamCBC( function encryptECB (line 120) | func encryptECB(encrypted []byte, fileKey []byte, decodedKey []byte) err... function decryptECB (line 139) | func decryptECB(decrypted []byte, keyBytes []byte, decodedKey []byte) er... function encryptFileCBC (line 158) | func encryptFileCBC( function decryptFileKeyECB (line 193) | func decryptFileKeyECB( function initCBC (line 222) | func initCBC(decryptedKey []byte, ivBytes []byte) (cipher.BlockMode, err... function decryptFileCBC (line 232) | func decryptFileCBC( function decryptStreamCBC (line 265) | func decryptStreamCBC( function encryptGCM (line 315) | func encryptGCM(iv []byte, plaintext []byte, encryptionKey []byte, aad [... function decryptGCM (line 323) | func decryptGCM(iv []byte, ciphertext []byte, encryptionKey []byte, aad ... function initGcm (line 331) | func initGcm(encryptionKey []byte) (cipher.AEAD, error) { function encryptFileGCM (line 339) | func encryptFileGCM( function decryptFileGCM (line 410) | func decryptFileGCM( type materialDescriptor (line 466) | type materialDescriptor struct function matdescToUnicode (line 472) | func matdescToUnicode(matdesc materialDescriptor) (string, error) { function getSecureRandom (line 480) | func getSecureRandom(byteLength int) []byte { function padBytesLength (line 489) | func padBytesLength(src []byte, blockSize int) []byte { function paddingTrim (line 495) | func paddingTrim(src []byte) ([]byte, error) { function paddingOffset (line 516) | func paddingOffset(src []byte) int { type contentKey (line 521) | type contentKey struct type encryptionAgent (line 527) | type encryptionAgent struct type keyMetadata (line 532) | type keyMetadata struct type encryptionData (line 536) | type encryptionData struct type snowflakeFileEncryption (line 544) | type snowflakeFileEncryption struct type encryptionWrapper (line 553) | type encryptionWrapper struct method UnmarshalJSON (line 25) | func (ew *encryptionWrapper) UnmarshalJSON(data []byte) error { type encryptMetadata (line 558) | type encryptMetadata struct type gcmEncryptMetadata (line 564) | type gcmEncryptMetadata struct FILE: encrypt_util_test.go constant timeFormat (line 21) | timeFormat = "2006-01-02T15:04:05" type encryptDecryptTestFile (line 23) | type encryptDecryptTestFile struct function TestEncryptDecryptFileCBC (line 28) | func TestEncryptDecryptFileCBC(t *testing.T) { function TestEncryptDecryptFilePadding (line 73) | func TestEncryptDecryptFilePadding(t *testing.T) { function TestEncryptDecryptLargeFileCBC (line 106) | func TestEncryptDecryptLargeFileCBC(t *testing.T) { function TestEncryptStreamCBCReadError (line 123) | func TestEncryptStreamCBCReadError(t *testing.T) { function TestDecryptStreamCBCReadError (line 138) | func TestDecryptStreamCBCReadError(t *testing.T) { function encryptDecryptFile (line 164) | func encryptDecryptFile(t *testing.T, encMat snowflakeFileEncryption, ex... function generateKLinesOfNByteRows (line 201) | func generateKLinesOfNByteRows(numLines int, numBytes int, tmpDir string... function generateKLinesOfNFiles (line 219) | func generateKLinesOfNFiles(k int, n int, compress bool, tmpDir string) ... function TestEncryptDecryptGCM (line 297) | func TestEncryptDecryptGCM(t *testing.T) { function TestEncryptDecryptFileGCM (line 310) | func TestEncryptDecryptFileGCM(t *testing.T) { FILE: errors.go function generateTelemetryExceptionData (line 15) | func generateTelemetryExceptionData(se *SnowflakeError) *telemetryData { function exceptionTelemetry (line 45) | func exceptionTelemetry(se *SnowflakeError, sc *snowflakeConn) *Snowflak... function populateErrorFields (line 57) | func populateErrorFields(code int, data *execResponse) *SnowflakeError { constant queryNotExecutingCode (line 76) | queryNotExecutingCode = "000605" constant queryInProgressCode (line 77) | queryInProgressCode = "333333" constant queryInProgressAsyncCode (line 78) | queryInProgressAsyncCode = "333334" constant sessionExpiredCode (line 79) | sessionExpiredCode = "390112" constant invalidOAuthAccessTokenCode (line 80) | invalidOAuthAccessTokenCode = "390303" constant expiredOAuthAccessTokenCode (line 81) | expiredOAuthAccessTokenCode = "390318" constant ErrCodeEmptyAccountCode (line 89) | ErrCodeEmptyAccountCode = sferrors.ErrCodeEmptyAccountCode constant ErrCodeEmptyUsernameCode (line 91) | ErrCodeEmptyUsernameCode = sferrors.ErrCodeEmptyUsernameCode constant ErrCodeEmptyPasswordCode (line 93) | ErrCodeEmptyPasswordCode = sferrors.ErrCodeEmptyPasswordCode constant ErrCodeFailedToParseHost (line 95) | ErrCodeFailedToParseHost = sferrors.ErrCodeFailedToParseHost constant ErrCodeFailedToParsePort (line 97) | ErrCodeFailedToParsePort = sferrors.ErrCodeFailedToParsePort constant ErrCodeIdpConnectionError (line 99) | ErrCodeIdpConnectionError = sferrors.ErrCodeIdpConnectionError constant ErrCodeSSOURLNotMatch (line 101) | ErrCodeSSOURLNotMatch = sferrors.ErrCodeSSOURLNotMatch constant ErrCodeServiceUnavailable (line 103) | ErrCodeServiceUnavailable = sferrors.ErrCodeServiceUnavailable constant ErrCodeFailedToConnect (line 105) | ErrCodeFailedToConnect = sferrors.ErrCodeFailedToConnect constant ErrCodeRegionOverlap (line 107) | ErrCodeRegionOverlap = sferrors.ErrCodeRegionOverlap constant ErrCodePrivateKeyParseError (line 109) | ErrCodePrivateKeyParseError = sferrors.ErrCodePrivateKeyParseError constant ErrCodeFailedToParseAuthenticator (line 111) | ErrCodeFailedToParseAuthenticator = sferrors.ErrCodeFailedToParseAuthent... constant ErrCodeClientConfigFailed (line 113) | ErrCodeClientConfigFailed = sferrors.ErrCodeClientConfigFailed constant ErrCodeTomlFileParsingFailed (line 115) | ErrCodeTomlFileParsingFailed = sferrors.ErrCodeTomlFileParsingFailed constant ErrCodeFailedToFindDSNInToml (line 117) | ErrCodeFailedToFindDSNInToml = sferrors.ErrCodeFailedToFindDSNInToml constant ErrCodeInvalidFilePermission (line 119) | ErrCodeInvalidFilePermission = sferrors.ErrCodeInvalidFilePermission constant ErrCodeEmptyPasswordAndToken (line 121) | ErrCodeEmptyPasswordAndToken = sferrors.ErrCodeEmptyPasswordAndToken constant ErrCodeEmptyOAuthParameters (line 123) | ErrCodeEmptyOAuthParameters = sferrors.ErrCodeEmptyOAuthParameters constant ErrMissingAccessATokenButRefreshTokenPresent (line 125) | ErrMissingAccessATokenButRefreshTokenPresent = sferrors.ErrMissingAccess... constant ErrCodeMissingTLSConfig (line 127) | ErrCodeMissingTLSConfig = sferrors.ErrCodeMissingTLSConfig constant ErrFailedToPostQuery (line 132) | ErrFailedToPostQuery = sferrors.ErrFailedToPostQuery constant ErrFailedToRenewSession (line 134) | ErrFailedToRenewSession = sferrors.ErrFailedToRenewSession constant ErrFailedToCancelQuery (line 136) | ErrFailedToCancelQuery = sferrors.ErrFailedToCancelQuery constant ErrFailedToCloseSession (line 138) | ErrFailedToCloseSession = sferrors.ErrFailedToCloseSession constant ErrFailedToAuth (line 140) | ErrFailedToAuth = sferrors.ErrFailedToAuth constant ErrFailedToAuthSAML (line 142) | ErrFailedToAuthSAML = sferrors.ErrFailedToAuthSAML constant ErrFailedToAuthOKTA (line 144) | ErrFailedToAuthOKTA = sferrors.ErrFailedToAuthOKTA constant ErrFailedToGetSSO (line 146) | ErrFailedToGetSSO = sferrors.ErrFailedToGetSSO constant ErrFailedToParseResponse (line 148) | ErrFailedToParseResponse = sferrors.ErrFailedToParseResponse constant ErrFailedToGetExternalBrowserResponse (line 150) | ErrFailedToGetExternalBrowserResponse = sferrors.ErrFailedToGetExternalB... constant ErrFailedToHeartbeat (line 152) | ErrFailedToHeartbeat = sferrors.ErrFailedToHeartbeat constant ErrFailedToGetChunk (line 157) | ErrFailedToGetChunk = sferrors.ErrFailedToGetChunk constant ErrNonArrowResponseInArrowBatches (line 159) | ErrNonArrowResponseInArrowBatches = sferrors.ErrNonArrowResponseInArrowB... constant ErrNoReadOnlyTransaction (line 164) | ErrNoReadOnlyTransaction = sferrors.ErrNoReadOnlyTransaction constant ErrNoDefaultTransactionIsolationLevel (line 166) | ErrNoDefaultTransactionIsolationLevel = sferrors.ErrNoDefaultTransaction... constant ErrInvalidStageFs (line 171) | ErrInvalidStageFs = sferrors.ErrInvalidStageFs constant ErrFailedToDownloadFromStage (line 173) | ErrFailedToDownloadFromStage = sferrors.ErrFailedToDownloadFromStage constant ErrFailedToUploadToStage (line 175) | ErrFailedToUploadToStage = sferrors.ErrFailedToUploadToStage constant ErrInvalidStageLocation (line 177) | ErrInvalidStageLocation = sferrors.ErrInvalidStageLocation constant ErrLocalPathNotDirectory (line 179) | ErrLocalPathNotDirectory = sferrors.ErrLocalPathNotDirectory constant ErrFileNotExists (line 181) | ErrFileNotExists = sferrors.ErrFileNotExists constant ErrCompressionNotSupported (line 183) | ErrCompressionNotSupported = sferrors.ErrCompressionNotSupported constant ErrInternalNotMatchEncryptMaterial (line 185) | ErrInternalNotMatchEncryptMaterial = sferrors.ErrInternalNotMatchEncrypt... constant ErrCommandNotRecognized (line 187) | ErrCommandNotRecognized = sferrors.ErrCommandNotRecognized constant ErrFailedToConvertToS3Client (line 189) | ErrFailedToConvertToS3Client = sferrors.ErrFailedToConvertToS3Client constant ErrNotImplemented (line 191) | ErrNotImplemented = sferrors.ErrNotImplemented constant ErrInvalidPadding (line 193) | ErrInvalidPadding = sferrors.ErrInvalidPadding constant ErrBindSerialization (line 198) | ErrBindSerialization = sferrors.ErrBindSerialization constant ErrBindUpload (line 200) | ErrBindUpload = sferrors.ErrBindUpload constant ErrAsync (line 205) | ErrAsync = sferrors.ErrAsync constant ErrNoResultIDs (line 210) | ErrNoResultIDs = sferrors.ErrNoResultIDs constant ErrInvalidTimestampTz (line 215) | ErrInvalidTimestampTz = sferrors.ErrInvalidTimestampTz constant ErrInvalidOffsetStr (line 218) | ErrInvalidOffsetStr = sferrors.ErrInvalidOffsetStr constant ErrInvalidBinaryHexForm (line 220) | ErrInvalidBinaryHexForm = sferrors.ErrInvalidBinaryHexForm constant ErrTooHighTimestampPrecision (line 222) | ErrTooHighTimestampPrecision = sferrors.ErrTooHighTimestampPrecision constant ErrNullValueInArray (line 224) | ErrNullValueInArray = sferrors.ErrNullValueInArray constant ErrNullValueInMap (line 226) | ErrNullValueInMap = sferrors.ErrNullValueInMap constant ErrOCSPStatusRevoked (line 231) | ErrOCSPStatusRevoked = sferrors.ErrOCSPStatusRevoked constant ErrOCSPStatusUnknown (line 233) | ErrOCSPStatusUnknown = sferrors.ErrOCSPStatusUnknown constant ErrOCSPInvalidValidity (line 235) | ErrOCSPInvalidValidity = sferrors.ErrOCSPInvalidValidity constant ErrOCSPNoOCSPResponderURL (line 237) | ErrOCSPNoOCSPResponderURL = sferrors.ErrOCSPNoOCSPResponderURL constant ErrQueryStatus (line 242) | ErrQueryStatus = sferrors.ErrQueryStatus constant ErrQueryIDFormat (line 244) | ErrQueryIDFormat = sferrors.ErrQueryIDFormat constant ErrQueryReportedError (line 246) | ErrQueryReportedError = sferrors.ErrQueryReportedError constant ErrQueryIsRunning (line 248) | ErrQueryIsRunning = sferrors.ErrQueryIsRunning constant ErrSessionGone (line 253) | ErrSessionGone = sferrors.ErrSessionGone constant ErrRoleNotExist (line 255) | ErrRoleNotExist = sferrors.ErrRoleNotExist constant ErrObjectNotExistOrAuthorized (line 257) | ErrObjectNotExistOrAuthorized = sferrors.ErrObjectNotExistOrAuthorized FILE: errors_test.go function TestErrorMessage (line 8) | func TestErrorMessage(t *testing.T) { FILE: file_compression_type.go type compressionType (line 10) | type compressionType struct function init (line 101) | func init() { function lookupByMimeSubType (line 118) | func lookupByMimeSubType(mimeSubType string) *compressionType { function lookupByExtension (line 125) | func lookupByExtension(extension string) *compressionType { FILE: file_transfer_agent.go type cloudType (line 32) | type cloudType type commandType (line 33) | type commandType constant fileProtocol (line 37) | fileProtocol = "file://" constant multiPartThreshold (line 38) | multiPartThreshold int64 = 64 * 1024 * 1024 constant streamingMultiPartThreshold (line 39) | streamingMultiPartThreshold int64 = 8 * 1024 * 1024 constant isWindows (line 40) | isWindows = runtime.GOOS == "windows" constant mb (line 41) | mb float64 = 1024.0 * 1024.0 constant uploadCommand (line 45) | uploadCommand commandType = "UPLOAD" constant downloadCommand (line 46) | downloadCommand commandType = "DOWNLOAD" constant unknownCommand (line 47) | unknownCommand commandType = "UNKNOWN" constant putRegexp (line 49) | putRegexp string = `(?i)^(?:/\*.*\*/\s*)*\s*put\s+` constant getRegexp (line 50) | getRegexp string = `(?i)^(?:/\*.*\*/\s*)*\s*get\s+` constant s3Client (line 54) | s3Client cloudType = "S3" constant azureClient (line 55) | azureClient cloudType = "AZURE" constant gcsClient (line 56) | gcsClient cloudType = "GCS" constant local (line 57) | local cloudType = "LOCAL_FS" type resultStatus (line 60) | type resultStatus method String (line 74) | func (rs resultStatus) String() string { method isSet (line 80) | func (rs resultStatus) isSet() bool { constant errStatus (line 63) | errStatus resultStatus = iota constant uploaded (line 64) | uploaded constant downloaded (line 65) | downloaded constant skipped (line 66) | skipped constant renewToken (line 67) | renewToken constant renewPresignedURL (line 68) | renewPresignedURL constant notFoundFile (line 69) | notFoundFile constant needRetry (line 70) | needRetry constant needRetryWithLowerConcurrency (line 71) | needRetryWithLowerConcurrency type SnowflakeFileTransferOptions (line 86) | type SnowflakeFileTransferOptions struct type snowflakeFileTransferAgent (line 104) | type snowflakeFileTransferAgent struct method execute (line 130) | func (sfa *snowflakeFileTransferAgent) execute() error { method parseCommand (line 213) | func (sfa *snowflakeFileTransferAgent) parseCommand() error { method initEncryptionMaterial (line 299) | func (sfa *snowflakeFileTransferAgent) initEncryptionMaterial() { method expandFilenames (line 316) | func (sfa *snowflakeFileTransferAgent) expandFilenames(locations []str... method initFileMetadata (line 349) | func (sfa *snowflakeFileTransferAgent) initFileMetadata() error { method processFileCompressionType (line 474) | func (sfa *snowflakeFileTransferAgent) processFileCompressionType() er... method updateFileMetadataWithPresignedURL (line 567) | func (sfa *snowflakeFileTransferAgent) updateFileMetadataWithPresigned... method transferAccelerateConfigWithUtil (line 648) | func (sfa *snowflakeFileTransferAgent) transferAccelerateConfigWithUti... method transferAccelerateConfig (line 687) | func (sfa *snowflakeFileTransferAgent) transferAccelerateConfig() error { method getLocalFilePathFromCommand (line 695) | func (sfa *snowflakeFileTransferAgent) getLocalFilePathFromCommand(com... method upload (line 736) | func (sfa *snowflakeFileTransferAgent) upload( method download (line 766) | func (sfa *snowflakeFileTransferAgent) download( method uploadFilesParallel (line 784) | func (sfa *snowflakeFileTransferAgent) uploadFilesParallel(fileMetas [... method uploadFilesSequential (line 880) | func (sfa *snowflakeFileTransferAgent) uploadFilesSequential(fileMetas... method uploadOneFile (line 911) | func (sfa *snowflakeFileTransferAgent) uploadOneFile(meta *fileMetadat... method downloadFilesParallel (line 952) | func (sfa *snowflakeFileTransferAgent) downloadFilesParallel(fileMetas... method downloadOneFile (line 1035) | func (sfa *snowflakeFileTransferAgent) downloadOneFile(ctx context.Con... method getStorageClient (line 1060) | func (sfa *snowflakeFileTransferAgent) getStorageClient(stageLocationT... method renewExpiredClient (line 1074) | func (sfa *snowflakeFileTransferAgent) renewExpiredClient() (cloudClie... method result (line 1089) | func (sfa *snowflakeFileTransferAgent) result() (*execResponse, error) { type s3BucketAccelerateConfigGetter (line 639) | type s3BucketAccelerateConfigGetter interface type s3ClientCreator (line 643) | type s3ClientCreator interface function withCloudStorageTimeout (line 678) | func withCloudStorageTimeout[T any](ctx context.Context, cfg *Config, f ... function isFileTransfer (line 1233) | func isFileTransfer(query string) bool { type snowflakeProgressPercentage (line 1239) | type snowflakeProgressPercentage struct method call (line 1249) | func (spp *snowflakeProgressPercentage) call(bytesAmount int64) { method percent (line 1259) | func (spp *snowflakeProgressPercentage) percent(seenSoFar int64, size ... method updateProgress (line 1266) | func (spp *snowflakeProgressPercentage) updateProgress(filename string... function compressDataIfRequired (line 1298) | func compressDataIfRequired(meta *fileMetadata, fileUtil *snowflakeFileU... function updateUploadSize (line 1310) | func updateUploadSize(meta *fileMetadata, fileUtil *snowflakeFileUtil) e... function encryptDataIfRequired (line 1320) | func encryptDataIfRequired(meta *fileMetadata, ct cloudType) error { FILE: file_transfer_agent_test.go type tcFilePath (line 24) | type tcFilePath struct function TestGetBucketAccelerateConfiguration (line 29) | func TestGetBucketAccelerateConfiguration(t *testing.T) { type s3ClientCreatorMock (line 54) | type s3ClientCreatorMock struct method extractBucketNameAndPath (line 59) | func (mock *s3ClientCreatorMock) extractBucketNameAndPath(location str... method createClientWithConfig (line 63) | func (mock *s3ClientCreatorMock) createClientWithConfig(info *execResp... type s3BucketAccelerateConfigGetterMock (line 67) | type s3BucketAccelerateConfigGetterMock struct method GetBucketAccelerateConfiguration (line 71) | func (mock *s3BucketAccelerateConfigGetterMock) GetBucketAccelerateCon... function TestGetBucketAccelerateConfigurationTooManyRetries (line 75) | func TestGetBucketAccelerateConfigurationTooManyRetries(t *testing.T) { function TestGetBucketAccelerateConfigurationFailedExtractBucketNameAndPath (line 108) | func TestGetBucketAccelerateConfigurationFailedExtractBucketNameAndPath(... function TestGetBucketAccelerateConfigurationFailedCreateClient (line 131) | func TestGetBucketAccelerateConfigurationFailedCreateClient(t *testing.T) { function TestGetBucketAccelerateConfigurationInvalidClient (line 157) | func TestGetBucketAccelerateConfigurationInvalidClient(t *testing.T) { function TestUnitDownloadWithInvalidLocalPath (line 183) | func TestUnitDownloadWithInvalidLocalPath(t *testing.T) { function TestUnitGetLocalFilePathFromCommand (line 216) | func TestUnitGetLocalFilePathFromCommand(t *testing.T) { function TestUnitProcessFileCompressionType (line 246) | func TestUnitProcessFileCompressionType(t *testing.T) { function TestParseCommandWithInvalidStageLocation (line 293) | func TestParseCommandWithInvalidStageLocation(t *testing.T) { function TestParseCommandEncryptionMaterialMismatchError (line 316) | func TestParseCommandEncryptionMaterialMismatchError(t *testing.T) { function TestParseCommandInvalidStorageClientException (line 355) | func TestParseCommandInvalidStorageClientException(t *testing.T) { function TestInitFileMetadataError (line 393) | func TestInitFileMetadataError(t *testing.T) { function TestUpdateMetadataWithPresignedUrl (line 435) | func TestUpdateMetadataWithPresignedUrl(t *testing.T) { function TestUpdateMetadataWithPresignedUrlForDownload (line 514) | func TestUpdateMetadataWithPresignedUrlForDownload(t *testing.T) { function TestUpdateMetadataWithPresignedUrlError (line 564) | func TestUpdateMetadataWithPresignedUrlError(t *testing.T) { function TestUpdateMetadataSkipsSecondQueryWithGcsDownscopedToken (line 588) | func TestUpdateMetadataSkipsSecondQueryWithGcsDownscopedToken(t *testing... function TestUpdateMetadataStillQueriesWithPresignedUrlOnGcs (line 649) | func TestUpdateMetadataStillQueriesWithPresignedUrlOnGcs(t *testing.T) { function TestUploadWhenFilesystemReadOnlyError (line 728) | func TestUploadWhenFilesystemReadOnlyError(t *testing.T) { function TestUploadWhenErrorWithResultIsReturned (line 789) | func TestUploadWhenErrorWithResultIsReturned(t *testing.T) { function createWriteonlyFile (line 844) | func createWriteonlyFile(dir, filename string) error { function TestUnitUpdateProgress (line 857) | func TestUnitUpdateProgress(t *testing.T) { function TestCustomTmpDirPath (line 886) | func TestCustomTmpDirPath(t *testing.T) { function TestReadonlyTmpDirPathShouldFail (line 960) | func TestReadonlyTmpDirPathShouldFail(t *testing.T) { function TestUploadDownloadOneFileRequireCompress (line 1022) | func TestUploadDownloadOneFileRequireCompress(t *testing.T) { function TestUploadDownloadOneFileRequireCompressStream (line 1026) | func TestUploadDownloadOneFileRequireCompressStream(t *testing.T) { function testUploadDownloadOneFile (line 1030) | func testUploadDownloadOneFile(t *testing.T, isStream bool) { function TestPutGetRegexShouldIgnoreWhitespaceAtTheBeginning (line 1121) | func TestPutGetRegexShouldIgnoreWhitespaceAtTheBeginning(t *testing.T) { function TestEncryptStream (line 1177) | func TestEncryptStream(t *testing.T) { function TestEncryptFile (line 1316) | func TestEncryptFile(t *testing.T) { FILE: file_util.go type snowflakeFileUtil (line 15) | type snowflakeFileUtil struct method compressFileWithGzipFromStream (line 23) | func (util *snowflakeFileUtil) compressFileWithGzipFromStream(srcStrea... method compressFileWithGzip (line 40) | func (util *snowflakeFileUtil) compressFileWithGzip(fileName string, t... method getDigestAndSizeForStream (line 75) | func (util *snowflakeFileUtil) getDigestAndSizeForStream(stream io.Rea... method getDigestAndSizeForFile (line 93) | func (util *snowflakeFileUtil) getDigestAndSizeForFile(fileName string... constant fileChunkSize (line 19) | fileChunkSize = 16 * 4 * 1024 constant readWriteFileMode (line 20) | readWriteFileMode os.FileMode = 0666 type fileMetadata (line 125) | type fileMetadata struct type fileTransferResultType (line 178) | type fileTransferResultType struct type fileHeader (line 190) | type fileHeader struct function getReaderFromBuffer (line 196) | func getReaderFromBuffer(src **bytes.Buffer) io.Reader { function baseName (line 204) | func baseName(path string) string { function expandUser (line 216) | func expandUser(path string) (string, error) { function getDirectory (line 233) | func getDirectory() (string, error) { FILE: file_util_test.go function TestGetDigestAndSizeForInvalidDir (line 9) | func TestGetDigestAndSizeForInvalidDir(t *testing.T) { type tcBaseName (line 23) | type tcBaseName struct function TestBaseName (line 28) | func TestBaseName(t *testing.T) { function TestExpandUser (line 45) | func TestExpandUser(t *testing.T) { FILE: function_wrapper_test.go function TestGoWrapper (line 9) | func TestGoWrapper(t *testing.T) { FILE: function_wrappers.go type GoroutineWrapperFunc (line 8) | type GoroutineWrapperFunc FILE: gcs_storage_client.go constant gcsMetadataPrefix (line 17) | gcsMetadataPrefix = "x-goog-meta-" constant gcsMetadataSfcDigest (line 18) | gcsMetadataSfcDigest = gcsMetadataPrefix + sfcDigest constant gcsMetadataMatdescKey (line 19) | gcsMetadataMatdescKey = gcsMetadataPrefix + "matdesc" constant gcsMetadataEncryptionDataProp (line 20) | gcsMetadataEncryptionDataProp = gcsMetadataPrefix + "encryptiondata" constant gcsFileHeaderDigest (line 21) | gcsFileHeaderDigest = "gcs-file-header-digest" constant gcsRegionMeCentral2 (line 22) | gcsRegionMeCentral2 = "me-central2" constant minimumDownloadPartSize (line 23) | minimumDownloadPartSize = 1024 * 1024 * 5 type snowflakeGcsClient (line 26) | type snowflakeGcsClient struct method createClient (line 36) | func (util *snowflakeGcsClient) createClient(info *execResponseStageIn... method getFileHeader (line 46) | func (util *snowflakeGcsClient) getFileHeader(ctx context.Context, met... method uploadFile (line 156) | func (util *snowflakeGcsClient) uploadFile( method nativeDownloadFile (line 305) | func (util *snowflakeGcsClient) nativeDownloadFile( method getFileHeaderForDownload (line 377) | func (util *snowflakeGcsClient) getFileHeaderForDownload(ctx context.C... method downloadFileInParts (line 435) | func (util *snowflakeGcsClient) downloadFileInParts( method downloadInPartsForStream (line 457) | func (util *snowflakeGcsClient) downloadInPartsForStream( method downloadInPartsForFile (line 560) | func (util *snowflakeGcsClient) downloadInPartsForFile( method downloadRangeStream (line 639) | func (util *snowflakeGcsClient) downloadRangeStream( method downloadRangeBytes (line 679) | func (util *snowflakeGcsClient) downloadRangeBytes( method downloadFileSinglePart (line 708) | func (util *snowflakeGcsClient) downloadFileSinglePart( method handleHTTPError (line 778) | func (util *snowflakeGcsClient) handleHTTPError(resp *http.Response, m... method extractBucketNameAndPath (line 797) | func (util *snowflakeGcsClient) extractBucketNameAndPath(location stri... method generateFileURL (line 810) | func (util *snowflakeGcsClient) generateFileURL(stageInfo *execRespons... method isTokenExpired (line 834) | func (util *snowflakeGcsClient) isTokenExpired(resp *http.Response) bo... type gcsLocation (line 31) | type gcsLocation struct type gcsAPI (line 151) | type gcsAPI interface type downloadPart (line 416) | type downloadPart struct type downloadPartStream (line 423) | type downloadPartStream struct type downloadJob (line 429) | type downloadJob struct function newGcsClient (line 838) | func newGcsClient(cfg *Config, telemetry *snowflakeTelemetry) (gcsAPI, e... FILE: gcs_storage_client_test.go type tcFileURL (line 18) | type tcFileURL struct function TestExtractBucketAndPath (line 25) | func TestExtractBucketAndPath(t *testing.T) { function TestIsTokenExpiredWith401 (line 47) | func TestIsTokenExpiredWith401(t *testing.T) { function TestIsTokenExpiredWith404 (line 66) | func TestIsTokenExpiredWith404(t *testing.T) { function TestGenerateFileURL (line 99) | func TestGenerateFileURL(t *testing.T) { type clientMock (line 147) | type clientMock struct method Do (line 151) | func (c *clientMock) Do(req *http.Request) (*http.Response, error) { function TestUploadFileWithGcsUploadFailedError (line 155) | func TestUploadFileWithGcsUploadFailedError(t *testing.T) { function TestUploadFileWithGcsUploadFailedWithRetry (line 210) | func TestUploadFileWithGcsUploadFailedWithRetry(t *testing.T) { function TestUploadFileWithGcsUploadFailedWithTokenExpired (line 281) | func TestUploadFileWithGcsUploadFailedWithTokenExpired(t *testing.T) { function TestDownloadOneFileFromGcsFailed (line 348) | func TestDownloadOneFileFromGcsFailed(t *testing.T) { function TestDownloadOneFileFromGcsFailedWithRetry (line 394) | func TestDownloadOneFileFromGcsFailedWithRetry(t *testing.T) { function TestDownloadOneFileFromGcsFailedWithTokenExpired (line 450) | func TestDownloadOneFileFromGcsFailedWithTokenExpired(t *testing.T) { function TestDownloadOneFileFromGcsFailedWithFileNotFound (line 509) | func TestDownloadOneFileFromGcsFailedWithFileNotFound(t *testing.T) { function TestGetHeaderTokenExpiredError (line 568) | func TestGetHeaderTokenExpiredError(t *testing.T) { function TestGetHeaderFileNotFound (line 604) | func TestGetHeaderFileNotFound(t *testing.T) { function TestGetHeaderPresignedUrlReturns404 (line 640) | func TestGetHeaderPresignedUrlReturns404(t *testing.T) { function TestGetHeaderReturnsError (line 670) | func TestGetHeaderReturnsError(t *testing.T) { function TestGetHeaderBadRequest (line 697) | func TestGetHeaderBadRequest(t *testing.T) { function TestGetHeaderRetryableError (line 734) | func TestGetHeaderRetryableError(t *testing.T) { function TestUploadStreamFailed (line 770) | func TestUploadStreamFailed(t *testing.T) { function TestUploadFileWithBadRequest (line 817) | func TestUploadFileWithBadRequest(t *testing.T) { function TestGetFileHeaderEncryptionData (line 881) | func TestGetFileHeaderEncryptionData(t *testing.T) { function TestGetFileHeaderEncryptionDataInterfaceConversionError (line 932) | func TestGetFileHeaderEncryptionDataInterfaceConversionError(t *testing.... function TestUploadFileToGcsNoStatus (line 971) | func TestUploadFileToGcsNoStatus(t *testing.T) { function TestDownloadFileFromGcsError (line 1037) | func TestDownloadFileFromGcsError(t *testing.T) { function TestDownloadFileWithBadRequest (line 1088) | func TestDownloadFileWithBadRequest(t *testing.T) { function Test_snowflakeGcsClient_uploadFile (line 1144) | func Test_snowflakeGcsClient_uploadFile(t *testing.T) { function Test_snowflakeGcsClient_nativeDownloadFile (line 1162) | func Test_snowflakeGcsClient_nativeDownloadFile(t *testing.T) { function TestGetGcsCustomEndpoint (line 1180) | func TestGetGcsCustomEndpoint(t *testing.T) { FILE: heartbeat.go constant minHeartBeatInterval (line 14) | minHeartBeatInterval = 900 * time.Second constant maxHeartBeatInterval (line 15) | maxHeartBeatInterval = 3600 * time.Second constant defaultHeartBeatInterval (line 16) | defaultHeartBeatInterval = 3600 * time.Second function newDefaultHeartBeat (line 19) | func newDefaultHeartBeat(restful *snowflakeRestful) *heartbeat { function newHeartBeat (line 23) | func newHeartBeat(restful *snowflakeRestful, heartbeatInterval time.Dura... type heartbeat (line 39) | type heartbeat struct method run (line 46) | func (hc *heartbeat) run() { method start (line 65) | func (hc *heartbeat) start() { method stop (line 73) | func (hc *heartbeat) stop() { method heartbeatMain (line 81) | func (hc *heartbeat) heartbeatMain() error { FILE: heartbeat_test.go function TestUnitPostHeartbeat (line 9) | func TestUnitPostHeartbeat(t *testing.T) { function TestHeartbeatStartAndStop (line 41) | func TestHeartbeatStartAndStop(t *testing.T) { function TestHeartbeatIntervalLowerThanMin (line 59) | func TestHeartbeatIntervalLowerThanMin(t *testing.T) { function TestHeartbeatIntervalHigherThanMax (line 70) | func TestHeartbeatIntervalHigherThanMax(t *testing.T) { FILE: htap.go constant queryContextCacheSizeParamName (line 10) | queryContextCacheSizeParamName = "QUERY_CONTEXT_CACHE_SIZE" constant defaultQueryContextCacheSize (line 11) | defaultQueryContextCacheSize = 5 type queryContext (line 14) | type queryContext struct type queryContextEntry (line 18) | type queryContextEntry struct type queryContextCache (line 25) | type queryContextCache struct method add (line 30) | func (qcc *queryContextCache) add(sc *snowflakeConn, qces ...queryCont... method prune (line 70) | func (qcc *queryContextCache) prune(size int) { method getQueryContextCacheSize (line 76) | func (qcc *queryContextCache) getQueryContextCacheSize(sc *snowflakeCo... FILE: htap_test.go function TestSortingByPriority (line 16) | func TestSortingByPriority(t *testing.T) { function TestAddingQcesWithTheSameIdAndLaterTimestamp (line 51) | func TestAddingQcesWithTheSameIdAndLaterTimestamp(t *testing.T) { function TestAddingQcesWithTheSameIdAndSameTimestamp (line 81) | func TestAddingQcesWithTheSameIdAndSameTimestamp(t *testing.T) { function TestAddingQcesWithTheSameIdAndEarlierTimestamp (line 111) | func TestAddingQcesWithTheSameIdAndEarlierTimestamp(t *testing.T) { function TestAddingQcesWithDifferentId (line 141) | func TestAddingQcesWithDifferentId(t *testing.T) { function TestAddingQueryContextCacheEntry (line 171) | func TestAddingQueryContextCacheEntry(t *testing.T) { function containsNewEntries (line 200) | func containsNewEntries(entriesAfter []queryContextEntry, entriesBefore ... function TestPruneBySessionValue (line 216) | func TestPruneBySessionValue(t *testing.T) { function TestPruneByDefaultValue (line 266) | func TestPruneByDefaultValue(t *testing.T) { function TestNoQcesClearsCache (line 295) | func TestNoQcesClearsCache(t *testing.T) { function TestQCCUpdatedAfterQueryResponse (line 316) | func TestQCCUpdatedAfterQueryResponse(t *testing.T) { function htapTestSnowflakeConn (line 382) | func htapTestSnowflakeConn() *snowflakeConn { function TestQueryContextCacheDisabled (line 388) | func TestQueryContextCacheDisabled(t *testing.T) { function TestHybridTablesE2E (line 398) | func TestHybridTablesE2E(t *testing.T) { function TestHTAPOptimizations (line 485) | func TestHTAPOptimizations(t *testing.T) { function TestConnIsCleanAfterClose (line 601) | func TestConnIsCleanAfterClose(t *testing.T) { FILE: internal/arrow/arrow.go type contextKey (line 13) | type contextKey constant ctxArrowBatches (line 17) | ctxArrowBatches contextKey = "ARROW_BATCHES" constant ctxArrowBatchesTimestampOpt (line 18) | ctxArrowBatchesTimestampOpt contextKey = "ARROW_BATCHES_TIMESTAMP_OPTION" constant ctxArrowBatchesUtf8Validate (line 19) | ctxArrowBatchesUtf8Validate contextKey = "ENABLE_ARROW_BATCHES_UTF8_VALI... constant ctxHigherPrecision (line 20) | ctxHigherPrecision contextKey = "ENABLE_HIGHER_PRECISION" type TimestampOption (line 26) | type TimestampOption constant UseNanosecondTimestamp (line 30) | UseNanosecondTimestamp TimestampOption = iota constant UseMicrosecondTimestamp (line 32) | UseMicrosecondTimestamp constant UseMillisecondTimestamp (line 34) | UseMillisecondTimestamp constant UseSecondTimestamp (line 36) | UseSecondTimestamp constant UseOriginalTimestamp (line 38) | UseOriginalTimestamp function EnableArrowBatches (line 44) | func EnableArrowBatches(ctx context.Context) context.Context { function BatchesEnabled (line 49) | func BatchesEnabled(ctx context.Context) bool { function WithTimestampOption (line 59) | func WithTimestampOption(ctx context.Context, option TimestampOption) co... function GetTimestampOption (line 64) | func GetTimestampOption(ctx context.Context) TimestampOption { function EnableUtf8Validation (line 77) | func EnableUtf8Validation(ctx context.Context) context.Context { function Utf8ValidationEnabled (line 82) | func Utf8ValidationEnabled(ctx context.Context) bool { function WithHigherPrecision (line 92) | func WithHigherPrecision(ctx context.Context) context.Context { function HigherPrecisionEnabled (line 97) | func HigherPrecisionEnabled(ctx context.Context) bool { type BatchRaw (line 107) | type BatchRaw struct type BatchDataInfo (line 116) | type BatchDataInfo struct type BatchDataProvider (line 125) | type BatchDataProvider interface FILE: internal/compilation/linking_mode.go type LinkingMode (line 11) | type LinkingMode method String (line 22) | func (lm *LinkingMode) String() string { constant StaticLinking (line 15) | StaticLinking LinkingMode = iota constant DynamicLinking (line 17) | DynamicLinking constant UnknownLinking (line 19) | UnknownLinking function CheckDynamicLinking (line 37) | func CheckDynamicLinking() (LinkingMode, error) { FILE: internal/config/assert_test.go function maskSecrets (line 15) | func maskSecrets(text string) string { function assertNilE (line 19) | func assertNilE(t *testing.T, actual any, descriptions ...string) { function assertNilF (line 24) | func assertNilF(t *testing.T, actual any, descriptions ...string) { function assertNotNilF (line 29) | func assertNotNilF(t *testing.T, actual any, descriptions ...string) { function assertEqualE (line 34) | func assertEqualE(t *testing.T, actual any, expected any, descriptions .... function assertEqualF (line 39) | func assertEqualF(t *testing.T, actual any, expected any, descriptions .... function assertTrueE (line 44) | func assertTrueE(t *testing.T, actual bool, descriptions ...string) { function assertTrueF (line 49) | func assertTrueF(t *testing.T, actual bool, descriptions ...string) { function assertFalseE (line 54) | func assertFalseE(t *testing.T, actual bool, descriptions ...string) { function fatalOnNonEmpty (line 59) | func fatalOnNonEmpty(t *testing.T, errMsg string) { function errorOnNonEmpty (line 66) | func errorOnNonEmpty(t *testing.T, errMsg string) { function formatErrorMessage (line 73) | func formatErrorMessage(errMsg string) string { function validateNil (line 77) | func validateNil(actual any, descriptions ...string) string { function validateNotNil (line 85) | func validateNotNil(actual any, descriptions ...string) string { function validateEqual (line 93) | func validateEqual(actual any, expected any, descriptions ...string) str... function joinDescriptions (line 104) | func joinDescriptions(descriptions ...string) string { function isNil (line 108) | func isNil(value any) bool { FILE: internal/config/auth_type.go type AuthType (line 11) | type AuthType method String (line 38) | func (authType AuthType) String() string { constant AuthTypeSnowflake (line 15) | AuthTypeSnowflake AuthType = iota constant AuthTypeOAuth (line 17) | AuthTypeOAuth constant AuthTypeExternalBrowser (line 19) | AuthTypeExternalBrowser constant AuthTypeOkta (line 21) | AuthTypeOkta constant AuthTypeJwt (line 23) | AuthTypeJwt constant AuthTypeTokenAccessor (line 25) | AuthTypeTokenAccessor constant AuthTypeUsernamePasswordMFA (line 27) | AuthTypeUsernamePasswordMFA constant AuthTypePat (line 29) | AuthTypePat constant AuthTypeOAuthAuthorizationCode (line 31) | AuthTypeOAuthAuthorizationCode constant AuthTypeOAuthClientCredentials (line 33) | AuthTypeOAuthClientCredentials constant AuthTypeWorkloadIdentityFederation (line 35) | AuthTypeWorkloadIdentityFederation function DetermineAuthenticatorType (line 68) | func DetermineAuthenticatorType(cfg *Config, value string) error { FILE: internal/config/config.go type Config (line 15) | type Config struct method Validate (line 128) | func (c *Config) Validate() error { type Param (line 144) | type Param struct FILE: internal/config/config_bool.go type Bool (line 4) | type Bool method String (line 15) | func (cb Bool) String() string { constant BoolNotSet (line 8) | BoolNotSet Bool = iota constant BoolTrue (line 10) | BoolTrue constant BoolFalse (line 12) | BoolFalse FILE: internal/config/connection_configuration.go constant snowflakeConnectionName (line 18) | snowflakeConnectionName = "SNOWFLAKE_DEFAULT_CONNECTION_NAME" constant snowflakeHome (line 19) | snowflakeHome = "SNOWFLAKE_HOME" constant defaultTokenPath (line 20) | defaultTokenPath = "/snowflake/session/token" constant othersCanReadFilePermission (line 22) | othersCanReadFilePermission = os.FileMode(0044) constant othersCanWriteFilePermission (line 23) | othersCanWriteFilePermission = os.FileMode(0022) constant executableFilePermission (line 24) | executableFilePermission = os.FileMode(0111) constant skipWarningForReadPermissionsEnv (line 26) | skipWarningForReadPermissionsEnv = "SF_SKIP_WARNING_FOR_READ_PERMISSIONS... function LoadConnectionConfig (line 32) | func LoadConnectionConfig() (*Config, error) { function ParseToml (line 78) | func ParseToml(cfg *Config, connectionMap map[string]any) error { function HandleSingleParam (line 88) | func HandleSingleParam(cfg *Config, key string, value any) error { function checkParsingError (line 243) | func checkParsingError(err error, key string, value any) error { function ParseInt (line 258) | func ParseInt(i any) (int, error) { function ParseBool (line 271) | func ParseBool(i any) (bool, error) { function parseConfigBool (line 283) | func parseConfigBool(i any) (Bool, error) { function ParseDuration (line 295) | func ParseDuration(i any) (time.Duration, error) { function ReadToken (line 309) | func ReadToken(tokenPath string) (string, error) { function parseString (line 331) | func parseString(i any) (string, error) { function parseStrings (line 339) | func parseStrings(i any) ([]string, error) { function GetTomlFilePath (line 348) | func GetTomlFilePath(filePath string) (string, error) { function getConnectionDSN (line 363) | func getConnectionDSN(dsn string) string { function ValidateFilePermission (line 371) | func ValidateFilePermission(filePath string) error { function shouldSkipWarningForReadPermissions (line 408) | func shouldSkipWarningForReadPermissions() bool { FILE: internal/config/connection_configuration_test.go function TestTokenFilePermission (line 21) | func TestTokenFilePermission(t *testing.T) { function TestLoadConnectionConfigForStandardAuth (line 205) | func TestLoadConnectionConfigForStandardAuth(t *testing.T) { function TestLoadConnectionConfigForOAuth (line 229) | func TestLoadConnectionConfigForOAuth(t *testing.T) { function TestLoadConnectionConfigForSnakeCaseConfiguration (line 261) | func TestLoadConnectionConfigForSnakeCaseConfiguration(t *testing.T) { function TestReadTokenValueWithTokenFilePath (line 279) | func TestReadTokenValueWithTokenFilePath(t *testing.T) { function TestLoadConnectionConfigWitNonExistingDSN (line 317) | func TestLoadConnectionConfigWitNonExistingDSN(t *testing.T) { function TestParseInt (line 340) | func TestParseInt(t *testing.T) { function TestParseBool (line 368) | func TestParseBool(t *testing.T) { function TestParseDuration (line 396) | func TestParseDuration(t *testing.T) { type paramList (line 424) | type paramList struct function testGeneratePKCS8String (line 429) | func testGeneratePKCS8String(key *rsa.PrivateKey) string { function TestParseToml (line 434) | func TestParseToml(t *testing.T) { function TestParseTomlWithWrongValue (line 491) | func TestParseTomlWithWrongValue(t *testing.T) { function TestGetTomlFilePath (line 535) | func TestGetTomlFilePath(t *testing.T) { function assertEqual (line 574) | func assertEqual[T comparable](t *testing.T, got, want T) { FILE: internal/config/crl_mode.go type CertRevocationCheckMode (line 9) | type CertRevocationCheckMode method String (line 21) | func (m CertRevocationCheckMode) String() string { constant CertRevocationCheckDisabled (line 13) | CertRevocationCheckDisabled CertRevocationCheckMode = iota constant CertRevocationCheckAdvisory (line 16) | CertRevocationCheckAdvisory constant CertRevocationCheckEnabled (line 18) | CertRevocationCheckEnabled function ParseCertRevocationCheckMode (line 35) | func ParseCertRevocationCheckMode(s string) (CertRevocationCheckMode, er... FILE: internal/config/dsn.go constant DefaultClientTimeout (line 24) | DefaultClientTimeout = 900 * time.Second constant DefaultJWTClientTimeout (line 26) | DefaultJWTClientTimeout = 10 * time.Second constant DefaultLoginTimeout (line 28) | DefaultLoginTimeout = 300 * time.Second constant DefaultRequestTimeout (line 30) | DefaultRequestTimeout = 0 * time.Second constant DefaultJWTTimeout (line 32) | DefaultJWTTimeout = 60 * time.Second constant DefaultExternalBrowserTimeout (line 34) | DefaultExternalBrowserTimeout = 120 * time.Second constant defaultCloudStorageTimeout (line 35) | defaultCloudStorageTimeout = -1 constant defaultMaxRetryCount (line 36) | defaultMaxRetryCount = 7 constant DefaultDomain (line 38) | DefaultDomain = ".snowflakecomputing.com" constant CnDomain (line 40) | CnDomain = ".snowflakecomputing.cn" constant topLevelDomainPrefix (line 41) | topLevelDomainPrefix = ".snowflakecomputing." constant clientType (line 44) | clientType = "Go" function GetFromEnv (line 48) | func GetFromEnv(name string, failOnMissing bool) (string, error) { function DSN (line 59) | func DSN(cfg *Config) (dsn string, err error) { function ParseDSN (line 308) | func ParseDSN(dsn string) (cfg *Config, err error) { function applyAccountFromHostIfMissing (line 451) | func applyAccountFromHostIfMissing(cfg *Config) { function FillMissingConfigParameters (line 466) | func FillMissingConfigParameters(cfg *Config) error { function extractDomainFromHost (line 587) | func extractDomainFromHost(host string) (domain string, index int) { function getDomainBasedOnRegion (line 596) | func getDomainBasedOnRegion(region string) string { function extractRegionFromAccount (line 603) | func extractRegionFromAccount(account string) (region string, posDot int) { function hostIncludesTopLevelDomain (line 611) | func hostIncludesTopLevelDomain(host string) bool { function buildHostFromAccountAndRegion (line 615) | func buildHostFromAccountAndRegion(account, region string) string { function authRequiresUser (line 619) | func authRequiresUser(cfg *Config) bool { function authRequiresPassword (line 629) | func authRequiresPassword(cfg *Config) bool { function authRequiresEitherPasswordOrToken (line 640) | func authRequiresEitherPasswordOrToken(cfg *Config) bool { function authRequiresClientIDAndSecret (line 644) | func authRequiresClientIDAndSecret(cfg *Config) bool { function transformAccountToHost (line 649) | func transformAccountToHost(cfg *Config) (err error) { function parseAccountHostPort (line 672) | func parseAccountHostPort(cfg *Config, posAt, posSlash int, dsn string) ... function parseUserPassword (line 694) | func parseUserPassword(posAt int, dsn string) (user, password string) { function parseParams (line 707) | func parseParams(cfg *Config, posQuestion int, dsn string) (err error) { function parseDSNParams (line 720) | func parseDSNParams(cfg *Config, params string) (err error) { function parseTimeout (line 1061) | func parseTimeout(value string) (time.Duration, error) { function GetConfigFromEnv (line 1072) | func GetConfigFromEnv(properties []*Param) (*Config, error) { function parsePrivateKeyFromFile (line 1174) | func parsePrivateKeyFromFile(path string) (*rsa.PrivateKey, error) { function ExtractAccountName (line 1195) | func ExtractAccountName(rawAccount string) string { function urlDecodeIfNeeded (line 1203) | func urlDecodeIfNeeded(param string) (decodedParam string) { function GetToken (line 1212) | func GetToken(c *Config) (string, error) { function DescribeIdentityAttributes (line 1220) | func DescribeIdentityAttributes(c *Config) string { function DescribeProxy (line 1226) | func DescribeProxy(c *Config) string { FILE: internal/config/dsn_test.go type tcParseDSN (line 26) | type tcParseDSN struct function TestParseDSN (line 33) | func TestParseDSN(t *testing.T) { type tcDSN (line 1403) | type tcDSN struct function TestDSN (line 1409) | func TestDSN(t *testing.T) { function TestParsePrivateKeyFromFileMissingFile (line 2132) | func TestParsePrivateKeyFromFileMissingFile(t *testing.T) { function TestParsePrivateKeyFromFileIncorrectData (line 2140) | func TestParsePrivateKeyFromFileIncorrectData(t *testing.T) { function TestParsePrivateKeyFromFileNotRSAPrivateKey (line 2149) | func TestParsePrivateKeyFromFileNotRSAPrivateKey(t *testing.T) { function TestParsePrivateKeyFromFile (line 2176) | func TestParsePrivateKeyFromFile(t *testing.T) { function createTmpFile (line 2197) | func createTmpFile(t *testing.T, fileName string, content []byte) string { type configParamToValue (line 2205) | type configParamToValue struct function TestGetConfigFromEnv (line 2210) | func TestGetConfigFromEnv(t *testing.T) { function checkConfig (line 2251) | func checkConfig(cfg Config, envMap map[string]configParamToValue) error { function TestConfigValidateTmpDirPath (line 2284) | func TestConfigValidateTmpDirPath(t *testing.T) { function TestExtractAccountName (line 2293) | func TestExtractAccountName(t *testing.T) { function TestUrlDecodeIfNeeded (line 2316) | func TestUrlDecodeIfNeeded(t *testing.T) { function TestDSNParsingWithTLSConfig (line 2329) | func TestDSNParsingWithTLSConfig(t *testing.T) { function TestTokenAndTokenFilePathValidation (line 2390) | func TestTokenAndTokenFilePathValidation(t *testing.T) { function TestFillMissingConfigParametersDerivesAccountFromHost (line 2410) | func TestFillMissingConfigParametersDerivesAccountFromHost(t *testing.T) { function TestFillMissingConfigParametersDerivesAccountFromCNHost (line 2425) | func TestFillMissingConfigParametersDerivesAccountFromCNHost(t *testing.... function TestFillMissingConfigParametersNonSnowflakeHostRequiresAccount (line 2440) | func TestFillMissingConfigParametersNonSnowflakeHostRequiresAccount(t *t... function generatePKCS8StringSupress (line 2457) | func generatePKCS8StringSupress(key *rsa.PrivateKey) string { function generatePKCS1String (line 2466) | func generatePKCS1String(key *rsa.PrivateKey) string { FILE: internal/config/ocsp_mode.go type OCSPFailOpenMode (line 5) | type OCSPFailOpenMode constant OCSPFailOpenNotSet (line 9) | OCSPFailOpenNotSet OCSPFailOpenMode = iota constant OCSPFailOpenTrue (line 11) | OCSPFailOpenTrue constant OCSPFailOpenFalse (line 13) | OCSPFailOpenFalse constant ocspModeFailOpen (line 17) | ocspModeFailOpen = "FAIL_OPEN" constant ocspModeFailClosed (line 18) | ocspModeFailClosed = "FAIL_CLOSED" constant ocspModeDisabled (line 19) | ocspModeDisabled = "INSECURE" function OcspMode (line 23) | func OcspMode(c *Config) string { FILE: internal/config/priv_key.go function ParsePKCS8PrivateKey (line 11) | func ParsePKCS8PrivateKey(block []byte) (*rsa.PrivateKey, error) { function MarshalPKCS8PrivateKey (line 23) | func MarshalPKCS8PrivateKey(key *rsa.PrivateKey) ([]byte, error) { FILE: internal/config/tls_config.go function ResetTLSConfigRegistry (line 14) | func ResetTLSConfigRegistry() { function RegisterTLSConfig (line 22) | func RegisterTLSConfig(key string, config *tls.Config) error { function DeregisterTLSConfig (line 31) | func DeregisterTLSConfig(key string) error { function GetTLSConfig (line 40) | func GetTLSConfig(key string) (*tls.Config, bool) { FILE: internal/config/tls_config_test.go function TestRegisterTLSConfig (line 9) | func TestRegisterTLSConfig(t *testing.T) { function TestDeregisterTLSConfig (line 31) | func TestDeregisterTLSConfig(t *testing.T) { function TestGetTLSConfigNonExistent (line 57) | func TestGetTLSConfigNonExistent(t *testing.T) { function TestRegisterTLSConfigWithCustomRootCAs (line 62) | func TestRegisterTLSConfigWithCustomRootCAs(t *testing.T) { function TestMultipleTLSConfigs (line 85) | func TestMultipleTLSConfigs(t *testing.T) { FILE: internal/config/token_accessor.go type TokenAccessor (line 4) | type TokenAccessor interface FILE: internal/errors/errors.go type SnowflakeError (line 11) | type SnowflakeError struct method Error (line 20) | func (se *SnowflakeError) Error() string { constant QueryNotExecutingCode (line 39) | QueryNotExecutingCode = "000605" constant QueryInProgressCode (line 40) | QueryInProgressCode = "333333" constant QueryInProgressAsyncCode (line 41) | QueryInProgressAsyncCode = "333334" constant SessionExpiredCode (line 42) | SessionExpiredCode = "390112" constant InvalidOAuthAccessTokenCode (line 43) | InvalidOAuthAccessTokenCode = "390303" constant ExpiredOAuthAccessTokenCode (line 44) | ExpiredOAuthAccessTokenCode = "390318" constant ErrCodeEmptyAccountCode (line 52) | ErrCodeEmptyAccountCode = 260000 constant ErrCodeEmptyUsernameCode (line 54) | ErrCodeEmptyUsernameCode = 260001 constant ErrCodeEmptyPasswordCode (line 56) | ErrCodeEmptyPasswordCode = 260002 constant ErrCodeFailedToParseHost (line 58) | ErrCodeFailedToParseHost = 260003 constant ErrCodeFailedToParsePort (line 60) | ErrCodeFailedToParsePort = 260004 constant ErrCodeIdpConnectionError (line 62) | ErrCodeIdpConnectionError = 260005 constant ErrCodeSSOURLNotMatch (line 64) | ErrCodeSSOURLNotMatch = 260006 constant ErrCodeServiceUnavailable (line 66) | ErrCodeServiceUnavailable = 260007 constant ErrCodeFailedToConnect (line 68) | ErrCodeFailedToConnect = 260008 constant ErrCodeRegionOverlap (line 70) | ErrCodeRegionOverlap = 260009 constant ErrCodePrivateKeyParseError (line 72) | ErrCodePrivateKeyParseError = 260010 constant ErrCodeFailedToParseAuthenticator (line 74) | ErrCodeFailedToParseAuthenticator = 260011 constant ErrCodeClientConfigFailed (line 76) | ErrCodeClientConfigFailed = 260012 constant ErrCodeTomlFileParsingFailed (line 78) | ErrCodeTomlFileParsingFailed = 260013 constant ErrCodeFailedToFindDSNInToml (line 80) | ErrCodeFailedToFindDSNInToml = 260014 constant ErrCodeInvalidFilePermission (line 82) | ErrCodeInvalidFilePermission = 260015 constant ErrCodeEmptyPasswordAndToken (line 84) | ErrCodeEmptyPasswordAndToken = 260016 constant ErrCodeEmptyOAuthParameters (line 86) | ErrCodeEmptyOAuthParameters = 260017 constant ErrMissingAccessATokenButRefreshTokenPresent (line 88) | ErrMissingAccessATokenButRefreshTokenPresent = 260018 constant ErrCodeMissingTLSConfig (line 90) | ErrCodeMissingTLSConfig = 260019 constant ErrFailedToPostQuery (line 95) | ErrFailedToPostQuery = 261000 constant ErrFailedToRenewSession (line 97) | ErrFailedToRenewSession = 261001 constant ErrFailedToCancelQuery (line 99) | ErrFailedToCancelQuery = 261002 constant ErrFailedToCloseSession (line 101) | ErrFailedToCloseSession = 261003 constant ErrFailedToAuth (line 103) | ErrFailedToAuth = 261004 constant ErrFailedToAuthSAML (line 105) | ErrFailedToAuthSAML = 261005 constant ErrFailedToAuthOKTA (line 107) | ErrFailedToAuthOKTA = 261006 constant ErrFailedToGetSSO (line 109) | ErrFailedToGetSSO = 261007 constant ErrFailedToParseResponse (line 111) | ErrFailedToParseResponse = 261008 constant ErrFailedToGetExternalBrowserResponse (line 113) | ErrFailedToGetExternalBrowserResponse = 261009 constant ErrFailedToHeartbeat (line 115) | ErrFailedToHeartbeat = 261010 constant ErrFailedToGetChunk (line 120) | ErrFailedToGetChunk = 262000 constant ErrNonArrowResponseInArrowBatches (line 122) | ErrNonArrowResponseInArrowBatches = 262001 constant ErrNoReadOnlyTransaction (line 127) | ErrNoReadOnlyTransaction = 263000 constant ErrNoDefaultTransactionIsolationLevel (line 129) | ErrNoDefaultTransactionIsolationLevel = 263001 constant ErrInvalidStageFs (line 134) | ErrInvalidStageFs = 264001 constant ErrFailedToDownloadFromStage (line 136) | ErrFailedToDownloadFromStage = 264002 constant ErrFailedToUploadToStage (line 138) | ErrFailedToUploadToStage = 264003 constant ErrInvalidStageLocation (line 140) | ErrInvalidStageLocation = 264004 constant ErrLocalPathNotDirectory (line 142) | ErrLocalPathNotDirectory = 264005 constant ErrFileNotExists (line 144) | ErrFileNotExists = 264006 constant ErrCompressionNotSupported (line 146) | ErrCompressionNotSupported = 264007 constant ErrInternalNotMatchEncryptMaterial (line 148) | ErrInternalNotMatchEncryptMaterial = 264008 constant ErrCommandNotRecognized (line 150) | ErrCommandNotRecognized = 264009 constant ErrFailedToConvertToS3Client (line 152) | ErrFailedToConvertToS3Client = 264010 constant ErrNotImplemented (line 154) | ErrNotImplemented = 264011 constant ErrInvalidPadding (line 156) | ErrInvalidPadding = 264012 constant ErrBindSerialization (line 161) | ErrBindSerialization = 265001 constant ErrBindUpload (line 163) | ErrBindUpload = 265002 constant ErrAsync (line 168) | ErrAsync = 266001 constant ErrNoResultIDs (line 173) | ErrNoResultIDs = 267001 constant ErrInvalidTimestampTz (line 178) | ErrInvalidTimestampTz = 268000 constant ErrInvalidOffsetStr (line 181) | ErrInvalidOffsetStr = 268001 constant ErrInvalidBinaryHexForm (line 183) | ErrInvalidBinaryHexForm = 268002 constant ErrTooHighTimestampPrecision (line 185) | ErrTooHighTimestampPrecision = 268003 constant ErrNullValueInArray (line 187) | ErrNullValueInArray = 268004 constant ErrNullValueInMap (line 189) | ErrNullValueInMap = 268005 constant ErrOCSPStatusRevoked (line 194) | ErrOCSPStatusRevoked = 269001 constant ErrOCSPStatusUnknown (line 196) | ErrOCSPStatusUnknown = 269002 constant ErrOCSPInvalidValidity (line 198) | ErrOCSPInvalidValidity = 269003 constant ErrOCSPNoOCSPResponderURL (line 200) | ErrOCSPNoOCSPResponderURL = 269004 constant ErrQueryStatus (line 205) | ErrQueryStatus = 279001 constant ErrQueryIDFormat (line 207) | ErrQueryIDFormat = 279101 constant ErrQueryReportedError (line 209) | ErrQueryReportedError = 279201 constant ErrQueryIsRunning (line 211) | ErrQueryIsRunning = 279301 constant ErrSessionGone (line 216) | ErrSessionGone = 390111 constant ErrRoleNotExist (line 218) | ErrRoleNotExist = 390189 constant ErrObjectNotExistOrAuthorized (line 220) | ErrObjectNotExistOrAuthorized = 390201 constant ErrMsgFailedToParseHost (line 225) | ErrMsgFailedToParseHost = "failed to parse a host name.... constant ErrMsgFailedToParsePort (line 226) | ErrMsgFailedToParsePort = "failed to parse a port numbe... constant ErrMsgFailedToParseAuthenticator (line 227) | ErrMsgFailedToParseAuthenticator = "failed to parse an authentic... constant ErrMsgInvalidOffsetStr (line 228) | ErrMsgInvalidOffsetStr = "offset must be a string cons... constant ErrMsgInvalidByteArray (line 229) | ErrMsgInvalidByteArray = "invalid byte array: %v" constant ErrMsgIdpConnectionError (line 230) | ErrMsgIdpConnectionError = "failed to verify URLs. authe... constant ErrMsgSSOURLNotMatch (line 231) | ErrMsgSSOURLNotMatch = "SSO URL didn't match. expect... constant ErrMsgFailedToGetChunk (line 232) | ErrMsgFailedToGetChunk = "failed to get a chunk of res... constant ErrMsgFailedToPostQuery (line 233) | ErrMsgFailedToPostQuery = "failed to POST. HTTP: %v, UR... constant ErrMsgFailedToRenew (line 234) | ErrMsgFailedToRenew = "failed to renew session. HTT... constant ErrMsgFailedToCancelQuery (line 235) | ErrMsgFailedToCancelQuery = "failed to cancel query. HTTP... constant ErrMsgFailedToCloseSession (line 236) | ErrMsgFailedToCloseSession = "failed to close session. HTT... constant ErrMsgFailedToAuth (line 237) | ErrMsgFailedToAuth = "failed to auth for unknown r... constant ErrMsgFailedToAuthSAML (line 238) | ErrMsgFailedToAuthSAML = "failed to auth via SAML for ... constant ErrMsgFailedToAuthOKTA (line 239) | ErrMsgFailedToAuthOKTA = "failed to auth via OKTA for ... constant ErrMsgFailedToGetSSO (line 240) | ErrMsgFailedToGetSSO = "failed to auth via OKTA for ... constant ErrMsgFailedToParseResponse (line 241) | ErrMsgFailedToParseResponse = "failed to parse a response f... constant ErrMsgFailedToGetExternalBrowserResponse (line 242) | ErrMsgFailedToGetExternalBrowserResponse = "failed to get an external br... constant ErrMsgNoReadOnlyTransaction (line 243) | ErrMsgNoReadOnlyTransaction = "no readonly mode is supported" constant ErrMsgNoDefaultTransactionIsolationLevel (line 244) | ErrMsgNoDefaultTransactionIsolationLevel = "no default isolation transac... constant ErrMsgServiceUnavailable (line 245) | ErrMsgServiceUnavailable = "service is unavailable. chec... constant ErrMsgFailedToConnect (line 246) | ErrMsgFailedToConnect = "failed to connect to db. ver... constant ErrMsgOCSPStatusRevoked (line 247) | ErrMsgOCSPStatusRevoked = "OCSP revoked: reason:%v, at:%v" constant ErrMsgOCSPStatusUnknown (line 248) | ErrMsgOCSPStatusUnknown = "OCSP unknown" constant ErrMsgOCSPInvalidValidity (line 249) | ErrMsgOCSPInvalidValidity = "invalid validity: producedAt... constant ErrMsgOCSPNoOCSPResponderURL (line 250) | ErrMsgOCSPNoOCSPResponderURL = "no OCSP server is attached t... constant ErrMsgBindColumnMismatch (line 251) | ErrMsgBindColumnMismatch = "column %v has a different nu... constant ErrMsgNotImplemented (line 252) | ErrMsgNotImplemented = "not implemented" constant ErrMsgFeatureNotSupported (line 253) | ErrMsgFeatureNotSupported = "feature is not supported: %v" constant ErrMsgCommandNotRecognized (line 254) | ErrMsgCommandNotRecognized = "%v command not recognized" constant ErrMsgLocalPathNotDirectory (line 255) | ErrMsgLocalPathNotDirectory = "the local path is not a dire... constant ErrMsgFileNotExists (line 256) | ErrMsgFileNotExists = "file does not exist: %v" constant ErrMsgFailToReadDataFromBuffer (line 257) | ErrMsgFailToReadDataFromBuffer = "failed to read data from buf... constant ErrMsgInvalidStageFs (line 258) | ErrMsgInvalidStageFs = "destination location type is... constant ErrMsgInternalNotMatchEncryptMaterial (line 259) | ErrMsgInternalNotMatchEncryptMaterial = "number of downloading files ... constant ErrMsgFailedToConvertToS3Client (line 260) | ErrMsgFailedToConvertToS3Client = "failed to convert interface ... constant ErrMsgNoResultIDs (line 261) | ErrMsgNoResultIDs = "no result IDs returned with ... constant ErrMsgQueryStatus (line 262) | ErrMsgQueryStatus = "server ErrorCode=%s, ErrorMe... constant ErrMsgInvalidPadding (line 263) | ErrMsgInvalidPadding = "invalid padding on input" constant ErrMsgClientConfigFailed (line 264) | ErrMsgClientConfigFailed = "client configuration failed:... constant ErrMsgNullValueInArray (line 265) | ErrMsgNullValueInArray = "for handling null values in ... constant ErrMsgNullValueInMap (line 266) | ErrMsgNullValueInMap = "for handling null values in ... constant ErrMsgFailedToParseTomlFile (line 267) | ErrMsgFailedToParseTomlFile = "failed to parse toml file. t... constant ErrMsgFailedToFindDSNInTomlFile (line 268) | ErrMsgFailedToFindDSNInTomlFile = "failed to find DSN in toml f... constant ErrMsgInvalidWritablePermissionToFile (line 269) | ErrMsgInvalidWritablePermissionToFile = "file '%v' is writable by gro... constant ErrMsgInvalidExecutablePermissionToFile (line 270) | ErrMsgInvalidExecutablePermissionToFile = "file '%v' is executable — th... constant ErrMsgNonArrowResponseInArrowBatches (line 271) | ErrMsgNonArrowResponseInArrowBatches = "arrow batches enabled, but t... constant ErrMsgMissingTLSConfig (line 272) | ErrMsgMissingTLSConfig = "TLS config not found: %v" function ErrEmptyAccount (line 276) | func ErrEmptyAccount() *SnowflakeError { function ErrEmptyUsername (line 284) | func ErrEmptyUsername() *SnowflakeError { function ErrEmptyPassword (line 292) | func ErrEmptyPassword() *SnowflakeError { function ErrEmptyPasswordAndToken (line 300) | func ErrEmptyPasswordAndToken() *SnowflakeError { function ErrEmptyOAuthParameters (line 308) | func ErrEmptyOAuthParameters() *SnowflakeError { function ErrRegionConflict (line 316) | func ErrRegionConflict() *SnowflakeError { function ErrFailedToParseAuthenticator (line 324) | func ErrFailedToParseAuthenticator() *SnowflakeError { function ErrUnknownError (line 332) | func ErrUnknownError() *SnowflakeError { function ErrNullValueInArrayError (line 342) | func ErrNullValueInArrayError() *SnowflakeError { function ErrNullValueInMapError (line 350) | func ErrNullValueInMapError() *SnowflakeError { function ErrNonArrowResponseForArrowBatches (line 358) | func ErrNonArrowResponseForArrowBatches(queryID string) *SnowflakeError { FILE: internal/logger/accessor.go function GetLogger (line 20) | func GetLogger() sflog.SFLogger { function SetLogger (line 41) | func SetLogger(providedLogger SFLogger) error { function init (line 72) | func init() { function CreateDefaultLogger (line 80) | func CreateDefaultLogger() sflog.SFLogger { FILE: internal/logger/accessor_test.go function TestLoggerConfiguration (line 13) | func TestLoggerConfiguration(t *testing.T) { function TestLoggerSecretMasking (line 37) | func TestLoggerSecretMasking(t *testing.T) { function TestLoggerAllMethods (line 65) | func TestLoggerAllMethods(t *testing.T) { function TestLoggerLevelFiltering (line 106) | func TestLoggerLevelFiltering(t *testing.T) { function TestLogEntry (line 139) | func TestLogEntry(t *testing.T) { function TestLogEntryWithFields (line 172) | func TestLogEntryWithFields(t *testing.T) { function TestSetOutput (line 209) | func TestSetOutput(t *testing.T) { function TestLogEntryWithContext (line 243) | func TestLogEntryWithContext(t *testing.T) { FILE: internal/logger/context.go function SetLogKeys (line 20) | func SetLogKeys(keys []any) { function GetLogKeys (line 29) | func GetLogKeys() []any { function RegisterLogContextHook (line 40) | func RegisterLogContextHook(key string, hook ClientLogContextHook) { function GetClientLogContextHooks (line 51) | func GetClientLogContextHooks() map[string]ClientLogContextHook { function extractContextFields (line 61) | func extractContextFields(ctx context.Context) []slog.Attr { FILE: internal/logger/easy_logging_support.go function CloseFileOnLoggerReplace (line 10) | func CloseFileOnLoggerReplace(sflog any, file *os.File) error { function IsEasyLoggingLogger (line 20) | func IsEasyLoggingLogger(sflog any) bool { function unwrapToEasyLoggingLogger (line 26) | func unwrapToEasyLoggingLogger(sflog any) (EasyLoggingSupport, bool) { FILE: internal/logger/level_filtering.go type levelFilteringLogger (line 14) | type levelFilteringLogger struct method Unwrap (line 22) | func (l *levelFilteringLogger) Unwrap() any { method shouldLog (line 28) | func (l *levelFilteringLogger) shouldLog(messageLevel sflog.Level) bool { method Tracef (line 41) | func (l *levelFilteringLogger) Tracef(format string, args ...any) { method Debugf (line 48) | func (l *levelFilteringLogger) Debugf(format string, args ...any) { method Infof (line 55) | func (l *levelFilteringLogger) Infof(format string, args ...any) { method Warnf (line 62) | func (l *levelFilteringLogger) Warnf(format string, args ...any) { method Errorf (line 69) | func (l *levelFilteringLogger) Errorf(format string, args ...any) { method Fatalf (line 76) | func (l *levelFilteringLogger) Fatalf(format string, args ...any) { method Trace (line 81) | func (l *levelFilteringLogger) Trace(msg string) { method Debug (line 88) | func (l *levelFilteringLogger) Debug(msg string) { method Info (line 95) | func (l *levelFilteringLogger) Info(msg string) { method Warn (line 102) | func (l *levelFilteringLogger) Warn(msg string) { method Error (line 109) | func (l *levelFilteringLogger) Error(msg string) { method Fatal (line 116) | func (l *levelFilteringLogger) Fatal(msg string) { method WithField (line 121) | func (l *levelFilteringLogger) WithField(key string, value any) sflog.... method WithFields (line 129) | func (l *levelFilteringLogger) WithFields(fields map[string]any) sflog... method WithContext (line 137) | func (l *levelFilteringLogger) WithContext(ctx context.Context) sflog.... method SetLogLevel (line 146) | func (l *levelFilteringLogger) SetLogLevel(level string) error { method SetLogLevelInt (line 150) | func (l *levelFilteringLogger) SetLogLevelInt(level sflog.Level) error { method GetLogLevel (line 154) | func (l *levelFilteringLogger) GetLogLevel() string { method GetLogLevelInt (line 158) | func (l *levelFilteringLogger) GetLogLevelInt() sflog.Level { method SetOutput (line 162) | func (l *levelFilteringLogger) SetOutput(output io.Writer) { method SetHandler (line 167) | func (l *levelFilteringLogger) SetHandler(handler slog.Handler) error { function newLevelFilteringLogger (line 33) | func newLevelFilteringLogger(inner SFLogger) SFLogger { type levelFilteringEntry (line 175) | type levelFilteringEntry struct method Tracef (line 181) | func (e *levelFilteringEntry) Tracef(format string, args ...any) { method Debugf (line 188) | func (e *levelFilteringEntry) Debugf(format string, args ...any) { method Infof (line 195) | func (e *levelFilteringEntry) Infof(format string, args ...any) { method Warnf (line 202) | func (e *levelFilteringEntry) Warnf(format string, args ...any) { method Errorf (line 209) | func (e *levelFilteringEntry) Errorf(format string, args ...any) { method Fatalf (line 216) | func (e *levelFilteringEntry) Fatalf(format string, args ...any) { method Trace (line 221) | func (e *levelFilteringEntry) Trace(msg string) { method Debug (line 228) | func (e *levelFilteringEntry) Debug(msg string) { method Info (line 235) | func (e *levelFilteringEntry) Info(msg string) { method Warn (line 242) | func (e *levelFilteringEntry) Warn(msg string) { method Error (line 249) | func (e *levelFilteringEntry) Error(msg string) { method Fatal (line 256) | func (e *levelFilteringEntry) Fatal(msg string) { FILE: internal/logger/optional_interfaces.go type EasyLoggingSupport (line 7) | type EasyLoggingSupport interface type Unwrapper (line 13) | type Unwrapper interface FILE: internal/logger/proxy.go type Proxy (line 14) | type Proxy struct method Tracef (line 20) | func (p *Proxy) Tracef(format string, args ...any) { method Debugf (line 25) | func (p *Proxy) Debugf(format string, args ...any) { method Infof (line 30) | func (p *Proxy) Infof(format string, args ...any) { method Warnf (line 35) | func (p *Proxy) Warnf(format string, args ...any) { method Errorf (line 40) | func (p *Proxy) Errorf(format string, args ...any) { method Fatalf (line 45) | func (p *Proxy) Fatalf(format string, args ...any) { method Trace (line 50) | func (p *Proxy) Trace(msg string) { method Debug (line 55) | func (p *Proxy) Debug(msg string) { method Info (line 60) | func (p *Proxy) Info(msg string) { method Warn (line 65) | func (p *Proxy) Warn(msg string) { method Error (line 70) | func (p *Proxy) Error(msg string) { method Fatal (line 75) | func (p *Proxy) Fatal(msg string) { method WithField (line 80) | func (p *Proxy) WithField(key string, value any) sflog.LogEntry { method WithFields (line 85) | func (p *Proxy) WithFields(fields map[string]any) sflog.LogEntry { method WithContext (line 90) | func (p *Proxy) WithContext(ctx context.Context) sflog.LogEntry { method SetLogLevel (line 95) | func (p *Proxy) SetLogLevel(level string) error { method SetLogLevelInt (line 100) | func (p *Proxy) SetLogLevelInt(level sflog.Level) error { method GetLogLevel (line 105) | func (p *Proxy) GetLogLevel() string { method GetLogLevelInt (line 110) | func (p *Proxy) GetLogLevelInt() sflog.Level { method SetOutput (line 115) | func (p *Proxy) SetOutput(output io.Writer) { method SetHandler (line 121) | func (p *Proxy) SetHandler(handler slog.Handler) error { function NewLoggerProxy (line 133) | func NewLoggerProxy() sflog.SFLogger { FILE: internal/logger/secret_detector.go constant awsKeyPattern (line 8) | awsKeyPattern = `(?i)(aws_key_id|aws_secret_key|access_key_id|s... constant awsTokenPattern (line 9) | awsTokenPattern = `(?i)(accessToken|tempToken|keySecret)"\s*:\s*"... constant sasTokenPattern (line 10) | sasTokenPattern = `(?i)(sig|signature|AWSAccessKeyId|password|pas... constant privateKeyPattern (line 11) | privateKeyPattern = `(?im)-----BEGIN PRIVATE KEY-----\\n([a-z0-9/+=... constant privateKeyDataPattern (line 12) | privateKeyDataPattern = `(?i)"privateKeyData": "([a-z0-9/+=\\n]{10,})"` constant privateKeyParamPattern (line 13) | privateKeyParamPattern = `(?i)privateKey=([A-Za-z0-9/+=_%-]+)(&|$|\s)` constant connectionTokenPattern (line 14) | connectionTokenPattern = `(?i)(token|assertion content)([\'\"\s:=]+)([a-... constant passwordPattern (line 15) | passwordPattern = `(?i)(password|pwd)([\'\"\s:=]+)([a-z0-9!\"#\$%... constant dsnPasswordPattern (line 16) | dsnPasswordPattern = `([^/:]+):([^@/:]{3,})@` constant clientSecretPattern (line 17) | clientSecretPattern = `(?i)(clientSecret)([\'\"\s:= ]+)([a-z0-9!\"#\$... constant jwtTokenPattern (line 18) | jwtTokenPattern = `(?i)(jwt|bearer)[\s:=]*([a-zA-Z0-9_-]+\.[a-zA-... type patternAndReplace (line 21) | type patternAndReplace struct function MaskSecrets (line 41) | func MaskSecrets(text string) (masked string) { FILE: internal/logger/secret_detector_test.go constant longToken (line 12) | longToken = "_Y1ZNETTn5/qfUWj3Jedby7gipDzQs=UKyJH9DS=nFzzWnfZKGV+C7GopWC... constant randomPassword (line 17) | randomPassword = `Fh[+2J~AcqeqW%?` constant falsePositiveToken (line 18) | falsePositiveToken = "2020-04-30 23:06:04,069 - MainThread auth.py:397" + function generateTestJWT (line 24) | func generateTestJWT(t *testing.T) string { function TestSecretsDetector (line 47) | func TestSecretsDetector(t *testing.T) { FILE: internal/logger/secret_masking.go type secretMaskingLogger (line 13) | type secretMaskingLogger struct method Unwrap (line 21) | func (l *secretMaskingLogger) Unwrap() any { method maskValue (line 35) | func (l *secretMaskingLogger) maskValue(value any) any { method maskString (line 48) | func (l *secretMaskingLogger) maskString(value string) string { method Tracef (line 53) | func (l *secretMaskingLogger) Tracef(format string, args ...any) { method Debugf (line 59) | func (l *secretMaskingLogger) Debugf(format string, args ...any) { method Infof (line 65) | func (l *secretMaskingLogger) Infof(format string, args ...any) { method Warnf (line 71) | func (l *secretMaskingLogger) Warnf(format string, args ...any) { method Errorf (line 77) | func (l *secretMaskingLogger) Errorf(format string, args ...any) { method Fatalf (line 83) | func (l *secretMaskingLogger) Fatalf(format string, args ...any) { method Trace (line 90) | func (l *secretMaskingLogger) Trace(msg string) { method Debug (line 94) | func (l *secretMaskingLogger) Debug(msg string) { method Info (line 98) | func (l *secretMaskingLogger) Info(msg string) { method Warn (line 102) | func (l *secretMaskingLogger) Warn(msg string) { method Error (line 106) | func (l *secretMaskingLogger) Error(msg string) { method Fatal (line 110) | func (l *secretMaskingLogger) Fatal(msg string) { method WithField (line 116) | func (l *secretMaskingLogger) WithField(key string, value any) LogEntry { method WithFields (line 125) | func (l *secretMaskingLogger) WithFields(fields map[string]any) LogEnt... method WithContext (line 137) | func (l *secretMaskingLogger) WithContext(ctx context.Context) LogEntry { method SetLogLevel (line 146) | func (l *secretMaskingLogger) SetLogLevel(level string) error { method SetLogLevelInt (line 150) | func (l *secretMaskingLogger) SetLogLevelInt(level sflog.Level) error { method GetLogLevel (line 154) | func (l *secretMaskingLogger) GetLogLevel() string { method GetLogLevelInt (line 158) | func (l *secretMaskingLogger) GetLogLevelInt() sflog.Level { method SetOutput (line 162) | func (l *secretMaskingLogger) SetOutput(output io.Writer) { method SetHandler (line 167) | func (l *secretMaskingLogger) SetHandler(handler slog.Handler) error { function newSecretMaskingLogger (line 26) | func newSecretMaskingLogger(inner SFLogger) *secretMaskingLogger { type secretMaskingEntry (line 175) | type secretMaskingEntry struct method Tracef (line 184) | func (e *secretMaskingEntry) Tracef(format string, args ...any) { method Debugf (line 190) | func (e *secretMaskingEntry) Debugf(format string, args ...any) { method Infof (line 196) | func (e *secretMaskingEntry) Infof(format string, args ...any) { method Warnf (line 202) | func (e *secretMaskingEntry) Warnf(format string, args ...any) { method Errorf (line 208) | func (e *secretMaskingEntry) Errorf(format string, args ...any) { method Fatalf (line 214) | func (e *secretMaskingEntry) Fatalf(format string, args ...any) { method Trace (line 221) | func (e *secretMaskingEntry) Trace(msg string) { method Debug (line 225) | func (e *secretMaskingEntry) Debug(msg string) { method Info (line 229) | func (e *secretMaskingEntry) Info(msg string) { method Warn (line 233) | func (e *secretMaskingEntry) Warn(msg string) { method Error (line 237) | func (e *secretMaskingEntry) Error(msg string) { method Fatal (line 241) | func (e *secretMaskingEntry) Fatal(msg string) { FILE: internal/logger/secret_masking_test.go type mockLogger (line 11) | type mockLogger struct method Tracef (line 15) | func (m *mockLogger) Tracef(format string, args ...any) {} method Debugf (line 16) | func (m *mockLogger) Debugf(format string, args ...any) {} method Infof (line 17) | func (m *mockLogger) Infof(format string, args ...any) {} method Warnf (line 18) | func (m *mockLogger) Warnf(format string, args ...any) {} method Errorf (line 19) | func (m *mockLogger) Errorf(format string, args ...any) {} method Fatalf (line 20) | func (m *mockLogger) Fatalf(format string, args ...any) {} method Trace (line 22) | func (m *mockLogger) Trace(msg string) {} method Debug (line 23) | func (m *mockLogger) Debug(msg string) {} method Info (line 24) | func (m *mockLogger) Info(msg string) { m.lastMessage = msg } method Warn (line 25) | func (m *mockLogger) Warn(msg string) {} method Error (line 26) | func (m *mockLogger) Error(msg string) {} method Fatal (line 27) | func (m *mockLogger) Fatal(msg string) {} method WithField (line 29) | func (m *mockLogger) WithField(key string, value any) LogEntry { retu... method WithFields (line 30) | func (m *mockLogger) WithFields(fields map[string]any) LogEntry { retu... method WithContext (line 31) | func (m *mockLogger) WithContext(ctx context.Context) LogEntry { retu... method SetLogLevel (line 32) | func (m *mockLogger) SetLogLevel(level string) error { retu... method SetLogLevelInt (line 33) | func (m *mockLogger) SetLogLevelInt(level sflog.Level) error { retu... method GetLogLevel (line 34) | func (m *mockLogger) GetLogLevel() string { retu... method GetLogLevelInt (line 35) | func (m *mockLogger) GetLogLevelInt() sflog.Level { retu... method SetOutput (line 36) | func (m *mockLogger) SetOutput(output io.Writer) {} function TestSecretMaskingLogger (line 41) | func TestSecretMaskingLogger(t *testing.T) { FILE: internal/logger/slog_handler.go type snowflakeHandler (line 10) | type snowflakeHandler struct method Enabled (line 25) | func (h *snowflakeHandler) Enabled(ctx context.Context, level slog.Lev... method Handle (line 30) | func (h *snowflakeHandler) Handle(ctx context.Context, r slog.Record) ... method WithAttrs (line 41) | func (h *snowflakeHandler) WithAttrs(attrs []slog.Attr) slog.Handler { method WithGroup (line 49) | func (h *snowflakeHandler) WithGroup(name string) slog.Handler { function newSnowflakeHandler (line 15) | func newSnowflakeHandler(inner slog.Handler, level sflog.Level) *snowfla... FILE: internal/logger/slog_logger.go function formatSource (line 18) | func formatSource(frame *runtime.Frame) (string, string) { type rawLogger (line 23) | type rawLogger struct method isEnabled (line 57) | func (log *rawLogger) isEnabled() bool { method SetLogLevel (line 64) | func (log *rawLogger) SetLogLevel(level string) error { method SetLogLevelInt (line 86) | func (log *rawLogger) SetLogLevelInt(level sflog.Level) error { method GetLogLevel (line 99) | func (log *rawLogger) GetLogLevel() string { method GetLogLevelInt (line 106) | func (log *rawLogger) GetLogLevelInt() sflog.Level { method SetOutput (line 113) | func (log *rawLogger) SetOutput(output io.Writer) { method SetHandler (line 157) | func (log *rawLogger) SetHandler(handler slog.Handler) error { method logWithSkip (line 171) | func (log *rawLogger) logWithSkip(skip int, level sflog.Level, msg str... method Tracef (line 185) | func (log *rawLogger) Tracef(format string, args ...any) { method Debugf (line 189) | func (log *rawLogger) Debugf(format string, args ...any) { method Infof (line 193) | func (log *rawLogger) Infof(format string, args ...any) { method Warnf (line 197) | func (log *rawLogger) Warnf(format string, args ...any) { method Errorf (line 201) | func (log *rawLogger) Errorf(format string, args ...any) { method Fatalf (line 205) | func (log *rawLogger) Fatalf(format string, args ...any) { method Trace (line 213) | func (log *rawLogger) Trace(msg string) { method Debug (line 217) | func (log *rawLogger) Debug(msg string) { method Info (line 221) | func (log *rawLogger) Info(msg string) { method Warn (line 225) | func (log *rawLogger) Warn(msg string) { method Error (line 229) | func (log *rawLogger) Error(msg string) { method Fatal (line 233) | func (log *rawLogger) Fatal(msg string) { method WithField (line 239) | func (log *rawLogger) WithField(key string, value any) LogEntry { method WithFields (line 247) | func (log *rawLogger) WithFields(fields map[string]any) LogEntry { method WithContext (line 259) | func (log *rawLogger) WithContext(ctx context.Context) LogEntry { method closeFileOnLoggerReplace (line 370) | func (log *rawLogger) closeFileOnLoggerReplace(file *os.File) error { method CloseFileOnLoggerReplace (line 382) | func (log *rawLogger) CloseFileOnLoggerReplace(file *os.File) error { method ReplaceGlobalLogger (line 388) | func (log *rawLogger) ReplaceGlobalLogger(newLogger any) { function newRawLogger (line 37) | func newRawLogger() SFLogger { function createOpts (line 127) | func createOpts(level slog.Level) *slog.HandlerOptions { type slogEntry (line 287) | type slogEntry struct method isEnabled (line 296) | func (e *slogEntry) isEnabled() bool { method logWithSkip (line 303) | func (e *slogEntry) logWithSkip(skip int, level sflog.Level, msg strin... method Tracef (line 316) | func (e *slogEntry) Tracef(format string, args ...any) { method Debugf (line 320) | func (e *slogEntry) Debugf(format string, args ...any) { method Infof (line 324) | func (e *slogEntry) Infof(format string, args ...any) { method Warnf (line 328) | func (e *slogEntry) Warnf(format string, args ...any) { method Errorf (line 332) | func (e *slogEntry) Errorf(format string, args ...any) { method Fatalf (line 336) | func (e *slogEntry) Fatalf(format string, args ...any) { method Trace (line 344) | func (e *slogEntry) Trace(msg string) { method Debug (line 348) | func (e *slogEntry) Debug(msg string) { method Info (line 352) | func (e *slogEntry) Info(msg string) { method Warn (line 356) | func (e *slogEntry) Warn(msg string) { method Error (line 360) | func (e *slogEntry) Error(msg string) { method Fatal (line 364) | func (e *slogEntry) Fatal(msg string) { FILE: internal/logger/source_location_test.go function TestSourceLocationWithLevelFiltering (line 19) | func TestSourceLocationWithLevelFiltering(t *testing.T) { function TestSourceLocationWithDebugf (line 45) | func TestSourceLocationWithDebugf(t *testing.T) { function TestSourceLocationWithEntry (line 67) | func TestSourceLocationWithEntry(t *testing.T) { function TestSkipDepthWarning (line 91) | func TestSkipDepthWarning(t *testing.T) { FILE: internal/os/libc_info.go type LibcInfo (line 20) | type LibcInfo struct function parseProcMapsForLibc (line 27) | func parseProcMapsForLibc(r io.Reader) (family string, libcPath string) { function glibcVersionFromELF (line 52) | func glibcVersionFromELF(path string) string { function muslVersionFromBinary (line 82) | func muslVersionFromBinary(path string) string { function compareVersions (line 104) | func compareVersions(a, b string) int { FILE: internal/os/libc_info_linux.go function GetLibcInfo (line 9) | func GetLibcInfo() LibcInfo { function detectLibcInfo (line 16) | func detectLibcInfo() LibcInfo { FILE: internal/os/libc_info_notlinux.go function GetLibcInfo (line 6) | func GetLibcInfo() LibcInfo { FILE: internal/os/libc_info_test.go function TestParseProcMapsGlibc (line 9) | func TestParseProcMapsGlibc(t *testing.T) { function TestParseProcMapsMusl (line 21) | func TestParseProcMapsMusl(t *testing.T) { function TestParseProcMapsMuslLibc (line 32) | func TestParseProcMapsMuslLibc(t *testing.T) { function TestParseProcMapsEmpty (line 43) | func TestParseProcMapsEmpty(t *testing.T) { function TestParseProcMapsNoLibc (line 50) | func TestParseProcMapsNoLibc(t *testing.T) { function TestParseProcMapsShortLines (line 59) | func TestParseProcMapsShortLines(t *testing.T) { function TestCompareVersions (line 68) | func TestCompareVersions(t *testing.T) { function TestGetLibcInfoNonLinux (line 89) | func TestGetLibcInfoNonLinux(t *testing.T) { FILE: internal/os/os_details.go function readOsRelease (line 29) | func readOsRelease(filename string) map[string]string { function unquoteOsReleaseValue (line 78) | func unquoteOsReleaseValue(s string) string { FILE: internal/os/os_details_linux.go function GetOsDetails (line 7) | func GetOsDetails() map[string]string { FILE: internal/os/os_details_notlinux.go function GetOsDetails (line 6) | func GetOsDetails() map[string]string { FILE: internal/os/os_details_test.go function TestReadOsRelease (line 7) | func TestReadOsRelease(t *testing.T) { FILE: internal/query/response_types.go type ExecResponseRowType (line 4) | type ExecResponseRowType struct type FieldMetadata (line 16) | type FieldMetadata struct type ExecResponseChunk (line 27) | type ExecResponseChunk struct FILE: internal/query/transform.go method ToFieldMetadata (line 4) | func (ex *ExecResponseRowType) ToFieldMetadata() FieldMetadata { FILE: internal/types/types.go type SnowflakeType (line 8) | type SnowflakeType method Byte (line 96) | func (st SnowflakeType) Byte() byte { method String (line 100) | func (st SnowflakeType) String() string { constant FixedType (line 12) | FixedType SnowflakeType = iota constant RealType (line 14) | RealType constant DecfloatType (line 16) | DecfloatType constant TextType (line 18) | TextType constant DateType (line 20) | DateType constant VariantType (line 22) | VariantType constant TimestampLtzType (line 24) | TimestampLtzType constant TimestampNtzType (line 26) | TimestampNtzType constant TimestampTzType (line 28) | TimestampTzType constant ObjectType (line 30) | ObjectType constant ArrayType (line 32) | ArrayType constant MapType (line 34) | MapType constant BinaryType (line 36) | BinaryType constant TimeType (line 38) | TimeType constant BooleanType (line 40) | BooleanType constant NullType (line 43) | NullType constant SliceType (line 45) | SliceType constant ChangeType (line 47) | ChangeType constant UnSupportedType (line 49) | UnSupportedType constant NilObjectType (line 51) | NilObjectType constant NilArrayType (line 53) | NilArrayType constant NilMapType (line 55) | NilMapType function invertMap (line 84) | func invertMap(m map[string]SnowflakeType) map[SnowflakeType]string { function GetSnowflakeType (line 105) | func GetSnowflakeType(typ string) SnowflakeType { FILE: local_storage_client.go type localUtil (line 15) | type localUtil struct method createClient (line 18) | func (util *localUtil) createClient(_ *execResponseStageInfo, _ bool, ... method uploadOneFileWithRetry (line 22) | func (util *localUtil) uploadOneFileWithRetry(_ context.Context, meta ... method downloadOneFile (line 79) | func (util *localUtil) downloadOneFile(_ context.Context, meta *fileMe... FILE: local_storage_client_test.go function TestLocalUpload (line 13) | func TestLocalUpload(t *testing.T) { function TestDownloadLocalFile (line 106) | func TestDownloadLocalFile(t *testing.T) { FILE: location.go function Location (line 17) | func Location(offset int) *time.Location { function LocationWithOffsetString (line 31) | func LocationWithOffsetString(offsets string) (loc *time.Location, err e... function genTimezone (line 66) | func genTimezone(offset int) *time.Location { function init (line 82) | func init() { function getCurrentLocation (line 93) | func getCurrentLocation(sp *syncParams) *time.Location { FILE: location_test.go type tcLocation (line 12) | type tcLocation struct function TestWithOffsetString (line 18) | func TestWithOffsetString(t *testing.T) { function TestGetCurrentLocation (line 105) | func TestGetCurrentLocation(t *testing.T) { FILE: locker.go type lockKeyType (line 6) | type lockKeyType interface type locker (line 10) | type locker interface type unlocker (line 14) | type unlocker interface function getValueWithLock (line 18) | func getValueWithLock[T any](locker locker, lockKey lockKeyType, f func(... type exclusiveLockerType (line 25) | type exclusiveLockerType struct method lock (line 31) | func (e *exclusiveLockerType) lock(lockKey lockKeyType) unlocker { function newExclusiveLocker (line 39) | func newExclusiveLocker() *exclusiveLockerType { type noopLockerType (line 44) | type noopLockerType struct method lock (line 54) | func (n *noopLockerType) lock(_ lockKeyType) unlocker { type noopUnlocker (line 48) | type noopUnlocker struct method Unlock (line 50) | func (n noopUnlocker) Unlock() { FILE: log.go constant SFSessionIDKey (line 9) | SFSessionIDKey ContextKey = "LOG_SESSION_ID" constant SFSessionUserKey (line 12) | SFSessionUserKey ContextKey = "LOG_USER" function init (line 14) | func init() { function SetLogKeys (line 44) | func SetLogKeys(keys ...ContextKey) { function GetLogKeys (line 54) | func GetLogKeys() []ContextKey { function RegisterLogContextHook (line 70) | func RegisterLogContextHook(contextKey string, ctxExtractor ClientLogCon... function GetClientLogContextHooks (line 76) | func GetClientLogContextHooks() map[string]ClientLogContextHook { function SetLogger (line 97) | func SetLogger(logger SFLogger) error { function GetLogger (line 109) | func GetLogger() SFLogger { function CreateDefaultLogger (line 119) | func CreateDefaultLogger() SFLogger { FILE: log_client_test.go type customLogger (line 20) | type customLogger struct method formatMessage (line 35) | func (l *customLogger) formatMessage(level, format string, args ...any) { method Tracef (line 54) | func (l *customLogger) Tracef(format string, args ...any) { method Debugf (line 58) | func (l *customLogger) Debugf(format string, args ...any) { method Infof (line 62) | func (l *customLogger) Infof(format string, args ...any) { method Warnf (line 66) | func (l *customLogger) Warnf(format string, args ...any) { method Errorf (line 70) | func (l *customLogger) Errorf(format string, args ...any) { method Fatalf (line 74) | func (l *customLogger) Fatalf(format string, args ...any) { method Trace (line 78) | func (l *customLogger) Trace(msg string) { method Debug (line 82) | func (l *customLogger) Debug(msg string) { method Info (line 86) | func (l *customLogger) Info(msg string) { method Warn (line 90) | func (l *customLogger) Warn(msg string) { method Error (line 94) | func (l *customLogger) Error(msg string) { method Fatal (line 98) | func (l *customLogger) Fatal(msg string) { method WithField (line 102) | func (l *customLogger) WithField(key string, value any) gosnowflake.Lo... method WithFields (line 113) | func (l *customLogger) WithFields(fields map[string]any) gosnowflake.L... method WithContext (line 124) | func (l *customLogger) WithContext(ctx context.Context) gosnowflake.Lo... method SetLogLevel (line 142) | func (l *customLogger) SetLogLevel(level string) error { method SetLogLevelInt (line 149) | func (l *customLogger) SetLogLevelInt(level gosnowflake.Level) error { method GetLogLevel (line 160) | func (l *customLogger) GetLogLevel() string { method GetLogLevelInt (line 166) | func (l *customLogger) GetLogLevelInt() gosnowflake.Level { method SetOutput (line 173) | func (l *customLogger) SetOutput(output io.Writer) { method GetOutput (line 177) | func (l *customLogger) GetOutput() string { method Reset (line 183) | func (l *customLogger) Reset() { function newCustomLogger (line 27) | func newCustomLogger() *customLogger { type customLogEntry (line 190) | type customLogEntry struct method formatMessage (line 195) | func (e *customLogEntry) formatMessage(level, format string, args ...a... method Tracef (line 214) | func (e *customLogEntry) Tracef(format string, args ...any) { method Debugf (line 218) | func (e *customLogEntry) Debugf(format string, args ...any) { method Infof (line 222) | func (e *customLogEntry) Infof(format string, args ...any) { method Warnf (line 226) | func (e *customLogEntry) Warnf(format string, args ...any) { method Errorf (line 230) | func (e *customLogEntry) Errorf(format string, args ...any) { method Fatalf (line 234) | func (e *customLogEntry) Fatalf(format string, args ...any) { method Trace (line 238) | func (e *customLogEntry) Trace(msg string) { method Debug (line 242) | func (e *customLogEntry) Debug(msg string) { method Info (line 246) | func (e *customLogEntry) Info(msg string) { method Warn (line 250) | func (e *customLogEntry) Warn(msg string) { method Error (line 254) | func (e *customLogEntry) Error(msg string) { method Fatal (line 258) | func (e *customLogEntry) Fatal(msg string) { function assertContains (line 263) | func assertContains(t *testing.T, output, expected string) { function assertNotContains (line 270) | func assertNotContains(t *testing.T, output, unexpected string) { function assertJSONFormat (line 277) | func assertJSONFormat(t *testing.T, output string) { function TestCustomSlogHandler (line 291) | func TestCustomSlogHandler(t *testing.T) { function TestCustomLoggerImplementation (line 337) | func TestCustomLoggerImplementation(t *testing.T) { function TestCustomLoggerSecretMasking (line 366) | func TestCustomLoggerSecretMasking(t *testing.T) { function TestCustomHandlerWithContext (line 396) | func TestCustomHandlerWithContext(t *testing.T) { function TestCustomLoggerWithFields (line 435) | func TestCustomLoggerWithFields(t *testing.T) { function TestCustomLoggerLevelConfiguration (line 468) | func TestCustomLoggerLevelConfiguration(t *testing.T) { function TestCustomHandlerRestore (line 509) | func TestCustomHandlerRestore(t *testing.T) { FILE: log_test.go function TestLogLevelEnabled (line 11) | func TestLogLevelEnabled(t *testing.T) { function TestSetLogLevelError (line 22) | func TestSetLogLevelError(t *testing.T) { function TestDefaultLogLevel (line 30) | func TestDefaultLogLevel(t *testing.T) { function TestOffLogLevel (line 66) | func TestOffLogLevel(t *testing.T) { function TestLogSetLevel (line 88) | func TestLogSetLevel(t *testing.T) { function TestLowerLevelsAreSuppressed (line 105) | func TestLowerLevelsAreSuppressed(t *testing.T) { function TestLogWithField (line 131) | func TestLogWithField(t *testing.T) { type testRequestIDCtxKey (line 143) | type testRequestIDCtxKey struct function TestLogKeysDefault (line 145) | func TestLogKeysDefault(t *testing.T) { function TestLogKeysWithRegisterContextVariableToLog (line 170) | func TestLogKeysWithRegisterContextVariableToLog(t *testing.T) { function TestLogMaskSecrets (line 213) | func TestLogMaskSecrets(t *testing.T) { FILE: minicore.go constant disableMinicoreEnv (line 16) | disableMinicoreEnv = "SF_DISABLE_MINICORE" type minicoreDirCandidate (line 29) | type minicoreDirCandidate struct method String (line 42) | func (m minicoreDirCandidate) String() string { function newMinicoreDirCandidate (line 35) | func newMinicoreDirCandidate(dirType, path string) minicoreDirCandidate { function getMiniCoreFileName (line 47) | func getMiniCoreFileName() string { type miniCoreErrorType (line 54) | type miniCoreErrorType method String (line 66) | func (et miniCoreErrorType) String() string { constant miniCoreErrorTypeLoad (line 58) | miniCoreErrorTypeLoad miniCoreErrorType = iota constant miniCoreErrorTypeSymbol (line 59) | miniCoreErrorTypeSymbol constant miniCoreErrorTypeCall (line 60) | miniCoreErrorTypeCall constant miniCoreErrorTypeInit (line 61) | miniCoreErrorTypeInit constant miniCoreErrorTypeWrite (line 62) | miniCoreErrorTypeWrite type miniCoreError (line 85) | type miniCoreError struct method Error (line 93) | func (e *miniCoreError) Error() string { method Unwrap (line 101) | func (e *miniCoreError) Unwrap() error { function newMiniCoreError (line 106) | func newMiniCoreError(errType miniCoreErrorType, platform, path string, ... type corePlatformConfigType (line 116) | type corePlatformConfigType struct type miniCore (line 125) | type miniCore interface type erroredMiniCore (line 132) | type erroredMiniCore struct method FullVersion (line 143) | func (emc erroredMiniCore) FullVersion() (string, error) { function newErroredMiniCore (line 137) | func newErroredMiniCore(err error) *erroredMiniCore { type miniCoreLoaderType (line 148) | type miniCoreLoaderType struct method loadCore (line 233) | func (l *miniCoreLoaderType) loadCore() miniCore { method writeLibraryToFile (line 270) | func (l *miniCoreLoaderType) writeLibraryToFile() (minicoreDirCandidat... function newMiniCoreLoader (line 153) | func newMiniCoreLoader() *miniCoreLoaderType { function buildMiniCoreSearchDirs (line 160) | func buildMiniCoreSearchDirs() []minicoreDirCandidate { function getMiniCoreCacheDirInHome (line 215) | func getMiniCoreCacheDirInHome() string { function getMiniCore (line 296) | func getMiniCore() miniCore { function init (line 333) | func init() { function minicoreDebugf (line 339) | func minicoreDebugf(format string, args ...any) { type libcType (line 351) | type libcType constant libcTypeGlibc (line 354) | libcTypeGlibc libcType = "glibc" constant libcTypeMusl (line 355) | libcTypeMusl libcType = "musl" constant libcTypeIgnored (line 356) | libcTypeIgnored libcType = "" function detectLibc (line 360) | func detectLibc() libcType { FILE: minicore_disabled_test.go function TestMiniCoreDisabledAtCompileTime (line 12) | func TestMiniCoreDisabledAtCompileTime(t *testing.T) { function TestMiniCoreDisabledE2E (line 16) | func TestMiniCoreDisabledE2E(t *testing.T) { FILE: minicore_posix.go type posixMiniCore (line 40) | type posixMiniCore struct method FullVersion (line 53) | func (pmc *posixMiniCore) FullVersion() (string, error) { function newPosixMiniCore (line 47) | func newPosixMiniCore(fullVersion string) *posixMiniCore { function loadFromPath (line 62) | func loadFromPath(libPath string) miniCore { FILE: minicore_provider_darwin_amd64.go function initMinicoreProvider (line 15) | func initMinicoreProvider() any { FILE: minicore_provider_darwin_arm64.go function initMinicoreProvider (line 15) | func initMinicoreProvider() any { FILE: minicore_provider_linux_amd64.go function initMinicoreProvider (line 18) | func initMinicoreProvider() any { FILE: minicore_provider_linux_arm64.go function initMinicoreProvider (line 18) | func initMinicoreProvider() any { FILE: minicore_provider_windows_amd64.go function initMinicoreProvider (line 15) | func initMinicoreProvider() any { FILE: minicore_provider_windows_arm64.go function initMinicoreProvider (line 15) | func initMinicoreProvider() any { FILE: minicore_test.go function TestMiniCoreLoadSuccess (line 16) | func TestMiniCoreLoadSuccess(t *testing.T) { function checkLoadCore (line 21) | func checkLoadCore(t *testing.T, mcl *miniCoreLoaderType) { function TestMiniCoreLoaderChoosesCorrectCandidates (line 29) | func TestMiniCoreLoaderChoosesCorrectCandidates(t *testing.T) { function TestMiniCoreLoaderChoosesCorrectCandidatesWhenHomeCacheDirAlreadyExists (line 36) | func TestMiniCoreLoaderChoosesCorrectCandidatesWhenHomeCacheDirAlreadyEx... function checkAllLoadDirsAvailable (line 44) | func checkAllLoadDirsAvailable(t *testing.T, mcl *miniCoreLoaderType) { function TestMiniCoreNoFolderCandidate (line 51) | func TestMiniCoreNoFolderCandidate(t *testing.T) { function TestMiniCoreNoWritableFolder (line 61) | func TestMiniCoreNoWritableFolder(t *testing.T) { function TestMiniCoreNoWritableFirstFolder (line 76) | func TestMiniCoreNoWritableFirstFolder(t *testing.T) { function TestMiniCoreInvalidDynamicLibrary (line 87) | func TestMiniCoreInvalidDynamicLibrary(t *testing.T) { function TestMiniCoreNotInitialized (line 101) | func TestMiniCoreNotInitialized(t *testing.T) { function TestMiniCoreLoadLogsVersion (line 114) | func TestMiniCoreLoadLogsVersion(t *testing.T) { function TestIsDynamicallyLinked (line 135) | func TestIsDynamicallyLinked(t *testing.T) { function TestMiniCoreLoadedE2E (line 145) | func TestMiniCoreLoadedE2E(t *testing.T) { FILE: minicore_windows.go type windowsMiniCore (line 13) | type windowsMiniCore struct method FullVersion (line 25) | func (wmc *windowsMiniCore) FullVersion() (string, error) { function loadFromPath (line 29) | func loadFromPath(libPath string) miniCore { FILE: monitoring.go constant urlQueriesResultFmt (line 14) | urlQueriesResultFmt = "/queries/%s/result" type queryResultStatus (line 17) | type queryResultStatus method String (line 52) | func (qs queryResultStatus) String() string { method isRunning (line 59) | func (qs queryResultStatus) isRunning() bool { method isError (line 69) | func (qs queryResultStatus) isError() bool { constant SFQueryRunning (line 22) | SFQueryRunning queryResultStatus = iota constant SFQueryAborting (line 24) | SFQueryAborting constant SFQuerySuccess (line 26) | SFQuerySuccess constant SFQueryFailedWithError (line 28) | SFQueryFailedWithError constant SFQueryAborted (line 30) | SFQueryAborted constant SFQueryQueued (line 32) | SFQueryQueued constant SFQueryFailedWithIncident (line 34) | SFQueryFailedWithIncident constant SFQueryDisconnected (line 36) | SFQueryDisconnected constant SFQueryResumingWarehouse (line 38) | SFQueryResumingWarehouse constant SFQueryQueueRepairingWarehouse (line 41) | SFQueryQueueRepairingWarehouse constant SFQueryRestarted (line 43) | SFQueryRestarted constant SFQueryBlocked (line 47) | SFQueryBlocked constant SFQueryNoData (line 49) | SFQueryNoData type retStatus (line 89) | type retStatus struct type retStats (line 99) | type retStats struct type statusResponse (line 104) | type statusResponse struct function strToQueryStatus (line 113) | func strToQueryStatus(in string) queryResultStatus { type SnowflakeQueryStatus (line 118) | type SnowflakeQueryStatus struct type SnowflakeConnection (line 129) | type SnowflakeConnection interface method checkQueryStatus (line 143) | func (sc *snowflakeConn) checkQueryStatus( method getQueryResultResp (line 216) | func (sc *snowflakeConn) getQueryResultResp( method rowsForRunningQuery (line 243) | func (sc *snowflakeConn) rowsForRunningQuery( method buildRowsForRunningQuery (line 270) | func (sc *snowflakeConn) buildRowsForRunningQuery( FILE: multistatement.go type childResult (line 12) | type childResult struct function getChildResults (line 17) | func getChildResults(IDs string, types string) []childResult { method handleMultiExec (line 30) | func (sc *snowflakeConn) handleMultiExec( method handleMultiQuery (line 86) | func (sc *snowflakeConn) handleMultiQuery( FILE: multistatement_test.go function TestMultiStatementExecuteNoResultSet (line 18) | func TestMultiStatementExecuteNoResultSet(t *testing.T) { function TestMultiStatementQueryResultSet (line 39) | func TestMultiStatementQueryResultSet(t *testing.T) { function TestMultistatementQueryLargeResultSet (line 118) | func TestMultistatementQueryLargeResultSet(t *testing.T) { function TestMultiStatementExecuteResultSet (line 135) | func TestMultiStatementExecuteResultSet(t *testing.T) { function TestMultiStatementQueryNoResultSet (line 161) | func TestMultiStatementQueryNoResultSet(t *testing.T) { function TestMultiStatementExecuteMix (line 179) | func TestMultiStatementExecuteMix(t *testing.T) { function TestMultiStatementQueryMix (line 202) | func TestMultiStatementQueryMix(t *testing.T) { function TestMultiStatementCountZero (line 249) | func TestMultiStatementCountZero(t *testing.T) { function TestMultiStatementCountMismatch (line 355) | func TestMultiStatementCountMismatch(t *testing.T) { function TestMultiStatementVaryingColumnCount (line 369) | func TestMultiStatementVaryingColumnCount(t *testing.T) { function TestMultiStatementExecutePerformance (line 412) | func TestMultiStatementExecutePerformance(t *testing.T) { function TestUnitGetChildResults (line 454) | func TestUnitGetChildResults(t *testing.T) { function funcGetQueryRespFail (line 480) | func funcGetQueryRespFail(_ context.Context, _ *snowflakeRestful, _ *url... function funcGetQueryRespError (line 484) | func funcGetQueryRespError(_ context.Context, _ *snowflakeRestful, _ *ur... function TestUnitHandleMultiExec (line 503) | func TestUnitHandleMultiExec(t *testing.T) { function TestUnitHandleMultiQuery (line 551) | func TestUnitHandleMultiQuery(t *testing.T) { function TestMultiStatementArrowFormat (line 599) | func TestMultiStatementArrowFormat(t *testing.T) { FILE: ocsp.go constant OCSPFailOpenTrue (line 55) | OCSPFailOpenTrue = sfconfig.OCSPFailOpenTrue constant OCSPFailOpenFalse (line 57) | OCSPFailOpenFalse = sfconfig.OCSPFailOpenFalse constant defaultOCSPCacheServerTimeout (line 62) | defaultOCSPCacheServerTimeout = 5 * time.Second constant defaultOCSPResponderTimeout (line 65) | defaultOCSPResponderTimeout = 10 * time.Second constant defaultOCSPMaxRetryCount (line 67) | defaultOCSPMaxRetryCount = 2 constant defaultOCSPResponseCacheClearingInterval (line 70) | defaultOCSPResponseCacheClearingInterval = 15 * time.Minute constant cacheFileBaseName (line 86) | cacheFileBaseName = "ocsp_response_cache.json" constant cacheExpire (line 88) | cacheExpire = float64(24 * 60 * 60) constant defaultCacheServerHost (line 89) | defaultCacheServerHost = "http://ocsp.snowflakeco... constant cacheServerEnabledEnv (line 90) | cacheServerEnabledEnv = "SF_OCSP_RESPONSE_CACHE_... constant cacheServerURLEnv (line 91) | cacheServerURLEnv = "SF_OCSP_RESPONSE_CACHE_... constant cacheDirEnv (line 92) | cacheDirEnv = "SF_OCSP_RESPONSE_CACHE_... constant ocspResponseCacheClearingIntervalInSecondsEnv (line 93) | ocspResponseCacheClearingIntervalInSecondsEnv = "SF_OCSP_RESPONSE_CACHE_... constant ocspTestResponderURLEnv (line 97) | ocspTestResponderURLEnv = "SF_OCSP_TEST_RESPONDER_URL" constant ocspTestNoOCSPURLEnv (line 98) | ocspTestNoOCSPURLEnv = "SF_OCSP_TEST_NO_OCSP_RESPONDER_URL" constant tolerableValidityRatio (line 102) | tolerableValidityRatio = 100 constant maxClockSkew (line 103) | maxClockSkew = 900 * time.Second type ocspStatusCode (line 106) | type ocspStatusCode type ocspStatus (line 108) | type ocspStatus struct constant ocspSuccess (line 114) | ocspSuccess ocspStatusCode = 0 constant ocspStatusGood (line 115) | ocspStatusGood ocspStatusCode = -1 constant ocspStatusRevoked (line 116) | ocspStatusRevoked ocspStatusCode = -2 constant ocspStatusUnknown (line 117) | ocspStatusUnknown ocspStatusCode = -3 constant ocspStatusOthers (line 118) | ocspStatusOthers ocspStatusCode = -4 constant ocspNoServer (line 119) | ocspNoServer ocspStatusCode = -5 constant ocspFailedParseOCSPHost (line 120) | ocspFailedParseOCSPHost ocspStatusCode = -6 constant ocspFailedComposeRequest (line 121) | ocspFailedComposeRequest ocspStatusCode = -7 constant ocspFailedDecomposeRequest (line 122) | ocspFailedDecomposeRequest ocspStatusCode = -8 constant ocspFailedSubmit (line 123) | ocspFailedSubmit ocspStatusCode = -9 constant ocspFailedResponse (line 124) | ocspFailedResponse ocspStatusCode = -10 constant ocspFailedExtractResponse (line 125) | ocspFailedExtractResponse ocspStatusCode = -11 constant ocspFailedParseResponse (line 126) | ocspFailedParseResponse ocspStatusCode = -12 constant ocspInvalidValidity (line 127) | ocspInvalidValidity ocspStatusCode = -13 constant ocspMissedCache (line 128) | ocspMissedCache ocspStatusCode = -14 constant ocspCacheExpired (line 129) | ocspCacheExpired ocspStatusCode = -15 constant ocspFailedDecodeResponse (line 130) | ocspFailedDecodeResponse ocspStatusCode = -16 type certID (line 134) | type certID struct type certIDKey (line 142) | type certIDKey struct type certCacheValue (line 149) | type certCacheValue struct type parsedOcspRespKey (line 154) | type parsedOcspRespKey struct type ocspValidator (line 166) | type ocspValidator struct method checkOCSPResponseCache (line 319) | func (ov *ocspValidator) checkOCSPResponseCache(certIDKey *certIDKey, ... method retryOCSP (line 464) | func (ov *ocspValidator) retryOCSP( method fallbackRetryOCSPToGETRequest (line 532) | func (ov *ocspValidator) fallbackRetryOCSPToGETRequest( method getRevocationStatus (line 613) | func (ov *ocspValidator) getRevocationStatus(ctx context.Context, subj... method verifyPeerCertificate (line 700) | func (ov *ocspValidator) verifyPeerCertificate(ctx context.Context, ve... method canEarlyExitForOCSP (line 717) | func (ov *ocspValidator) canEarlyExitForOCSP(results []*ocspStatus, ve... method validateWithCacheForAllCertificates (line 750) | func (ov *ocspValidator) validateWithCacheForAllCertificates(verifiedC... method validateWithCache (line 763) | func (ov *ocspValidator) validateWithCache(subject, issuer *x509.Certi... method downloadOCSPCacheServer (line 789) | func (ov *ocspValidator) downloadOCSPCacheServer() { method getAllRevocationStatus (line 825) | func (ov *ocspValidator) getAllRevocationStatus(ctx context.Context, v... method verifyPeerCertificateSerial (line 842) | func (ov *ocspValidator) verifyPeerCertificateSerial(_ [][]byte, verif... method writeOCSPCacheFile (line 993) | func (ov *ocspValidator) writeOCSPCacheFile() { function newOcspValidator (line 174) | func newOcspValidator(cfg *Config) *ocspValidator { function getOIDFromHashAlgorithm (line 213) | func getOIDFromHashAlgorithm(target crypto.Hash) asn1.ObjectIdentifier { function getHashAlgorithmFromOID (line 223) | func getHashAlgorithmFromOID(target pkix.AlgorithmIdentifier) crypto.Hash { function calcTolerableValidity (line 234) | func calcTolerableValidity(thisUpdate, nextUpdate time.Time) time.Durati... function isInValidityRange (line 239) | func isInValidityRange(currTime, thisUpdate, nextUpdate time.Time) bool { function extractCertIDKeyFromRequest (line 249) | func extractCertIDKeyFromRequest(ocspReq []byte) (*certIDKey, *ocspStatu... function decodeCertIDKey (line 270) | func decodeCertIDKey(certIDKeyBase64 string) *certIDKey { function encodeCertIDKey (line 293) | func encodeCertIDKey(k *certIDKey) string { function deleteOCSPCache (line 344) | func deleteOCSPCache(encodedCertID *certIDKey) { function validateOCSP (line 351) | func validateOCSP(ocspRes *ocsp.Response) *ocspStatus { function returnOCSPStatus (line 373) | func returnOCSPStatus(ocspRes *ocsp.Response) *ocspStatus { function checkOCSPCacheServer (line 405) | func checkOCSPCacheServer( function printStatus (line 588) | func printStatus(response *ocsp.Response) string { function fullOCSPURL (line 601) | func fullOCSPURL(url *url.URL) string { function isTestNoOCSPURL (line 691) | func isTestNoOCSPURL() bool { function isValidOCSPStatus (line 695) | func isValidOCSPStatus(status ocspStatusCode) bool { function overrideCacheDir (line 854) | func overrideCacheDir() { function initOCSPCache (line 863) | func initOCSPCache() { function extractTsAndOcspRespBase64 (line 919) | func extractTsAndOcspRespBase64(value []any) (bool, float64, string) { function extractOCSPCacheResponseValueWithoutSubject (line 933) | func extractOCSPCacheResponseValueWithoutSubject(cacheKey *certIDKey, ca... function extractOCSPCacheResponseValue (line 937) | func extractOCSPCacheResponseValue(certIDKey *certIDKey, certCacheValue ... function createOCSPCacheDir (line 1048) | func createOCSPCacheDir() { function StartOCSPCacheClearer (line 1087) | func StartOCSPCacheClearer() { function StopOCSPCacheClearer (line 1092) | func StopOCSPCacheClearer() { function clearOCSPCaches (line 1096) | func clearOCSPCaches() { function initOcspModule (line 1111) | func initOcspModule() { type ocspCacheClearerType (line 1123) | type ocspCacheClearerType struct method start (line 1129) | func (occ *ocspCacheClearerType) start() { method stop (line 1166) | func (occ *ocspCacheClearerType) stop() { FILE: ocsp_test.go function TestOCSP (line 23) | func TestOCSP(t *testing.T) { type tcValidityRange (line 75) | type tcValidityRange struct function TestUnitIsInValidityRange (line 81) | func TestUnitIsInValidityRange(t *testing.T) { function TestUnitEncodeCertIDGood (line 130) | func TestUnitEncodeCertIDGood(t *testing.T) { function TestUnitCheckOCSPResponseCache (line 179) | func TestUnitCheckOCSPResponseCache(t *testing.T) { function TestOcspCacheClearer (line 247) | func TestOcspCacheClearer(t *testing.T) { function TestUnitValidateOCSP (line 278) | func TestUnitValidateOCSP(t *testing.T) { function TestUnitEncodeCertID (line 312) | func TestUnitEncodeCertID(t *testing.T) { function getCert (line 320) | func getCert(addr string) []*x509.Certificate { function TestOCSPRetry (line 346) | func TestOCSPRetry(t *testing.T) { function TestFullOCSPURL (line 383) | func TestFullOCSPURL(t *testing.T) { type tcFullOCSPURL (line 416) | type tcFullOCSPURL struct function TestOCSPCacheServerRetry (line 421) | func TestOCSPCacheServerRetry(t *testing.T) { type tcCanEarlyExit (line 450) | type tcCanEarlyExit struct function TestCanEarlyExitForOCSP (line 457) | func TestCanEarlyExitForOCSP(t *testing.T) { function TestInitOCSPCacheFileCreation (line 560) | func TestInitOCSPCacheFileCreation(t *testing.T) { function syncUpdateOcspResponseCache (line 626) | func syncUpdateOcspResponseCache(f func()) { FILE: old_driver_test.go constant forceARROW (line 10) | forceARROW = "ALTER SESSION SET GO_QUERY_RESULT_FORMAT = ARROW" constant forceJSON (line 11) | forceJSON = "ALTER SESSION SET GO_QUERY_RESULT_FORMAT = JSON" function TestJSONInt (line 14) | func TestJSONInt(t *testing.T) { function TestJSONFloat32 (line 18) | func TestJSONFloat32(t *testing.T) { function TestJSONFloat64 (line 22) | func TestJSONFloat64(t *testing.T) { function TestJSONVariousTypes (line 26) | func TestJSONVariousTypes(t *testing.T) { function TestJSONString (line 140) | func TestJSONString(t *testing.T) { function TestJSONSimpleDateTimeTimestampFetch (line 144) | func TestJSONSimpleDateTimeTimestampFetch(t *testing.T) { function TestJSONDateTime (line 148) | func TestJSONDateTime(t *testing.T) { function TestJSONTimestampLTZ (line 152) | func TestJSONTimestampLTZ(t *testing.T) { function TestJSONTimestampTZ (line 156) | func TestJSONTimestampTZ(t *testing.T) { function TestJSONNULL (line 160) | func TestJSONNULL(t *testing.T) { function TestJSONVariant (line 164) | func TestJSONVariant(t *testing.T) { function TestJSONArray (line 168) | func TestJSONArray(t *testing.T) { function TestLargeSetJSONResultWithDecoder (line 177) | func TestLargeSetJSONResultWithDecoder(t *testing.T) { function TestLargeSetResultWithCustomJSONDecoder (line 184) | func TestLargeSetResultWithCustomJSONDecoder(t *testing.T) { function TestBindingJSONInterface (line 190) | func TestBindingJSONInterface(t *testing.T) { FILE: os_specific_posix.go function getOSVersion (line 15) | func getOSVersion() string { function provideFileOwner (line 27) | func provideFileOwner(file *os.File) (uint32, error) { function provideOwnerFromStat (line 35) | func provideOwnerFromStat(info os.FileInfo, filepath string) (uint32, er... function getFileContents (line 43) | func getFileContents(filePath string, expectedPerm os.FileMode) ([]byte,... function validateFilePermissionBits (line 72) | func validateFilePermissionBits(f *os.File, expectedPerm os.FileMode) er... FILE: os_specific_windows.go function getWindowsOSVersion (line 13) | func getWindowsOSVersion() string { function provideFileOwner (line 52) | func provideFileOwner(file *os.File) (uint32, error) { function getFileContents (line 56) | func getFileContents(filePath string, expectedPerm os.FileMode) ([]byte,... FILE: permissions_test.go function TestConfigPermissions (line 14) | func TestConfigPermissions(t *testing.T) { function TestLogDirectoryPermissions (line 60) | func TestLogDirectoryPermissions(t *testing.T) { FILE: platform_detection.go type platformDetectionState (line 21) | type platformDetectionState constant platformDetected (line 24) | platformDetected platformDetectionState = "detected" constant platformNotDetected (line 25) | platformNotDetected platformDetectionState = "not_detected" constant platformDetectionTimeout (line 26) | platformDetectionTimeout platformDetectionState = "timeout" constant disablePlatformDetectionEnv (line 29) | disablePlatformDetectionEnv = "SNOWFLAKE_DISABLE_PLATFORM_DETECTION" function initPlatformDetection (line 43) | func initPlatformDetection() { function getDetectedPlatforms (line 52) | func getDetectedPlatforms() []string { function metadataServerHTTPClient (line 59) | func metadataServerHTTPClient(timeout time.Duration) *http.Client { type detectorFunc (line 69) | type detectorFunc struct function detectPlatforms (line 74) | func detectPlatforms(ctx context.Context, timeout time.Duration) []string { function detectAwsLambdaEnv (line 120) | func detectAwsLambdaEnv(_ context.Context, _ time.Duration) platformDete... function detectGithubActionsEnv (line 127) | func detectGithubActionsEnv(_ context.Context, _ time.Duration) platform... function detectAzureFunctionEnv (line 134) | func detectAzureFunctionEnv(_ context.Context, _ time.Duration) platform... function detectGceCloudRunServiceEnv (line 143) | func detectGceCloudRunServiceEnv(_ context.Context, _ time.Duration) pla... function detectGceCloudRunJobEnv (line 150) | func detectGceCloudRunJobEnv(_ context.Context, _ time.Duration) platfor... function detectEc2Instance (line 157) | func detectEc2Instance(ctx context.Context, timeout time.Duration) platf... function detectAwsIdentity (line 181) | func detectAwsIdentity(ctx context.Context, timeout time.Duration) platf... function detectAzureVM (line 210) | func detectAzureVM(ctx context.Context, timeout time.Duration) platformD... function detectAzureManagedIdentity (line 231) | func detectAzureManagedIdentity(ctx context.Context, timeout time.Durati... function detectGceVM (line 258) | func detectGceVM(ctx context.Context, timeout time.Duration) platformDet... function detectGcpIdentity (line 278) | func detectGcpIdentity(ctx context.Context, timeout time.Duration) platf... function isValidArnForWif (line 300) | func isValidArnForWif(arn string) bool { FILE: platform_detection_test.go type platformDetectionTestCase (line 13) | type platformDetectionTestCase struct type envSnapshot (line 20) | type envSnapshot function setupCleanPlatformEnv (line 22) | func setupCleanPlatformEnv() func() { function setupWiremockMetadataEndpoints (line 54) | func setupWiremockMetadataEndpoints() func() { function TestPlatformDetectionCachingAndSyncOnce (line 75) | func TestPlatformDetectionCachingAndSyncOnce(t *testing.T) { function TestDetectPlatforms (line 102) | func TestDetectPlatforms(t *testing.T) { function TestDetectPlatformsTimeout (line 229) | func TestDetectPlatformsTimeout(t *testing.T) { function TestIsValidArnForWif (line 246) | func TestIsValidArnForWif(t *testing.T) { FILE: prepared_statement_test.go function TestPreparedStatement (line 9) | func TestPreparedStatement(t *testing.T) { FILE: priv_key_test.go function setupPrivateKey (line 21) | func setupPrivateKey() { function TestJWTTokenTimeout (line 45) | func TestJWTTokenTimeout(t *testing.T) { FILE: put_get_test.go constant createStageStmt (line 23) | createStageStmt = "CREATE OR REPLACE STAGE %v URL = '%v' CREDENTIALS = (... function TestPutError (line 25) | func TestPutError(t *testing.T) { function TestPercentage (line 73) | func TestPercentage(t *testing.T) { type tcPutGetData (line 95) | type tcPutGetData struct function cleanupPut (line 105) | func cleanupPut(dbt *DBTest, td *tcPutGetData) { function getAWSCredentials (line 110) | func getAWSCredentials() (string, string, string, error) { function createTestData (line 130) | func createTestData(dbt *DBTest) (*tcPutGetData, error) { function TestPutLocalFile (line 166) | func TestPutLocalFile(t *testing.T) { function TestPutGetWithAutoCompressFalse (line 235) | func TestPutGetWithAutoCompressFalse(t *testing.T) { function TestPutOverwrite (line 308) | func TestPutOverwrite(t *testing.T) { function TestPutGetFile (line 402) | func TestPutGetFile(t *testing.T) { function TestPutGetStream (line 406) | func TestPutGetStream(t *testing.T) { function testPutGet (line 410) | func testPutGet(t *testing.T, isStream bool) { function TestPutGetWithSnowflakeSSE (line 538) | func TestPutGetWithSnowflakeSSE(t *testing.T) { function TestPutGetWithSpacesInDirectoryName (line 604) | func TestPutGetWithSpacesInDirectoryName(t *testing.T) { function TestPutWithNonWritableTemp (line 670) | func TestPutWithNonWritableTemp(t *testing.T) { function TestGetWithNonWritableTemp (line 716) | func TestGetWithNonWritableTemp(t *testing.T) { function TestPutGetGcsDownscopedCredential (line 760) | func TestPutGetGcsDownscopedCredential(t *testing.T) { function TestPutGetLargeFile (line 887) | func TestPutGetLargeFile(t *testing.T) { function TestPutGetMaxLOBSize (line 959) | func TestPutGetMaxLOBSize(t *testing.T) { function TestPutCancel (line 1071) | func TestPutCancel(t *testing.T) { function TestPutGetLargeFileNonStream (line 1096) | func TestPutGetLargeFileNonStream(t *testing.T) { function TestPutGetLargeFileNonStreamAutoCompressFalse (line 1100) | func TestPutGetLargeFileNonStreamAutoCompressFalse(t *testing.T) { function TestPutGetLargeFileStream (line 1104) | func TestPutGetLargeFileStream(t *testing.T) { function TestPutGetLargeFileStreamAutoCompressFalse (line 1108) | func TestPutGetLargeFileStreamAutoCompressFalse(t *testing.T) { function testPutGetLargeFile (line 1112) | func testPutGetLargeFile(t *testing.T, isStream bool, autoCompress bool) { function createTempLargeFile (line 1247) | func createTempLargeFile(t *testing.T, sizeBytes int64) string { FILE: put_get_user_stage_test.go function TestPutGetFileSmallDataViaUserStage (line 13) | func TestPutGetFileSmallDataViaUserStage(t *testing.T) { function TestPutGetStreamSmallDataViaUserStage (line 20) | func TestPutGetStreamSmallDataViaUserStage(t *testing.T) { function putGetUserStage (line 27) | func putGetUserStage(t *testing.T, numberOfFiles int, numberOfLines int,... function TestPutLoadFromUserStage (line 102) | func TestPutLoadFromUserStage(t *testing.T) { FILE: put_get_with_aws_test.go function TestLoadS3 (line 22) | func TestLoadS3(t *testing.T) { function TestPutWithInvalidToken (line 90) | func TestPutWithInvalidToken(t *testing.T) { function TestPretendToPutButList (line 188) | func TestPretendToPutButList(t *testing.T) { function TestPutGetAWSStage (line 239) | func TestPutGetAWSStage(t *testing.T) { FILE: query.go type resultFormat (line 9) | type resultFormat constant jsonFormat (line 12) | jsonFormat resultFormat = "json" constant arrowFormat (line 13) | arrowFormat resultFormat = "arrow" type execBindParameter (line 16) | type execBindParameter struct type execRequest (line 23) | type execRequest struct type requestQueryContext (line 35) | type requestQueryContext struct type requestQueryContextEntry (line 39) | type requestQueryContextEntry struct type contextData (line 46) | type contextData struct type execResponseCredentials (line 50) | type execResponseCredentials struct type execResponseStageInfo (line 60) | type execResponseStageInfo struct type execResponseData (line 76) | type execResponseData struct type execResponse (line 131) | type execResponse struct FILE: restful.go constant headerSnowflakeToken (line 18) | headerSnowflakeToken = "Snowflake Token=\"%v\"" constant headerAuthorizationKey (line 19) | headerAuthorizationKey = "Authorization" constant headerContentTypeApplicationJSON (line 21) | headerContentTypeApplicationJSON = "application/json" constant headerAcceptTypeApplicationSnowflake (line 22) | headerAcceptTypeApplicationSnowflake = "application/snowflake" constant loginRequestPath (line 27) | loginRequestPath = "/session/v1/login-request" constant queryRequestPath (line 28) | queryRequestPath = "/queries/v1/query-request" constant tokenRequestPath (line 29) | tokenRequestPath = "/session/token-request" constant abortRequestPath (line 30) | abortRequestPath = "/queries/v1/abort-request" constant authenticatorRequestPath (line 31) | authenticatorRequestPath = "/session/authenticator-request" constant monitoringQueriesPath (line 32) | monitoringQueriesPath = "/monitoring/queries" constant sessionRequestPath (line 33) | sessionRequestPath = "/session" constant heartBeatPath (line 34) | heartBeatPath = "/session/heartbeat" constant consoleLoginRequestPath (line 35) | consoleLoginRequestPath = "/console/login" type funcGetType (line 39) | type funcGetType type funcPostType (line 40) | type funcPostType type funcAuthPostType (line 41) | type funcAuthPostType type bodyCreatorType (line 42) | type bodyCreatorType type snowflakeRestful (line 49) | type snowflakeRestful struct method getURL (line 79) | func (sr *snowflakeRestful) getURL() *url.URL { method getFullURL (line 86) | func (sr *snowflakeRestful) getFullURL(path string, params *url.Values... method getClientFor (line 99) | func (sr *snowflakeRestful) getClientFor(authType AuthType) *http.Clie... method renewExpiredSessionToken (line 109) | func (sr *snowflakeRestful) renewExpiredSessionToken(ctx context.Conte... type renewSessionResponse (line 123) | type renewSessionResponse struct type renewSessionResponseMain (line 130) | type renewSessionResponseMain struct type cancelQueryResponse (line 138) | type cancelQueryResponse struct type telemetryResponse (line 145) | type telemetryResponse struct function postRestful (line 153) | func postRestful( function getRestful (line 169) | func getRestful( function postAuthRestful (line 179) | func postAuthRestful( function postRestfulQuery (line 194) | func postRestfulQuery( function postRestfulQueryHelper (line 218) | func postRestfulQueryHelper( function closeSession (line 315) | func closeSession(ctx context.Context, sr *snowflakeRestful, timeout tim... function renewRestfulSession (line 369) | func renewRestfulSession(ctx context.Context, sr *snowflakeRestful, time... function getCancelRetry (line 436) | func getCancelRetry(ctx context.Context) int { function cancelQuery (line 448) | func cancelQuery(ctx context.Context, sr *snowflakeRestful, requestID UU... function getQueryIDChan (line 525) | func getQueryIDChan(ctx context.Context) chan<- string { function getExecResponse (line 538) | func getExecResponse( FILE: restful_test.go function postTestError (line 16) | func postTestError(_ context.Context, _ *snowflakeRestful, _ *url.URL, _... function postAuthTestError (line 23) | func postAuthTestError(_ context.Context, _ *http.Client, _ *url.URL, _ ... function postTestSuccessButInvalidJSON (line 30) | func postTestSuccessButInvalidJSON(_ context.Context, _ *snowflakeRestfu... function postTestAppBadGatewayError (line 37) | func postTestAppBadGatewayError(_ context.Context, _ *snowflakeRestful, ... function postAuthTestAppBadGatewayError (line 44) | func postAuthTestAppBadGatewayError(_ context.Context, _ *http.Client, _... function postTestAppForbiddenError (line 51) | func postTestAppForbiddenError(_ context.Context, _ *snowflakeRestful, _... function postAuthTestAppForbiddenError (line 58) | func postAuthTestAppForbiddenError(_ context.Context, _ *http.Client, _ ... function postAuthTestAppUnexpectedError (line 65) | func postAuthTestAppUnexpectedError(_ context.Context, _ *http.Client, _... function postTestQueryNotExecuting (line 72) | func postTestQueryNotExecuting(_ context.Context, _ *snowflakeRestful, _... function postTestRenew (line 91) | func postTestRenew(_ context.Context, _ *snowflakeRestful, _ *url.URL, _... function postAuthTestAfterRenew (line 111) | func postAuthTestAfterRenew(_ context.Context, _ *http.Client, _ *url.UR... function postTestAfterRenew (line 131) | func postTestAfterRenew(_ context.Context, _ *snowflakeRestful, _ *url.U... function TestUnitPostQueryHelperError (line 151) | func TestUnitPostQueryHelperError(t *testing.T) { function TestUnitPostQueryHelperOnRenewSessionKeepsRequestIdButGeneratesNewRequestGuid (line 176) | func TestUnitPostQueryHelperOnRenewSessionKeepsRequestIdButGeneratesNewR... function renewSessionTest (line 206) | func renewSessionTest(_ context.Context, _ *snowflakeRestful, _ time.Dur... function renewSessionTestError (line 210) | func renewSessionTestError(_ context.Context, _ *snowflakeRestful, _ tim... function TestUnitTokenAccessorDoesNotRenewStaleToken (line 214) | func TestUnitTokenAccessorDoesNotRenewStaleToken(t *testing.T) { type wrappedAccessor (line 247) | type wrappedAccessor struct method Lock (line 253) | func (wa *wrappedAccessor) Lock() error { method Unlock (line 259) | func (wa *wrappedAccessor) Unlock() { method GetTokens (line 264) | func (wa *wrappedAccessor) GetTokens() (token string, masterToken stri... method SetTokens (line 268) | func (wa *wrappedAccessor) SetTokens(token string, masterToken string,... function TestUnitTokenAccessorRenewBlocked (line 272) | func TestUnitTokenAccessorRenewBlocked(t *testing.T) { function TestUnitTokenAccessorRenewSessionContention (line 334) | func TestUnitTokenAccessorRenewSessionContention(t *testing.T) { function TestUnitPostQueryHelperUsesToken (line 398) | func TestUnitPostQueryHelperUsesToken(t *testing.T) { function TestUnitPostQueryHelperRenewSession (line 428) | func TestUnitPostQueryHelperRenewSession(t *testing.T) { function TestUnitRenewRestfulSession (line 462) | func TestUnitRenewRestfulSession(t *testing.T) { function TestUnitCloseSession (line 530) | func TestUnitCloseSession(t *testing.T) { function TestUnitCancelQuery (line 556) | func TestUnitCancelQuery(t *testing.T) { function TestCancelRetry (line 583) | func TestCancelRetry(t *testing.T) { function TestPostRestfulQueryContextErrors (line 596) | func TestPostRestfulQueryContextErrors(t *testing.T) { function TestErrorReturnedFromLongRunningQuery (line 652) | func TestErrorReturnedFromLongRunningQuery(t *testing.T) { FILE: result.go type QueryStatus (line 6) | type QueryStatus constant QueryStatusInProgress (line 10) | QueryStatusInProgress QueryStatus = "queryStatusInProgress" constant QueryStatusComplete (line 12) | QueryStatusComplete QueryStatus = "queryStatusComplete" constant QueryFailed (line 14) | QueryFailed QueryStatus = "queryFailed" type SnowflakeResult (line 18) | type SnowflakeResult interface type snowflakeResult (line 23) | type snowflakeResult struct method LastInsertId (line 32) | func (res *snowflakeResult) LastInsertId() (int64, error) { method RowsAffected (line 39) | func (res *snowflakeResult) RowsAffected() (int64, error) { method GetQueryID (line 46) | func (res *snowflakeResult) GetQueryID() string { method GetStatus (line 50) | func (res *snowflakeResult) GetStatus() QueryStatus { method waitForAsyncExecStatus (line 54) | func (res *snowflakeResult) waitForAsyncExecStatus() error { type snowflakeResultNoRows (line 73) | type snowflakeResultNoRows struct method LastInsertId (line 77) | func (*snowflakeResultNoRows) LastInsertId() (int64, error) { method RowsAffected (line 81) | func (*snowflakeResultNoRows) RowsAffected() (int64, error) { method GetQueryID (line 85) | func (rnr *snowflakeResultNoRows) GetQueryID() string { FILE: retry.go type waitAlgo (line 19) | type waitAlgo struct method calculateWaitBeforeRetryForAuthRequest (line 205) | func (w *waitAlgo) calculateWaitBeforeRetryForAuthRequest(attempt int,... method calculateWaitBeforeRetry (line 214) | func (w *waitAlgo) calculateWaitBeforeRetry(sleep time.Duration) time.... method getJitter (line 229) | func (w *waitAlgo) getJitter(currWaitTime float64) float64 { function init (line 40) | func init() { constant requestGUIDKey (line 48) | requestGUIDKey string = "request_guid" constant retryCountKey (line 50) | retryCountKey string = "retryCount" constant retryReasonKey (line 52) | retryReasonKey string = "retryReason" constant clientStartTimeKey (line 54) | clientStartTimeKey string = "clientStartTime" constant requestIDKey (line 56) | requestIDKey string = "requestId" type requestGUIDReplacer (line 62) | type requestGUIDReplacer interface function newRequestGUIDReplace (line 68) | func newRequestGUIDReplace(urlPtr *url.URL) requestGUIDReplacer { type transientReplace (line 83) | type transientReplace struct method replace (line 87) | func (replacer *transientReplace) replace() *url.URL { type requestGUIDReplace (line 95) | type requestGUIDReplace struct method replace (line 105) | func (replacer *requestGUIDReplace) replace() *url.URL { type retryCountUpdater (line 112) | type retryCountUpdater interface type retryCountUpdate (line 116) | type retryCountUpdate struct method replaceOrAdd (line 130) | func (replacer *retryCountUpdate) replaceOrAdd(retry int) *url.URL { type transientRetryCountUpdater (line 122) | type transientRetryCountUpdater struct method replaceOrAdd (line 126) | func (replaceOrAdder *transientRetryCountUpdater) replaceOrAdd(retry i... function newRetryCountUpdater (line 137) | func newRetryCountUpdater(urlPtr *url.URL) retryCountUpdater { type retryReasonUpdater (line 150) | type retryReasonUpdater interface type retryReasonUpdate (line 154) | type retryReasonUpdate struct method replaceOrAdd (line 158) | func (retryReasonUpdater *retryReasonUpdate) replaceOrAdd(reason int) ... type transientRetryReasonUpdater (line 166) | type transientRetryReasonUpdater struct method replaceOrAdd (line 170) | func (retryReasonUpdater *transientRetryReasonUpdater) replaceOrAdd(_ ... function newRetryReasonUpdater (line 174) | func newRetryReasonUpdater(url *url.URL, cfg *Config) retryReasonUpdater { function ensureClientStartTimeIsSet (line 186) | func ensureClientStartTimeIsSet(url *url.URL, clientStartTime string) *u... function isQueryRequest (line 200) | func isQueryRequest(url *url.URL) bool { function randMilliSecondDuration (line 222) | func randMilliSecondDuration(base time.Duration, bound time.Duration) ti... type requestFunc (line 235) | type requestFunc type clientInterface (line 237) | type clientInterface interface type retryHTTP (line 241) | type retryHTTP struct method doPost (line 279) | func (r *retryHTTP) doPost() *retryHTTP { method setBody (line 284) | func (r *retryHTTP) setBody(body []byte) *retryHTTP { method setBodyCreator (line 291) | func (r *retryHTTP) setBodyCreator(bodyCreator bodyCreatorType) *retry... method execute (line 296) | func (r *retryHTTP) execute() (res *http.Response, err error) { function newRetryHTTP (line 255) | func newRetryHTTP(ctx context.Context, function isRetryableError (line 394) | func isRetryableError(ctx context.Context, req *http.Request, res *http.... function isRetryableStatus (line 407) | func isRetryableStatus(statusCode int) bool { function isLoginRequest (line 411) | func isLoginRequest(req *http.Request) bool { FILE: retry_test.go function fakeRequestFunc (line 18) | func fakeRequestFunc(_, _ string, _ io.Reader) (*http.Request, error) { function emptyRequest (line 22) | func emptyRequest(method string, urlStr string, body io.Reader) (*http.R... type fakeHTTPError (line 26) | type fakeHTTPError struct method Error (line 31) | func (e *fakeHTTPError) Error() string { return e.err } method Timeout (line 32) | func (e *fakeHTTPError) Timeout() bool { return e.timeout } method Temporary (line 33) | func (e *fakeHTTPError) Temporary() bool { return true } type fakeResponseBody (line 35) | type fakeResponseBody struct method Read (line 40) | func (b *fakeResponseBody) Read(p []byte) (n int, err error) { method Close (line 50) | func (b *fakeResponseBody) Close() error { type fakeHTTPClient (line 54) | type fakeHTTPClient struct method Do (line 66) | func (c *fakeHTTPClient) Do(req *http.Request) (*http.Response, error) { function TestRequestGUID (line 121) | func TestRequestGUID(t *testing.T) { function TestRetryQuerySuccess (line 200) | func TestRetryQuerySuccess(t *testing.T) { function TestRetryQuerySuccessWithRetryReasonDisabled (line 243) | func TestRetryQuerySuccessWithRetryReasonDisabled(t *testing.T) { function TestRetryQuerySuccessWithTimeout (line 286) | func TestRetryQuerySuccessWithTimeout(t *testing.T) { function TestRetryQueryFailWithTimeout (line 326) | func TestRetryQueryFailWithTimeout(t *testing.T) { function TestRetryQueryFailWithMaxRetryCount (line 349) | func TestRetryQueryFailWithMaxRetryCount(t *testing.T) { function TestRetryLoginRequest (line 395) | func TestRetryLoginRequest(t *testing.T) { function TestRetryAuthLoginRequest (line 448) | func TestRetryAuthLoginRequest(t *testing.T) { function TestLoginRetry429 (line 472) | func TestLoginRetry429(t *testing.T) { function TestIsRetryable (line 495) | func TestIsRetryable(t *testing.T) { function TestCalculateRetryWait (line 581) | func TestCalculateRetryWait(t *testing.T) { function TestCalculateRetryWaitForNonAuthRequests (line 660) | func TestCalculateRetryWaitForNonAuthRequests(t *testing.T) { function TestRedirectRetry (line 698) | func TestRedirectRetry(t *testing.T) { FILE: rows.go constant headerSseCAlgorithm (line 19) | headerSseCAlgorithm = "x-amz-server-side-encryption-customer-algorithm" constant headerSseCKey (line 20) | headerSseCKey = "x-amz-server-side-encryption-customer-key" constant headerSseCAes (line 21) | headerSseCAes = "AES256" constant defaultMaxChunkDownloadWorkers (line 31) | defaultMaxChunkDownloadWorkers = 10 constant clientPrefetchThreadsKey (line 32) | clientPrefetchThreadsKey = "client_prefetch_threads" type SnowflakeRows (line 35) | type SnowflakeRows interface type snowflakeRows (line 43) | type snowflakeRows struct method getLocation (line 55) | func (rows *snowflakeRows) getLocation() *time.Location { method Close (line 80) | func (rows *snowflakeRows) Close() (err error) { method ColumnTypeDatabaseTypeName (line 92) | func (rows *snowflakeRows) ColumnTypeDatabaseTypeName(index int) string { method ColumnTypeLength (line 100) | func (rows *snowflakeRows) ColumnTypeLength(index int) (length int64, ... method ColumnTypeNullable (line 114) | func (rows *snowflakeRows) ColumnTypeNullable(index int) (nullable, ok... method ColumnTypePrecisionScale (line 124) | func (rows *snowflakeRows) ColumnTypePrecisionScale(index int) (precis... method Columns (line 143) | func (rows *snowflakeRows) Columns() []string { method ColumnTypeScanType (line 155) | func (rows *snowflakeRows) ColumnTypeScanType(index int) reflect.Type { method GetQueryID (line 162) | func (rows *snowflakeRows) GetQueryID() string { method GetStatus (line 166) | func (rows *snowflakeRows) GetStatus() QueryStatus { method GetArrowBatches (line 172) | func (rows *snowflakeRows) GetArrowBatches() (*ia.BatchDataInfo, error) { method Next (line 224) | func (rows *snowflakeRows) Next(dest []driver.Value) (err error) { method HasNextResultSet (line 254) | func (rows *snowflakeRows) HasNextResultSet() bool { method NextResultSet (line 263) | func (rows *snowflakeRows) NextResultSet() error { method waitForAsyncQueryStatus (line 278) | func (rows *snowflakeRows) waitForAsyncQueryStatus() error { method addDownloader (line 297) | func (rows *snowflakeRows) addDownloader(newDL chunkDownloader) { type snowflakeValue (line 62) | type snowflakeValue type chunkRowType (line 64) | type chunkRowType struct type rowSetType (line 69) | type rowSetType struct type chunkError (line 75) | type chunkError struct FILE: rows_test.go type RowsExtended (line 17) | type RowsExtended struct method Close (line 23) | func (rs *RowsExtended) Close() error { method ColumnTypes (line 29) | func (rs *RowsExtended) ColumnTypes() ([]*sql.ColumnType, error) { method Columns (line 33) | func (rs *RowsExtended) Columns() ([]string, error) { method Err (line 37) | func (rs *RowsExtended) Err() error { method Next (line 41) | func (rs *RowsExtended) Next() bool { method mustNext (line 45) | func (rs *RowsExtended) mustNext() { method NextResultSet (line 49) | func (rs *RowsExtended) NextResultSet() bool { method Scan (line 53) | func (rs *RowsExtended) Scan(dest ...any) error { method mustScan (line 57) | func (rs *RowsExtended) mustScan(dest ...any) { function TestRowsClose (line 68) | func TestRowsClose(t *testing.T) { function TestResultNoRows (line 87) | func TestResultNoRows(t *testing.T) { function TestRowsWithoutChunkDownloader (line 103) | func TestRowsWithoutChunkDownloader(t *testing.T) { function downloadChunkTest (line 155) | func downloadChunkTest(ctx context.Context, scd *snowflakeChunkDownloade... function TestRowsWithChunkDownloader (line 169) | func TestRowsWithChunkDownloader(t *testing.T) { function downloadChunkTestError (line 227) | func downloadChunkTestError(ctx context.Context, scd *snowflakeChunkDown... function TestRowsWithChunkDownloaderError (line 251) | func TestRowsWithChunkDownloaderError(t *testing.T) { function downloadChunkTestErrorFail (line 310) | func downloadChunkTestErrorFail(ctx context.Context, scd *snowflakeChunk... function TestRowsWithChunkDownloaderErrorFail (line 334) | func TestRowsWithChunkDownloaderErrorFail(t *testing.T) { function getChunkTestInvalidResponseBody (line 387) | func getChunkTestInvalidResponseBody(_ context.Context, _ *snowflakeConn... function TestDownloadChunkInvalidResponseBody (line 395) | func TestDownloadChunkInvalidResponseBody(t *testing.T) { function getChunkTestErrorStatus (line 429) | func getChunkTestErrorStatus(_ context.Context, _ *snowflakeConn, _ stri... function TestDownloadChunkErrorStatus (line 437) | func TestDownloadChunkErrorStatus(t *testing.T) { function TestLocationChangesAfterAlterSession (line 478) | func TestLocationChangesAfterAlterSession(t *testing.T) { FILE: s3_storage_client.go constant sfcDigest (line 22) | sfcDigest = "sfc-digest" constant amzMatdesc (line 23) | amzMatdesc = "x-amz-matdesc" constant amzKey (line 24) | amzKey = "x-amz-key" constant amzIv (line 25) | amzIv = "x-amz-iv" constant notFound (line 27) | notFound = "NotFound" constant expiredToken (line 28) | expiredToken = "ExpiredToken" constant errNoWsaeconnaborted (line 29) | errNoWsaeconnaborted = "10053" type snowflakeS3Client (line 32) | type snowflakeS3Client struct method createClient (line 48) | func (util *snowflakeS3Client) createClient(info *execResponseStageInf... method createClientWithConfig (line 74) | func (util *snowflakeS3Client) createClientWithConfig(info *execRespon... method getFileHeader (line 112) | func (util *snowflakeS3Client) getFileHeader(ctx context.Context, meta... method uploadFile (line 183) | func (util *snowflakeS3Client) uploadFile( method nativeDownloadFile (line 276) | func (util *snowflakeS3Client) nativeDownloadFile( method extractBucketNameAndPath (line 354) | func (util *snowflakeS3Client) extractBucketNameAndPath(location strin... method getS3Object (line 372) | func (util *snowflakeS3Client) getS3Object(meta *fileMetadata, filenam... type s3Location (line 37) | type s3Location struct function getS3CustomEndpoint (line 81) | func getS3CustomEndpoint(info *execResponseStageInfo) *string { function s3LoggingFunc (line 98) | func s3LoggingFunc(classification logging.Classification, format string,... type s3HeaderAPI (line 107) | type s3HeaderAPI interface function convertContentLength (line 166) | func convertContentLength(contentLength any) int64 { type s3UploadAPI (line 178) | type s3UploadAPI interface type s3DownloadAPI (line 271) | type s3DownloadAPI interface FILE: s3_storage_client_test.go type tcBucketPath (line 19) | type tcBucketPath struct function TestExtractBucketNameAndPath (line 25) | func TestExtractBucketNameAndPath(t *testing.T) { type mockUploadObjectAPI (line 50) | type mockUploadObjectAPI method Upload (line 52) | func (m mockUploadObjectAPI) Upload( function TestUploadOneFileToS3WSAEConnAborted (line 59) | func TestUploadOneFileToS3WSAEConnAborted(t *testing.T) { function TestUploadOneFileToS3ConnReset (line 136) | func TestUploadOneFileToS3ConnReset(t *testing.T) { function TestUploadFileWithS3UploadFailedError (line 196) | func TestUploadFileWithS3UploadFailedError(t *testing.T) { type mockHeaderAPI (line 257) | type mockHeaderAPI method HeadObject (line 259) | func (m mockHeaderAPI) HeadObject( function TestGetHeadExpiryError (line 266) | func TestGetHeadExpiryError(t *testing.T) { function TestGetHeaderUnexpectedError (line 290) | func TestGetHeaderUnexpectedError(t *testing.T) { function TestGetHeaderNonApiError (line 313) | func TestGetHeaderNonApiError(t *testing.T) { function TestGetHeaderNotFoundError (line 333) | func TestGetHeaderNotFoundError(t *testing.T) { type mockDownloadObjectAPI (line 359) | type mockDownloadObjectAPI method Download (line 361) | func (m mockDownloadObjectAPI) Download( function TestDownloadFileWithS3TokenExpired (line 369) | func TestDownloadFileWithS3TokenExpired(t *testing.T) { function TestDownloadFileWithS3ConnReset (line 423) | func TestDownloadFileWithS3ConnReset(t *testing.T) { function TestDownloadOneFileToS3WSAEConnAborted (line 476) | func TestDownloadOneFileToS3WSAEConnAborted(t *testing.T) { function TestDownloadOneFileToS3Failed (line 530) | func TestDownloadOneFileToS3Failed(t *testing.T) { function TestUploadFileToS3ClientCastFail (line 581) | func TestUploadFileToS3ClientCastFail(t *testing.T) { function TestGetHeaderClientCastFail (line 629) | func TestGetHeaderClientCastFail(t *testing.T) { function TestS3UploadRetryWithHeaderNotFound (line 660) | func TestS3UploadRetryWithHeaderNotFound(t *testing.T) { function TestS3UploadStreamFailed (line 724) | func TestS3UploadStreamFailed(t *testing.T) { function TestConvertContentLength (line 770) | func TestConvertContentLength(t *testing.T) { function TestGetS3Endpoint (line 801) | func TestGetS3Endpoint(t *testing.T) { FILE: secret_detector.go function maskSecrets (line 6) | func maskSecrets(text string) string { FILE: secret_detector_test.go constant longToken (line 12) | longToken = "_Y1ZNETTn5/qfUWj3Jedby7gipDzQs=UKyJH9DS=nFzzWnfZKGV+C7GopWC... constant randomPassword (line 17) | randomPassword = `Fh[+2J~AcqeqW%?` constant falsePositiveToken (line 18) | falsePositiveToken = "2020-04-30 23:06:04,069 - MainThread auth.py:397" + function generateTestJWT (line 24) | func generateTestJWT(t *testing.T) string { function TestSecretsDetector (line 47) | func TestSecretsDetector(t *testing.T) { FILE: secure_storage_manager.go type tokenType (line 19) | type tokenType constant idToken (line 22) | idToken tokenType = "ID_TOKEN" constant mfaToken (line 23) | mfaToken tokenType = "MFA_TOKEN" constant oauthAccessToken (line 24) | oauthAccessToken tokenType = "OAUTH_ACCESS_TOKEN" constant oauthRefreshToken (line 25) | oauthRefreshToken tokenType = "OAUTH_REFRESH_TOKEN" constant credCacheDirEnv (line 29) | credCacheDirEnv = "SF_TEMPORARY_CREDENTIAL_CACHE_DIR" constant credCacheFileName (line 30) | credCacheFileName = "credential_cache_v1.json" type cacheDirConf (line 33) | type cacheDirConf struct type secureTokenSpec (line 44) | type secureTokenSpec struct method buildKey (line 49) | func (t *secureTokenSpec) buildKey() (string, error) { function newMfaTokenSpec (line 53) | func newMfaTokenSpec(host, user string) *secureTokenSpec { function newIDTokenSpec (line 61) | func newIDTokenSpec(host, user string) *secureTokenSpec { function newOAuthAccessTokenSpec (line 69) | func newOAuthAccessTokenSpec(host, user string) *secureTokenSpec { function newOAuthRefreshTokenSpec (line 77) | func newOAuthRefreshTokenSpec(host, user string) *secureTokenSpec { type secureStorageManager (line 85) | type secureStorageManager interface function newSecureStorageManager (line 93) | func newSecureStorageManager() secureStorageManager { type fileBasedSecureStorageManager (line 97) | type fileBasedSecureStorageManager struct method getTokens (line 156) | func (ssm *fileBasedSecureStorageManager) getTokens(data map[string]an... method withLock (line 170) | func (ssm *fileBasedSecureStorageManager) withLock(action func(cacheFi... method withCacheFile (line 181) | func (ssm *fileBasedSecureStorageManager) withCacheFile(action func(*o... method setCredential (line 223) | func (ssm *fileBasedSecureStorageManager) setCredential(tokenSpec *sec... method lockPath (line 252) | func (ssm *fileBasedSecureStorageManager) lockPath() string { method lockFile (line 256) | func (ssm *fileBasedSecureStorageManager) lockFile() error { method unlockFile (line 322) | func (ssm *fileBasedSecureStorageManager) unlockFile() { method getCredential (line 330) | func (ssm *fileBasedSecureStorageManager) getCredential(tokenSpec *sec... method credFilePath (line 359) | func (ssm *fileBasedSecureStorageManager) credFilePath() string { method readTemporaryCacheFile (line 392) | func (ssm *fileBasedSecureStorageManager) readTemporaryCacheFile(cache... method deleteCredential (line 417) | func (ssm *fileBasedSecureStorageManager) deleteCredential(tokenSpec *... method writeTemporaryCacheFile (line 441) | func (ssm *fileBasedSecureStorageManager) writeTemporaryCacheFile(cach... function newFileBasedSecureStorageManager (line 101) | func newFileBasedSecureStorageManager() (*fileBasedSecureStorageManager,... function lookupCacheDir (line 112) | func lookupCacheDir(envVar string, pathSegments ...string) (string, erro... function buildCredCacheDirPath (line 142) | func buildCredCacheDirPath(confs []cacheDirConf) (string, error) { function ensureFileOwner (line 363) | func ensureFileOwner(f *os.File) error { function ensureFilePermissions (line 381) | func ensureFilePermissions(f *os.File, expectedMode os.FileMode) error { function buildCredentialsKey (line 457) | func buildCredentialsKey(host, user string, credType tokenType) (string,... type noopSecureStorageManager (line 470) | type noopSecureStorageManager struct method setCredential (line 477) | func (ssm *noopSecureStorageManager) setCredential(_ *secureTokenSpec,... method getCredential (line 480) | func (ssm *noopSecureStorageManager) getCredential(_ *secureTokenSpec)... method deleteCredential (line 484) | func (ssm *noopSecureStorageManager) deleteCredential(_ *secureTokenSp... function newNoopSecureStorageManager (line 473) | func newNoopSecureStorageManager() *noopSecureStorageManager { type threadSafeSecureStorageManager (line 487) | type threadSafeSecureStorageManager struct method setCredential (line 492) | func (ssm *threadSafeSecureStorageManager) setCredential(tokenSpec *se... method getCredential (line 498) | func (ssm *threadSafeSecureStorageManager) getCredential(tokenSpec *se... method deleteCredential (line 504) | func (ssm *threadSafeSecureStorageManager) deleteCredential(tokenSpec ... FILE: secure_storage_manager_linux.go function defaultOsSpecificSecureStorageManager (line 10) | func defaultOsSpecificSecureStorageManager() secureStorageManager { FILE: secure_storage_manager_notlinux.go function defaultOsSpecificSecureStorageManager (line 12) | func defaultOsSpecificSecureStorageManager() secureStorageManager { type keyringSecureStorageManager (line 23) | type keyringSecureStorageManager struct method setCredential (line 30) | func (ssm *keyringSecureStorageManager) setCredential(tokenSpec *secur... method getCredential (line 68) | func (ssm *keyringSecureStorageManager) getCredential(tokenSpec *secur... method deleteCredential (line 105) | func (ssm *keyringSecureStorageManager) deleteCredential(tokenSpec *se... function newKeyringBasedSecureStorageManager (line 26) | func newKeyringBasedSecureStorageManager() *keyringSecureStorageManager { FILE: secure_storage_manager_test.go function TestBuildCredCacheDirPath (line 11) | func TestBuildCredCacheDirPath(t *testing.T) { function TestSnowflakeFileBasedSecureStorageManager (line 61) | func TestSnowflakeFileBasedSecureStorageManager(t *testing.T) { function TestSetAndGetCredential (line 198) | func TestSetAndGetCredential(t *testing.T) { function TestSkipStoringCredentialIfUserIsEmpty (line 218) | func TestSkipStoringCredentialIfUserIsEmpty(t *testing.T) { function TestSkipStoringCredentialIfHostIsEmpty (line 232) | func TestSkipStoringCredentialIfHostIsEmpty(t *testing.T) { function TestStoreTemporaryCredential (line 246) | func TestStoreTemporaryCredential(t *testing.T) { function TestBuildCredentialsKey (line 274) | func TestBuildCredentialsKey(t *testing.T) { FILE: sflog/interface.go type ClientLogContextHook (line 12) | type ClientLogContextHook type LogEntry (line 16) | type LogEntry interface type SFLogger (line 34) | type SFLogger interface FILE: sflog/levels.go type Level (line 10) | type Level constant LevelTrace (line 14) | LevelTrace = Level(-8) constant LevelDebug (line 15) | LevelDebug = Level(-4) constant LevelInfo (line 16) | LevelInfo = Level(0) constant LevelWarn (line 17) | LevelWarn = Level(4) constant LevelError (line 18) | LevelError = Level(8) constant LevelFatal (line 19) | LevelFatal = Level(12) constant LevelOff (line 20) | LevelOff = Level(math.MaxInt) function ParseLevel (line 24) | func ParseLevel(level string) (Level, error) { function LevelToString (line 46) | func LevelToString(level Level) (string, error) { FILE: sflog/slog.go type SFSlogLogger (line 16) | type SFSlogLogger interface FILE: sqlstate.go constant SQLStateNumericValueOutOfRange (line 5) | SQLStateNumericValueOutOfRange = "22003" constant SQLStateInvalidDataTimeFormat (line 7) | SQLStateInvalidDataTimeFormat = "22007" constant SQLStateConnectionWasNotEstablished (line 9) | SQLStateConnectionWasNotEstablished = "08001" constant SQLStateConnectionRejected (line 11) | SQLStateConnectionRejected = "08004" constant SQLStateConnectionFailure (line 13) | SQLStateConnectionFailure = "08006" constant SQLStateFeatureNotSupported (line 15) | SQLStateFeatureNotSupported = "0A000" FILE: statement.go type SnowflakeStmt (line 12) | type SnowflakeStmt interface type snowflakeStmt (line 16) | type snowflakeStmt struct method Close (line 22) | func (stmt *snowflakeStmt) Close() error { method NumInput (line 28) | func (stmt *snowflakeStmt) NumInput() int { method ExecContext (line 34) | func (stmt *snowflakeStmt) ExecContext(ctx context.Context, args []dri... method QueryContext (line 39) | func (stmt *snowflakeStmt) QueryContext(ctx context.Context, args []dr... method Exec (line 54) | func (stmt *snowflakeStmt) Exec(args []driver.Value) (driver.Result, e... method execInternal (line 59) | func (stmt *snowflakeStmt) execInternal(ctx context.Context, args []dr... method Query (line 88) | func (stmt *snowflakeStmt) Query(args []driver.Value) (driver.Rows, er... method GetQueryID (line 107) | func (stmt *snowflakeStmt) GetQueryID() string { method setQueryIDFromError (line 111) | func (stmt *snowflakeStmt) setQueryIDFromError(err error) { FILE: statement_test.go function openDB (line 17) | func openDB(t *testing.T) *sql.DB { function openConn (line 28) | func openConn(t *testing.T, config *testConfig) (*sql.DB, *sql.Conn) { function TestExecStmt (line 42) | func TestExecStmt(t *testing.T) { function TestFailedQueryIdInSnowflakeError (line 135) | func TestFailedQueryIdInSnowflakeError(t *testing.T) { function TestSetFailedQueryId (line 177) | func TestSetFailedQueryId(t *testing.T) { function TestAsyncFailQueryId (line 244) | func TestAsyncFailQueryId(t *testing.T) { function TestGetQueryID (line 278) | func TestGetQueryID(t *testing.T) { function TestEmitQueryID (line 309) | func TestEmitQueryID(t *testing.T) { function TestE2EFetchResultByID (line 347) | func TestE2EFetchResultByID(t *testing.T) { function TestWithDescribeOnly (line 396) | func TestWithDescribeOnly(t *testing.T) { function TestCallStatement (line 420) | func TestCallStatement(t *testing.T) { function TestStmtExec (line 455) | func TestStmtExec(t *testing.T) { function TestStmtExec_Error (line 482) | func TestStmtExec_Error(t *testing.T) { function getStatusSuccessButInvalidJSONfunc (line 509) | func getStatusSuccessButInvalidJSONfunc(_ context.Context, _ *snowflakeR... function TestUnitCheckQueryStatus (line 516) | func TestUnitCheckQueryStatus(t *testing.T) { function TestStatementQueryIdForQueries (line 550) | func TestStatementQueryIdForQueries(t *testing.T) { function TestStatementQuery (line 612) | func TestStatementQuery(t *testing.T) { function TestStatementQueryIdForExecs (line 682) | func TestStatementQueryIdForExecs(t *testing.T) { function TestStatementQueryExecs (line 746) | func TestStatementQueryExecs(t *testing.T) { function TestWithQueryTag (line 818) | func TestWithQueryTag(t *testing.T) { FILE: storage_client.go constant defaultConcurrency (line 14) | defaultConcurrency = 1 constant defaultMaxRetry (line 15) | defaultMaxRetry = 5 type storageUtil (line 19) | type storageUtil interface type cloudUtil (line 26) | type cloudUtil interface type cloudClient (line 33) | type cloudClient type remoteStorageUtil (line 35) | type remoteStorageUtil struct method getNativeCloudType (line 40) | func (rsu *remoteStorageUtil) getNativeCloudType(cli string, cfg *Conf... method createClient (line 64) | func (rsu *remoteStorageUtil) createClient(info *execResponseStageInfo... method uploadOneFile (line 69) | func (rsu *remoteStorageUtil) uploadOneFile(ctx context.Context, meta ... method uploadOneFileWithRetry (line 137) | func (rsu *remoteStorageUtil) uploadOneFileWithRetry(ctx context.Conte... method downloadOneFile (line 179) | func (rsu *remoteStorageUtil) downloadOneFile(ctx context.Context, met... method processEncryptedFileToDestination (line 296) | func (rsu *remoteStorageUtil) processEncryptedFileToDestination(meta *... FILE: storage_client_test.go function TestProcessEncryptedFileToDestination_DecryptionFailure (line 12) | func TestProcessEncryptedFileToDestination_DecryptionFailure(t *testing.... function TestProcessEncryptedFileToDestination_Success (line 55) | func TestProcessEncryptedFileToDestination_Success(t *testing.T) { function verifyNoTmpFilesLeftBehind (line 106) | func verifyNoTmpFilesLeftBehind(t *testing.T, fullDstFileName string) { FILE: storage_file_util_test.go function testEncryptionMeta (line 3) | func testEncryptionMeta() *encryptMetadata { FILE: structured_type.go type ObjectType (line 23) | type ObjectType struct type StructuredObject (line 29) | type StructuredObject interface type StructuredObjectWriter (line 56) | type StructuredObjectWriter interface type StructuredObjectWriterContext (line 61) | type StructuredObjectWriterContext interface type NilMapTypes (line 90) | type NilMapTypes struct type structuredObjectWriterEntry (line 95) | type structuredObjectWriterEntry struct method toFieldMetadata (line 105) | func (e *structuredObjectWriterEntry) toFieldMetadata() query.FieldMet... type structuredObjectWriterContext (line 117) | type structuredObjectWriterContext struct method init (line 123) | func (sowc *structuredObjectWriterContext) init(params *syncParams) { method WriteString (line 128) | func (sowc *structuredObjectWriterContext) WriteString(fieldName strin... method WriteNullString (line 132) | func (sowc *structuredObjectWriterContext) WriteNullString(fieldName s... method writeString (line 139) | func (sowc *structuredObjectWriterContext) writeString(fieldName strin... method WriteByt (line 148) | func (sowc *structuredObjectWriterContext) WriteByt(fieldName string, ... method WriteNullByte (line 152) | func (sowc *structuredObjectWriterContext) WriteNullByte(fieldName str... method WriteInt16 (line 159) | func (sowc *structuredObjectWriterContext) WriteInt16(fieldName string... method WriteNullInt16 (line 163) | func (sowc *structuredObjectWriterContext) WriteNullInt16(fieldName st... method WriteInt32 (line 170) | func (sowc *structuredObjectWriterContext) WriteInt32(fieldName string... method WriteNullInt32 (line 174) | func (sowc *structuredObjectWriterContext) WriteNullInt32(fieldName st... method WriteInt64 (line 181) | func (sowc *structuredObjectWriterContext) WriteInt64(fieldName string... method WriteNullInt64 (line 185) | func (sowc *structuredObjectWriterContext) WriteNullInt64(fieldName st... method WriteFloat32 (line 192) | func (sowc *structuredObjectWriterContext) WriteFloat32(fieldName stri... method WriteFloat64 (line 196) | func (sowc *structuredObjectWriterContext) WriteFloat64(fieldName stri... method WriteNullFloat64 (line 200) | func (sowc *structuredObjectWriterContext) WriteNullFloat64(fieldName ... method WriteBool (line 207) | func (sowc *structuredObjectWriterContext) WriteBool(fieldName string,... method WriteNullBool (line 211) | func (sowc *structuredObjectWriterContext) WriteNullBool(fieldName str... method writeBool (line 218) | func (sowc *structuredObjectWriterContext) writeBool(fieldName string,... method WriteBytes (line 226) | func (sowc *structuredObjectWriterContext) WriteBytes(fieldName string... method WriteTime (line 239) | func (sowc *structuredObjectWriterContext) WriteTime(fieldName string,... method WriteNullTime (line 256) | func (sowc *structuredObjectWriterContext) WriteNullTime(fieldName str... method writeTime (line 268) | func (sowc *structuredObjectWriterContext) writeTime(fieldName string,... method WriteStruct (line 277) | func (sowc *structuredObjectWriterContext) WriteStruct(fieldName strin... method WriteNullableStruct (line 295) | func (sowc *structuredObjectWriterContext) WriteNullableStruct(structF... method WriteRaw (line 311) | func (sowc *structuredObjectWriterContext) WriteRaw(fieldName string, ... method WriteNullRaw (line 352) | func (sowc *structuredObjectWriterContext) WriteNullRaw(fieldName stri... method writeFixed (line 477) | func (sowc *structuredObjectWriterContext) writeFixed(fieldName string... method writeFloat (line 487) | func (sowc *structuredObjectWriterContext) writeFloat(fieldName string... method write (line 497) | func (sowc *structuredObjectWriterContext) write(value any, entry stru... method WriteAll (line 503) | func (sowc *structuredObjectWriterContext) WriteAll(sow StructuredObje... method toFields (line 642) | func (sowc *structuredObjectWriterContext) toFields() []query.FieldMet... function buildSowcFromType (line 380) | func buildSowcFromType(params *syncParams, typ reflect.Type) (*structure... type ArrayOfScanners (line 651) | type ArrayOfScanners method Scan (line 653) | func (st *ArrayOfScanners[T]) Scan(val any) error { function ScanArrayOfScanners (line 674) | func ScanArrayOfScanners[T sql.Scanner](value *[]T) *ArrayOfScanners[T] { type MapOfScanners (line 679) | type MapOfScanners method Scan (line 681) | func (st *MapOfScanners[K, V]) Scan(val any) error { function ScanMapOfScanners (line 706) | func ScanMapOfScanners[K comparable, V sql.Scanner](m *map[K]V) *MapOfSc... type structuredType (line 710) | type structuredType struct method GetString (line 731) | func (st *structuredType) GetString(fieldName string) (string, error) { method GetNullString (line 742) | func (st *structuredType) GetNullString(fieldName string) (sql.NullStr... method GetByte (line 753) | func (st *structuredType) GetByte(fieldName string) (byte, error) { method GetNullByte (line 764) | func (st *structuredType) GetNullByte(fieldName string) (sql.NullByte,... method GetInt16 (line 775) | func (st *structuredType) GetInt16(fieldName string) (int16, error) { method GetNullInt16 (line 786) | func (st *structuredType) GetNullInt16(fieldName string) (sql.NullInt1... method GetInt32 (line 797) | func (st *structuredType) GetInt32(fieldName string) (int32, error) { method GetNullInt32 (line 808) | func (st *structuredType) GetNullInt32(fieldName string) (sql.NullInt3... method GetInt64 (line 819) | func (st *structuredType) GetInt64(fieldName string) (int64, error) { method GetNullInt64 (line 830) | func (st *structuredType) GetNullInt64(fieldName string) (sql.NullInt6... method GetBigInt (line 857) | func (st *structuredType) GetBigInt(fieldName string) (*big.Int, error) { method GetFloat32 (line 865) | func (st *structuredType) GetFloat32(fieldName string) (float32, error) { method GetFloat64 (line 873) | func (st *structuredType) GetFloat64(fieldName string) (float64, error) { method GetNullFloat64 (line 884) | func (st *structuredType) GetNullFloat64(fieldName string) (sql.NullFl... method GetBigFloat (line 911) | func (st *structuredType) GetBigFloat(fieldName string) (*big.Float, e... method GetBool (line 919) | func (st *structuredType) GetBool(fieldName string) (bool, error) { method GetNullBool (line 930) | func (st *structuredType) GetNullBool(fieldName string) (sql.NullBool,... method GetBytes (line 941) | func (st *structuredType) GetBytes(fieldName string) ([]byte, error) { method GetTime (line 951) | func (st *structuredType) GetTime(fieldName string) (time.Time, error) { method GetNullTime (line 962) | func (st *structuredType) GetNullTime(fieldName string) (sql.NullTime,... method GetStruct (line 990) | func (st *structuredType) GetStruct(fieldName string, scanner sql.Scan... method GetRaw (line 1001) | func (st *structuredType) GetRaw(fieldName string) (any, error) { method ScanTo (line 1005) | func (st *structuredType) ScanTo(sc sql.Scanner) error { method fieldMetadataByFieldName (line 1152) | func (st *structuredType) fieldMetadataByFieldName(fieldName string) (... function getType (line 716) | func getType[T any](st *structuredType, fieldName string, emptyValue T) ... function structuredTypesEnabled (line 1161) | func structuredTypesEnabled(ctx context.Context) bool { function embeddedValuesNullableEnabled (line 1170) | func embeddedValuesNullableEnabled(ctx context.Context) bool { function getSfFieldName (line 1179) | func getSfFieldName(field reflect.StructField) string { function shouldIgnoreField (line 1189) | func shouldIgnoreField(field reflect.StructField) bool { function getTimeSnowflakeType (line 1197) | func getTimeSnowflakeType(field reflect.StructField) ([]byte, error) { FILE: structured_type_arrow_batches_test.go function arrowTestRepoRoot (line 26) | func arrowTestRepoRoot(t *testing.T) string { function arrowTestReadPrivateKey (line 47) | func arrowTestReadPrivateKey(t *testing.T, path string) *rsa.PrivateKey { type arrowTestConn (line 72) | type arrowTestConn struct method close (line 126) | func (tc *arrowTestConn) close() { method exec (line 131) | func (tc *arrowTestConn) exec(t *testing.T, query string) { method enableStructuredTypes (line 139) | func (tc *arrowTestConn) enableStructuredTypes(t *testing.T) { method forceNativeArrow (line 145) | func (tc *arrowTestConn) forceNativeArrow(t *testing.T) { method queryArrowBatches (line 152) | func (tc *arrowTestConn) queryArrowBatches(t *testing.T, ctx context.C... method fetchFirst (line 184) | func (tc *arrowTestConn) fetchFirst(t *testing.T, ctx context.Context,... function openArrowTestConn (line 77) | func openArrowTestConn(t *testing.T) *arrowTestConn { function equalIgnoringWhitespace (line 199) | func equalIgnoringWhitespace(a, b string) bool { function TestStructuredTypeInArrowBatchesSimple (line 204) | func TestStructuredTypeInArrowBatchesSimple(t *testing.T) { function TestStructuredTypeInArrowBatchesAllTypes (line 229) | func TestStructuredTypeInArrowBatchesAllTypes(t *testing.T) { function TestStructuredTypeInArrowBatchesWithTimestampOptionAndHigherPrecisionAndUtf8Validation (line 276) | func TestStructuredTypeInArrowBatchesWithTimestampOptionAndHigherPrecisi... function TestStructuredTypeInArrowBatchesWithEmbeddedObject (line 358) | func TestStructuredTypeInArrowBatchesWithEmbeddedObject(t *testing.T) { function TestStructuredTypeInArrowBatchesAsNull (line 380) | func TestStructuredTypeInArrowBatchesAsNull(t *testing.T) { function TestStructuredArrayInArrowBatches (line 405) | func TestStructuredArrayInArrowBatches(t *testing.T) { function TestStructuredMapInArrowBatches (line 438) | func TestStructuredMapInArrowBatches(t *testing.T) { function TestSelectingNullObjectsInArrowBatches (line 472) | func TestSelectingNullObjectsInArrowBatches(t *testing.T) { function TestSelectingSemistructuredTypesInArrowBatches (line 507) | func TestSelectingSemistructuredTypesInArrowBatches(t *testing.T) { FILE: structured_type_read_test.go type objectWithAllTypes (line 14) | type objectWithAllTypes struct method Scan (line 37) | func (o *objectWithAllTypes) Scan(val any) error { method Write (line 125) | func (o objectWithAllTypes) Write(sowc StructuredObjectWriterContext) ... type simpleObject (line 189) | type simpleObject struct method Scan (line 194) | func (so *simpleObject) Scan(val any) error { method Write (line 210) | func (so *simpleObject) Write(sowc StructuredObjectWriterContext) error { function TestObjectWithAllTypesAsString (line 220) | func TestObjectWithAllTypesAsString(t *testing.T) { function TestObjectWithAllTypesAsObject (line 235) | func TestObjectWithAllTypesAsObject(t *testing.T) { function TestNullObject (line 276) | func TestNullObject(t *testing.T) { type objectWithAllTypesNullable (line 303) | type objectWithAllTypesNullable struct method Scan (line 324) | func (o *objectWithAllTypesNullable) Scan(val any) error { method Write (line 410) | func (o *objectWithAllTypesNullable) Write(sowc StructuredObjectWriter... function TestObjectWithAllTypesNullable (line 468) | func TestObjectWithAllTypesNullable(t *testing.T) { type objectWithAllTypesSimpleScan (line 540) | type objectWithAllTypesSimpleScan struct method Scan (line 562) | func (so *objectWithAllTypesSimpleScan) Scan(val any) error { method Write (line 571) | func (so *objectWithAllTypesSimpleScan) Write(sowc StructuredObjectWri... function TestObjectWithAllTypesSimpleScan (line 575) | func TestObjectWithAllTypesSimpleScan(t *testing.T) { function TestNullObjectSimpleScan (line 615) | func TestNullObjectSimpleScan(t *testing.T) { type objectWithAllTypesNullableSimpleScan (line 642) | type objectWithAllTypesNullableSimpleScan struct method Scan (line 662) | func (o *objectWithAllTypesNullableSimpleScan) Scan(val any) error { method Write (line 671) | func (o *objectWithAllTypesNullableSimpleScan) Write(sowc StructuredOb... function TestObjectWithAllTypesSimpleScanNullable (line 675) | func TestObjectWithAllTypesSimpleScanNullable(t *testing.T) { type objectWithCustomNameAndIgnoredField (line 745) | type objectWithCustomNameAndIgnoredField struct method Scan (line 750) | func (o *objectWithCustomNameAndIgnoredField) Scan(val any) error { method Write (line 759) | func (o *objectWithCustomNameAndIgnoredField) Write(sowc StructuredObj... function TestObjectWithCustomName (line 763) | func TestObjectWithCustomName(t *testing.T) { function TestObjectMetadataAsObject (line 779) | func TestObjectMetadataAsObject(t *testing.T) { function TestObjectMetadataAsString (line 795) | func TestObjectMetadataAsString(t *testing.T) { function TestObjectWithoutSchema (line 811) | func TestObjectWithoutSchema(t *testing.T) { function TestObjectWithoutSchemaMetadata (line 828) | func TestObjectWithoutSchemaMetadata(t *testing.T) { function TestArrayAndMetadataAsString (line 846) | func TestArrayAndMetadataAsString(t *testing.T) { function TestArrayAndMetadataAsArray (line 868) | func TestArrayAndMetadataAsArray(t *testing.T) { function TestArrayWithoutSchema (line 1005) | func TestArrayWithoutSchema(t *testing.T) { function TestEmptyArraysAndNullArrays (line 1022) | func TestEmptyArraysAndNullArrays(t *testing.T) { function TestArrayWithoutSchemaMetadata (line 1044) | func TestArrayWithoutSchemaMetadata(t *testing.T) { function TestArrayOfObjects (line 1062) | func TestArrayOfObjects(t *testing.T) { function TestArrayOfArrays (line 1087) | func TestArrayOfArrays(t *testing.T) { function TestMapAndMetadataAsString (line 1195) | func TestMapAndMetadataAsString(t *testing.T) { function TestMapAndMetadataAsMap (line 1219) | func TestMapAndMetadataAsMap(t *testing.T) { function TestMapOfObjects (line 1451) | func TestMapOfObjects(t *testing.T) { function TestMapOfArrays (line 1466) | func TestMapOfArrays(t *testing.T) { function TestNullAndEmptyMaps (line 1574) | func TestNullAndEmptyMaps(t *testing.T) { function TestMapWithNullValues (line 1595) | func TestMapWithNullValues(t *testing.T) { function TestArraysWithNullValues (line 1704) | func TestArraysWithNullValues(t *testing.T) { function TestArraysWithNullValuesHigherPrecision (line 1819) | func TestArraysWithNullValuesHigherPrecision(t *testing.T) { type HigherPrecisionStruct (line 1853) | type HigherPrecisionStruct struct method Scan (line 1858) | func (hps *HigherPrecisionStruct) Scan(val any) error { function TestWithHigherPrecision (line 1874) | func TestWithHigherPrecision(t *testing.T) { function forAllStructureTypeFormats (line 2009) | func forAllStructureTypeFormats(dbt *DBTest, f func(t *testing.T, format... function skipForStringingNativeArrow (line 2041) | func skipForStringingNativeArrow(t *testing.T, format string) { FILE: structured_type_write_test.go function TestBindingVariant (line 12) | func TestBindingVariant(t *testing.T) { function TestBindingObjectWithoutSchema (line 52) | func TestBindingObjectWithoutSchema(t *testing.T) { function TestBindingArrayWithoutSchema (line 91) | func TestBindingArrayWithoutSchema(t *testing.T) { function TestBindingObjectWithSchema (line 131) | func TestBindingObjectWithSchema(t *testing.T) { function TestBindingObjectWithNullableFieldsWithSchema (line 198) | func TestBindingObjectWithNullableFieldsWithSchema(t *testing.T) { function TestBindingObjectWithSchemaSimpleWrite (line 311) | func TestBindingObjectWithSchemaSimpleWrite(t *testing.T) { function TestBindingObjectWithNullableFieldsWithSchemaSimpleWrite (line 376) | func TestBindingObjectWithNullableFieldsWithSchemaSimpleWrite(t *testing... type objectWithAllTypesWrapper (line 488) | type objectWithAllTypesWrapper struct method Scan (line 492) | func (o *objectWithAllTypesWrapper) Scan(val any) error { method Write (line 503) | func (o *objectWithAllTypesWrapper) Write(sowc StructuredObjectWriterC... function TestBindingObjectWithAllTypesNullable (line 507) | func TestBindingObjectWithAllTypesNullable(t *testing.T) { function TestBindingObjectWithSchemaWithCustomNameAndIgnoredField (line 531) | func TestBindingObjectWithSchemaWithCustomNameAndIgnoredField(t *testing... function TestBindingNullStructuredObjects (line 556) | func TestBindingNullStructuredObjects(t *testing.T) { function TestBindingArrayWithSchema (line 577) | func TestBindingArrayWithSchema(t *testing.T) { function TestBindingArrayOfObjects (line 682) | func TestBindingArrayOfObjects(t *testing.T) { function TestBindingEmptyArrayOfObjects (line 705) | func TestBindingEmptyArrayOfObjects(t *testing.T) { function TestBindingNilArrayOfObjects (line 728) | func TestBindingNilArrayOfObjects(t *testing.T) { function TestBindingNilArrayOfInts (line 751) | func TestBindingNilArrayOfInts(t *testing.T) { function TestBindingMap (line 774) | func TestBindingMap(t *testing.T) { function TestBindingMapOfStructs (line 956) | func TestBindingMapOfStructs(t *testing.T) { function TestBindingMapOfWithAllValuesNil (line 982) | func TestBindingMapOfWithAllValuesNil(t *testing.T) { function TestBindingEmptyMapOfStructs (line 1006) | func TestBindingEmptyMapOfStructs(t *testing.T) { function TestBindingEmptyMapOfInts (line 1028) | func TestBindingEmptyMapOfInts(t *testing.T) { function TestBindingNilMapOfStructs (line 1050) | func TestBindingNilMapOfStructs(t *testing.T) { function TestBindingNilMapOfInts (line 1072) | func TestBindingNilMapOfInts(t *testing.T) { function TestBindingMapOfArrays (line 1094) | func TestBindingMapOfArrays(t *testing.T) { function TestBindingMapWithNillableValues (line 1119) | func TestBindingMapWithNillableValues(t *testing.T) { FILE: telemetry.go constant telemetryPath (line 14) | telemetryPath = "/telemetry/send" constant defaultTelemetryTimeout (line 15) | defaultTelemetryTimeout = 10 * time.Second constant defaultFlushSize (line 16) | defaultFlushSize = 100 constant typeKey (line 20) | typeKey = "type" constant sourceKey (line 21) | sourceKey = "source" constant queryIDKey (line 22) | queryIDKey = "QueryID" constant driverTypeKey (line 23) | driverTypeKey = "DriverType" constant driverVersionKey (line 24) | driverVersionKey = "DriverVersion" constant golangVersionKey (line 25) | golangVersionKey = "GolangVersion" constant sqlStateKey (line 26) | sqlStateKey = "SQLState" constant reasonKey (line 27) | reasonKey = "reason" constant errorNumberKey (line 28) | errorNumberKey = "ErrorNumber" constant stacktraceKey (line 29) | stacktraceKey = "Stacktrace" constant telemetrySource (line 33) | telemetrySource = "golang_driver" constant sqlException (line 34) | sqlException = "client_sql_exception" constant connectionParameters (line 35) | connectionParameters = "client_connection_parameters" type telemetryData (line 38) | type telemetryData struct type snowflakeTelemetry (line 43) | type snowflakeTelemetry struct method addLog (line 51) | func (st *snowflakeTelemetry) addLog(data *telemetryData) error { method sendBatch (line 68) | func (st *snowflakeTelemetry) sendBatch() error { FILE: telemetry_test.go function TestTelemetryAddLog (line 14) | func TestTelemetryAddLog(t *testing.T) { function TestTelemetrySQLException (line 45) | func TestTelemetrySQLException(t *testing.T) { function funcPostTelemetryRespFail (line 77) | func funcPostTelemetryRespFail(_ context.Context, _ *snowflakeRestful, _... function TestTelemetryError (line 81) | func TestTelemetryError(t *testing.T) { function TestTelemetryDisabledOnBadResponse (line 110) | func TestTelemetryDisabledOnBadResponse(t *testing.T) { function TestTelemetryDisabled (line 179) | func TestTelemetryDisabled(t *testing.T) { function TestAddLogError (line 217) | func TestAddLogError(t *testing.T) { FILE: test_utils_test.go type countingRoundTripper (line 13) | type countingRoundTripper struct method RoundTrip (line 28) | func (crt *countingRoundTripper) RoundTrip(req *http.Request) (*http.R... method reset (line 41) | func (crt *countingRoundTripper) reset() { method totalRequestsByPath (line 46) | func (crt *countingRoundTripper) totalRequestsByPath(urlPath string) i... method totalRequests (line 61) | func (crt *countingRoundTripper) totalRequests() int { function newCountingRoundTripper (line 20) | func newCountingRoundTripper(delegate http.RoundTripper) *countingRoundT... type blockingRoundTripper (line 72) | type blockingRoundTripper struct method RoundTrip (line 86) | func (brt *blockingRoundTripper) RoundTrip(req *http.Request) (*http.R... method setPathBlockTime (line 95) | func (brt *blockingRoundTripper) setPathBlockTime(path string, blockTi... method reset (line 99) | func (brt *blockingRoundTripper) reset() { function newBlockingRoundTripper (line 78) | func newBlockingRoundTripper(delegate http.RoundTripper, defaultBlockTim... function skipOnMissingHome (line 103) | func skipOnMissingHome(t *testing.T) { FILE: tls_config.go function RegisterTLSConfig (line 11) | func RegisterTLSConfig(key string, cfg *tls.Config) error { function DeregisterTLSConfig (line 16) | func DeregisterTLSConfig(key string) error { FILE: tls_config_test.go function TestShouldSetUpTlsConfig (line 10) | func TestShouldSetUpTlsConfig(t *testing.T) { FILE: transaction.go type snowflakeTx (line 9) | type snowflakeTx struct method Commit (line 31) | func (tx *snowflakeTx) Commit() error { method Rollback (line 35) | func (tx *snowflakeTx) Rollback() error { method execTxCommand (line 39) | func (tx *snowflakeTx) execTxCommand(command txCommand) (err error) { type txCommand (line 14) | type txCommand method string (line 21) | func (cmd txCommand) string() (string, error) { constant commit (line 17) | commit txCommand = iota constant rollback (line 18) | rollback FILE: transaction_test.go function TestTransactionOptions (line 13) | func TestTransactionOptions(t *testing.T) { function TestTransactionContext (line 41) | func TestTransactionContext(t *testing.T) { function PingFunc (line 72) | func PingFunc(ctx context.Context, conn *sql.Conn) error { function withRetry (line 77) | func withRetry(fn func(context.Context, *sql.Conn) error, numAttempts in... function TestTransactionError (line 95) | func TestTransactionError(t *testing.T) { FILE: transport.go type transportConfigs (line 19) | type transportConfigs interface type transportType (line 23) | type transportType constant transportTypeOAuth (line 26) | transportTypeOAuth transportType = iota constant transportTypeCloudProvider (line 27) | transportTypeCloudProvider constant transportTypeOCSP (line 28) | transportTypeOCSP constant transportTypeCRL (line 29) | transportTypeCRL constant transportTypeSnowflake (line 30) | transportTypeSnowflake constant transportTypeWIF (line 31) | transportTypeWIF type transportConfig (line 37) | type transportConfig struct method String (line 51) | func (tf *transportConfig) String() string { type transportFactory (line 46) | type transportFactory struct method createProxy (line 64) | func (tf *transportFactory) createProxy(transportConfig *transportConf... method createBaseTransport (line 98) | func (tf *transportFactory) createBaseTransport(transportConfig *trans... method createOCSPTransport (line 117) | func (tf *transportFactory) createOCSPTransport(transportConfig *trans... method createNoRevocationTransport (line 132) | func (tf *transportFactory) createNoRevocationTransport(transportConfi... method createCRLValidator (line 140) | func (tf *transportFactory) createCRLValidator() (*crlValidator, error) { method createTransport (line 158) | func (tf *transportFactory) createTransport(transportConfig *transport... method validateRevocationConfig (line 209) | func (tf *transportFactory) validateRevocationConfig() error { method chainVerificationCallbacks (line 217) | func (tf *transportFactory) chainVerificationCallbacks(orignalVerifica... function newTransportFactory (line 60) | func newTransportFactory(config *Config, telemetry *snowflakeTelemetry) ... type defaultTransportConfigsType (line 234) | type defaultTransportConfigsType struct method forTransportType (line 281) | func (dtc *defaultTransportConfigsType) forTransportType(transportType... function newDefaultTransportConfigs (line 243) | func newDefaultTransportConfigs() *defaultTransportConfigsType { FILE: transport_test.go function TestTransportFactoryErrorHandling (line 11) | func TestTransportFactoryErrorHandling(t *testing.T) { function TestCreateStandardTransportErrorHandling (line 30) | func TestCreateStandardTransportErrorHandling(t *testing.T) { function TestCreateCustomTLSTransportSuccess (line 44) | func TestCreateCustomTLSTransportSuccess(t *testing.T) { function TestCreateStandardTransportSuccess (line 61) | func TestCreateStandardTransportSuccess(t *testing.T) { function TestDirectTLSConfigUsage (line 75) | func TestDirectTLSConfigUsage(t *testing.T) { function TestRegisteredTLSConfigUsage (line 96) | func TestRegisteredTLSConfigUsage(t *testing.T) { function TestDirectTLSConfigOnly (line 128) | func TestDirectTLSConfigOnly(t *testing.T) { function TestProxyTransportCreation (line 151) | func TestProxyTransportCreation(t *testing.T) { function createTestNoRevocationTransport (line 241) | func createTestNoRevocationTransport() http.RoundTripper { FILE: url_util.go function isValidURL (line 12) | func isValidURL(targetURL string) bool { function urlEncode (line 20) | func urlEncode(targetString string) string { FILE: util.go type ContextKey (line 22) | type ContextKey constant multiStatementCount (line 25) | multiStatementCount ContextKey = "MULTI_STATEMENT_COUNT" constant asyncMode (line 26) | asyncMode ContextKey = "ASYNC_MODE_QUERY" constant queryIDChannel (line 27) | queryIDChannel ContextKey = "QUERY_ID_CHANNEL" constant snowflakeRequestIDKey (line 28) | snowflakeRequestIDKey ContextKey = "SNOWFLAKE_REQUEST_ID" constant fetchResultByID (line 29) | fetchResultByID ContextKey = "SF_FETCH_RESULT_BY_ID" constant filePutStream (line 30) | filePutStream ContextKey = "STREAMING_PUT_FILE" constant fileGetStream (line 31) | fileGetStream ContextKey = "STREAMING_GET_FILE" constant fileTransferOptions (line 32) | fileTransferOptions ContextKey = "FILE_TRANSFER_OPTIONS" constant enableDecfloat (line 33) | enableDecfloat ContextKey = "ENABLE_DECFLOAT" constant arrowAlloc (line 34) | arrowAlloc ContextKey = "ARROW_ALLOC" constant queryTag (line 35) | queryTag ContextKey = "QUERY_TAG" constant enableStructuredTypes (line 36) | enableStructuredTypes ContextKey = "ENABLE_STRUCTURED_TYPES" constant embeddedValuesNullable (line 37) | embeddedValuesNullable ContextKey = "EMBEDDED_VALUES_NULLABLE" constant describeOnly (line 38) | describeOnly ContextKey = "DESCRIBE_ONLY" constant internalQuery (line 39) | internalQuery ContextKey = "INTERNAL_QUERY" constant cancelRetry (line 40) | cancelRetry ContextKey = "CANCEL_RETRY" constant logQueryText (line 41) | logQueryText ContextKey = "LOG_QUERY_TEXT" constant logQueryParameters (line 42) | logQueryParameters ContextKey = "LOG_QUERY_PARAMETERS" function WithMultiStatement (line 50) | func WithMultiStatement(ctx context.Context, num int) context.Context { function WithAsyncMode (line 55) | func WithAsyncMode(ctx context.Context) context.Context { function WithQueryIDChan (line 60) | func WithQueryIDChan(ctx context.Context, c chan<- string) context.Conte... function WithRequestID (line 65) | func WithRequestID(ctx context.Context, requestID UUID) context.Context { function WithFetchResultByID (line 70) | func WithFetchResultByID(ctx context.Context, queryID string) context.Co... function WithFilePutStream (line 75) | func WithFilePutStream(ctx context.Context, reader io.Reader) context.Co... function WithFileGetStream (line 80) | func WithFileGetStream(ctx context.Context, writer io.Writer) context.Co... function WithFileTransferOptions (line 85) | func WithFileTransferOptions(ctx context.Context, options *SnowflakeFile... function WithDescribeOnly (line 90) | func WithDescribeOnly(ctx context.Context) context.Context { function WithHigherPrecision (line 98) | func WithHigherPrecision(ctx context.Context) context.Context { function WithDecfloatMappingEnabled (line 107) | func WithDecfloatMappingEnabled(ctx context.Context) context.Context { function WithArrowAllocator (line 114) | func WithArrowAllocator(ctx context.Context, pool memory.Allocator) cont... function WithQueryTag (line 120) | func WithQueryTag(ctx context.Context, tag string) context.Context { function WithStructuredTypesEnabled (line 127) | func WithStructuredTypesEnabled(ctx context.Context) context.Context { function WithEmbeddedValuesNullable (line 134) | func WithEmbeddedValuesNullable(ctx context.Context) context.Context { function WithInternal (line 139) | func WithInternal(ctx context.Context) context.Context { function WithLogQueryText (line 144) | func WithLogQueryText(ctx context.Context) context.Context { function WithLogQueryParameters (line 149) | func WithLogQueryParameters(ctx context.Context) context.Context { function getOrGenerateRequestIDFromContext (line 154) | func getOrGenerateRequestIDFromContext(ctx context.Context) UUID { function intMin (line 163) | func intMin(a, b int) int { function intMax (line 171) | func intMax(a, b int) int { function int64Max (line 178) | func int64Max(a, b int64) int64 { function getMin (line 185) | func getMin(arr []int) int { function durationMax (line 199) | func durationMax(d1, d2 time.Duration) time.Duration { function durationMin (line 207) | func durationMin(d1, d2 time.Duration) time.Duration { function toNamedValues (line 215) | func toNamedValues(values []driver.Value) []driver.NamedValue { type simpleTokenAccessor (line 226) | type simpleTokenAccessor struct method Lock (line 238) | func (sta *simpleTokenAccessor) Lock() error { method Unlock (line 243) | func (sta *simpleTokenAccessor) Unlock() { method GetTokens (line 247) | func (sta *simpleTokenAccessor) GetTokens() (token string, masterToken... method SetTokens (line 253) | func (sta *simpleTokenAccessor) SetTokens(token string, masterToken st... function getSimpleTokenAccessor (line 234) | func getSimpleTokenAccessor() TokenAccessor { function safeGetTokens (line 261) | func safeGetTokens(sr *snowflakeRestful) (token string, masterToken stri... function escapeForCSV (line 269) | func escapeForCSV(value string) string { function GetFromEnv (line 281) | func GetFromEnv(name string, failOnMissing bool) (string, error) { type currentTimeProvider (line 291) | type currentTimeProvider interface type unixTimeProvider (line 295) | type unixTimeProvider struct method currentTime (line 298) | func (utp *unixTimeProvider) currentTime() int64 { type syncParams (line 302) | type syncParams struct method get (line 315) | func (sp *syncParams) get(key string) (*string, bool) { method set (line 325) | func (sp *syncParams) set(key string, value *string) { method All (line 336) | func (sp *syncParams) All() iter.Seq2[string, string] { function newSyncParams (line 307) | func newSyncParams(params map[string]*string) syncParams { function chooseRandomFromRange (line 348) | func chooseRandomFromRange(min float64, max float64) float64 { function withLowerKeys (line 352) | func withLowerKeys[T any](in map[string]T) map[string]T { function findByPrefix (line 360) | func findByPrefix(in []string, prefix string) int { FILE: util_test.go type tcIntMinMax (line 17) | type tcIntMinMax struct type tcUUID (line 23) | type tcUUID struct type constTypeProvider (line 27) | type constTypeProvider struct method currentTime (line 37) | func (ctp *constTypeProvider) currentTime() int64 { type tcSafeGetTokens (line 31) | type tcSafeGetTokens struct function constTimeProvider (line 41) | func constTimeProvider(constTime int64) *constTypeProvider { function TestSimpleTokenAccessor (line 45) | func TestSimpleTokenAccessor(t *testing.T) { function TestSimpleTokenAccessorGetTokensSynchronization (line 72) | func TestSimpleTokenAccessorGetTokensSynchronization(t *testing.T) { function TestSafeGetTokens (line 100) | func TestSafeGetTokens(t *testing.T) { function TestGetRequestIDFromContext (line 129) | func TestGetRequestIDFromContext(t *testing.T) { function TestGenerateRequestID (line 143) | func TestGenerateRequestID(t *testing.T) { function TestIntMin (line 151) | func TestIntMin(t *testing.T) { function TestIntMax (line 167) | func TestIntMax(t *testing.T) { type tcDurationMinMax (line 184) | type tcDurationMinMax struct function TestDurationMin (line 190) | func TestDurationMin(t *testing.T) { function TestDurationMax (line 207) | func TestDurationMax(t *testing.T) { type tcNamedValues (line 224) | type tcNamedValues struct function compareNamedValues (line 229) | func compareNamedValues(v1 []driver.NamedValue, v2 []driver.NamedValue) ... function TestToNamedValues (line 247) | func TestToNamedValues(t *testing.T) { type tcIntArrayMin (line 277) | type tcIntArrayMin struct function TestGetMin (line 282) | func TestGetMin(t *testing.T) { type tcURLList (line 300) | type tcURLList struct function TestValidURL (line 305) | func TestValidURL(t *testing.T) { type tcEncodeList (line 324) | type tcEncodeList struct function TestEncodeURL (line 329) | func TestEncodeURL(t *testing.T) { function TestParseUUID (line 345) | func TestParseUUID(t *testing.T) { type tcEscapeCsv (line 361) | type tcEscapeCsv struct function TestEscapeForCSV (line 366) | func TestEscapeForCSV(t *testing.T) { function TestGetFromEnv (line 383) | func TestGetFromEnv(t *testing.T) { function TestGetFromEnvFailOnMissing (line 396) | func TestGetFromEnvFailOnMissing(t *testing.T) { function skipOnJenkins (line 403) | func skipOnJenkins(t *testing.T, message string) { function skipAuthTests (line 409) | func skipAuthTests(t *testing.T, message string) { function skipOnMac (line 415) | func skipOnMac(t *testing.T, reason string) { function skipOnWindows (line 421) | func skipOnWindows(t *testing.T, reason string) { function randomString (line 427) | func randomString(n int) string { function TestWithLowerKeys (line 437) | func TestWithLowerKeys(t *testing.T) { function TestFindByPrefix (line 446) | func TestFindByPrefix(t *testing.T) { function TestInternal (line 457) | func TestInternal(t *testing.T) { type envOverride (line 464) | type envOverride struct method rollback (line 469) | func (e *envOverride) rollback() { function overrideEnv (line 477) | func overrideEnv(env string, value string) envOverride { function TestSyncParamsAll (line 483) | func TestSyncParamsAll(t *testing.T) { FILE: uuid.go constant rfc4122 (line 9) | rfc4122 = 0x40 type UUID (line 12) | type UUID method String (line 46) | func (u UUID) String() string { function NewUUID (line 17) | func NewUUID() UUID { function getChar (line 30) | func getChar(str string) byte { function ParseUUID (line 36) | func ParseUUID(str string) UUID { FILE: value_awaiter.go type valueAwaiterType (line 10) | type valueAwaiterType struct method done (line 71) | func (v *valueAwaiterType) done() { method resumeOne (line 80) | func (v *valueAwaiterType) resumeOne() { function newValueAwaiter (line 18) | func newValueAwaiter(lockKey lockKeyType, h *valueAwaitHolderType) *valu... function awaitValue (line 27) | func awaitValue[T any](valueAwaiter *valueAwaiterType, runFunc func() (T... type valueAwaitHolderType (line 88) | type valueAwaitHolderType struct method get (line 101) | func (h *valueAwaitHolderType) get(lockKey lockKeyType) *valueAwaiterT... method remove (line 113) | func (h *valueAwaitHolderType) remove(v *valueAwaiterType) { function newValueAwaitHolder (line 95) | func newValueAwaitHolder() *valueAwaitHolderType { function goroutineID (line 119) | func goroutineID() int { FILE: version.go constant SnowflakeGoDriverVersion (line 4) | SnowflakeGoDriverVersion = "2.0.1" FILE: wiremock_test.go type wiremockClient (line 20) | type wiremockClient struct method openDb (line 84) | func (wm *wiremockClient) openDb(t *testing.T) *sql.DB { method connectionConfig (line 90) | func (wm *wiremockClient) connectionConfig() *Config { method registerMappings (line 160) | func (wm *wiremockClient) registerMappings(t *testing.T, args ...any) { method mappingsURL (line 212) | func (wm *wiremockClient) mappingsURL() string { method scenariosURL (line 216) | func (wm *wiremockClient) scenariosURL() string { method baseURL (line 220) | func (wm *wiremockClient) baseURL() string { type wiremockClientHTTPS (line 28) | type wiremockClientHTTPS struct method connectionConfig (line 109) | func (wm *wiremockClientHTTPS) connectionConfig(t *testing.T) *Config { method certPool (line 117) | func (wm *wiremockClientHTTPS) certPool(t *testing.T) *x509.CertPool { method ocspTransporter (line 127) | func (wm *wiremockClientHTTPS) ocspTransporter(t *testing.T, delegate ... method tlsConfig (line 143) | func (wm *wiremockClientHTTPS) tlsConfig(t *testing.T) *tls.Config { function newWiremock (line 32) | func newWiremock() *wiremockClient { function newWiremockHTTPS (line 53) | func newWiremockHTTPS() *wiremockClientHTTPS { type wiremockMapping (line 149) | type wiremockMapping struct function newWiremockMapping (line 154) | func newWiremockMapping(filePath string) wiremockMapping { type disableEnrichingWithTelemetry (line 158) | type disableEnrichingWithTelemetry struct function TestQueryViaHttps (line 224) | func TestQueryViaHttps(t *testing.T) {