Documentation ¶
Index ¶
- func AssertErrorContainsPartsFunc(t *testing.T, parts []string) resource.ErrorCheckFunc
- func EnsureQuotedIdentifiersIgnoreCaseIsSetToFalse(client *sdk.Client, ctx context.Context) error
- func EnsureScimProvisionerRolesExist(client *sdk.Client, ctx context.Context) error
- func FindParameter[T ~string](t *testing.T, parameters []*sdk.Parameter, parameter T) *sdk.Parameter
- type AccountClient
- type AlertClient
- type ApiIntegrationClient
- type ApplicationClient
- type ApplicationPackageClient
- func (c *ApplicationPackageClient) AddApplicationPackageVersion(t *testing.T, id sdk.AccountObjectIdentifier, ...)
- func (c *ApplicationPackageClient) CreateApplicationPackage(t *testing.T) (*sdk.ApplicationPackage, func())
- func (c *ApplicationPackageClient) DropApplicationPackageFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *ApplicationPackageClient) ShowVersions(t *testing.T, id sdk.AccountObjectIdentifier) []ApplicationPackageVersion
- type ApplicationPackageVersion
- type CatalogIntegrationClient
- type ContextClient
- func (c *ContextClient) ACSURL(t *testing.T) string
- func (c *ContextClient) CurrentAccount(t *testing.T) string
- func (c *ContextClient) CurrentRegion(t *testing.T) string
- func (c *ContextClient) CurrentRole(t *testing.T) sdk.AccountObjectIdentifier
- func (c *ContextClient) CurrentUser(t *testing.T) sdk.AccountObjectIdentifier
- func (c *ContextClient) IsRoleInSession(t *testing.T, id sdk.AccountObjectIdentifier) bool
- func (c *ContextClient) IssuerURL(t *testing.T) string
- type CortexSearchServiceClient
- func (c *CortexSearchServiceClient) CreateCortexSearchService(t *testing.T, tableId sdk.SchemaObjectIdentifier) (*sdk.CortexSearchService, func())
- func (c *CortexSearchServiceClient) CreateCortexSearchServiceWithOptions(t *testing.T, id sdk.SchemaObjectIdentifier, ...) (*sdk.CortexSearchService, func())
- func (c *CortexSearchServiceClient) DropCortexSearchServiceFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type DatabaseClient
- func (c *DatabaseClient) CreateDatabase(t *testing.T) (*sdk.Database, func())
- func (c *DatabaseClient) CreateDatabaseWithIdentifier(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Database, func())
- func (c *DatabaseClient) CreateDatabaseWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateDatabaseOptions) (*sdk.Database, func())
- func (c *DatabaseClient) CreatePrimaryDatabase(t *testing.T, enableReplicationTo []sdk.AccountIdentifier) (*sdk.Database, sdk.ExternalObjectIdentifier, func())
- func (c *DatabaseClient) CreateSecondaryDatabaseWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, ...) (*sdk.Database, func())
- func (c *DatabaseClient) DropDatabaseFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *DatabaseClient) Show(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Database, error)
- func (c *DatabaseClient) UnsetCatalog(t *testing.T, id sdk.AccountObjectIdentifier)
- func (c *DatabaseClient) UpdateDataRetentionTime(t *testing.T, id sdk.AccountObjectIdentifier, days int)
- type DatabaseRoleClient
- func (c *DatabaseRoleClient) CleanupDatabaseRoleFunc(t *testing.T, id sdk.DatabaseObjectIdentifier) func()
- func (c *DatabaseRoleClient) CreateDatabaseRole(t *testing.T) (*sdk.DatabaseRole, func())
- func (c *DatabaseRoleClient) CreateDatabaseRoleInDatabase(t *testing.T, databaseId sdk.AccountObjectIdentifier) (*sdk.DatabaseRole, func())
- func (c *DatabaseRoleClient) CreateDatabaseRoleInDatabaseWithName(t *testing.T, databaseId sdk.AccountObjectIdentifier, name string) (*sdk.DatabaseRole, func())
- func (c *DatabaseRoleClient) CreateDatabaseRoleWithName(t *testing.T, name string) (*sdk.DatabaseRole, func())
- type DynamicTableClient
- func (c *DynamicTableClient) CreateDynamicTable(t *testing.T, tableId sdk.SchemaObjectIdentifier) (*sdk.DynamicTable, func())
- func (c *DynamicTableClient) CreateDynamicTableWithOptions(t *testing.T, id sdk.SchemaObjectIdentifier, ...) (*sdk.DynamicTable, func())
- func (c *DynamicTableClient) DropDynamicTableFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type ExternalAccessIntegrationClient
- type ExternalVolumeClient
- type FailoverGroupClient
- func (c *FailoverGroupClient) CreateFailoverGroup(t *testing.T) (*sdk.FailoverGroup, func())
- func (c *FailoverGroupClient) CreateFailoverGroupWithOptions(t *testing.T, objectTypes []sdk.PluralObjectType, ...) (*sdk.FailoverGroup, func())
- func (c *FailoverGroupClient) DropFailoverGroupFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- type FileFormatClient
- func (c *FileFormatClient) CreateFileFormat(t *testing.T) (*sdk.FileFormat, func())
- func (c *FileFormatClient) CreateFileFormatWithOptions(t *testing.T, opts *sdk.CreateFileFormatOptions) (*sdk.FileFormat, func())
- func (c *FileFormatClient) DropFileFormatFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type IdsGenerator
- func (c *IdsGenerator) AccountIdentifierWithLocator() sdk.AccountIdentifier
- func (c *IdsGenerator) Alpha() string
- func (c *IdsGenerator) AlphaContaining(part string) string
- func (c *IdsGenerator) AlphaN(n int) string
- func (c *IdsGenerator) AlphaWithPrefix(prefix string) string
- func (c *IdsGenerator) DatabaseId() sdk.AccountObjectIdentifier
- func (c *IdsGenerator) NewDatabaseObjectIdentifier(name string) sdk.DatabaseObjectIdentifier
- func (c *IdsGenerator) NewSchemaObjectIdentifier(name string) sdk.SchemaObjectIdentifier
- func (c *IdsGenerator) NewSchemaObjectIdentifierInSchema(name string, schemaId sdk.DatabaseObjectIdentifier) sdk.SchemaObjectIdentifier
- func (c *IdsGenerator) RandomAccountObjectIdentifier() sdk.AccountObjectIdentifier
- func (c *IdsGenerator) RandomAccountObjectIdentifierContaining(part string) sdk.AccountObjectIdentifier
- func (c *IdsGenerator) RandomAccountObjectIdentifierWithPrefix(prefix string) sdk.AccountObjectIdentifier
- func (c *IdsGenerator) RandomDatabaseObjectIdentifier() sdk.DatabaseObjectIdentifier
- func (c *IdsGenerator) RandomDatabaseObjectIdentifierInDatabase(databaseId sdk.AccountObjectIdentifier) sdk.DatabaseObjectIdentifier
- func (c *IdsGenerator) RandomDatabaseObjectIdentifierWithPrefix(prefix string) sdk.DatabaseObjectIdentifier
- func (c *IdsGenerator) RandomSchemaObjectIdentifier() sdk.SchemaObjectIdentifier
- func (c *IdsGenerator) RandomSchemaObjectIdentifierInSchema(schemaId sdk.DatabaseObjectIdentifier) sdk.SchemaObjectIdentifier
- func (c *IdsGenerator) RandomSchemaObjectIdentifierWithArguments(arguments []sdk.DataType) sdk.SchemaObjectIdentifier
- func (c *IdsGenerator) RandomSchemaObjectIdentifierWithPrefix(prefix string) sdk.SchemaObjectIdentifier
- func (c *IdsGenerator) SchemaId() sdk.DatabaseObjectIdentifier
- func (c *IdsGenerator) WarehouseId() sdk.AccountObjectIdentifier
- type InformationSchemaColumns
- type MaskingPolicyClient
- func (c *MaskingPolicyClient) CreateMaskingPolicy(t *testing.T) (*sdk.MaskingPolicy, func())
- func (c *MaskingPolicyClient) CreateMaskingPolicyIdentity(t *testing.T, columnType sdk.DataType) (*sdk.MaskingPolicy, func())
- func (c *MaskingPolicyClient) CreateMaskingPolicyInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.MaskingPolicy, func())
- func (c *MaskingPolicyClient) CreateMaskingPolicyWithOptions(t *testing.T, schemaId sdk.DatabaseObjectIdentifier, ...) (*sdk.MaskingPolicy, func())
- func (c *MaskingPolicyClient) DropMaskingPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type MaterializedViewClient
- func (c *MaterializedViewClient) CreateMaterializedView(t *testing.T, query string, orReplace bool) (*sdk.MaterializedView, func())
- func (c *MaterializedViewClient) CreateMaterializedViewWithName(t *testing.T, id sdk.SchemaObjectIdentifier, query string, orReplace bool) (*sdk.MaterializedView, func())
- func (c *MaterializedViewClient) DropMaterializedViewFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type NetworkPolicyClient
- func (c *NetworkPolicyClient) CreateNetworkPolicy(t *testing.T) (*sdk.NetworkPolicy, func())
- func (c *NetworkPolicyClient) CreateNetworkPolicyWithRequest(t *testing.T, request *sdk.CreateNetworkPolicyRequest) (*sdk.NetworkPolicy, func())
- func (c *NetworkPolicyClient) DropNetworkPolicyFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *NetworkPolicyClient) Update(t *testing.T, request *sdk.AlterNetworkPolicyRequest)
- type NetworkRuleClient
- func (c *NetworkRuleClient) Create(t *testing.T) (*sdk.NetworkRule, func())
- func (c *NetworkRuleClient) CreateWithIdentifier(t *testing.T, id sdk.SchemaObjectIdentifier) (*sdk.NetworkRule, func())
- func (c *NetworkRuleClient) CreateWithRequest(t *testing.T, request *sdk.CreateNetworkRuleRequest) (*sdk.NetworkRule, func())
- func (c *NetworkRuleClient) DropFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type ParameterClient
- func (c *ParameterClient) ShowAccountParameter(t *testing.T, parameter sdk.AccountParameter) *sdk.Parameter
- func (c *ParameterClient) ShowAccountParameters(t *testing.T) []*sdk.Parameter
- func (c *ParameterClient) ShowDatabaseParameters(t *testing.T, id sdk.AccountObjectIdentifier) []*sdk.Parameter
- func (c *ParameterClient) ShowSchemaParameters(t *testing.T, id sdk.DatabaseObjectIdentifier) []*sdk.Parameter
- func (c *ParameterClient) ShowUserParameters(t *testing.T, id sdk.AccountObjectIdentifier) []*sdk.Parameter
- func (c *ParameterClient) ShowWarehouseParameters(t *testing.T, id sdk.AccountObjectIdentifier) []*sdk.Parameter
- func (c *ParameterClient) UnsetAccountParameter(t *testing.T, parameter sdk.AccountParameter)
- func (c *ParameterClient) UpdateAccountParameterTemporarily(t *testing.T, parameter sdk.AccountParameter, newValue string) func()
- type PasswordPolicyClient
- func (c *PasswordPolicyClient) CreatePasswordPolicy(t *testing.T) (*sdk.PasswordPolicy, func())
- func (c *PasswordPolicyClient) CreatePasswordPolicyInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.PasswordPolicy, func())
- func (c *PasswordPolicyClient) CreatePasswordPolicyInSchemaWithOptions(t *testing.T, schemaId sdk.DatabaseObjectIdentifier, ...) (*sdk.PasswordPolicy, func())
- func (c *PasswordPolicyClient) CreatePasswordPolicyWithOptions(t *testing.T, options *sdk.CreatePasswordPolicyOptions) (*sdk.PasswordPolicy, func())
- func (c *PasswordPolicyClient) DropPasswordPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type PipeClient
- func (c *PipeClient) CreatePipe(t *testing.T, copyStatement string) (*sdk.Pipe, func())
- func (c *PipeClient) CreatePipeInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier, copyStatement string) (*sdk.Pipe, func())
- func (c *PipeClient) DropPipeFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type PolicyReference
- type ResourceMonitorClient
- func (c *ResourceMonitorClient) CreateResourceMonitor(t *testing.T) (*sdk.ResourceMonitor, func())
- func (c *ResourceMonitorClient) CreateResourceMonitorWithOptions(t *testing.T, opts *sdk.CreateResourceMonitorOptions) (*sdk.ResourceMonitor, func())
- func (c *ResourceMonitorClient) DropResourceMonitorFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- type RoleClient
- func (c *RoleClient) CreateRole(t *testing.T) (*sdk.Role, func())
- func (c *RoleClient) CreateRoleGrantedToCurrentUser(t *testing.T) (*sdk.Role, func())
- func (c *RoleClient) CreateRoleWithIdentifier(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Role, func())
- func (c *RoleClient) CreateRoleWithRequest(t *testing.T, req *sdk.CreateRoleRequest) (*sdk.Role, func())
- func (c *RoleClient) DropRoleFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *RoleClient) GrantOwnershipOnAccountObject(t *testing.T, roleId sdk.AccountObjectIdentifier, ...)
- func (c *RoleClient) GrantOwnershipOnSchemaObject(t *testing.T, roleId sdk.AccountObjectIdentifier, ...)
- func (c *RoleClient) GrantPrivilegeOnDatabaseToShare(t *testing.T, databaseId sdk.AccountObjectIdentifier, ...)
- func (c *RoleClient) GrantRoleToCurrentRole(t *testing.T, id sdk.AccountObjectIdentifier)
- func (c *RoleClient) GrantRoleToUser(t *testing.T, id sdk.AccountObjectIdentifier, ...)
- func (c *RoleClient) ShowGrantsTo(t *testing.T, roleId sdk.AccountObjectIdentifier) []sdk.Grant
- func (c *RoleClient) UseRole(t *testing.T, roleId sdk.AccountObjectIdentifier) func()
- type RowAccessPolicyClient
- func (c *RowAccessPolicyClient) CreateRowAccessPolicy(t *testing.T) (*sdk.RowAccessPolicy, func())
- func (c *RowAccessPolicyClient) DropRowAccessPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- func (c *RowAccessPolicyClient) GetRowAccessPolicyFor(t *testing.T, id sdk.SchemaObjectIdentifier, objectType sdk.ObjectType) (*PolicyReference, error)
- type SchemaClient
- func (c *SchemaClient) CreateSchema(t *testing.T) (*sdk.Schema, func())
- func (c *SchemaClient) CreateSchemaInDatabase(t *testing.T, databaseId sdk.AccountObjectIdentifier) (*sdk.Schema, func())
- func (c *SchemaClient) CreateSchemaWithIdentifier(t *testing.T, id sdk.DatabaseObjectIdentifier) (*sdk.Schema, func())
- func (c *SchemaClient) CreateSchemaWithName(t *testing.T, name string) (*sdk.Schema, func())
- func (c *SchemaClient) CreateSchemaWithOpts(t *testing.T, id sdk.DatabaseObjectIdentifier, opts *sdk.CreateSchemaOptions) (*sdk.Schema, func())
- func (c *SchemaClient) DropSchemaFunc(t *testing.T, id sdk.DatabaseObjectIdentifier) func()
- func (c *SchemaClient) Show(t *testing.T, id sdk.DatabaseObjectIdentifier) (*sdk.Schema, error)
- func (c *SchemaClient) ShowWithOptions(t *testing.T, opts *sdk.ShowSchemaOptions) []sdk.Schema
- func (c *SchemaClient) UpdateDataRetentionTime(t *testing.T, id sdk.DatabaseObjectIdentifier, days int) func()
- func (c *SchemaClient) UseDefaultSchema(t *testing.T)
- type SecurityIntegrationClient
- func (c *SecurityIntegrationClient) CreateSaml2(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.SecurityIntegration, func())
- func (c *SecurityIntegrationClient) CreateSaml2WithRequest(t *testing.T, request *sdk.CreateSaml2SecurityIntegrationRequest) (*sdk.SecurityIntegration, func())
- func (c *SecurityIntegrationClient) CreateScim(t *testing.T) (*sdk.SecurityIntegration, func())
- func (c *SecurityIntegrationClient) CreateScimWithRequest(t *testing.T, request *sdk.CreateScimSecurityIntegrationRequest) (*sdk.SecurityIntegration, func())
- func (c *SecurityIntegrationClient) DropSecurityIntegrationFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *SecurityIntegrationClient) UpdateExternalOauth(t *testing.T, request *sdk.AlterExternalOauthSecurityIntegrationRequest)
- func (c *SecurityIntegrationClient) UpdateOauthForClients(t *testing.T, ...)
- func (c *SecurityIntegrationClient) UpdateOauthForPartnerApplications(t *testing.T, ...)
- func (c *SecurityIntegrationClient) UpdateSaml2(t *testing.T, request *sdk.AlterSaml2SecurityIntegrationRequest)
- func (c *SecurityIntegrationClient) UpdateSaml2ForceAuthn(t *testing.T, id sdk.AccountObjectIdentifier, forceAuthn bool)
- type SessionPolicyClient
- func (c *SessionPolicyClient) CreateSessionPolicy(t *testing.T) (*sdk.SessionPolicy, func())
- func (c *SessionPolicyClient) CreateSessionPolicyWithOptions(t *testing.T, id sdk.SchemaObjectIdentifier, ...) (*sdk.SessionPolicy, func())
- func (c *SessionPolicyClient) DropSessionPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type ShareClient
- func (c *ShareClient) CreateShare(t *testing.T) (*sdk.Share, func())
- func (c *ShareClient) CreateShareWithIdentifier(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Share, func())
- func (c *ShareClient) CreateShareWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateShareOptions) (*sdk.Share, func())
- func (c *ShareClient) DropShareFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *ShareClient) SetAccountOnShare(t *testing.T, accountId sdk.AccountIdentifier, ...)
- type StageClient
- func (c *StageClient) CopyIntoTableFromFile(t *testing.T, table, stage sdk.SchemaObjectIdentifier, filename string)
- func (c *StageClient) CreateStage(t *testing.T) (*sdk.Stage, func())
- func (c *StageClient) CreateStageInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.Stage, func())
- func (c *StageClient) CreateStageWithDirectory(t *testing.T) (*sdk.Stage, func())
- func (c *StageClient) CreateStageWithRequest(t *testing.T, request *sdk.CreateInternalStageRequest) (*sdk.Stage, func())
- func (c *StageClient) CreateStageWithURL(t *testing.T, id sdk.SchemaObjectIdentifier) (*sdk.Stage, func())
- func (c *StageClient) DropStageFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- func (c *StageClient) PutOnStage(t *testing.T, id sdk.SchemaObjectIdentifier, filename string)
- func (c *StageClient) PutOnStageWithContent(t *testing.T, id sdk.SchemaObjectIdentifier, filename string, content string)
- type StreamlitClient
- type TableClient
- func (c *TableClient) CreateTable(t *testing.T) (*sdk.Table, func())
- func (c *TableClient) CreateTableInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.Table, func())
- func (c *TableClient) CreateTableWithColumns(t *testing.T, columns []sdk.TableColumnRequest) (*sdk.Table, func())
- func (c *TableClient) CreateTableWithIdAndColumns(t *testing.T, id sdk.SchemaObjectIdentifier, columns []sdk.TableColumnRequest) (*sdk.Table, func())
- func (c *TableClient) CreateTableWithName(t *testing.T, name string) (*sdk.Table, func())
- func (c *TableClient) CreateTableWithPredefinedColumns(t *testing.T) (*sdk.Table, func())
- func (c *TableClient) DropTableFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- func (c *TableClient) GetTableColumnsFor(t *testing.T, tableId sdk.SchemaObjectIdentifier) []InformationSchemaColumns
- func (c *TableClient) SetDataRetentionTime(t *testing.T, id sdk.SchemaObjectIdentifier, days int)
- type TagClient
- type TaskClient
- func (c *TaskClient) CreateTask(t *testing.T) (*sdk.Task, func())
- func (c *TaskClient) CreateTaskWithAfter(t *testing.T, taskId sdk.SchemaObjectIdentifier) (*sdk.Task, func())
- func (c *TaskClient) CreateTaskWithRequest(t *testing.T, request *sdk.CreateTaskRequest) (*sdk.Task, func())
- func (c *TaskClient) DropTaskFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
- type TestClient
- type TestClientContext
- type UserClient
- func (c *UserClient) CreateUser(t *testing.T) (*sdk.User, func())
- func (c *UserClient) CreateUserWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateUserOptions) (*sdk.User, func())
- func (c *UserClient) CreateUserWithPrefix(t *testing.T, prefix string) (*sdk.User, func())
- func (c *UserClient) DropUserFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *UserClient) Show(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.User, error)
- type ViewClient
- type WarehouseClient
- func (c *WarehouseClient) CreateWarehouse(t *testing.T) (*sdk.Warehouse, func())
- func (c *WarehouseClient) CreateWarehouseWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateWarehouseOptions) (*sdk.Warehouse, func())
- func (c *WarehouseClient) DropWarehouseFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
- func (c *WarehouseClient) Show(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Warehouse, error)
- func (c *WarehouseClient) Suspend(t *testing.T, id sdk.AccountObjectIdentifier)
- func (c *WarehouseClient) UnsetStatementTimeoutInSeconds(t *testing.T, id sdk.AccountObjectIdentifier)
- func (c *WarehouseClient) UpdateAutoResume(t *testing.T, id sdk.AccountObjectIdentifier, newAutoResume bool)
- func (c *WarehouseClient) UpdateAutoSuspend(t *testing.T, id sdk.AccountObjectIdentifier, newAutoSuspend int)
- func (c *WarehouseClient) UpdateMaxConcurrencyLevel(t *testing.T, id sdk.AccountObjectIdentifier, level int)
- func (c *WarehouseClient) UpdateStatementTimeoutInSeconds(t *testing.T, id sdk.AccountObjectIdentifier, newValue int)
- func (c *WarehouseClient) UpdateWarehouseSize(t *testing.T, id sdk.AccountObjectIdentifier, newSize sdk.WarehouseSize)
- func (c *WarehouseClient) UpdateWarehouseType(t *testing.T, id sdk.AccountObjectIdentifier, newType sdk.WarehouseType)
- func (c *WarehouseClient) UseWarehouse(t *testing.T, id sdk.AccountObjectIdentifier) func()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertErrorContainsPartsFunc ¶ added in v0.93.0
func AssertErrorContainsPartsFunc(t *testing.T, parts []string) resource.ErrorCheckFunc
AssertErrorContainsPartsFunc returns a function asserting error message contains each string in parts
func EnsureQuotedIdentifiersIgnoreCaseIsSetToFalse ¶ added in v0.92.0
func EnsureScimProvisionerRolesExist ¶ added in v0.93.0
Types ¶
type AccountClient ¶
type AccountClient struct {
// contains filtered or unexported fields
}
func NewAccountClient ¶
func NewAccountClient(context *TestClientContext) *AccountClient
func (*AccountClient) GetAccountIdentifier ¶
func (c *AccountClient) GetAccountIdentifier(t *testing.T) sdk.AccountIdentifier
GetAccountIdentifier gets the account identifier from Snowflake API, by fetching the account locator and by filtering the list of accounts in replication accounts by it (because there is no direct way to get).
type AlertClient ¶
type AlertClient struct {
// contains filtered or unexported fields
}
func NewAlertClient ¶
func NewAlertClient(context *TestClientContext, idsGenerator *IdsGenerator) *AlertClient
func (*AlertClient) CreateAlert ¶
func (c *AlertClient) CreateAlert(t *testing.T) (*sdk.Alert, func())
func (*AlertClient) CreateAlertWithOptions ¶
func (c *AlertClient) CreateAlertWithOptions(t *testing.T, schedule string, condition string, action string, opts *sdk.CreateAlertOptions) (*sdk.Alert, func())
func (*AlertClient) DropAlertFunc ¶
func (c *AlertClient) DropAlertFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type ApiIntegrationClient ¶
type ApiIntegrationClient struct {
// contains filtered or unexported fields
}
func NewApiIntegrationClient ¶
func NewApiIntegrationClient(context *TestClientContext, idsGenerator *IdsGenerator) *ApiIntegrationClient
func (*ApiIntegrationClient) CreateApiIntegration ¶
func (c *ApiIntegrationClient) CreateApiIntegration(t *testing.T) (*sdk.ApiIntegration, func())
func (*ApiIntegrationClient) DropApiIntegrationFunc ¶
func (c *ApiIntegrationClient) DropApiIntegrationFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
type ApplicationClient ¶
type ApplicationClient struct {
// contains filtered or unexported fields
}
func NewApplicationClient ¶
func NewApplicationClient(context *TestClientContext, idsGenerator *IdsGenerator) *ApplicationClient
func (*ApplicationClient) CreateApplication ¶
func (c *ApplicationClient) CreateApplication(t *testing.T, packageId sdk.AccountObjectIdentifier, version string) (*sdk.Application, func())
func (*ApplicationClient) DropApplicationFunc ¶
func (c *ApplicationClient) DropApplicationFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
type ApplicationPackageClient ¶
type ApplicationPackageClient struct {
// contains filtered or unexported fields
}
func NewApplicationPackageClient ¶
func NewApplicationPackageClient(context *TestClientContext, idsGenerator *IdsGenerator) *ApplicationPackageClient
func (*ApplicationPackageClient) AddApplicationPackageVersion ¶
func (c *ApplicationPackageClient) AddApplicationPackageVersion(t *testing.T, id sdk.AccountObjectIdentifier, stageId sdk.SchemaObjectIdentifier, versionName string)
func (*ApplicationPackageClient) CreateApplicationPackage ¶
func (c *ApplicationPackageClient) CreateApplicationPackage(t *testing.T) (*sdk.ApplicationPackage, func())
func (*ApplicationPackageClient) DropApplicationPackageFunc ¶
func (c *ApplicationPackageClient) DropApplicationPackageFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*ApplicationPackageClient) ShowVersions ¶
func (c *ApplicationPackageClient) ShowVersions(t *testing.T, id sdk.AccountObjectIdentifier) []ApplicationPackageVersion
type CatalogIntegrationClient ¶ added in v0.92.0
type CatalogIntegrationClient struct {
// contains filtered or unexported fields
}
func NewCatalogIntegrationClient ¶ added in v0.92.0
func NewCatalogIntegrationClient(context *TestClientContext, idsGenerator *IdsGenerator) *CatalogIntegrationClient
func (*CatalogIntegrationClient) Create ¶ added in v0.92.0
func (c *CatalogIntegrationClient) Create(t *testing.T) (sdk.AccountObjectIdentifier, func())
TODO(SNOW-999142): Use SDK implementation for Catalog once it's available
func (*CatalogIntegrationClient) DropFunc ¶ added in v0.92.0
func (c *CatalogIntegrationClient) DropFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
type ContextClient ¶
type ContextClient struct {
// contains filtered or unexported fields
}
func NewContextClient ¶
func NewContextClient(context *TestClientContext) *ContextClient
func (*ContextClient) ACSURL ¶ added in v0.92.0
func (c *ContextClient) ACSURL(t *testing.T) string
ACSURL returns Snowflake Assertion Consumer Service URL
func (*ContextClient) CurrentAccount ¶
func (c *ContextClient) CurrentAccount(t *testing.T) string
func (*ContextClient) CurrentRegion ¶
func (c *ContextClient) CurrentRegion(t *testing.T) string
func (*ContextClient) CurrentRole ¶
func (c *ContextClient) CurrentRole(t *testing.T) sdk.AccountObjectIdentifier
func (*ContextClient) CurrentUser ¶
func (c *ContextClient) CurrentUser(t *testing.T) sdk.AccountObjectIdentifier
func (*ContextClient) IsRoleInSession ¶
func (c *ContextClient) IsRoleInSession(t *testing.T, id sdk.AccountObjectIdentifier) bool
type CortexSearchServiceClient ¶ added in v0.93.0
type CortexSearchServiceClient struct {
// contains filtered or unexported fields
}
func NewCortexSearchServiceClient ¶ added in v0.93.0
func NewCortexSearchServiceClient(context *TestClientContext, idsGenerator *IdsGenerator) *CortexSearchServiceClient
func (*CortexSearchServiceClient) CreateCortexSearchService ¶ added in v0.93.0
func (c *CortexSearchServiceClient) CreateCortexSearchService(t *testing.T, tableId sdk.SchemaObjectIdentifier) (*sdk.CortexSearchService, func())
func (*CortexSearchServiceClient) CreateCortexSearchServiceWithOptions ¶ added in v0.93.0
func (c *CortexSearchServiceClient) CreateCortexSearchServiceWithOptions(t *testing.T, id sdk.SchemaObjectIdentifier, warehouseId sdk.AccountObjectIdentifier, tableId sdk.SchemaObjectIdentifier, column string) (*sdk.CortexSearchService, func())
func (*CortexSearchServiceClient) DropCortexSearchServiceFunc ¶ added in v0.93.0
func (c *CortexSearchServiceClient) DropCortexSearchServiceFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type DatabaseClient ¶
type DatabaseClient struct {
// contains filtered or unexported fields
}
func NewDatabaseClient ¶
func NewDatabaseClient(context *TestClientContext, idsGenerator *IdsGenerator) *DatabaseClient
func (*DatabaseClient) CreateDatabase ¶
func (c *DatabaseClient) CreateDatabase(t *testing.T) (*sdk.Database, func())
func (*DatabaseClient) CreateDatabaseWithIdentifier ¶ added in v0.92.0
func (c *DatabaseClient) CreateDatabaseWithIdentifier(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Database, func())
func (*DatabaseClient) CreateDatabaseWithOptions ¶
func (c *DatabaseClient) CreateDatabaseWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateDatabaseOptions) (*sdk.Database, func())
func (*DatabaseClient) CreatePrimaryDatabase ¶ added in v0.92.0
func (c *DatabaseClient) CreatePrimaryDatabase(t *testing.T, enableReplicationTo []sdk.AccountIdentifier) (*sdk.Database, sdk.ExternalObjectIdentifier, func())
func (*DatabaseClient) CreateSecondaryDatabaseWithOptions ¶
func (c *DatabaseClient) CreateSecondaryDatabaseWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, externalId sdk.ExternalObjectIdentifier, opts *sdk.CreateSecondaryDatabaseOptions) (*sdk.Database, func())
func (*DatabaseClient) DropDatabaseFunc ¶
func (c *DatabaseClient) DropDatabaseFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*DatabaseClient) Show ¶
func (c *DatabaseClient) Show(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Database, error)
func (*DatabaseClient) UnsetCatalog ¶ added in v0.93.0
func (c *DatabaseClient) UnsetCatalog(t *testing.T, id sdk.AccountObjectIdentifier)
func (*DatabaseClient) UpdateDataRetentionTime ¶
func (c *DatabaseClient) UpdateDataRetentionTime(t *testing.T, id sdk.AccountObjectIdentifier, days int)
type DatabaseRoleClient ¶
type DatabaseRoleClient struct {
// contains filtered or unexported fields
}
func NewDatabaseRoleClient ¶
func NewDatabaseRoleClient(context *TestClientContext, idsGenerator *IdsGenerator) *DatabaseRoleClient
func (*DatabaseRoleClient) CleanupDatabaseRoleFunc ¶
func (c *DatabaseRoleClient) CleanupDatabaseRoleFunc(t *testing.T, id sdk.DatabaseObjectIdentifier) func()
func (*DatabaseRoleClient) CreateDatabaseRole ¶
func (c *DatabaseRoleClient) CreateDatabaseRole(t *testing.T) (*sdk.DatabaseRole, func())
func (*DatabaseRoleClient) CreateDatabaseRoleInDatabase ¶
func (c *DatabaseRoleClient) CreateDatabaseRoleInDatabase(t *testing.T, databaseId sdk.AccountObjectIdentifier) (*sdk.DatabaseRole, func())
func (*DatabaseRoleClient) CreateDatabaseRoleInDatabaseWithName ¶
func (c *DatabaseRoleClient) CreateDatabaseRoleInDatabaseWithName(t *testing.T, databaseId sdk.AccountObjectIdentifier, name string) (*sdk.DatabaseRole, func())
func (*DatabaseRoleClient) CreateDatabaseRoleWithName ¶
func (c *DatabaseRoleClient) CreateDatabaseRoleWithName(t *testing.T, name string) (*sdk.DatabaseRole, func())
type DynamicTableClient ¶
type DynamicTableClient struct {
// contains filtered or unexported fields
}
func NewDynamicTableClient ¶
func NewDynamicTableClient(context *TestClientContext, idsGenerator *IdsGenerator) *DynamicTableClient
func (*DynamicTableClient) CreateDynamicTable ¶
func (c *DynamicTableClient) CreateDynamicTable(t *testing.T, tableId sdk.SchemaObjectIdentifier) (*sdk.DynamicTable, func())
func (*DynamicTableClient) CreateDynamicTableWithOptions ¶
func (c *DynamicTableClient) CreateDynamicTableWithOptions(t *testing.T, id sdk.SchemaObjectIdentifier, warehouseId sdk.AccountObjectIdentifier, tableId sdk.SchemaObjectIdentifier) (*sdk.DynamicTable, func())
func (*DynamicTableClient) DropDynamicTableFunc ¶
func (c *DynamicTableClient) DropDynamicTableFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type ExternalAccessIntegrationClient ¶ added in v0.94.0
type ExternalAccessIntegrationClient struct {
// contains filtered or unexported fields
}
TODO(SNOW-1325215): change raw sqls to proper client
func NewExternalAccessIntegrationClient ¶ added in v0.94.0
func NewExternalAccessIntegrationClient(context *TestClientContext, idsGenerator *IdsGenerator) *ExternalAccessIntegrationClient
func (*ExternalAccessIntegrationClient) CreateExternalAccessIntegration ¶ added in v0.94.0
func (c *ExternalAccessIntegrationClient) CreateExternalAccessIntegration(t *testing.T, networkRuleId sdk.SchemaObjectIdentifier) (sdk.SchemaObjectIdentifier, func())
func (*ExternalAccessIntegrationClient) DropExternalAccessIntegrationFunc ¶ added in v0.94.0
func (c *ExternalAccessIntegrationClient) DropExternalAccessIntegrationFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type ExternalVolumeClient ¶ added in v0.92.0
type ExternalVolumeClient struct {
// contains filtered or unexported fields
}
func NewExternalVolumeClient ¶ added in v0.92.0
func NewExternalVolumeClient(context *TestClientContext, idsGenerator *IdsGenerator) *ExternalVolumeClient
func (*ExternalVolumeClient) Create ¶ added in v0.92.0
func (c *ExternalVolumeClient) Create(t *testing.T) (sdk.AccountObjectIdentifier, func())
TODO(SNOW-999142): Use SDK implementation for External Volume once it's available
func (*ExternalVolumeClient) DropFunc ¶ added in v0.92.0
func (c *ExternalVolumeClient) DropFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
type FailoverGroupClient ¶
type FailoverGroupClient struct {
// contains filtered or unexported fields
}
func NewFailoverGroupClient ¶
func NewFailoverGroupClient(context *TestClientContext, idsGenerator *IdsGenerator) *FailoverGroupClient
func (*FailoverGroupClient) CreateFailoverGroup ¶
func (c *FailoverGroupClient) CreateFailoverGroup(t *testing.T) (*sdk.FailoverGroup, func())
func (*FailoverGroupClient) CreateFailoverGroupWithOptions ¶
func (c *FailoverGroupClient) CreateFailoverGroupWithOptions(t *testing.T, objectTypes []sdk.PluralObjectType, allowedAccounts []sdk.AccountIdentifier, opts *sdk.CreateFailoverGroupOptions) (*sdk.FailoverGroup, func())
func (*FailoverGroupClient) DropFailoverGroupFunc ¶
func (c *FailoverGroupClient) DropFailoverGroupFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
type FileFormatClient ¶
type FileFormatClient struct {
// contains filtered or unexported fields
}
func NewFileFormatClient ¶
func NewFileFormatClient(context *TestClientContext, idsGenerator *IdsGenerator) *FileFormatClient
func (*FileFormatClient) CreateFileFormat ¶
func (c *FileFormatClient) CreateFileFormat(t *testing.T) (*sdk.FileFormat, func())
func (*FileFormatClient) CreateFileFormatWithOptions ¶
func (c *FileFormatClient) CreateFileFormatWithOptions(t *testing.T, opts *sdk.CreateFileFormatOptions) (*sdk.FileFormat, func())
func (*FileFormatClient) DropFileFormatFunc ¶
func (c *FileFormatClient) DropFileFormatFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type IdsGenerator ¶
type IdsGenerator struct {
// contains filtered or unexported fields
}
func NewIdsGenerator ¶
func NewIdsGenerator(context *TestClientContext) *IdsGenerator
func (*IdsGenerator) AccountIdentifierWithLocator ¶
func (c *IdsGenerator) AccountIdentifierWithLocator() sdk.AccountIdentifier
func (*IdsGenerator) Alpha ¶
func (c *IdsGenerator) Alpha() string
func (*IdsGenerator) AlphaContaining ¶
func (c *IdsGenerator) AlphaContaining(part string) string
func (*IdsGenerator) AlphaN ¶
func (c *IdsGenerator) AlphaN(n int) string
func (*IdsGenerator) AlphaWithPrefix ¶
func (c *IdsGenerator) AlphaWithPrefix(prefix string) string
func (*IdsGenerator) DatabaseId ¶
func (c *IdsGenerator) DatabaseId() sdk.AccountObjectIdentifier
func (*IdsGenerator) NewDatabaseObjectIdentifier ¶ added in v0.92.0
func (c *IdsGenerator) NewDatabaseObjectIdentifier(name string) sdk.DatabaseObjectIdentifier
func (*IdsGenerator) NewSchemaObjectIdentifier ¶ added in v0.92.0
func (c *IdsGenerator) NewSchemaObjectIdentifier(name string) sdk.SchemaObjectIdentifier
func (*IdsGenerator) NewSchemaObjectIdentifierInSchema ¶ added in v0.92.0
func (c *IdsGenerator) NewSchemaObjectIdentifierInSchema(name string, schemaId sdk.DatabaseObjectIdentifier) sdk.SchemaObjectIdentifier
func (*IdsGenerator) RandomAccountObjectIdentifier ¶
func (c *IdsGenerator) RandomAccountObjectIdentifier() sdk.AccountObjectIdentifier
func (*IdsGenerator) RandomAccountObjectIdentifierContaining ¶
func (c *IdsGenerator) RandomAccountObjectIdentifierContaining(part string) sdk.AccountObjectIdentifier
func (*IdsGenerator) RandomAccountObjectIdentifierWithPrefix ¶
func (c *IdsGenerator) RandomAccountObjectIdentifierWithPrefix(prefix string) sdk.AccountObjectIdentifier
func (*IdsGenerator) RandomDatabaseObjectIdentifier ¶ added in v0.92.0
func (c *IdsGenerator) RandomDatabaseObjectIdentifier() sdk.DatabaseObjectIdentifier
func (*IdsGenerator) RandomDatabaseObjectIdentifierInDatabase ¶ added in v0.92.0
func (c *IdsGenerator) RandomDatabaseObjectIdentifierInDatabase(databaseId sdk.AccountObjectIdentifier) sdk.DatabaseObjectIdentifier
func (*IdsGenerator) RandomDatabaseObjectIdentifierWithPrefix ¶ added in v0.92.0
func (c *IdsGenerator) RandomDatabaseObjectIdentifierWithPrefix(prefix string) sdk.DatabaseObjectIdentifier
func (*IdsGenerator) RandomSchemaObjectIdentifier ¶
func (c *IdsGenerator) RandomSchemaObjectIdentifier() sdk.SchemaObjectIdentifier
func (*IdsGenerator) RandomSchemaObjectIdentifierInSchema ¶ added in v0.92.0
func (c *IdsGenerator) RandomSchemaObjectIdentifierInSchema(schemaId sdk.DatabaseObjectIdentifier) sdk.SchemaObjectIdentifier
func (*IdsGenerator) RandomSchemaObjectIdentifierWithArguments ¶ added in v0.92.0
func (c *IdsGenerator) RandomSchemaObjectIdentifierWithArguments(arguments []sdk.DataType) sdk.SchemaObjectIdentifier
func (*IdsGenerator) RandomSchemaObjectIdentifierWithPrefix ¶ added in v0.92.0
func (c *IdsGenerator) RandomSchemaObjectIdentifierWithPrefix(prefix string) sdk.SchemaObjectIdentifier
func (*IdsGenerator) SchemaId ¶
func (c *IdsGenerator) SchemaId() sdk.DatabaseObjectIdentifier
func (*IdsGenerator) WarehouseId ¶
func (c *IdsGenerator) WarehouseId() sdk.AccountObjectIdentifier
type InformationSchemaColumns ¶
type InformationSchemaColumns struct { TableCatalog string `db:"TABLE_CATALOG"` TableSchema string `db:"TABLE_SCHEMA"` TableName string `db:"TABLE_NAME"` ColumnName string `db:"COLUMN_NAME"` OrdinalPosition string `db:"ORDINAL_POSITION"` ColumnDefault sql.NullString `db:"COLUMN_DEFAULT"` IsNullable string `db:"IS_NULLABLE"` DataType string `db:"DATA_TYPE"` CharacterMaximumLength sql.NullString `db:"CHARACTER_MAXIMUM_LENGTH"` CharacterOctetLength sql.NullString `db:"CHARACTER_OCTET_LENGTH"` NumericPrecision sql.NullString `db:"NUMERIC_PRECISION"` NumericPrecisionRadix sql.NullString `db:"NUMERIC_PRECISION_RADIX"` NumericScale sql.NullString `db:"NUMERIC_SCALE"` DatetimePrecision sql.NullString `db:"DATETIME_PRECISION"` IntervalType sql.NullString `db:"INTERVAL_TYPE"` IntervalPrecision sql.NullString `db:"INTERVAL_PRECISION"` CharacterSetCatalog sql.NullString `db:"CHARACTER_SET_CATALOG"` CharacterSetSchema sql.NullString `db:"CHARACTER_SET_SCHEMA"` CharacterSetName sql.NullString `db:"CHARACTER_SET_NAME"` CollationCatalog sql.NullString `db:"COLLATION_CATALOG"` CollationSchema sql.NullString `db:"COLLATION_SCHEMA"` CollationName sql.NullString `db:"COLLATION_NAME"` DomainCatalog sql.NullString `db:"DOMAIN_CATALOG"` DomainSchema sql.NullString `db:"DOMAIN_SCHEMA"` DomainName sql.NullString `db:"DOMAIN_NAME"` UdtCatalog sql.NullString `db:"UDT_CATALOG"` UdtSchema sql.NullString `db:"UDT_SCHEMA"` UdtName sql.NullString `db:"UDT_NAME"` ScopeCatalog sql.NullString `db:"SCOPE_CATALOG"` ScopeSchema sql.NullString `db:"SCOPE_SCHEMA"` ScopeName sql.NullString `db:"SCOPE_NAME"` MaximumCardinality sql.NullString `db:"MAXIMUM_CARDINALITY"` DtdIdentifier sql.NullString `db:"DTD_IDENTIFIER"` IsSelfReferencing string `db:"IS_SELF_REFERENCING"` IsIdentity string `db:"IS_IDENTITY"` IdentityGeneration sql.NullString `db:"IDENTITY_GENERATION"` IdentityStart sql.NullString `db:"IDENTITY_START"` IdentityIncrement sql.NullString `db:"IDENTITY_INCREMENT"` IdentityMaximum sql.NullString `db:"IDENTITY_MAXIMUM"` IdentityMinimum sql.NullString `db:"IDENTITY_MINIMUM"` IdentityCycle sql.NullString `db:"IDENTITY_CYCLE"` IdentityOrdered sql.NullString `db:"IDENTITY_ORDERED"` Comment sql.NullString `db:"COMMENT"` SchemaEvolutionRecord sql.NullString `db:"SCHEMA_EVOLUTION_RECORD"` }
type MaskingPolicyClient ¶
type MaskingPolicyClient struct {
// contains filtered or unexported fields
}
func NewMaskingPolicyClient ¶
func NewMaskingPolicyClient(context *TestClientContext, idsGenerator *IdsGenerator) *MaskingPolicyClient
func (*MaskingPolicyClient) CreateMaskingPolicy ¶
func (c *MaskingPolicyClient) CreateMaskingPolicy(t *testing.T) (*sdk.MaskingPolicy, func())
func (*MaskingPolicyClient) CreateMaskingPolicyIdentity ¶
func (c *MaskingPolicyClient) CreateMaskingPolicyIdentity(t *testing.T, columnType sdk.DataType) (*sdk.MaskingPolicy, func())
func (*MaskingPolicyClient) CreateMaskingPolicyInSchema ¶
func (c *MaskingPolicyClient) CreateMaskingPolicyInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.MaskingPolicy, func())
func (*MaskingPolicyClient) CreateMaskingPolicyWithOptions ¶
func (c *MaskingPolicyClient) CreateMaskingPolicyWithOptions(t *testing.T, schemaId sdk.DatabaseObjectIdentifier, signature []sdk.TableColumnSignature, returns sdk.DataType, expression string, options *sdk.CreateMaskingPolicyOptions) (*sdk.MaskingPolicy, func())
func (*MaskingPolicyClient) DropMaskingPolicyFunc ¶
func (c *MaskingPolicyClient) DropMaskingPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type MaterializedViewClient ¶ added in v0.92.0
type MaterializedViewClient struct {
// contains filtered or unexported fields
}
func NewMaterializedViewClient ¶ added in v0.92.0
func NewMaterializedViewClient(context *TestClientContext, idsGenerator *IdsGenerator) *MaterializedViewClient
func (*MaterializedViewClient) CreateMaterializedView ¶ added in v0.92.0
func (c *MaterializedViewClient) CreateMaterializedView(t *testing.T, query string, orReplace bool) (*sdk.MaterializedView, func())
func (*MaterializedViewClient) CreateMaterializedViewWithName ¶ added in v0.92.0
func (c *MaterializedViewClient) CreateMaterializedViewWithName(t *testing.T, id sdk.SchemaObjectIdentifier, query string, orReplace bool) (*sdk.MaterializedView, func())
func (*MaterializedViewClient) DropMaterializedViewFunc ¶ added in v0.92.0
func (c *MaterializedViewClient) DropMaterializedViewFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type NetworkPolicyClient ¶
type NetworkPolicyClient struct {
// contains filtered or unexported fields
}
func NewNetworkPolicyClient ¶
func NewNetworkPolicyClient(context *TestClientContext, idsGenerator *IdsGenerator) *NetworkPolicyClient
func (*NetworkPolicyClient) CreateNetworkPolicy ¶
func (c *NetworkPolicyClient) CreateNetworkPolicy(t *testing.T) (*sdk.NetworkPolicy, func())
func (*NetworkPolicyClient) CreateNetworkPolicyWithRequest ¶
func (c *NetworkPolicyClient) CreateNetworkPolicyWithRequest(t *testing.T, request *sdk.CreateNetworkPolicyRequest) (*sdk.NetworkPolicy, func())
func (*NetworkPolicyClient) DropNetworkPolicyFunc ¶
func (c *NetworkPolicyClient) DropNetworkPolicyFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*NetworkPolicyClient) Update ¶ added in v0.94.0
func (c *NetworkPolicyClient) Update(t *testing.T, request *sdk.AlterNetworkPolicyRequest)
type NetworkRuleClient ¶ added in v0.94.0
type NetworkRuleClient struct {
// contains filtered or unexported fields
}
func NewNetworkRuleClient ¶ added in v0.94.0
func NewNetworkRuleClient(context *TestClientContext, idsGenerator *IdsGenerator) *NetworkRuleClient
func (*NetworkRuleClient) Create ¶ added in v0.94.0
func (c *NetworkRuleClient) Create(t *testing.T) (*sdk.NetworkRule, func())
func (*NetworkRuleClient) CreateWithIdentifier ¶ added in v0.94.0
func (c *NetworkRuleClient) CreateWithIdentifier(t *testing.T, id sdk.SchemaObjectIdentifier) (*sdk.NetworkRule, func())
func (*NetworkRuleClient) CreateWithRequest ¶ added in v0.94.0
func (c *NetworkRuleClient) CreateWithRequest(t *testing.T, request *sdk.CreateNetworkRuleRequest) (*sdk.NetworkRule, func())
func (*NetworkRuleClient) DropFunc ¶ added in v0.94.0
func (c *NetworkRuleClient) DropFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type ParameterClient ¶
type ParameterClient struct {
// contains filtered or unexported fields
}
func NewParameterClient ¶
func NewParameterClient(context *TestClientContext) *ParameterClient
func (*ParameterClient) ShowAccountParameter ¶ added in v0.93.0
func (c *ParameterClient) ShowAccountParameter(t *testing.T, parameter sdk.AccountParameter) *sdk.Parameter
func (*ParameterClient) ShowAccountParameters ¶ added in v0.93.0
func (c *ParameterClient) ShowAccountParameters(t *testing.T) []*sdk.Parameter
func (*ParameterClient) ShowDatabaseParameters ¶ added in v0.93.0
func (c *ParameterClient) ShowDatabaseParameters(t *testing.T, id sdk.AccountObjectIdentifier) []*sdk.Parameter
func (*ParameterClient) ShowSchemaParameters ¶ added in v0.94.0
func (c *ParameterClient) ShowSchemaParameters(t *testing.T, id sdk.DatabaseObjectIdentifier) []*sdk.Parameter
func (*ParameterClient) ShowUserParameters ¶ added in v0.94.0
func (c *ParameterClient) ShowUserParameters(t *testing.T, id sdk.AccountObjectIdentifier) []*sdk.Parameter
func (*ParameterClient) ShowWarehouseParameters ¶ added in v0.93.0
func (c *ParameterClient) ShowWarehouseParameters(t *testing.T, id sdk.AccountObjectIdentifier) []*sdk.Parameter
func (*ParameterClient) UnsetAccountParameter ¶ added in v0.93.0
func (c *ParameterClient) UnsetAccountParameter(t *testing.T, parameter sdk.AccountParameter)
TODO [SNOW-1473408]: add unset account parameter to sdk.Parameters
func (*ParameterClient) UpdateAccountParameterTemporarily ¶
func (c *ParameterClient) UpdateAccountParameterTemporarily(t *testing.T, parameter sdk.AccountParameter, newValue string) func()
type PasswordPolicyClient ¶
type PasswordPolicyClient struct {
// contains filtered or unexported fields
}
func NewPasswordPolicyClient ¶
func NewPasswordPolicyClient(context *TestClientContext, idsGenerator *IdsGenerator) *PasswordPolicyClient
func (*PasswordPolicyClient) CreatePasswordPolicy ¶
func (c *PasswordPolicyClient) CreatePasswordPolicy(t *testing.T) (*sdk.PasswordPolicy, func())
func (*PasswordPolicyClient) CreatePasswordPolicyInSchema ¶
func (c *PasswordPolicyClient) CreatePasswordPolicyInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.PasswordPolicy, func())
func (*PasswordPolicyClient) CreatePasswordPolicyInSchemaWithOptions ¶
func (c *PasswordPolicyClient) CreatePasswordPolicyInSchemaWithOptions(t *testing.T, schemaId sdk.DatabaseObjectIdentifier, options *sdk.CreatePasswordPolicyOptions) (*sdk.PasswordPolicy, func())
func (*PasswordPolicyClient) CreatePasswordPolicyWithOptions ¶
func (c *PasswordPolicyClient) CreatePasswordPolicyWithOptions(t *testing.T, options *sdk.CreatePasswordPolicyOptions) (*sdk.PasswordPolicy, func())
func (*PasswordPolicyClient) DropPasswordPolicyFunc ¶
func (c *PasswordPolicyClient) DropPasswordPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type PipeClient ¶
type PipeClient struct {
// contains filtered or unexported fields
}
func NewPipeClient ¶
func NewPipeClient(context *TestClientContext, idsGenerator *IdsGenerator) *PipeClient
func (*PipeClient) CreatePipe ¶
func (*PipeClient) CreatePipeInSchema ¶
func (c *PipeClient) CreatePipeInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier, copyStatement string) (*sdk.Pipe, func())
func (*PipeClient) DropPipeFunc ¶
func (c *PipeClient) DropPipeFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type PolicyReference ¶
type PolicyReference struct { PolicyDb string `db:"POLICY_DB"` PolicySchema string `db:"POLICY_SCHEMA"` PolicyName string `db:"POLICY_NAME"` PolicyKind string `db:"POLICY_KIND"` RefDatabaseName string `db:"REF_DATABASE_NAME"` RefSchemaName string `db:"REF_SCHEMA_NAME"` RefEntityName string `db:"REF_ENTITY_NAME"` RefEntityDomain string `db:"REF_ENTITY_DOMAIN"` RefColumnName sql.NullString `db:"REF_COLUMN_NAME"` RefArgColumnNames string `db:"REF_ARG_COLUMN_NAMES"` TagDatabase sql.NullString `db:"TAG_DATABASE"` TagSchema sql.NullString `db:"TAG_SCHEMA"` TagName sql.NullString `db:"TAG_NAME"` PolicyStatus string `db:"POLICY_STATUS"` }
type ResourceMonitorClient ¶
type ResourceMonitorClient struct {
// contains filtered or unexported fields
}
func NewResourceMonitorClient ¶
func NewResourceMonitorClient(context *TestClientContext, idsGenerator *IdsGenerator) *ResourceMonitorClient
func (*ResourceMonitorClient) CreateResourceMonitor ¶
func (c *ResourceMonitorClient) CreateResourceMonitor(t *testing.T) (*sdk.ResourceMonitor, func())
func (*ResourceMonitorClient) CreateResourceMonitorWithOptions ¶
func (c *ResourceMonitorClient) CreateResourceMonitorWithOptions(t *testing.T, opts *sdk.CreateResourceMonitorOptions) (*sdk.ResourceMonitor, func())
func (*ResourceMonitorClient) DropResourceMonitorFunc ¶
func (c *ResourceMonitorClient) DropResourceMonitorFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
type RoleClient ¶
type RoleClient struct {
// contains filtered or unexported fields
}
func NewRoleClient ¶
func NewRoleClient(context *TestClientContext, idsGenerator *IdsGenerator) *RoleClient
func (*RoleClient) CreateRole ¶
func (c *RoleClient) CreateRole(t *testing.T) (*sdk.Role, func())
func (*RoleClient) CreateRoleGrantedToCurrentUser ¶
func (c *RoleClient) CreateRoleGrantedToCurrentUser(t *testing.T) (*sdk.Role, func())
func (*RoleClient) CreateRoleWithIdentifier ¶ added in v0.92.0
func (c *RoleClient) CreateRoleWithIdentifier(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Role, func())
func (*RoleClient) CreateRoleWithRequest ¶
func (c *RoleClient) CreateRoleWithRequest(t *testing.T, req *sdk.CreateRoleRequest) (*sdk.Role, func())
func (*RoleClient) DropRoleFunc ¶
func (c *RoleClient) DropRoleFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*RoleClient) GrantOwnershipOnAccountObject ¶
func (c *RoleClient) GrantOwnershipOnAccountObject(t *testing.T, roleId sdk.AccountObjectIdentifier, objectId sdk.AccountObjectIdentifier, objectType sdk.ObjectType)
TODO: move later to grants client
func (*RoleClient) GrantOwnershipOnSchemaObject ¶ added in v0.92.0
func (c *RoleClient) GrantOwnershipOnSchemaObject(t *testing.T, roleId sdk.AccountObjectIdentifier, objectId sdk.SchemaObjectIdentifier, objectType sdk.ObjectType, outboundPrivileges sdk.OwnershipCurrentGrantsOutboundPrivileges)
TODO: move later to grants client
func (*RoleClient) GrantPrivilegeOnDatabaseToShare ¶
func (c *RoleClient) GrantPrivilegeOnDatabaseToShare(t *testing.T, databaseId sdk.AccountObjectIdentifier, shareId sdk.AccountObjectIdentifier)
TODO: move later to grants client
func (*RoleClient) GrantRoleToCurrentRole ¶ added in v0.92.0
func (c *RoleClient) GrantRoleToCurrentRole(t *testing.T, id sdk.AccountObjectIdentifier)
func (*RoleClient) GrantRoleToUser ¶ added in v0.92.0
func (c *RoleClient) GrantRoleToUser(t *testing.T, id sdk.AccountObjectIdentifier, userId sdk.AccountObjectIdentifier)
func (*RoleClient) ShowGrantsTo ¶ added in v0.92.0
func (c *RoleClient) ShowGrantsTo(t *testing.T, roleId sdk.AccountObjectIdentifier) []sdk.Grant
TODO: move later to grants client
func (*RoleClient) UseRole ¶
func (c *RoleClient) UseRole(t *testing.T, roleId sdk.AccountObjectIdentifier) func()
type RowAccessPolicyClient ¶
type RowAccessPolicyClient struct {
// contains filtered or unexported fields
}
func NewRowAccessPolicyClient ¶
func NewRowAccessPolicyClient(context *TestClientContext, idsGenerator *IdsGenerator) *RowAccessPolicyClient
func (*RowAccessPolicyClient) CreateRowAccessPolicy ¶
func (c *RowAccessPolicyClient) CreateRowAccessPolicy(t *testing.T) (*sdk.RowAccessPolicy, func())
func (*RowAccessPolicyClient) DropRowAccessPolicyFunc ¶
func (c *RowAccessPolicyClient) DropRowAccessPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
func (*RowAccessPolicyClient) GetRowAccessPolicyFor ¶
func (c *RowAccessPolicyClient) GetRowAccessPolicyFor(t *testing.T, id sdk.SchemaObjectIdentifier, objectType sdk.ObjectType) (*PolicyReference, error)
GetRowAccessPolicyFor is based on https://docs.snowflake.com/en/user-guide/security-row-intro#obtain-database-objects-with-a-row-access-policy. TODO: extract getting row access policies as resource (like getting tag in system functions)
type SchemaClient ¶
type SchemaClient struct {
// contains filtered or unexported fields
}
func NewSchemaClient ¶
func NewSchemaClient(context *TestClientContext, idsGenerator *IdsGenerator) *SchemaClient
func (*SchemaClient) CreateSchema ¶
func (c *SchemaClient) CreateSchema(t *testing.T) (*sdk.Schema, func())
func (*SchemaClient) CreateSchemaInDatabase ¶
func (c *SchemaClient) CreateSchemaInDatabase(t *testing.T, databaseId sdk.AccountObjectIdentifier) (*sdk.Schema, func())
func (*SchemaClient) CreateSchemaWithIdentifier ¶ added in v0.92.0
func (c *SchemaClient) CreateSchemaWithIdentifier(t *testing.T, id sdk.DatabaseObjectIdentifier) (*sdk.Schema, func())
func (*SchemaClient) CreateSchemaWithName ¶
func (*SchemaClient) CreateSchemaWithOpts ¶ added in v0.94.0
func (c *SchemaClient) CreateSchemaWithOpts(t *testing.T, id sdk.DatabaseObjectIdentifier, opts *sdk.CreateSchemaOptions) (*sdk.Schema, func())
func (*SchemaClient) DropSchemaFunc ¶
func (c *SchemaClient) DropSchemaFunc(t *testing.T, id sdk.DatabaseObjectIdentifier) func()
func (*SchemaClient) Show ¶
func (c *SchemaClient) Show(t *testing.T, id sdk.DatabaseObjectIdentifier) (*sdk.Schema, error)
func (*SchemaClient) ShowWithOptions ¶ added in v0.94.1
func (c *SchemaClient) ShowWithOptions(t *testing.T, opts *sdk.ShowSchemaOptions) []sdk.Schema
func (*SchemaClient) UpdateDataRetentionTime ¶
func (c *SchemaClient) UpdateDataRetentionTime(t *testing.T, id sdk.DatabaseObjectIdentifier, days int) func()
func (*SchemaClient) UseDefaultSchema ¶ added in v0.93.0
func (c *SchemaClient) UseDefaultSchema(t *testing.T)
type SecurityIntegrationClient ¶ added in v0.92.0
type SecurityIntegrationClient struct {
// contains filtered or unexported fields
}
func NewSecurityIntegrationClient ¶ added in v0.92.0
func NewSecurityIntegrationClient(context *TestClientContext, idsGenerator *IdsGenerator) *SecurityIntegrationClient
func (*SecurityIntegrationClient) CreateSaml2 ¶ added in v0.92.0
func (c *SecurityIntegrationClient) CreateSaml2(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.SecurityIntegration, func())
func (*SecurityIntegrationClient) CreateSaml2WithRequest ¶ added in v0.92.0
func (c *SecurityIntegrationClient) CreateSaml2WithRequest(t *testing.T, request *sdk.CreateSaml2SecurityIntegrationRequest) (*sdk.SecurityIntegration, func())
func (*SecurityIntegrationClient) CreateScim ¶ added in v0.92.0
func (c *SecurityIntegrationClient) CreateScim(t *testing.T) (*sdk.SecurityIntegration, func())
func (*SecurityIntegrationClient) CreateScimWithRequest ¶ added in v0.92.0
func (c *SecurityIntegrationClient) CreateScimWithRequest(t *testing.T, request *sdk.CreateScimSecurityIntegrationRequest) (*sdk.SecurityIntegration, func())
func (*SecurityIntegrationClient) DropSecurityIntegrationFunc ¶ added in v0.92.0
func (c *SecurityIntegrationClient) DropSecurityIntegrationFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*SecurityIntegrationClient) UpdateExternalOauth ¶ added in v0.93.0
func (c *SecurityIntegrationClient) UpdateExternalOauth(t *testing.T, request *sdk.AlterExternalOauthSecurityIntegrationRequest)
func (*SecurityIntegrationClient) UpdateOauthForClients ¶ added in v0.93.0
func (c *SecurityIntegrationClient) UpdateOauthForClients(t *testing.T, request *sdk.AlterOauthForCustomClientsSecurityIntegrationRequest)
func (*SecurityIntegrationClient) UpdateOauthForPartnerApplications ¶ added in v0.93.0
func (c *SecurityIntegrationClient) UpdateOauthForPartnerApplications(t *testing.T, request *sdk.AlterOauthForPartnerApplicationsSecurityIntegrationRequest)
func (*SecurityIntegrationClient) UpdateSaml2 ¶ added in v0.93.0
func (c *SecurityIntegrationClient) UpdateSaml2(t *testing.T, request *sdk.AlterSaml2SecurityIntegrationRequest)
func (*SecurityIntegrationClient) UpdateSaml2ForceAuthn ¶ added in v0.93.0
func (c *SecurityIntegrationClient) UpdateSaml2ForceAuthn(t *testing.T, id sdk.AccountObjectIdentifier, forceAuthn bool)
type SessionPolicyClient ¶
type SessionPolicyClient struct {
// contains filtered or unexported fields
}
func NewSessionPolicyClient ¶
func NewSessionPolicyClient(context *TestClientContext, idsGenerator *IdsGenerator) *SessionPolicyClient
func (*SessionPolicyClient) CreateSessionPolicy ¶
func (c *SessionPolicyClient) CreateSessionPolicy(t *testing.T) (*sdk.SessionPolicy, func())
func (*SessionPolicyClient) CreateSessionPolicyWithOptions ¶
func (c *SessionPolicyClient) CreateSessionPolicyWithOptions(t *testing.T, id sdk.SchemaObjectIdentifier, request *sdk.CreateSessionPolicyRequest) (*sdk.SessionPolicy, func())
func (*SessionPolicyClient) DropSessionPolicyFunc ¶
func (c *SessionPolicyClient) DropSessionPolicyFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type ShareClient ¶
type ShareClient struct {
// contains filtered or unexported fields
}
func NewShareClient ¶
func NewShareClient(context *TestClientContext, idsGenerator *IdsGenerator) *ShareClient
func (*ShareClient) CreateShare ¶
func (c *ShareClient) CreateShare(t *testing.T) (*sdk.Share, func())
func (*ShareClient) CreateShareWithIdentifier ¶ added in v0.92.0
func (c *ShareClient) CreateShareWithIdentifier(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Share, func())
func (*ShareClient) CreateShareWithOptions ¶
func (c *ShareClient) CreateShareWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateShareOptions) (*sdk.Share, func())
func (*ShareClient) DropShareFunc ¶
func (c *ShareClient) DropShareFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*ShareClient) SetAccountOnShare ¶
func (c *ShareClient) SetAccountOnShare(t *testing.T, accountId sdk.AccountIdentifier, shareId sdk.AccountObjectIdentifier)
type StageClient ¶
type StageClient struct {
// contains filtered or unexported fields
}
func NewStageClient ¶
func NewStageClient(context *TestClientContext, idsGenerator *IdsGenerator) *StageClient
func (*StageClient) CopyIntoTableFromFile ¶
func (c *StageClient) CopyIntoTableFromFile(t *testing.T, table, stage sdk.SchemaObjectIdentifier, filename string)
func (*StageClient) CreateStage ¶
func (c *StageClient) CreateStage(t *testing.T) (*sdk.Stage, func())
func (*StageClient) CreateStageInSchema ¶
func (c *StageClient) CreateStageInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.Stage, func())
func (*StageClient) CreateStageWithDirectory ¶
func (c *StageClient) CreateStageWithDirectory(t *testing.T) (*sdk.Stage, func())
func (*StageClient) CreateStageWithRequest ¶
func (c *StageClient) CreateStageWithRequest(t *testing.T, request *sdk.CreateInternalStageRequest) (*sdk.Stage, func())
func (*StageClient) CreateStageWithURL ¶
func (c *StageClient) CreateStageWithURL(t *testing.T, id sdk.SchemaObjectIdentifier) (*sdk.Stage, func())
func (*StageClient) DropStageFunc ¶
func (c *StageClient) DropStageFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
func (*StageClient) PutOnStage ¶
func (c *StageClient) PutOnStage(t *testing.T, id sdk.SchemaObjectIdentifier, filename string)
func (*StageClient) PutOnStageWithContent ¶
func (c *StageClient) PutOnStageWithContent(t *testing.T, id sdk.SchemaObjectIdentifier, filename string, content string)
type StreamlitClient ¶ added in v0.94.0
type StreamlitClient struct {
// contains filtered or unexported fields
}
func NewStreamlitClient ¶ added in v0.94.0
func NewStreamlitClient(context *TestClientContext, idsGenerator *IdsGenerator) *StreamlitClient
func (*StreamlitClient) Update ¶ added in v0.94.0
func (c *StreamlitClient) Update(t *testing.T, request *sdk.AlterStreamlitRequest)
type TableClient ¶
type TableClient struct {
// contains filtered or unexported fields
}
func NewTableClient ¶
func NewTableClient(context *TestClientContext, idsGenerator *IdsGenerator) *TableClient
func (*TableClient) CreateTable ¶
func (c *TableClient) CreateTable(t *testing.T) (*sdk.Table, func())
func (*TableClient) CreateTableInSchema ¶
func (c *TableClient) CreateTableInSchema(t *testing.T, schemaId sdk.DatabaseObjectIdentifier) (*sdk.Table, func())
func (*TableClient) CreateTableWithColumns ¶
func (c *TableClient) CreateTableWithColumns(t *testing.T, columns []sdk.TableColumnRequest) (*sdk.Table, func())
func (*TableClient) CreateTableWithIdAndColumns ¶ added in v0.92.0
func (c *TableClient) CreateTableWithIdAndColumns(t *testing.T, id sdk.SchemaObjectIdentifier, columns []sdk.TableColumnRequest) (*sdk.Table, func())
func (*TableClient) CreateTableWithName ¶ added in v0.92.0
func (*TableClient) CreateTableWithPredefinedColumns ¶ added in v0.93.0
func (c *TableClient) CreateTableWithPredefinedColumns(t *testing.T) (*sdk.Table, func())
func (*TableClient) DropTableFunc ¶
func (c *TableClient) DropTableFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
func (*TableClient) GetTableColumnsFor ¶
func (c *TableClient) GetTableColumnsFor(t *testing.T, tableId sdk.SchemaObjectIdentifier) []InformationSchemaColumns
GetTableColumnsFor is based on https://docs.snowflake.com/en/sql-reference/info-schema/columns. TODO: extract getting table columns as resource (like getting tag in system functions)
func (*TableClient) SetDataRetentionTime ¶ added in v0.92.0
func (c *TableClient) SetDataRetentionTime(t *testing.T, id sdk.SchemaObjectIdentifier, days int)
type TagClient ¶
type TagClient struct {
// contains filtered or unexported fields
}
func NewTagClient ¶
func NewTagClient(context *TestClientContext, idsGenerator *IdsGenerator) *TagClient
func (*TagClient) CreateTagInSchema ¶
func (*TagClient) DropTagFunc ¶
func (c *TagClient) DropTagFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type TaskClient ¶
type TaskClient struct {
// contains filtered or unexported fields
}
func NewTaskClient ¶
func NewTaskClient(context *TestClientContext, idsGenerator *IdsGenerator) *TaskClient
func (*TaskClient) CreateTask ¶
func (c *TaskClient) CreateTask(t *testing.T) (*sdk.Task, func())
func (*TaskClient) CreateTaskWithAfter ¶
func (c *TaskClient) CreateTaskWithAfter(t *testing.T, taskId sdk.SchemaObjectIdentifier) (*sdk.Task, func())
func (*TaskClient) CreateTaskWithRequest ¶
func (c *TaskClient) CreateTaskWithRequest(t *testing.T, request *sdk.CreateTaskRequest) (*sdk.Task, func())
func (*TaskClient) DropTaskFunc ¶
func (c *TaskClient) DropTaskFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
type TestClient ¶
type TestClient struct { Ids *IdsGenerator Account *AccountClient Alert *AlertClient ApiIntegration *ApiIntegrationClient Application *ApplicationClient ApplicationPackage *ApplicationPackageClient Context *ContextClient CortexSearchService *CortexSearchServiceClient CatalogIntegration *CatalogIntegrationClient Database *DatabaseClient DatabaseRole *DatabaseRoleClient DynamicTable *DynamicTableClient ExternalAccessIntegration *ExternalAccessIntegrationClient ExternalVolume *ExternalVolumeClient FailoverGroup *FailoverGroupClient FileFormat *FileFormatClient MaskingPolicy *MaskingPolicyClient MaterializedView *MaterializedViewClient NetworkPolicy *NetworkPolicyClient NetworkRule *NetworkRuleClient Parameter *ParameterClient PasswordPolicy *PasswordPolicyClient Pipe *PipeClient ResourceMonitor *ResourceMonitorClient Role *RoleClient RowAccessPolicy *RowAccessPolicyClient Schema *SchemaClient SecurityIntegration *SecurityIntegrationClient SessionPolicy *SessionPolicyClient Stage *StageClient Streamlit *StreamlitClient Table *TableClient Tag *TagClient Task *TaskClient User *UserClient View *ViewClient Warehouse *WarehouseClient // contains filtered or unexported fields }
func NewTestClient ¶
type TestClientContext ¶
type TestClientContext struct {
// contains filtered or unexported fields
}
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
func NewUserClient ¶
func NewUserClient(context *TestClientContext, idsGenerator *IdsGenerator) *UserClient
func (*UserClient) CreateUser ¶
func (c *UserClient) CreateUser(t *testing.T) (*sdk.User, func())
func (*UserClient) CreateUserWithOptions ¶
func (c *UserClient) CreateUserWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateUserOptions) (*sdk.User, func())
func (*UserClient) CreateUserWithPrefix ¶ added in v0.92.0
func (*UserClient) DropUserFunc ¶
func (c *UserClient) DropUserFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*UserClient) Show ¶ added in v0.94.0
func (c *UserClient) Show(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.User, error)
type ViewClient ¶
type ViewClient struct {
// contains filtered or unexported fields
}
func NewViewClient ¶
func NewViewClient(context *TestClientContext, idsGenerator *IdsGenerator) *ViewClient
func (*ViewClient) CreateView ¶
func (*ViewClient) DropViewFunc ¶
func (c *ViewClient) DropViewFunc(t *testing.T, id sdk.SchemaObjectIdentifier) func()
func (*ViewClient) RecreateView ¶ added in v0.92.0
func (c *ViewClient) RecreateView(t *testing.T, id sdk.SchemaObjectIdentifier, query string) *sdk.View
type WarehouseClient ¶
type WarehouseClient struct {
// contains filtered or unexported fields
}
func NewWarehouseClient ¶
func NewWarehouseClient(context *TestClientContext, idsGenerator *IdsGenerator) *WarehouseClient
func (*WarehouseClient) CreateWarehouse ¶
func (c *WarehouseClient) CreateWarehouse(t *testing.T) (*sdk.Warehouse, func())
func (*WarehouseClient) CreateWarehouseWithOptions ¶
func (c *WarehouseClient) CreateWarehouseWithOptions(t *testing.T, id sdk.AccountObjectIdentifier, opts *sdk.CreateWarehouseOptions) (*sdk.Warehouse, func())
func (*WarehouseClient) DropWarehouseFunc ¶
func (c *WarehouseClient) DropWarehouseFunc(t *testing.T, id sdk.AccountObjectIdentifier) func()
func (*WarehouseClient) Show ¶
func (c *WarehouseClient) Show(t *testing.T, id sdk.AccountObjectIdentifier) (*sdk.Warehouse, error)
func (*WarehouseClient) Suspend ¶ added in v0.93.0
func (c *WarehouseClient) Suspend(t *testing.T, id sdk.AccountObjectIdentifier)
func (*WarehouseClient) UnsetStatementTimeoutInSeconds ¶ added in v0.93.0
func (c *WarehouseClient) UnsetStatementTimeoutInSeconds(t *testing.T, id sdk.AccountObjectIdentifier)
func (*WarehouseClient) UpdateAutoResume ¶ added in v0.93.0
func (c *WarehouseClient) UpdateAutoResume(t *testing.T, id sdk.AccountObjectIdentifier, newAutoResume bool)
func (*WarehouseClient) UpdateAutoSuspend ¶ added in v0.93.0
func (c *WarehouseClient) UpdateAutoSuspend(t *testing.T, id sdk.AccountObjectIdentifier, newAutoSuspend int)
func (*WarehouseClient) UpdateMaxConcurrencyLevel ¶
func (c *WarehouseClient) UpdateMaxConcurrencyLevel(t *testing.T, id sdk.AccountObjectIdentifier, level int)
func (*WarehouseClient) UpdateStatementTimeoutInSeconds ¶ added in v0.93.0
func (c *WarehouseClient) UpdateStatementTimeoutInSeconds(t *testing.T, id sdk.AccountObjectIdentifier, newValue int)
func (*WarehouseClient) UpdateWarehouseSize ¶ added in v0.93.0
func (c *WarehouseClient) UpdateWarehouseSize(t *testing.T, id sdk.AccountObjectIdentifier, newSize sdk.WarehouseSize)
func (*WarehouseClient) UpdateWarehouseType ¶ added in v0.93.0
func (c *WarehouseClient) UpdateWarehouseType(t *testing.T, id sdk.AccountObjectIdentifier, newType sdk.WarehouseType)
func (*WarehouseClient) UseWarehouse ¶
func (c *WarehouseClient) UseWarehouse(t *testing.T, id sdk.AccountObjectIdentifier) func()
Source Files ¶
- account_client.go
- alert_client.go
- api_integration_client.go
- application_client.go
- application_package_client.go
- catalog_client.go
- common.go
- context_client.go
- cortex_search_service_client.go
- database_client.go
- database_role_client.go
- dynamic_table_client.go
- external_access_integration_client.go
- external_volume_client.go
- failover_group_client.go
- file_format_client.go
- ids_generator.go
- masking_policy_client.go
- materialized_view_client.go
- network_policy_client.go
- network_rule_client.go
- parameter_client.go
- password_policy_client.go
- pipe_client.go
- resource_monitor_client.go
- role_client.go
- row_access_policy_client.go
- schema_client.go
- security_integration_client.go
- session_policy_client.go
- share_client.go
- stage_client.go
- streamlit.go
- table_client.go
- tag_client.go
- task_client.go
- test_client.go
- user_client.go
- view_client.go
- warehouse_client.go