Documentation ¶
Index ¶
- Constants
- Variables
- func Bool(b bool) *bool
- func DefaultConfig() *gosnowflake.Config
- func EnvConfig() *gosnowflake.Config
- func ErrExactlyOneOf(structName string, fieldNames ...string) error
- func ErrOneOf(structName string, fieldNames ...string) error
- func ErrorsEqual(t *testing.T, expected error, actual error)
- func Float64(f float64) *float64
- func GetValidDateFormats(f DateFormat, includeAuto bool) []string
- func Int(i int) *int
- func IsValidDataType(v string) bool
- func IsValidWarehouseSize(v string) bool
- func JoinErrors(errs ...error) error
- func MergeConfig(baseConfig *gosnowflake.Config, mergeConfig *gosnowflake.Config) *gosnowflake.Config
- func NewError(message string, nestedErrors ...error) error
- func Pointer[K any](v K) *K
- func ProfileConfig(profile string) (*gosnowflake.Config, error)
- func String(s string) *string
- func Sweep(client *Client, prefix string) error
- func SweepAll(client *Client) error
- func ToBool(s string) bool
- func ToFloat64(s string) float64
- func ToInt(s string) int
- func ValidObjectIdentifier(objectIdentifier ObjectIdentifier) bool
- func ValidateIdentifier(val interface{}, exclusions []string) (warns []string, errs []error)
- type Account
- type AccountDrop
- type AccountEdition
- type AccountIdentifier
- type AccountLevelParameters
- type AccountLevelParametersUnset
- type AccountObjectIdentifier
- type AccountObjectPrivilege
- type AccountParameter
- type AccountParameters
- type AccountParametersUnset
- type AccountRename
- type AccountRoleGrantOn
- type AccountRoleGrantPrivileges
- type AccountSet
- type AccountUnset
- type Accounts
- type AddDelegatedAuthorization
- type AddRowAccessPolicyRequest
- type AddSearchOptimization
- type Alert
- type AlertAction
- type AlertCondition
- type AlertDetails
- type AlertSet
- type AlertState
- type AlertUnset
- type Alerts
- type AllowedValue
- type AllowedValues
- type AlterAccountOptions
- type AlterAlertOptions
- type AlterDatabaseFailoverOptions
- type AlterDatabaseOptions
- type AlterDatabaseReplicationOptions
- type AlterDatabaseRoleRequest
- func (s *AlterDatabaseRoleRequest) WithIfExists(ifExists bool) *AlterDatabaseRoleRequest
- func (s *AlterDatabaseRoleRequest) WithRename(name DatabaseObjectIdentifier) *AlterDatabaseRoleRequest
- func (s *AlterDatabaseRoleRequest) WithSetComment(comment string) *AlterDatabaseRoleRequest
- func (s *AlterDatabaseRoleRequest) WithUnsetComment() *AlterDatabaseRoleRequest
- type AlterDirectoryTableStageOptions
- type AlterDirectoryTableStageRequest
- func (s *AlterDirectoryTableStageRequest) WithIfExists(IfExists *bool) *AlterDirectoryTableStageRequest
- func (s *AlterDirectoryTableStageRequest) WithRefresh(Refresh *DirectoryTableRefreshRequest) *AlterDirectoryTableStageRequest
- func (s *AlterDirectoryTableStageRequest) WithSetDirectory(SetDirectory *DirectoryTableSetRequest) *AlterDirectoryTableStageRequest
- type AlterDynamicTableRequest
- func (s *AlterDynamicTableRequest) WithRefresh(refresh *bool) *AlterDynamicTableRequest
- func (s *AlterDynamicTableRequest) WithResume(resume *bool) *AlterDynamicTableRequest
- func (s *AlterDynamicTableRequest) WithSet(set *DynamicTableSetRequest) *AlterDynamicTableRequest
- func (s *AlterDynamicTableRequest) WithSuspend(suspend *bool) *AlterDynamicTableRequest
- type AlterEventTableOptions
- type AlterEventTableRequest
- func (s *AlterEventTableRequest) WithAddRowAccessPolicy(AddRowAccessPolicy *EventTableAddRowAccessPolicyRequest) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithClusteringAction(ClusteringAction *EventTableClusteringActionRequest) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithDropAllRowAccessPolicies(DropAllRowAccessPolicies *bool) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithDropAndAddRowAccessPolicy(DropAndAddRowAccessPolicy *EventTableDropAndAddRowAccessPolicyRequest) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithDropRowAccessPolicy(DropRowAccessPolicy *EventTableDropRowAccessPolicyRequest) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithIfNotExists(IfNotExists *bool) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithSearchOptimizationAction(SearchOptimizationAction *EventTableSearchOptimizationActionRequest) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithSet(Set *EventTableSetRequest) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithSetTags(SetTags []TagAssociation) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithUnset(Unset *EventTableUnsetRequest) *AlterEventTableRequest
- func (s *AlterEventTableRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterEventTableRequest
- type AlterExternalAzureStageStageOptions
- type AlterExternalAzureStageStageRequest
- func (s *AlterExternalAzureStageStageRequest) WithComment(Comment *string) *AlterExternalAzureStageStageRequest
- func (s *AlterExternalAzureStageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterExternalAzureStageStageRequest
- func (s *AlterExternalAzureStageStageRequest) WithExternalStageParams(ExternalStageParams *ExternalAzureStageParamsRequest) *AlterExternalAzureStageStageRequest
- func (s *AlterExternalAzureStageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterExternalAzureStageStageRequest
- func (s *AlterExternalAzureStageStageRequest) WithIfExists(IfExists *bool) *AlterExternalAzureStageStageRequest
- type AlterExternalGCSStageStageOptions
- type AlterExternalGCSStageStageRequest
- func (s *AlterExternalGCSStageStageRequest) WithComment(Comment *string) *AlterExternalGCSStageStageRequest
- func (s *AlterExternalGCSStageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterExternalGCSStageStageRequest
- func (s *AlterExternalGCSStageStageRequest) WithExternalStageParams(ExternalStageParams *ExternalGCSStageParamsRequest) *AlterExternalGCSStageStageRequest
- func (s *AlterExternalGCSStageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterExternalGCSStageStageRequest
- func (s *AlterExternalGCSStageStageRequest) WithIfExists(IfExists *bool) *AlterExternalGCSStageStageRequest
- type AlterExternalS3StageStageOptions
- type AlterExternalS3StageStageRequest
- func (s *AlterExternalS3StageStageRequest) WithComment(Comment *string) *AlterExternalS3StageStageRequest
- func (s *AlterExternalS3StageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterExternalS3StageStageRequest
- func (s *AlterExternalS3StageStageRequest) WithExternalStageParams(ExternalStageParams *ExternalS3StageParamsRequest) *AlterExternalS3StageStageRequest
- func (s *AlterExternalS3StageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterExternalS3StageStageRequest
- func (s *AlterExternalS3StageStageRequest) WithIfExists(IfExists *bool) *AlterExternalS3StageStageRequest
- type AlterExternalTableOptions
- type AlterExternalTablePartitionOptions
- type AlterExternalTablePartitionRequest
- func (s *AlterExternalTablePartitionRequest) WithAddPartitions(addPartitions []*PartitionRequest) *AlterExternalTablePartitionRequest
- func (s *AlterExternalTablePartitionRequest) WithDropPartition(dropPartition *bool) *AlterExternalTablePartitionRequest
- func (s *AlterExternalTablePartitionRequest) WithIfExists(ifExists *bool) *AlterExternalTablePartitionRequest
- func (s *AlterExternalTablePartitionRequest) WithLocation(location string) *AlterExternalTablePartitionRequest
- type AlterExternalTableRequest
- func (s *AlterExternalTableRequest) WithAddFiles(addFiles []*ExternalTableFileRequest) *AlterExternalTableRequest
- func (s *AlterExternalTableRequest) WithAutoRefresh(autoRefresh *bool) *AlterExternalTableRequest
- func (s *AlterExternalTableRequest) WithIfExists(ifExists *bool) *AlterExternalTableRequest
- func (s *AlterExternalTableRequest) WithRefresh(refresh *RefreshExternalTableRequest) *AlterExternalTableRequest
- func (s *AlterExternalTableRequest) WithRemoveFiles(removeFiles []*ExternalTableFileRequest) *AlterExternalTableRequest
- func (s *AlterExternalTableRequest) WithSetTag(setTag []*TagAssociationRequest) *AlterExternalTableRequest
- func (s *AlterExternalTableRequest) WithUnsetTag(unsetTag []ObjectIdentifier) *AlterExternalTableRequest
- type AlterFileFormatOptions
- type AlterFileFormatRenameOptions
- type AlterInternalStageStageOptions
- type AlterInternalStageStageRequest
- func (s *AlterInternalStageStageRequest) WithComment(Comment *string) *AlterInternalStageStageRequest
- func (s *AlterInternalStageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterInternalStageStageRequest
- func (s *AlterInternalStageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterInternalStageStageRequest
- func (s *AlterInternalStageStageRequest) WithIfExists(IfExists *bool) *AlterInternalStageStageRequest
- type AlterMaskingPolicyOptions
- type AlterNetworkPolicyOptions
- type AlterNetworkPolicyRequest
- func (s *AlterNetworkPolicyRequest) WithIfExists(IfExists *bool) *AlterNetworkPolicyRequest
- func (s *AlterNetworkPolicyRequest) WithRenameTo(RenameTo *AccountObjectIdentifier) *AlterNetworkPolicyRequest
- func (s *AlterNetworkPolicyRequest) WithSet(Set *NetworkPolicySetRequest) *AlterNetworkPolicyRequest
- func (s *AlterNetworkPolicyRequest) WithUnsetComment(UnsetComment *bool) *AlterNetworkPolicyRequest
- type AlterPasswordPolicyOptions
- type AlterPipeOptions
- type AlterProcedureOptions
- type AlterProcedureRequest
- func (s *AlterProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithIfExists(IfExists *bool) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithSetComment(SetComment *string) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithSetLogLevel(SetLogLevel *string) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithSetTags(SetTags []TagAssociation) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithSetTraceLevel(SetTraceLevel *string) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithUnsetComment(UnsetComment *bool) *AlterProcedureRequest
- func (s *AlterProcedureRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterProcedureRequest
- type AlterResourceMonitorOptions
- type AlterRoleOptions
- type AlterRoleRequest
- func (s *AlterRoleRequest) WithIfExists(ifExists bool) *AlterRoleRequest
- func (s *AlterRoleRequest) WithRenameTo(renameTo AccountObjectIdentifier) *AlterRoleRequest
- func (s *AlterRoleRequest) WithSetComment(setComment string) *AlterRoleRequest
- func (s *AlterRoleRequest) WithSetTags(setTags []TagAssociation) *AlterRoleRequest
- func (s *AlterRoleRequest) WithUnsetComment(unsetComment bool) *AlterRoleRequest
- func (s *AlterRoleRequest) WithUnsetTags(unsetTags []ObjectIdentifier) *AlterRoleRequest
- type AlterSchemaOptions
- type AlterSessionOptions
- type AlterSessionPolicyOptions
- type AlterSessionPolicyRequest
- func (s *AlterSessionPolicyRequest) WithIfExists(IfExists *bool) *AlterSessionPolicyRequest
- func (s *AlterSessionPolicyRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterSessionPolicyRequest
- func (s *AlterSessionPolicyRequest) WithSet(Set *SessionPolicySetRequest) *AlterSessionPolicyRequest
- func (s *AlterSessionPolicyRequest) WithSetTags(SetTags []TagAssociation) *AlterSessionPolicyRequest
- func (s *AlterSessionPolicyRequest) WithUnset(Unset *SessionPolicyUnsetRequest) *AlterSessionPolicyRequest
- func (s *AlterSessionPolicyRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterSessionPolicyRequest
- type AlterShareOptions
- type AlterSourceFailoverGroupOptions
- type AlterStageOptions
- type AlterStageRequest
- func (s *AlterStageRequest) WithIfExists(IfExists *bool) *AlterStageRequest
- func (s *AlterStageRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterStageRequest
- func (s *AlterStageRequest) WithSetTags(SetTags []TagAssociation) *AlterStageRequest
- func (s *AlterStageRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterStageRequest
- type AlterStreamOptions
- type AlterStreamRequest
- func (s *AlterStreamRequest) WithIfExists(IfExists *bool) *AlterStreamRequest
- func (s *AlterStreamRequest) WithSetComment(SetComment *string) *AlterStreamRequest
- func (s *AlterStreamRequest) WithSetTags(SetTags []TagAssociation) *AlterStreamRequest
- func (s *AlterStreamRequest) WithUnsetComment(UnsetComment *bool) *AlterStreamRequest
- func (s *AlterStreamRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterStreamRequest
- type AlterTableRequest
- func (s *AlterTableRequest) WithAddRowAccessPolicy(addRowAccessPolicy *TableAddRowAccessPolicyRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithClusteringAction(clusteringAction *TableClusteringActionRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithColumnAction(columnAction *TableColumnActionRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithConstraintAction(constraintAction *TableConstraintActionRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithDropAllAccessRowPolicies(dropAllAccessRowPolicies *bool) *AlterTableRequest
- func (s *AlterTableRequest) WithDropAndAddRowAccessPolicy(dropAndAddRowAccessPolicy *TableDropAndAddRowAccessPolicy) *AlterTableRequest
- func (s *AlterTableRequest) WithDropRowAccessPolicy(dropRowAccessPolicy *TableDropRowAccessPolicyRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithExternalTableAction(externalTableAction *TableExternalTableActionRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithIfExists(ifExists *bool) *AlterTableRequest
- func (s *AlterTableRequest) WithNewName(newName *SchemaObjectIdentifier) *AlterTableRequest
- func (s *AlterTableRequest) WithSearchOptimizationAction(searchOptimizationAction *TableSearchOptimizationActionRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithSet(set *TableSetRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithSetTags(setTags []TagAssociationRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithSwapWith(swapWith *SchemaObjectIdentifier) *AlterTableRequest
- func (s *AlterTableRequest) WithUnset(unset *TableUnsetRequest) *AlterTableRequest
- func (s *AlterTableRequest) WithUnsetTags(unsetTags []ObjectIdentifier) *AlterTableRequest
- type AlterTagRequest
- func (s *AlterTagRequest) WithAdd(values []string) *AlterTagRequest
- func (s *AlterTagRequest) WithDrop(values []string) *AlterTagRequest
- func (s *AlterTagRequest) WithRename(name SchemaObjectIdentifier) *AlterTagRequest
- func (s *AlterTagRequest) WithSet(request *TagSetRequest) *AlterTagRequest
- func (s *AlterTagRequest) WithUnset(request *TagUnsetRequest) *AlterTagRequest
- type AlterTargetFailoverGroupOptions
- type AlterTaskOptions
- type AlterTaskRequest
- func (s *AlterTaskRequest) WithAddAfter(AddAfter []SchemaObjectIdentifier) *AlterTaskRequest
- func (s *AlterTaskRequest) WithIfExists(IfExists *bool) *AlterTaskRequest
- func (s *AlterTaskRequest) WithModifyAs(ModifyAs *string) *AlterTaskRequest
- func (s *AlterTaskRequest) WithModifyWhen(ModifyWhen *string) *AlterTaskRequest
- func (s *AlterTaskRequest) WithRemoveAfter(RemoveAfter []SchemaObjectIdentifier) *AlterTaskRequest
- func (s *AlterTaskRequest) WithResume(Resume *bool) *AlterTaskRequest
- func (s *AlterTaskRequest) WithSet(Set *TaskSetRequest) *AlterTaskRequest
- func (s *AlterTaskRequest) WithSetTags(SetTags []TagAssociation) *AlterTaskRequest
- func (s *AlterTaskRequest) WithSuspend(Suspend *bool) *AlterTaskRequest
- func (s *AlterTaskRequest) WithUnset(Unset *TaskUnsetRequest) *AlterTaskRequest
- func (s *AlterTaskRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterTaskRequest
- type AlterUserOptions
- type AlterViewOptions
- type AlterViewRequest
- func (s *AlterViewRequest) WithAddRowAccessPolicy(AddRowAccessPolicy *ViewAddRowAccessPolicyRequest) *AlterViewRequest
- func (s *AlterViewRequest) WithDropAllRowAccessPolicies(DropAllRowAccessPolicies *bool) *AlterViewRequest
- func (s *AlterViewRequest) WithDropAndAddRowAccessPolicy(DropAndAddRowAccessPolicy *ViewDropAndAddRowAccessPolicyRequest) *AlterViewRequest
- func (s *AlterViewRequest) WithDropRowAccessPolicy(DropRowAccessPolicy *ViewDropRowAccessPolicyRequest) *AlterViewRequest
- func (s *AlterViewRequest) WithIfExists(IfExists *bool) *AlterViewRequest
- func (s *AlterViewRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterViewRequest
- func (s *AlterViewRequest) WithSetChangeTracking(SetChangeTracking *bool) *AlterViewRequest
- func (s *AlterViewRequest) WithSetComment(SetComment *string) *AlterViewRequest
- func (s *AlterViewRequest) WithSetMaskingPolicyOnColumn(SetMaskingPolicyOnColumn *ViewSetColumnMaskingPolicyRequest) *AlterViewRequest
- func (s *AlterViewRequest) WithSetSecure(SetSecure *bool) *AlterViewRequest
- func (s *AlterViewRequest) WithSetTags(SetTags []TagAssociation) *AlterViewRequest
- func (s *AlterViewRequest) WithSetTagsOnColumn(SetTagsOnColumn *ViewSetColumnTagsRequest) *AlterViewRequest
- func (s *AlterViewRequest) WithUnsetComment(UnsetComment *bool) *AlterViewRequest
- func (s *AlterViewRequest) WithUnsetMaskingPolicyOnColumn(UnsetMaskingPolicyOnColumn *ViewUnsetColumnMaskingPolicyRequest) *AlterViewRequest
- func (s *AlterViewRequest) WithUnsetSecure(UnsetSecure *bool) *AlterViewRequest
- func (s *AlterViewRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterViewRequest
- func (s *AlterViewRequest) WithUnsetTagsOnColumn(UnsetTagsOnColumn *ViewUnsetColumnTagsRequest) *AlterViewRequest
- type AlterWarehouseOptions
- type ApplicationRole
- type ApplicationRoles
- type AvroCompression
- type BinaryFormat
- type BinaryInputFormat
- type BinaryOutputFormat
- type BoolProperty
- type CSVCompression
- type CSVEncoding
- type Client
- func (c *Client) Close() error
- func (c *Client) ExecForTests(ctx context.Context, sql string) (sql.Result, error)
- func (c *Client) ExecUnsafe(ctx context.Context, sql string) (sql.Result, error)
- func (c *Client) GetAccountLocator() string
- func (c *Client) GetConfig() *gosnowflake.Config
- func (c *Client) GetConn() *sqlx.DB
- func (c *Client) Ping() error
- func (c *Client) QueryForTests(ctx context.Context, dest interface{}, sql string) error
- func (c *Client) QueryOneForTests(ctx context.Context, dest interface{}, sql string) error
- func (c *Client) QueryUnsafe(ctx context.Context, sql string) ([]map[string]*any, error)
- func (c *Client) TraceLogs() []string
- type Clone
- type CloneMoment
- type ClonePoint
- type ClonePointRequest
- type CloneStreamOptions
- type CloneStreamRequest
- type CloneTaskOptions
- type CloneTaskRequest
- type CloudProviderParams
- type CloudProviderParamsRequest
- type CloudType
- type ColumnAddForeignKey
- type ColumnAddForeignKeyRequest
- type ColumnConstraintType
- type ColumnDefaultValue
- type ColumnDefaultValueRequest
- type ColumnIdentity
- type ColumnIdentityRequest
- type ColumnInlineConstraint
- type ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithDeferrable(deferrable *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithDisable(disable *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithEnable(enable *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithEnforced(enforced *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithForeignKey(foreignKey *InlineForeignKeyRequest) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithInitiallyDeferred(initiallyDeferred *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithInitiallyImmediate(initiallyImmediate *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithNoRely(noRely *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithNoValidate(noValidate *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithNotDeferrable(notDeferrable *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithNotEnforced(notEnforced *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithRely(rely *bool) *ColumnInlineConstraintRequest
- func (s *ColumnInlineConstraintRequest) WithValidate(validate *bool) *ColumnInlineConstraintRequest
- type ColumnMaskingPolicy
- type ColumnMaskingPolicyRequest
- type Comments
- type ContextFunctions
- type ConversionFunctions
- type CreateAccountOptions
- type CreateAlertOptions
- type CreateDatabaseOptions
- type CreateDatabaseRoleRequest
- type CreateDeltaLakeExternalTableOptions
- type CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithAutoRefresh(autoRefresh *bool) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithColumns(columns []*ExternalTableColumnRequest) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithComment(comment *string) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithCopyGrants(copyGrants *bool) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithDeltaTableFormat(deltaTableFormat *bool) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithIfNotExists(ifNotExists *bool) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithOrReplace(orReplace *bool) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithPartitionBy(partitionBy []string) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithRefreshOnCreate(refreshOnCreate *bool) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithTag(tag []*TagAssociationRequest) *CreateDeltaLakeExternalTableRequest
- func (s *CreateDeltaLakeExternalTableRequest) WithUserSpecifiedPartitionType(userSpecifiedPartitionType *bool) *CreateDeltaLakeExternalTableRequest
- type CreateDynamicTableRequest
- type CreateEventTableOptions
- type CreateEventTableRequest
- func (s *CreateEventTableRequest) WithChangeTracking(ChangeTracking *bool) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithClusterBy(ClusterBy []string) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithComment(Comment *string) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithCopyGrants(CopyGrants *bool) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithDataRetentionTimeInDays(DataRetentionTimeInDays *int) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithDefaultDdlCollation(DefaultDdlCollation *string) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithIfNotExists(IfNotExists *bool) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithMaxDataExtensionTimeInDays(MaxDataExtensionTimeInDays *int) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithOrReplace(OrReplace *bool) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithRowAccessPolicy(RowAccessPolicy *TableRowAccessPolicy) *CreateEventTableRequest
- func (s *CreateEventTableRequest) WithTag(Tag []TagAssociation) *CreateEventTableRequest
- type CreateExternalTableOptions
- type CreateExternalTableRequest
- func (s *CreateExternalTableRequest) GetColumns() []*ExternalTableColumnRequest
- func (s *CreateExternalTableRequest) WithAutoRefresh(autoRefresh *bool) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithAwsSnsTopic(awsSnsTopic *string) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithColumns(columns []*ExternalTableColumnRequest) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithComment(comment *string) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithCopyGrants(copyGrants *bool) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithIfNotExists(ifNotExists *bool) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithOrReplace(orReplace *bool) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithPartitionBy(partitionBy []string) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithPattern(pattern *string) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithRefreshOnCreate(refreshOnCreate *bool) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateExternalTableRequest
- func (s *CreateExternalTableRequest) WithTag(tag []*TagAssociationRequest) *CreateExternalTableRequest
- type CreateExternalTableUsingTemplateOptions
- type CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithAutoRefresh(autoRefresh *bool) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithAwsSnsTopic(awsSnsTopic *string) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithComment(comment *string) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithCopyGrants(copyGrants *bool) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithOrReplace(orReplace *bool) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithPartitionBy(partitionBy []string) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithPattern(pattern *string) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithQuery(query string) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithRefreshOnCreate(refreshOnCreate *bool) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateExternalTableUsingTemplateRequest
- func (s *CreateExternalTableUsingTemplateRequest) WithTag(tag []*TagAssociationRequest) *CreateExternalTableUsingTemplateRequest
- type CreateFailoverGroupOptions
- type CreateFileFormatOptions
- type CreateForJavaProcedureOptions
- type CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithComment(Comment *string) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithExternalAccessIntegrations(ExternalAccessIntegrations []AccountObjectIdentifier) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithImports(Imports []ProcedureImportRequest) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithProcedureDefinition(ProcedureDefinition *string) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithSecrets(Secrets []Secret) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithSecure(Secure *bool) *CreateForJavaProcedureRequest
- func (s *CreateForJavaProcedureRequest) WithTargetPath(TargetPath *string) *CreateForJavaProcedureRequest
- type CreateForJavaScriptProcedureOptions
- type CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithComment(Comment *string) *CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithNotNull(NotNull *bool) *CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForJavaScriptProcedureRequest
- func (s *CreateForJavaScriptProcedureRequest) WithSecure(Secure *bool) *CreateForJavaScriptProcedureRequest
- type CreateForPythonProcedureOptions
- type CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithComment(Comment *string) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithExternalAccessIntegrations(ExternalAccessIntegrations []AccountObjectIdentifier) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithImports(Imports []ProcedureImportRequest) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithProcedureDefinition(ProcedureDefinition *string) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithSecrets(Secrets []Secret) *CreateForPythonProcedureRequest
- func (s *CreateForPythonProcedureRequest) WithSecure(Secure *bool) *CreateForPythonProcedureRequest
- type CreateForSQLProcedureOptions
- type CreateForSQLProcedureRequest
- func (s *CreateForSQLProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForSQLProcedureRequest
- func (s *CreateForSQLProcedureRequest) WithComment(Comment *string) *CreateForSQLProcedureRequest
- func (s *CreateForSQLProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForSQLProcedureRequest
- func (s *CreateForSQLProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForSQLProcedureRequest
- func (s *CreateForSQLProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForSQLProcedureRequest
- func (s *CreateForSQLProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForSQLProcedureRequest
- func (s *CreateForSQLProcedureRequest) WithSecure(Secure *bool) *CreateForSQLProcedureRequest
- type CreateForScalaProcedureOptions
- type CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithComment(Comment *string) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithImports(Imports []ProcedureImportRequest) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithProcedureDefinition(ProcedureDefinition *string) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithSecure(Secure *bool) *CreateForScalaProcedureRequest
- func (s *CreateForScalaProcedureRequest) WithTargetPath(TargetPath *string) *CreateForScalaProcedureRequest
- type CreateInternalStageOptions
- type CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithComment(Comment *string) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *InternalDirectoryTableOptionsRequest) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithEncryption(Encryption *InternalStageEncryptionRequest) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithIfNotExists(IfNotExists *bool) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithOrReplace(OrReplace *bool) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithTag(Tag []TagAssociation) *CreateInternalStageRequest
- func (s *CreateInternalStageRequest) WithTemporary(Temporary *bool) *CreateInternalStageRequest
- type CreateMaskingPolicyOptions
- type CreateNetworkPolicyOptions
- type CreateNetworkPolicyRequest
- func (r *CreateNetworkPolicyRequest) GetName() AccountObjectIdentifier
- func (s *CreateNetworkPolicyRequest) WithAllowedIpList(AllowedIpList []IPRequest) *CreateNetworkPolicyRequest
- func (s *CreateNetworkPolicyRequest) WithBlockedIpList(BlockedIpList []IPRequest) *CreateNetworkPolicyRequest
- func (s *CreateNetworkPolicyRequest) WithComment(Comment *string) *CreateNetworkPolicyRequest
- func (s *CreateNetworkPolicyRequest) WithOrReplace(OrReplace *bool) *CreateNetworkPolicyRequest
- type CreateOnAzureStageOptions
- type CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithComment(Comment *string) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalAzureDirectoryTableOptionsRequest) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithExternalStageParams(ExternalStageParams *ExternalAzureStageParamsRequest) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithOrReplace(OrReplace *bool) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithTag(Tag []TagAssociation) *CreateOnAzureStageRequest
- func (s *CreateOnAzureStageRequest) WithTemporary(Temporary *bool) *CreateOnAzureStageRequest
- type CreateOnDirectoryTableStreamOptions
- type CreateOnDirectoryTableStreamRequest
- func (s *CreateOnDirectoryTableStreamRequest) WithComment(Comment *string) *CreateOnDirectoryTableStreamRequest
- func (s *CreateOnDirectoryTableStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnDirectoryTableStreamRequest
- func (s *CreateOnDirectoryTableStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnDirectoryTableStreamRequest
- func (s *CreateOnDirectoryTableStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnDirectoryTableStreamRequest
- type CreateOnExternalTableStreamOptions
- type CreateOnExternalTableStreamRequest
- func (s *CreateOnExternalTableStreamRequest) WithComment(Comment *string) *CreateOnExternalTableStreamRequest
- func (s *CreateOnExternalTableStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnExternalTableStreamRequest
- func (s *CreateOnExternalTableStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnExternalTableStreamRequest
- func (s *CreateOnExternalTableStreamRequest) WithInsertOnly(InsertOnly *bool) *CreateOnExternalTableStreamRequest
- func (s *CreateOnExternalTableStreamRequest) WithOn(On *OnStreamRequest) *CreateOnExternalTableStreamRequest
- func (s *CreateOnExternalTableStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnExternalTableStreamRequest
- type CreateOnGCSStageOptions
- type CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithComment(Comment *string) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalGCSDirectoryTableOptionsRequest) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithExternalStageParams(ExternalStageParams *ExternalGCSStageParamsRequest) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithOrReplace(OrReplace *bool) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithTag(Tag []TagAssociation) *CreateOnGCSStageRequest
- func (s *CreateOnGCSStageRequest) WithTemporary(Temporary *bool) *CreateOnGCSStageRequest
- type CreateOnS3CompatibleStageOptions
- type CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithComment(Comment *string) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithCredentials(Credentials *ExternalStageS3CompatibleCredentialsRequest) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalS3DirectoryTableOptionsRequest) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithOrReplace(OrReplace *bool) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithTag(Tag []TagAssociation) *CreateOnS3CompatibleStageRequest
- func (s *CreateOnS3CompatibleStageRequest) WithTemporary(Temporary *bool) *CreateOnS3CompatibleStageRequest
- type CreateOnS3StageOptions
- type CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithComment(Comment *string) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalS3DirectoryTableOptionsRequest) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithExternalStageParams(ExternalStageParams *ExternalS3StageParamsRequest) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithOrReplace(OrReplace *bool) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithTag(Tag []TagAssociation) *CreateOnS3StageRequest
- func (s *CreateOnS3StageRequest) WithTemporary(Temporary *bool) *CreateOnS3StageRequest
- type CreateOnTableStreamOptions
- type CreateOnTableStreamRequest
- func (s *CreateOnTableStreamRequest) WithAppendOnly(AppendOnly *bool) *CreateOnTableStreamRequest
- func (s *CreateOnTableStreamRequest) WithComment(Comment *string) *CreateOnTableStreamRequest
- func (s *CreateOnTableStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnTableStreamRequest
- func (s *CreateOnTableStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnTableStreamRequest
- func (s *CreateOnTableStreamRequest) WithOn(On *OnStreamRequest) *CreateOnTableStreamRequest
- func (s *CreateOnTableStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnTableStreamRequest
- func (s *CreateOnTableStreamRequest) WithShowInitialRows(ShowInitialRows *bool) *CreateOnTableStreamRequest
- type CreateOnViewStreamOptions
- type CreateOnViewStreamRequest
- func (s *CreateOnViewStreamRequest) WithAppendOnly(AppendOnly *bool) *CreateOnViewStreamRequest
- func (s *CreateOnViewStreamRequest) WithComment(Comment *string) *CreateOnViewStreamRequest
- func (s *CreateOnViewStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnViewStreamRequest
- func (s *CreateOnViewStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnViewStreamRequest
- func (s *CreateOnViewStreamRequest) WithOn(On *OnStreamRequest) *CreateOnViewStreamRequest
- func (s *CreateOnViewStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnViewStreamRequest
- func (s *CreateOnViewStreamRequest) WithShowInitialRows(ShowInitialRows *bool) *CreateOnViewStreamRequest
- type CreatePasswordPolicyOptions
- type CreatePipeOptions
- type CreateResourceMonitorOptions
- type CreateRoleOptions
- type CreateRoleRequest
- func (s *CreateRoleRequest) GetName() AccountObjectIdentifier
- func (s *CreateRoleRequest) WithComment(comment string) *CreateRoleRequest
- func (s *CreateRoleRequest) WithIfNotExists(ifNotExists bool) *CreateRoleRequest
- func (s *CreateRoleRequest) WithOrReplace(orReplace bool) *CreateRoleRequest
- func (s *CreateRoleRequest) WithTag(tag []TagAssociation) *CreateRoleRequest
- type CreateSchemaOptions
- type CreateSecondaryDatabaseOptions
- type CreateSecondaryReplicationGroupOptions
- type CreateSessionPolicyOptions
- type CreateSessionPolicyRequest
- func (s *CreateSessionPolicyRequest) WithComment(Comment *string) *CreateSessionPolicyRequest
- func (s *CreateSessionPolicyRequest) WithIfNotExists(IfNotExists *bool) *CreateSessionPolicyRequest
- func (s *CreateSessionPolicyRequest) WithOrReplace(OrReplace *bool) *CreateSessionPolicyRequest
- func (s *CreateSessionPolicyRequest) WithSessionIdleTimeoutMins(SessionIdleTimeoutMins *int) *CreateSessionPolicyRequest
- func (s *CreateSessionPolicyRequest) WithSessionUiIdleTimeoutMins(SessionUiIdleTimeoutMins *int) *CreateSessionPolicyRequest
- type CreateShareOptions
- type CreateSharedDatabaseOptions
- type CreateTableAsSelectRequest
- type CreateTableCloneRequest
- type CreateTableColumnsAndConstraints
- type CreateTableLikeRequest
- type CreateTableRequest
- func (s *CreateTableRequest) WithChangeTracking(changeTracking *bool) *CreateTableRequest
- func (s *CreateTableRequest) WithClusterBy(clusterBy []string) *CreateTableRequest
- func (s *CreateTableRequest) WithComment(comment *string) *CreateTableRequest
- func (s *CreateTableRequest) WithCopyGrants(copyGrants *bool) *CreateTableRequest
- func (s *CreateTableRequest) WithDataRetentionTimeInDays(dataRetentionTimeInDays *int) *CreateTableRequest
- func (s *CreateTableRequest) WithDefaultDDLCollation(defaultDDLCollation *string) *CreateTableRequest
- func (s *CreateTableRequest) WithEnableSchemaEvolution(enableSchemaEvolution *bool) *CreateTableRequest
- func (s *CreateTableRequest) WithIfNotExists(ifNotExists *bool) *CreateTableRequest
- func (s *CreateTableRequest) WithKind(kind *TableKind) *CreateTableRequest
- func (s *CreateTableRequest) WithMaxDataExtensionTimeInDays(maxDataExtensionTimeInDays *int) *CreateTableRequest
- func (s *CreateTableRequest) WithOrReplace(orReplace *bool) *CreateTableRequest
- func (s *CreateTableRequest) WithOutOfLineConstraint(outOfLineConstraint OutOfLineConstraintRequest) *CreateTableRequest
- func (s *CreateTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateTableRequest
- func (s *CreateTableRequest) WithScope(scope *TableScope) *CreateTableRequest
- func (s *CreateTableRequest) WithStageCopyOptions(stageCopyOptions StageCopyOptionsRequest) *CreateTableRequest
- func (s *CreateTableRequest) WithStageFileFormat(stageFileFormat StageFileFormatRequest) *CreateTableRequest
- func (s *CreateTableRequest) WithTags(tags []TagAssociationRequest) *CreateTableRequest
- type CreateTableUsingTemplateRequest
- type CreateTagRequest
- func (s *CreateTagRequest) WithAllowedValues(values []string) *CreateTagRequest
- func (s *CreateTagRequest) WithComment(comment *string) *CreateTagRequest
- func (s *CreateTagRequest) WithIfExists(ifExists bool) *CreateTagRequest
- func (s *CreateTagRequest) WithOrReplace(orReplace bool) *CreateTagRequest
- type CreateTaskOptions
- type CreateTaskRequest
- func (r *CreateTaskRequest) GetName() SchemaObjectIdentifier
- func (s *CreateTaskRequest) WithAfter(After []SchemaObjectIdentifier) *CreateTaskRequest
- func (s *CreateTaskRequest) WithAllowOverlappingExecution(AllowOverlappingExecution *bool) *CreateTaskRequest
- func (s *CreateTaskRequest) WithComment(Comment *string) *CreateTaskRequest
- func (s *CreateTaskRequest) WithConfig(Config *string) *CreateTaskRequest
- func (s *CreateTaskRequest) WithCopyGrants(CopyGrants *bool) *CreateTaskRequest
- func (s *CreateTaskRequest) WithErrorIntegration(ErrorIntegration *string) *CreateTaskRequest
- func (s *CreateTaskRequest) WithIfNotExists(IfNotExists *bool) *CreateTaskRequest
- func (s *CreateTaskRequest) WithOrReplace(OrReplace *bool) *CreateTaskRequest
- func (s *CreateTaskRequest) WithSchedule(Schedule *string) *CreateTaskRequest
- func (s *CreateTaskRequest) WithSessionParameters(SessionParameters *SessionParameters) *CreateTaskRequest
- func (s *CreateTaskRequest) WithSuspendTaskAfterNumFailures(SuspendTaskAfterNumFailures *int) *CreateTaskRequest
- func (s *CreateTaskRequest) WithTag(Tag []TagAssociation) *CreateTaskRequest
- func (s *CreateTaskRequest) WithUserTaskTimeoutMs(UserTaskTimeoutMs *int) *CreateTaskRequest
- func (s *CreateTaskRequest) WithWarehouse(Warehouse *CreateTaskWarehouseRequest) *CreateTaskRequest
- func (s *CreateTaskRequest) WithWhen(When *string) *CreateTaskRequest
- type CreateTaskWarehouse
- type CreateTaskWarehouseRequest
- type CreateUserOptions
- type CreateViewOptions
- type CreateViewRequest
- func (r *CreateViewRequest) GetName() SchemaObjectIdentifier
- func (s *CreateViewRequest) WithColumns(Columns []ViewColumnRequest) *CreateViewRequest
- func (s *CreateViewRequest) WithColumnsMaskingPolicies(ColumnsMaskingPolicies []ViewColumnMaskingPolicyRequest) *CreateViewRequest
- func (s *CreateViewRequest) WithComment(Comment *string) *CreateViewRequest
- func (s *CreateViewRequest) WithCopyGrants(CopyGrants *bool) *CreateViewRequest
- func (s *CreateViewRequest) WithIfNotExists(IfNotExists *bool) *CreateViewRequest
- func (s *CreateViewRequest) WithOrReplace(OrReplace *bool) *CreateViewRequest
- func (s *CreateViewRequest) WithRecursive(Recursive *bool) *CreateViewRequest
- func (s *CreateViewRequest) WithRowAccessPolicy(RowAccessPolicy *ViewRowAccessPolicyRequest) *CreateViewRequest
- func (s *CreateViewRequest) WithSecure(Secure *bool) *CreateViewRequest
- func (s *CreateViewRequest) WithTag(Tag []TagAssociation) *CreateViewRequest
- func (s *CreateViewRequest) WithTemporary(Temporary *bool) *CreateViewRequest
- type CreateWarehouseOptions
- type CreateWithManualPartitioningExternalTableOptions
- type CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithColumns(columns []*ExternalTableColumnRequest) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithComment(comment *string) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithCopyGrants(copyGrants *bool) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithIfNotExists(ifNotExists *bool) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithOrReplace(orReplace *bool) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithPartitionBy(partitionBy []string) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithTag(tag []*TagAssociationRequest) *CreateWithManualPartitioningExternalTableRequest
- func (s *CreateWithManualPartitioningExternalTableRequest) WithUserSpecifiedPartitionType(userSpecifiedPartitionType *bool) *CreateWithManualPartitioningExternalTableRequest
- type CurrentSecondaryRoles
- type DataType
- type Database
- type DatabaseDetails
- type DatabaseDetailsRow
- type DatabaseObjectIdentifier
- func AlphanumericDatabaseObjectIdentifier() DatabaseObjectIdentifier
- func NewDatabaseObjectIdentifier(databaseName, name string) DatabaseObjectIdentifier
- func NewDatabaseObjectIdentifierFromFullyQualifiedName(fullyQualifiedName string) DatabaseObjectIdentifier
- func RandomDatabaseObjectIdentifier() DatabaseObjectIdentifier
- type DatabaseRole
- type DatabaseRoleGrantOn
- type DatabaseRoleGrantPrivileges
- type DatabaseRoleRename
- type DatabaseRoleRenameRequest
- type DatabaseRoleSet
- type DatabaseRoleSetRequest
- type DatabaseRoleUnset
- type DatabaseRoleUnsetRequest
- type DatabaseRoles
- type DatabaseSet
- type DatabaseUnset
- type Databases
- type DateFormat
- type DescribeDynamicTableRequest
- type DescribeEventTableOptions
- type DescribeEventTableRequest
- type DescribeExternalTableColumnsRequest
- type DescribeExternalTableStageRequest
- type DescribeNetworkPolicyOptions
- type DescribeNetworkPolicyRequest
- type DescribeProcedureOptions
- type DescribeProcedureRequest
- type DescribeSessionPolicyOptions
- type DescribeSessionPolicyRequest
- type DescribeStageOptions
- type DescribeStageRequest
- type DescribeStreamOptions
- type DescribeStreamRequest
- type DescribeTableColumnsRequest
- type DescribeTableStageRequest
- type DescribeTaskOptions
- type DescribeTaskRequest
- type DescribeViewOptions
- type DescribeViewRequest
- type DirectoryTableRefresh
- type DirectoryTableRefreshRequest
- type DirectoryTableSet
- type DirectoryTableSetRequest
- type DisableFailover
- type DisableReplication
- type DropAccountOptions
- type DropDatabaseOptions
- type DropDatabaseRoleRequest
- type DropDynamicTableRequest
- type DropEventTableOptions
- type DropEventTableRequest
- type DropExternalTableOptions
- type DropExternalTableRequest
- type DropFailoverGroupOptions
- type DropFileFormatOptions
- type DropMaskingPolicyOptions
- type DropNetworkPolicyOptions
- type DropNetworkPolicyRequest
- type DropPasswordPolicyOptions
- type DropPipeOptions
- type DropProcedureOptions
- type DropProcedureRequest
- type DropRoleOptions
- type DropRoleRequest
- type DropSchemaOptions
- type DropSearchOptimization
- type DropSessionPolicyOptions
- type DropSessionPolicyRequest
- type DropStageOptions
- type DropStageRequest
- type DropStreamOptions
- type DropStreamRequest
- type DropTableRequest
- type DropTagRequest
- type DropTaskOptions
- type DropTaskRequest
- type DropUserOptions
- type DropViewOptions
- type DropViewRequest
- type DropWarehouseOptions
- type DynamicTable
- type DynamicTableDetails
- type DynamicTableRefreshMode
- type DynamicTableSchedulingState
- type DynamicTableSet
- type DynamicTableSetRequest
- type DynamicTables
- type EnableFailover
- type EnableReplication
- type Error
- type EventTable
- type EventTableAddRowAccessPolicy
- type EventTableAddRowAccessPolicyRequest
- type EventTableClusteringAction
- type EventTableClusteringActionRequest
- func (s *EventTableClusteringActionRequest) WithClusterBy(ClusterBy *[]string) *EventTableClusteringActionRequest
- func (s *EventTableClusteringActionRequest) WithDropClusteringKey(DropClusteringKey *bool) *EventTableClusteringActionRequest
- func (s *EventTableClusteringActionRequest) WithResumeRecluster(ResumeRecluster *bool) *EventTableClusteringActionRequest
- func (s *EventTableClusteringActionRequest) WithSuspendRecluster(SuspendRecluster *bool) *EventTableClusteringActionRequest
- type EventTableDetails
- type EventTableDropAndAddRowAccessPolicy
- type EventTableDropAndAddRowAccessPolicyRequest
- type EventTableDropRowAccessPolicy
- type EventTableDropRowAccessPolicyRequest
- type EventTableSearchOptimizationAction
- type EventTableSearchOptimizationActionRequest
- type EventTableSet
- type EventTableSetRequest
- func (s *EventTableSetRequest) WithChangeTracking(ChangeTracking *bool) *EventTableSetRequest
- func (s *EventTableSetRequest) WithComment(Comment *string) *EventTableSetRequest
- func (s *EventTableSetRequest) WithDataRetentionTimeInDays(DataRetentionTimeInDays *int) *EventTableSetRequest
- func (s *EventTableSetRequest) WithMaxDataExtensionTimeInDays(MaxDataExtensionTimeInDays *int) *EventTableSetRequest
- type EventTableUnset
- type EventTableUnsetRequest
- func (s *EventTableUnsetRequest) WithChangeTracking(ChangeTracking *bool) *EventTableUnsetRequest
- func (s *EventTableUnsetRequest) WithComment(Comment *bool) *EventTableUnsetRequest
- func (s *EventTableUnsetRequest) WithDataRetentionTimeInDays(DataRetentionTimeInDays *bool) *EventTableUnsetRequest
- func (s *EventTableUnsetRequest) WithMaxDataExtensionTimeInDays(MaxDataExtensionTimeInDays *bool) *EventTableUnsetRequest
- type EventTables
- type ExecuteAs
- type ExecuteTaskOptions
- type ExecuteTaskRequest
- type ExternalAzureDirectoryTableOptions
- type ExternalAzureDirectoryTableOptionsRequest
- func (s *ExternalAzureDirectoryTableOptionsRequest) WithAutoRefresh(AutoRefresh *bool) *ExternalAzureDirectoryTableOptionsRequest
- func (s *ExternalAzureDirectoryTableOptionsRequest) WithEnable(Enable *bool) *ExternalAzureDirectoryTableOptionsRequest
- func (s *ExternalAzureDirectoryTableOptionsRequest) WithNotificationIntegration(NotificationIntegration *string) *ExternalAzureDirectoryTableOptionsRequest
- func (s *ExternalAzureDirectoryTableOptionsRequest) WithRefreshOnCreate(RefreshOnCreate *bool) *ExternalAzureDirectoryTableOptionsRequest
- type ExternalAzureStageParams
- type ExternalAzureStageParamsRequest
- func (s *ExternalAzureStageParamsRequest) WithCredentials(Credentials *ExternalStageAzureCredentialsRequest) *ExternalAzureStageParamsRequest
- func (s *ExternalAzureStageParamsRequest) WithEncryption(Encryption *ExternalStageAzureEncryptionRequest) *ExternalAzureStageParamsRequest
- func (s *ExternalAzureStageParamsRequest) WithStorageIntegration(StorageIntegration *AccountObjectIdentifier) *ExternalAzureStageParamsRequest
- type ExternalGCSDirectoryTableOptions
- type ExternalGCSDirectoryTableOptionsRequest
- func (s *ExternalGCSDirectoryTableOptionsRequest) WithAutoRefresh(AutoRefresh *bool) *ExternalGCSDirectoryTableOptionsRequest
- func (s *ExternalGCSDirectoryTableOptionsRequest) WithEnable(Enable *bool) *ExternalGCSDirectoryTableOptionsRequest
- func (s *ExternalGCSDirectoryTableOptionsRequest) WithNotificationIntegration(NotificationIntegration *string) *ExternalGCSDirectoryTableOptionsRequest
- func (s *ExternalGCSDirectoryTableOptionsRequest) WithRefreshOnCreate(RefreshOnCreate *bool) *ExternalGCSDirectoryTableOptionsRequest
- type ExternalGCSStageParams
- type ExternalGCSStageParamsRequest
- type ExternalObjectIdentifier
- type ExternalS3DirectoryTableOptions
- type ExternalS3DirectoryTableOptionsRequest
- func (s *ExternalS3DirectoryTableOptionsRequest) WithAutoRefresh(AutoRefresh *bool) *ExternalS3DirectoryTableOptionsRequest
- func (s *ExternalS3DirectoryTableOptionsRequest) WithEnable(Enable *bool) *ExternalS3DirectoryTableOptionsRequest
- func (s *ExternalS3DirectoryTableOptionsRequest) WithRefreshOnCreate(RefreshOnCreate *bool) *ExternalS3DirectoryTableOptionsRequest
- type ExternalS3StageParams
- type ExternalS3StageParamsRequest
- func (s *ExternalS3StageParamsRequest) WithCredentials(Credentials *ExternalStageS3CredentialsRequest) *ExternalS3StageParamsRequest
- func (s *ExternalS3StageParamsRequest) WithEncryption(Encryption *ExternalStageS3EncryptionRequest) *ExternalS3StageParamsRequest
- func (s *ExternalS3StageParamsRequest) WithStorageIntegration(StorageIntegration *AccountObjectIdentifier) *ExternalS3StageParamsRequest
- type ExternalStageAzureCredentials
- type ExternalStageAzureCredentialsRequest
- type ExternalStageAzureEncryption
- type ExternalStageAzureEncryptionOption
- type ExternalStageAzureEncryptionRequest
- type ExternalStageGCSEncryption
- type ExternalStageGCSEncryptionOption
- type ExternalStageGCSEncryptionRequest
- type ExternalStageS3CompatibleCredentials
- type ExternalStageS3CompatibleCredentialsRequest
- type ExternalStageS3Credentials
- type ExternalStageS3CredentialsRequest
- func (s *ExternalStageS3CredentialsRequest) WithAwsKeyId(AwsKeyId *string) *ExternalStageS3CredentialsRequest
- func (s *ExternalStageS3CredentialsRequest) WithAwsRole(AwsRole *string) *ExternalStageS3CredentialsRequest
- func (s *ExternalStageS3CredentialsRequest) WithAwsSecretKey(AwsSecretKey *string) *ExternalStageS3CredentialsRequest
- func (s *ExternalStageS3CredentialsRequest) WithAwsToken(AwsToken *string) *ExternalStageS3CredentialsRequest
- type ExternalStageS3Encryption
- type ExternalStageS3EncryptionOption
- type ExternalStageS3EncryptionRequest
- type ExternalTable
- type ExternalTableAvroCompression
- type ExternalTableColumn
- type ExternalTableColumnDetails
- type ExternalTableColumnRequest
- type ExternalTableCsvCompression
- type ExternalTableDropOption
- type ExternalTableDropOptionRequest
- type ExternalTableFile
- type ExternalTableFileFormat
- type ExternalTableFileFormatRequest
- func (s *ExternalTableFileFormatRequest) WithFileFormatType(fileFormatType *ExternalTableFileFormatType) *ExternalTableFileFormatRequest
- func (s *ExternalTableFileFormatRequest) WithName(name *string) *ExternalTableFileFormatRequest
- func (s *ExternalTableFileFormatRequest) WithOptions(options *ExternalTableFileFormatTypeOptionsRequest) *ExternalTableFileFormatRequest
- type ExternalTableFileFormatType
- type ExternalTableFileFormatTypeOptions
- type ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithAvroCompression(avroCompression *ExternalTableAvroCompression) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithAvroReplaceInvalidCharacters(avroReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvCompression(csvCompression *ExternalTableCsvCompression) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvEmptyFieldAsNull(csvEmptyFieldAsNull *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvEncoding(csvEncoding *CSVEncoding) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvEscapeUnenclosedField(csvEscapeUnenclosedField *string) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvFieldDelimiter(csvFieldDelimiter *string) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvFieldOptionallyEnclosedBy(csvFieldOptionallyEnclosedBy *string) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvNullIf(csvNullIf *[]NullStringRequest) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvRecordDelimiter(csvRecordDelimiter *string) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvSkipBlankLines(csvSkipBlankLines *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvSkipHeader(csvSkipHeader *int) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvTrimSpace(csvTrimSpace *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonAllowDuplicate(jsonAllowDuplicate *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonCompression(jsonCompression *ExternalTableJsonCompression) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonReplaceInvalidCharacters(jsonReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonStripNullValues(jsonStripNullValues *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonStripOuterArray(jsonStripOuterArray *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithOrcNullIf(orcNullIf *[]NullStringRequest) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithOrcReplaceInvalidCharacters(orcReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithOrcTrimSpace(orcTrimSpace *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithParquetBinaryAsText(parquetBinaryAsText *bool) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithParquetCompression(parquetCompression *ExternalTableParquetCompression) *ExternalTableFileFormatTypeOptionsRequest
- func (s *ExternalTableFileFormatTypeOptionsRequest) WithParquetReplaceInvalidCharacters(parquetReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
- type ExternalTableFileRequest
- type ExternalTableJsonCompression
- type ExternalTableParquetCompression
- type ExternalTableStageDetails
- type ExternalTables
- type FailoverGroup
- type FailoverGroupAdd
- type FailoverGroupMove
- type FailoverGroupRemove
- type FailoverGroupSecondaryState
- type FailoverGroupSet
- type FailoverGroups
- type FileFormat
- type FileFormatDetails
- type FileFormatDetailsRow
- type FileFormatRow
- type FileFormatType
- type FileFormatTypeOptions
- type FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithAvroCompression(avroCompression *AvroCompression) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithAvroNullIf(avroNullIf *[]NullString) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithAvroReplaceInvalidCharacters(avroReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithAvroTrimSpace(avroTrimSpace *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVBinaryFormat(csvBinaryFormat *BinaryFormat) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVCompression(csvCompression *CSVCompression) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVDateFormat(csvDateFormat *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVEmptyFieldAsNull(csvEmptyFieldAsNull *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVEncoding(csvEncoding *CSVEncoding) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVErrorOnColumnCountMismatch(csvErrorOnColumnCountMismatch *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVEscape(csvEscape *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVEscapeUnenclosedField(csvEscapeUnenclosedField *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVFieldDelimiter(csvFieldDelimiter *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVFieldOptionallyEnclosedBy(csvFieldOptionallyEnclosedBy *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVFileExtension(csvFileExtension *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVNullIf(csvNullIf *[]NullString) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVParseHeader(csvParseHeader *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVRecordDelimiter(csvRecordDelimiter *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVReplaceInvalidCharacters(csvReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVSkipBlankLines(csvSkipBlankLines *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVSkipByteOrderMark(csvSkipByteOrderMark *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVSkipHeader(csvSkipHeader *int) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVTimeFormat(csvTimeFormat *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVTimestampFormat(csvTimestampFormat *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithCSVTrimSpace(csvTrimSpace *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithComment(comment *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONAllowDuplicate(jsonAllowDuplicate *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONBinaryFormat(jsonBinaryFormat *BinaryFormat) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONCompression(jsonCompression *JSONCompression) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONDateFormat(jsonDateFormat *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONEnableOctal(jsonEnableOctal *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONFileExtension(jsonFileExtension *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONIgnoreUTF8Errors(jsonIgnoreUTF8Errors *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONNullIf(jsonNullIf []NullString) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONReplaceInvalidCharacters(jsonReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONSkipByteOrderMark(jsonSkipByteOrderMark *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONStripNullValues(jsonStripNullValues *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONStripOuterArray(jsonStripOuterArray *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONTimeFormat(jsonTimeFormat *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONTimestampFormat(jsonTimestampFormat *string) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithJSONTrimSpace(jsonTrimSpace *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithORCNullIf(orcNullIf *[]NullString) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithORCReplaceInvalidCharacters(orcReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithORCTrimSpace(orcTrimSpace *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithParquetBinaryAsText(parquetBinaryAsText *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithParquetCompression(parquetCompression *ParquetCompression) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithParquetNullIf(parquetNullIf *[]NullString) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithParquetReplaceInvalidCharacters(parquetReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithParquetSnappyCompression(parquetSnappyCompression *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithParquetTrimSpace(parquetTrimSpace *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLCompression(xmlCompression *XMLCompression) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLDisableAutoConvert(xmlDisableAutoConvert *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLDisableSnowflakeData(xmlDisableSnowflakeData *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLIgnoreUTF8Errors(xmlIgnoreUTF8Errors *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLPreserveSpace(xmlPreserveSpace *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLReplaceInvalidCharacters(xmlReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLSkipByteOrderMark(xmlSkipByteOrderMark *bool) *FileFormatTypeOptionsRequest
- func (s *FileFormatTypeOptionsRequest) WithXMLStripOuterElement(xmlStripOuterElement *bool) *FileFormatTypeOptionsRequest
- type FileFormats
- type ForeignKeyAction
- type ForeignKeyOnAction
- type Frequency
- type GeographyOutputFormat
- type GlobalPrivilege
- type Grant
- type GrantDatabaseRoleRequest
- type GrantDatabaseRoleToShareRequest
- type GrantOnAccountObject
- type GrantOnSchema
- type GrantOnSchemaObject
- type GrantOnSchemaObjectIn
- type GrantOwnershipOptions
- type GrantPrivilegeToShareOn
- type GrantPrivilegesToAccountRoleOptions
- type GrantPrivilegesToDatabaseRoleOptions
- type GrantRole
- type GrantRoleOptions
- type GrantRoleRequest
- type Grants
- type IP
- type IPRequest
- type Identifier
- type In
- type InlineForeignKey
- type InlineForeignKeyRequest
- type IntErrType
- type IntProperty
- type IntegrationType
- type InternalDirectoryTableOptions
- type InternalDirectoryTableOptionsRequest
- type InternalStageEncryption
- type InternalStageEncryptionOption
- type InternalStageEncryptionRequest
- type JSONCompression
- type Like
- type LikeRequest
- type LimitFrom
- type LimitFromRequest
- type LogLevel
- type MaskingPolicies
- type MaskingPolicy
- type MaskingPolicyDetails
- type MaskingPolicySet
- type MaskingPolicyUnset
- type MatchType
- type NetworkPolicies
- type NetworkPolicy
- type NetworkPolicyDescription
- type NetworkPolicySet
- type NetworkPolicySetRequest
- type NotifiedUser
- type NotifyUsers
- type NullInputBehavior
- type NullString
- type NullStringRequest
- type Object
- type ObjectIdentifier
- type ObjectParameter
- type ObjectParameters
- type ObjectParametersUnset
- type ObjectPrivilege
- type ObjectType
- type OnStream
- type OnStreamRequest
- type OnStreamStatement
- type OnStreamStatementRequest
- func (s *OnStreamStatementRequest) WithOffset(Offset *string) *OnStreamStatementRequest
- func (s *OnStreamStatementRequest) WithStatement(Statement *string) *OnStreamStatementRequest
- func (s *OnStreamStatementRequest) WithStream(Stream *string) *OnStreamStatementRequest
- func (s *OnStreamStatementRequest) WithTimestamp(Timestamp *string) *OnStreamStatementRequest
- type OnTable
- type OnView
- type OutOfLineConstraint
- type OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithColumns(columns []string) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithDeferrable(deferrable *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithDisable(disable *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithEnable(enable *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithEnforced(enforced *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithForeignKey(foreignKey *OutOfLineForeignKeyRequest) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithInitiallyDeferred(initiallyDeferred *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithInitiallyImmediate(initiallyImmediate *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithNoRely(noRely *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithNoValidate(noValidate *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithNotDeferrable(notDeferrable *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithNotEnforced(notEnforced *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithRely(rely *bool) *OutOfLineConstraintRequest
- func (s *OutOfLineConstraintRequest) WithValidate(validate *bool) *OutOfLineConstraintRequest
- type OutOfLineForeignKey
- type OutOfLineForeignKeyRequest
- type OwnershipCurrentGrants
- type OwnershipCurrentGrantsOutboundPrivileges
- type OwnershipGrantOn
- type OwnershipGrantTo
- type Parameter
- type ParameterType
- type Parameters
- type ParametersIn
- type ParquetCompression
- type Partition
- type PartitionRequest
- type PasswordPolicies
- type PasswordPolicy
- type PasswordPolicyDetails
- type PasswordPolicySet
- type PasswordPolicyUnset
- type Pipe
- type PipeRefresh
- type PipeSet
- type PipeUnset
- type Pipes
- type PluralObjectType
- type Procedure
- type ProcedureArgument
- type ProcedureArgumentRequest
- type ProcedureColumn
- type ProcedureColumnRequest
- type ProcedureDetail
- type ProcedureImport
- type ProcedureImportRequest
- type ProcedurePackage
- type ProcedurePackageRequest
- type ProcedureReturns
- type ProcedureReturnsRequest
- type ProcedureReturnsResultDataType
- type ProcedureReturnsResultDataTypeRequest
- type ProcedureReturnsTable
- type ProcedureReturnsTableRequest
- type ProcedureSQLReturns
- type ProcedureSQLReturnsRequest
- func (s *ProcedureSQLReturnsRequest) WithNotNull(NotNull *bool) *ProcedureSQLReturnsRequest
- func (s *ProcedureSQLReturnsRequest) WithResultDataType(ResultDataType *ProcedureReturnsResultDataTypeRequest) *ProcedureSQLReturnsRequest
- func (s *ProcedureSQLReturnsRequest) WithTable(Table *ProcedureReturnsTableRequest) *ProcedureSQLReturnsRequest
- type Procedures
- type ReclusterState
- type RefreshExternalTable
- type RefreshExternalTableRequest
- type Region
- type RemoveDelegatedAuthorization
- type ReplicationAccount
- type ReplicationFunctions
- type ResourceMonitor
- type ResourceMonitorLevel
- type ResourceMonitorSet
- type ResourceMonitorWith
- type ResourceMonitors
- type RevokeDatabaseRoleFromShareRequest
- type RevokeDatabaseRoleRequest
- type RevokePrivilegeFromShareOn
- type RevokePrivilegesFromAccountRoleOptions
- type RevokePrivilegesFromDatabaseRoleOptions
- type RevokeRole
- type RevokeRoleOptions
- type RevokeRoleRequest
- type Role
- type Roles
- type RolesInClass
- type RowAccessPolicyRequest
- type ScalingPolicy
- type Schema
- type SchemaDetails
- type SchemaIn
- type SchemaObjectIdentifier
- func NewSchemaObjectIdentifier(databaseName, schemaName, name string) SchemaObjectIdentifier
- func NewSchemaObjectIdentifierFromFullyQualifiedName(fullyQualifiedName string) SchemaObjectIdentifier
- func NewSchemaObjectIdentifierWithArguments(databaseName, schemaName, name string, arguments []DataType) SchemaObjectIdentifier
- func RandomSchemaObjectIdentifier() SchemaObjectIdentifier
- func (i SchemaObjectIdentifier) Arguments() []DataType
- func (i SchemaObjectIdentifier) DatabaseName() string
- func (i SchemaObjectIdentifier) FullyQualifiedName() string
- func (i SchemaObjectIdentifier) Name() string
- func (i SchemaObjectIdentifier) SchemaIdentifier() DatabaseObjectIdentifier
- func (i SchemaObjectIdentifier) SchemaName() string
- type SchemaObjectPrivilege
- type SchemaPrivilege
- type SchemaSet
- type SchemaUnset
- type Schemas
- type SearchOptimization
- type SearchOptimizationRequest
- type SecondaryRole
- type SecondaryRoleOption
- type SecondaryRoles
- type Secret
- type SequenceName
- type SessionParameter
- type SessionParameters
- type SessionParametersUnset
- type SessionPolicies
- type SessionPolicy
- type SessionPolicyDescription
- type SessionPolicySet
- type SessionPolicySetRequest
- func (s *SessionPolicySetRequest) WithComment(Comment *string) *SessionPolicySetRequest
- func (s *SessionPolicySetRequest) WithSessionIdleTimeoutMins(SessionIdleTimeoutMins *int) *SessionPolicySetRequest
- func (s *SessionPolicySetRequest) WithSessionUiIdleTimeoutMins(SessionUiIdleTimeoutMins *int) *SessionPolicySetRequest
- type SessionPolicyUnset
- type SessionPolicyUnsetRequest
- func (s *SessionPolicyUnsetRequest) WithComment(Comment *bool) *SessionPolicyUnsetRequest
- func (s *SessionPolicyUnsetRequest) WithSessionIdleTimeoutMins(SessionIdleTimeoutMins *bool) *SessionPolicyUnsetRequest
- func (s *SessionPolicyUnsetRequest) WithSessionUiIdleTimeoutMins(SessionUiIdleTimeoutMins *bool) *SessionPolicyUnsetRequest
- type SessionSet
- type SessionUnset
- type Sessions
- type SetColumnCommentOptions
- type SetCommentOptions
- type Share
- type ShareAdd
- type ShareDetails
- type ShareInfo
- type ShareKind
- type ShareRemove
- type ShareSet
- type ShareUnset
- type Shares
- type ShowAccountOptions
- type ShowAlertOptions
- type ShowApplicationRoleOptions
- type ShowApplicationRoleRequest
- type ShowByIDApplicationRoleRequest
- type ShowByIdStreamRequest
- type ShowDatabaseRoleRequest
- type ShowDatabasesOptions
- type ShowDynamicTableRequest
- func (s *ShowDynamicTableRequest) WithIn(in *In) *ShowDynamicTableRequest
- func (s *ShowDynamicTableRequest) WithLike(like *Like) *ShowDynamicTableRequest
- func (s *ShowDynamicTableRequest) WithLimit(limit *LimitFrom) *ShowDynamicTableRequest
- func (s *ShowDynamicTableRequest) WithStartsWith(startsWith *string) *ShowDynamicTableRequest
- type ShowEventTableOptions
- type ShowEventTableRequest
- func (s *ShowEventTableRequest) WithIn(In *In) *ShowEventTableRequest
- func (s *ShowEventTableRequest) WithLike(Like *Like) *ShowEventTableRequest
- func (s *ShowEventTableRequest) WithLimit(Limit *LimitFrom) *ShowEventTableRequest
- func (s *ShowEventTableRequest) WithStartsWith(StartsWith *string) *ShowEventTableRequest
- func (s *ShowEventTableRequest) WithTerse(Terse *bool) *ShowEventTableRequest
- type ShowExternalTableByIDRequest
- type ShowExternalTableInRequest
- func (s *ShowExternalTableInRequest) WithAccount(account *bool) *ShowExternalTableInRequest
- func (s *ShowExternalTableInRequest) WithDatabase(database AccountObjectIdentifier) *ShowExternalTableInRequest
- func (s *ShowExternalTableInRequest) WithSchema(schema DatabaseObjectIdentifier) *ShowExternalTableInRequest
- type ShowExternalTableOptions
- type ShowExternalTableRequest
- func (s *ShowExternalTableRequest) WithIn(in *ShowExternalTableInRequest) *ShowExternalTableRequest
- func (s *ShowExternalTableRequest) WithLike(like *string) *ShowExternalTableRequest
- func (s *ShowExternalTableRequest) WithLimitFrom(limitFrom *LimitFromRequest) *ShowExternalTableRequest
- func (s *ShowExternalTableRequest) WithStartsWith(startsWith *string) *ShowExternalTableRequest
- func (s *ShowExternalTableRequest) WithTerse(terse *bool) *ShowExternalTableRequest
- type ShowFailoverGroupOptions
- type ShowFileFormatsOptions
- type ShowGrantOptions
- type ShowGrantsIn
- type ShowGrantsOf
- type ShowGrantsOn
- type ShowGrantsTo
- type ShowMaskingPolicyOptions
- type ShowNetworkPolicyOptions
- type ShowNetworkPolicyRequest
- type ShowParametersOptions
- type ShowPasswordPolicyOptions
- type ShowPipeOptions
- type ShowProcedureOptions
- type ShowProcedureRequest
- type ShowRegionsOptions
- type ShowResourceMonitorOptions
- type ShowRoleByIdRequest
- type ShowRoleOptions
- type ShowRoleRequest
- type ShowSchemaOptions
- type ShowSessionPolicyOptions
- type ShowSessionPolicyRequest
- type ShowShareOptions
- type ShowStageOptions
- type ShowStageRequest
- type ShowStreamOptions
- type ShowStreamRequest
- func (s *ShowStreamRequest) WithIn(In *In) *ShowStreamRequest
- func (s *ShowStreamRequest) WithLike(Like *Like) *ShowStreamRequest
- func (s *ShowStreamRequest) WithLimit(Limit *LimitFrom) *ShowStreamRequest
- func (s *ShowStreamRequest) WithStartsWith(StartsWith *string) *ShowStreamRequest
- func (s *ShowStreamRequest) WithTerse(Terse *bool) *ShowStreamRequest
- type ShowTableInRequest
- type ShowTableRequest
- func (s *ShowTableRequest) WithHistory(history *bool) *ShowTableRequest
- func (s *ShowTableRequest) WithIn(in *In) *ShowTableRequest
- func (s *ShowTableRequest) WithLikePattern(likePattern string) *ShowTableRequest
- func (s *ShowTableRequest) WithLimitFrom(limitFrom *LimitFrom) *ShowTableRequest
- func (s *ShowTableRequest) WithStartsWith(startsWith *string) *ShowTableRequest
- func (s *ShowTableRequest) WithTerse(terse *bool) *ShowTableRequest
- type ShowTagRequest
- type ShowTaskOptions
- type ShowTaskRequest
- func (s *ShowTaskRequest) WithIn(In *In) *ShowTaskRequest
- func (s *ShowTaskRequest) WithLike(Like *Like) *ShowTaskRequest
- func (s *ShowTaskRequest) WithLimit(Limit *LimitFrom) *ShowTaskRequest
- func (s *ShowTaskRequest) WithRootOnly(RootOnly *bool) *ShowTaskRequest
- func (s *ShowTaskRequest) WithStartsWith(StartsWith *string) *ShowTaskRequest
- func (s *ShowTaskRequest) WithTerse(Terse *bool) *ShowTaskRequest
- type ShowUserOptions
- type ShowViewOptions
- type ShowViewRequest
- func (s *ShowViewRequest) WithIn(In *In) *ShowViewRequest
- func (s *ShowViewRequest) WithLike(Like *Like) *ShowViewRequest
- func (s *ShowViewRequest) WithLimit(Limit *LimitFrom) *ShowViewRequest
- func (s *ShowViewRequest) WithStartsWith(StartsWith *string) *ShowViewRequest
- func (s *ShowViewRequest) WithTerse(Terse *bool) *ShowViewRequest
- type ShowWarehouseOptions
- type Stage
- type StageCopyColumnMapOption
- type StageCopyOnErrorOptions
- type StageCopyOnErrorOptionsRequest
- func (s *StageCopyOnErrorOptionsRequest) WithAbortStatement(AbortStatement *bool) *StageCopyOnErrorOptionsRequest
- func (s *StageCopyOnErrorOptionsRequest) WithContinue(Continue *bool) *StageCopyOnErrorOptionsRequest
- func (s *StageCopyOnErrorOptionsRequest) WithSkipFile() *StageCopyOnErrorOptionsRequest
- func (s *StageCopyOnErrorOptionsRequest) WithSkipFileX(x int) *StageCopyOnErrorOptionsRequest
- func (s *StageCopyOnErrorOptionsRequest) WithSkipFileXPercent(x int) *StageCopyOnErrorOptionsRequest
- type StageCopyOptions
- type StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithEnforceLength(EnforceLength *bool) *StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithForce(Force *bool) *StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithMatchByColumnName(MatchByColumnName *StageCopyColumnMapOption) *StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithOnError(OnError *StageCopyOnErrorOptionsRequest) *StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithPurge(Purge *bool) *StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithReturnFailedOnly(ReturnFailedOnly *bool) *StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithSizeLimit(SizeLimit *int) *StageCopyOptionsRequest
- func (s *StageCopyOptionsRequest) WithTruncatecolumns(Truncatecolumns *bool) *StageCopyOptionsRequest
- type StageFileFormat
- type StageFileFormatRequest
- type StageProperty
- type Stages
- type Stream
- type Streams
- type StringProperty
- type SystemFunctions
- type Table
- type TableAddRowAccessPolicy
- type TableAddRowAccessPolicyRequest
- type TableAsSelectColumn
- type TableAsSelectColumnMaskingPolicy
- type TableAsSelectColumnRequest
- func (s *TableAsSelectColumnRequest) WithClusterBy(clusterBy []string) *TableAsSelectColumnRequest
- func (s *TableAsSelectColumnRequest) WithCopyGrants(copyGrants *bool) *TableAsSelectColumnRequest
- func (s *TableAsSelectColumnRequest) WithMaskingPolicyName(maskingPolicyName *SchemaObjectIdentifier) *TableAsSelectColumnRequest
- func (s *TableAsSelectColumnRequest) WithOrReplace(orReplace *bool) *TableAsSelectColumnRequest
- func (s *TableAsSelectColumnRequest) WithType_(type_ *DataType) *TableAsSelectColumnRequest
- type TableClusteringAction
- type TableClusteringActionRequest
- func (s *TableClusteringActionRequest) WithChangeReclusterState(changeReclusterState *ReclusterState) *TableClusteringActionRequest
- func (s *TableClusteringActionRequest) WithClusterBy(clusterBy []string) *TableClusteringActionRequest
- func (s *TableClusteringActionRequest) WithDropClusteringKey(dropClusteringKey *bool) *TableClusteringActionRequest
- func (s *TableClusteringActionRequest) WithRecluster(recluster *TableReclusterActionRequest) *TableClusteringActionRequest
- type TableColumn
- type TableColumnAction
- type TableColumnActionRequest
- func (s *TableColumnActionRequest) WithAdd(add *TableColumnAddActionRequest) *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithAlter(alter []TableColumnAlterActionRequest) *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithDropColumns(dropColumns []string) *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithDropColumnsIfExists() *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithRename(rename *TableColumnRenameActionRequest) *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithSetMaskingPolicy(setMaskingPolicy *TableColumnAlterSetMaskingPolicyActionRequest) *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithSetTags(setTags *TableColumnAlterSetTagsActionRequest) *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithUnsetMaskingPolicy(unsetMaskingPolicy *TableColumnAlterUnsetMaskingPolicyActionRequest) *TableColumnActionRequest
- func (s *TableColumnActionRequest) WithUnsetTags(unsetTags *TableColumnAlterUnsetTagsActionRequest) *TableColumnActionRequest
- type TableColumnAddAction
- type TableColumnAddActionRequest
- func (s *TableColumnAddActionRequest) WithDefaultValue(defaultValue *ColumnDefaultValueRequest) *TableColumnAddActionRequest
- func (s *TableColumnAddActionRequest) WithIfNotExists() *TableColumnAddActionRequest
- func (s *TableColumnAddActionRequest) WithInlineConstraint(inlineConstraint *TableColumnAddInlineConstraintRequest) *TableColumnAddActionRequest
- func (s *TableColumnAddActionRequest) WithMaskingPolicy(maskingPolicy *ColumnMaskingPolicyRequest) *TableColumnAddActionRequest
- func (s *TableColumnAddActionRequest) WithTags(tags []TagAssociation) *TableColumnAddActionRequest
- func (s *TableColumnAddActionRequest) WithWith(with *bool) *TableColumnAddActionRequest
- type TableColumnAddInlineConstraint
- type TableColumnAddInlineConstraintRequest
- func (s *TableColumnAddInlineConstraintRequest) WithForeignKey(foreignKey *ColumnAddForeignKey) *TableColumnAddInlineConstraintRequest
- func (s *TableColumnAddInlineConstraintRequest) WithName(name string) *TableColumnAddInlineConstraintRequest
- func (s *TableColumnAddInlineConstraintRequest) WithNotNull(notNull *bool) *TableColumnAddInlineConstraintRequest
- func (s *TableColumnAddInlineConstraintRequest) WithType(constraintType ColumnConstraintType) *TableColumnAddInlineConstraintRequest
- type TableColumnAlterAction
- type TableColumnAlterActionRequest
- func (s *TableColumnAlterActionRequest) WithComment(comment *string) *TableColumnAlterActionRequest
- func (s *TableColumnAlterActionRequest) WithDropDefault(dropDefault *bool) *TableColumnAlterActionRequest
- func (s *TableColumnAlterActionRequest) WithNotNullConstraint(notNullConstraint *TableColumnNotNullConstraintRequest) *TableColumnAlterActionRequest
- func (s *TableColumnAlterActionRequest) WithSetDefault(setDefault *SequenceName) *TableColumnAlterActionRequest
- func (s *TableColumnAlterActionRequest) WithType(dataType *DataType) *TableColumnAlterActionRequest
- func (s *TableColumnAlterActionRequest) WithUnsetComment(unsetComment *bool) *TableColumnAlterActionRequest
- type TableColumnAlterDropColumns
- type TableColumnAlterSequenceName
- type TableColumnAlterSetMaskingPolicyAction
- type TableColumnAlterSetMaskingPolicyActionRequest
- type TableColumnAlterSetTagsAction
- type TableColumnAlterSetTagsActionRequest
- type TableColumnAlterUnsetMaskingPolicyAction
- type TableColumnAlterUnsetMaskingPolicyActionRequest
- type TableColumnAlterUnsetTagsAction
- type TableColumnAlterUnsetTagsActionRequest
- type TableColumnDetails
- type TableColumnIdentifier
- type TableColumnNotNullConstraint
- type TableColumnNotNullConstraintRequest
- type TableColumnRenameAction
- type TableColumnRenameActionRequest
- type TableColumnRequest
- func (s *TableColumnRequest) WithCollate(collate *string) *TableColumnRequest
- func (s *TableColumnRequest) WithComment(comment *string) *TableColumnRequest
- func (s *TableColumnRequest) WithDefaultValue(defaultValue *ColumnDefaultValueRequest) *TableColumnRequest
- func (s *TableColumnRequest) WithInlineConstraint(inlineConstraint *ColumnInlineConstraintRequest) *TableColumnRequest
- func (s *TableColumnRequest) WithMaskingPolicy(maskingPolicy *ColumnMaskingPolicyRequest) *TableColumnRequest
- func (s *TableColumnRequest) WithNotNull(notNull *bool) *TableColumnRequest
- func (s *TableColumnRequest) WithTags(tags []TagAssociation) *TableColumnRequest
- type TableColumnSignature
- type TableConstraintAction
- type TableConstraintActionRequest
- func (s *TableConstraintActionRequest) WithAdd(add *OutOfLineConstraintRequest) *TableConstraintActionRequest
- func (s *TableConstraintActionRequest) WithAlter(alter *TableConstraintAlterActionRequest) *TableConstraintActionRequest
- func (s *TableConstraintActionRequest) WithDrop(drop *TableConstraintDropActionRequest) *TableConstraintActionRequest
- func (s *TableConstraintActionRequest) WithRename(rename *TableConstraintRenameActionRequest) *TableConstraintActionRequest
- type TableConstraintAlterAction
- type TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithConstraintName(constraintName *string) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithEnforced(enforced *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithForeignKey(foreignKey *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithNoRely(noRely *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithNoValidate(noValidate *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithNotEnforced(notEnforced *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithPrimaryKey(primaryKey *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithRely(rely *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithUnique(unique *bool) *TableConstraintAlterActionRequest
- func (s *TableConstraintAlterActionRequest) WithValidate(validate *bool) *TableConstraintAlterActionRequest
- type TableConstraintDropAction
- type TableConstraintDropActionRequest
- func (s *TableConstraintDropActionRequest) WithCascade(cascade *bool) *TableConstraintDropActionRequest
- func (s *TableConstraintDropActionRequest) WithConstraintName(constraintName *string) *TableConstraintDropActionRequest
- func (s *TableConstraintDropActionRequest) WithForeignKey(foreignKey *bool) *TableConstraintDropActionRequest
- func (s *TableConstraintDropActionRequest) WithPrimaryKey(primaryKey *bool) *TableConstraintDropActionRequest
- func (s *TableConstraintDropActionRequest) WithRestrict(restrict *bool) *TableConstraintDropActionRequest
- func (s *TableConstraintDropActionRequest) WithUnique(unique *bool) *TableConstraintDropActionRequest
- type TableConstraintRenameAction
- type TableConstraintRenameActionRequest
- type TableDropAndAddRowAccessPolicy
- type TableDropAndAddRowAccessPolicyRequest
- type TableDropRowAccessPolicy
- type TableDropRowAccessPolicyRequest
- type TableExternalTableAction
- type TableExternalTableActionRequest
- func (s *TableExternalTableActionRequest) WithAdd(add *TableExternalTableColumnAddActionRequest) *TableExternalTableActionRequest
- func (s *TableExternalTableActionRequest) WithDrop(drop *TableExternalTableColumnDropActionRequest) *TableExternalTableActionRequest
- func (s *TableExternalTableActionRequest) WithRename(rename *TableExternalTableColumnRenameActionRequest) *TableExternalTableActionRequest
- type TableExternalTableColumnAddAction
- type TableExternalTableColumnAddActionRequest
- func (s *TableExternalTableColumnAddActionRequest) WithExpression(expression string) *TableExternalTableColumnAddActionRequest
- func (s *TableExternalTableColumnAddActionRequest) WithIfNotExists() *TableExternalTableColumnAddActionRequest
- func (s *TableExternalTableColumnAddActionRequest) WithName(name string) *TableExternalTableColumnAddActionRequest
- func (s *TableExternalTableColumnAddActionRequest) WithType(dataType DataType) *TableExternalTableColumnAddActionRequest
- type TableExternalTableColumnDropAction
- type TableExternalTableColumnDropActionRequest
- type TableExternalTableColumnRenameAction
- type TableExternalTableColumnRenameActionRequest
- type TableKind
- type TableReclusterAction
- type TableReclusterActionRequest
- type TableReclusterChangeState
- type TableReclusterChangeStateRequest
- type TableRowAccessPolicy
- type TableScope
- type TableSearchOptimizationAction
- type TableSearchOptimizationActionRequest
- type TableSet
- type TableSetRequest
- func (s *TableSetRequest) WithChangeTracking(changeTracking *bool) *TableSetRequest
- func (s *TableSetRequest) WithComment(comment *string) *TableSetRequest
- func (s *TableSetRequest) WithDataRetentionTimeInDays(dataRetentionTimeInDays *int) *TableSetRequest
- func (s *TableSetRequest) WithDefaultDDLCollation(defaultDDLCollation *string) *TableSetRequest
- func (s *TableSetRequest) WithEnableSchemaEvolution(enableSchemaEvolution *bool) *TableSetRequest
- func (s *TableSetRequest) WithMaxDataExtensionTimeInDays(maxDataExtensionTimeInDays *int) *TableSetRequest
- func (s *TableSetRequest) WithStageCopyOptions(stageCopyOptions StageCopyOptionsRequest) *TableSetRequest
- func (s *TableSetRequest) WithStageFileFormat(stageFileFormat StageFileFormatRequest) *TableSetRequest
- type TableStageDetails
- type TableUnset
- type TableUnsetRequest
- func (s *TableUnsetRequest) WithChangeTracking(changeTracking bool) *TableUnsetRequest
- func (s *TableUnsetRequest) WithComment(comment bool) *TableUnsetRequest
- func (s *TableUnsetRequest) WithDataRetentionTimeInDays(dataRetentionTimeInDays bool) *TableUnsetRequest
- func (s *TableUnsetRequest) WithDefaultDDLCollation(defaultDDLCollation bool) *TableUnsetRequest
- func (s *TableUnsetRequest) WithEnableSchemaEvolution(enableSchemaEvolution bool) *TableUnsetRequest
- func (s *TableUnsetRequest) WithMaxDataExtensionTimeInDays(maxDataExtensionTimeInDays bool) *TableUnsetRequest
- type TableUnsetTags
- type Tables
- type Tag
- type TagAdd
- type TagAssociation
- type TagAssociationRequest
- type TagDrop
- type TagMaskingPolicy
- type TagRename
- type TagSet
- type TagSetMaskingPolicies
- type TagSetRequest
- type TagUnset
- type TagUnsetMaskingPolicies
- type TagUnsetRequest
- type Tags
- type TargetLag
- type Task
- type TaskSet
- type TaskSetRequest
- func (s *TaskSetRequest) WithAllowOverlappingExecution(AllowOverlappingExecution *bool) *TaskSetRequest
- func (s *TaskSetRequest) WithComment(Comment *string) *TaskSetRequest
- func (s *TaskSetRequest) WithConfig(Config *string) *TaskSetRequest
- func (s *TaskSetRequest) WithErrorIntegration(ErrorIntegration *string) *TaskSetRequest
- func (s *TaskSetRequest) WithSchedule(Schedule *string) *TaskSetRequest
- func (s *TaskSetRequest) WithSessionParameters(SessionParameters *SessionParameters) *TaskSetRequest
- func (s *TaskSetRequest) WithSuspendTaskAfterNumFailures(SuspendTaskAfterNumFailures *int) *TaskSetRequest
- func (s *TaskSetRequest) WithUserTaskManagedInitialWarehouseSize(UserTaskManagedInitialWarehouseSize *WarehouseSize) *TaskSetRequest
- func (s *TaskSetRequest) WithUserTaskTimeoutMs(UserTaskTimeoutMs *int) *TaskSetRequest
- func (s *TaskSetRequest) WithWarehouse(Warehouse *AccountObjectIdentifier) *TaskSetRequest
- type TaskState
- type TaskUnset
- type TaskUnsetRequest
- func (s *TaskUnsetRequest) WithAllowOverlappingExecution(AllowOverlappingExecution *bool) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithComment(Comment *bool) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithConfig(Config *bool) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithErrorIntegration(ErrorIntegration *bool) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithSchedule(Schedule *bool) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithSessionParametersUnset(SessionParametersUnset *SessionParametersUnset) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithSuspendTaskAfterNumFailures(SuspendTaskAfterNumFailures *bool) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithUserTaskTimeoutMs(UserTaskTimeoutMs *bool) *TaskUnsetRequest
- func (s *TaskUnsetRequest) WithWarehouse(Warehouse *bool) *TaskUnsetRequest
- type Tasks
- type TimeFormat
- type TimeStampFormat
- type TimeTravel
- type TimeTravelRequest
- type TraceLevel
- type TransactionDefaultIsolationLevel
- type TriggerAction
- type TriggerDefinition
- type UndropTagRequest
- type UnsupportedDDLAction
- type UseRoleRequest
- type UseSecondaryRolesRequest
- type User
- type UserDetails
- type UserObjectParameters
- type UserObjectParametersUnset
- type UserObjectProperties
- type UserObjectPropertiesUnset
- type UserParameter
- type UserParameters
- type UserParametersUnset
- type UserSet
- type UserTag
- type UserUnset
- type Users
- type View
- type ViewAddRowAccessPolicy
- type ViewAddRowAccessPolicyRequest
- type ViewColumn
- type ViewColumnMaskingPolicy
- type ViewColumnMaskingPolicyRequest
- type ViewColumnRequest
- type ViewDetails
- type ViewDropAndAddRowAccessPolicy
- type ViewDropAndAddRowAccessPolicyRequest
- type ViewDropRowAccessPolicy
- type ViewDropRowAccessPolicyRequest
- type ViewRowAccessPolicy
- type ViewRowAccessPolicyRequest
- type ViewSetColumnMaskingPolicy
- type ViewSetColumnMaskingPolicyRequest
- type ViewSetColumnTags
- type ViewSetColumnTagsRequest
- type ViewUnsetColumnMaskingPolicy
- type ViewUnsetColumnMaskingPolicyRequest
- type ViewUnsetColumnTags
- type ViewUnsetColumnTagsRequest
- type Views
- type Warehouse
- type WarehouseDetails
- type WarehouseSet
- type WarehouseSize
- type WarehouseState
- type WarehouseType
- type WarehouseUnset
- type Warehouses
- type XMLCompression
Constants ¶
const ( ResourceMonitorLevelAccount = iota ResourceMonitorLevelWarehouse ResourceMonitorLevelNull )
const ( Comma commaModifier = "comma" NoComma commaModifier = "no_comma" )
const ( NoQuotes quoteModifier = "no_quotes" DoubleQuotes quoteModifier = "double_quotes" SingleQuotes quoteModifier = "single_quotes" )
const ( NoParentheses parenModifier = "no_parentheses" Parentheses parenModifier = "parentheses" MustParentheses parenModifier = "must_parentheses" )
const ( NoReverse reverseModifier = "no_reverse" Reverse reverseModifier = "reverse" )
const ( Equals equalsModifier = "equals" ArrowEquals equalsModifier = "arrow_equals" NoEquals equalsModifier = "no_equals" )
Variables ¶
var ( ErrNilOptions = NewError("options cannot be nil") ErrPatternRequiredForLikeKeyword = NewError("pattern must be specified for like keyword") // go-snowflake errors. ErrObjectNotExistOrAuthorized = NewError("object does not exist or not authorized") ErrAccountIsEmpty = NewError("account is empty") // snowflake-sdk errors. ErrInvalidObjectIdentifier = NewError("invalid object identifier") ErrDifferentDatabase = NewError("database must be the same") )
var ApplicationRolesDef = g.NewInterface( "ApplicationRoles", "ApplicationRole", g.KindOfT[DatabaseObjectIdentifier](), ). ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-application-roles", g.DbStruct("applicationRoleDbRow"). Field("created_on", "time.Time"). Field("name", "string"). Field("owner", "string"). Field("comment", "string"). Field("owner_role_type", "string"), g.PlainStruct("ApplicationRole"). Field("CreatedOn", "time.Time"). Field("Name", "string"). Field("Owner", "string"). Field("Comment", "string"). Field("OwnerRoleType", "string"), g.NewQueryStruct("ShowApplicationRoles"). Show(). SQL("APPLICATION ROLES IN APPLICATION"). Identifier("ApplicationName", g.KindOfT[AccountObjectIdentifier](), g.IdentifierOptions()). OptionalLimitFrom(). WithValidation(g.ValidIdentifier, "ApplicationName"), )
var EventTablesDef = g.NewInterface( "EventTables", "EventTable", g.KindOfT[SchemaObjectIdentifier](), ).CreateOperation( "https://docs.snowflake.com/en/sql-reference/sql/create-event-table", g.NewQueryStruct("CreateEventTable"). Create(). OrReplace(). SQL("EVENT TABLE"). IfNotExists(). Name(). NamedListWithParens("CLUSTER BY", g.KindOfT[string](), g.KeywordOptions()). OptionalNumberAssignment("DATA_RETENTION_TIME_IN_DAYS", g.ParameterOptions()). OptionalNumberAssignment("MAX_DATA_EXTENSION_TIME_IN_DAYS", g.ParameterOptions()). OptionalBooleanAssignment("CHANGE_TRACKING", g.ParameterOptions()). OptionalTextAssignment("DEFAULT_DDL_COLLATION", g.ParameterOptions().SingleQuotes()). OptionalSQL("COPY GRANTS"). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("RowAccessPolicy", "*RowAccessPolicy", g.KeywordOptions()). OptionalTags(). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ConflictingFields, "OrReplace", "IfNotExists"), ).ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-event-tables", g.DbStruct("eventTableRow"). Field("created_on", "time.Time"). Field("name", "string"). Field("database_name", "string"). Field("schema_name", "string"). Field("owner", "sql.NullString"). Field("comment", "sql.NullString"). Field("owner_role_type", "sql.NullString"), g.PlainStruct("EventTable"). Field("CreatedOn", "time.Time"). Field("Name", "string"). Field("DatabaseName", "string"). Field("SchemaName", "string"). Field("Owner", "string"). Field("Comment", "string"). Field("OwnerRoleType", "string"), g.NewQueryStruct("ShowEventTables"). Show(). Terse(). SQL("EVENT TABLES"). OptionalLike(). OptionalIn(). OptionalStartsWith(). OptionalLimit(), ).ShowByIdOperation().DescribeOperation( g.DescriptionMappingKindSingleValue, "https://docs.snowflake.com/en/sql-reference/sql/desc-event-table", g.DbStruct("eventTableDetailsRow"). Field("name", "string"). Field("kind", "string"). Field("comment", "string"), g.PlainStruct("EventTableDetails"). Field("Name", "string"). Field("Kind", "string"). Field("Comment", "string"), g.NewQueryStruct("DescribeEventTable"). Describe(). SQL("EVENT TABLE"). Name(). WithValidation(g.ValidIdentifier, "name"), ).DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-table", g.NewQueryStruct("DropEventTable"). Drop(). SQL("TABLE"). IfExists(). Name(). OptionalSQL("RESTRICT"). WithValidation(g.ValidIdentifier, "name"), ).AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-table-event-table", g.NewQueryStruct("AlterEventTable"). Alter(). SQL("TABLE"). IfNotExists(). Name(). OptionalQueryStructField( "Set", eventTableSet, g.KeywordOptions().SQL("SET"), ). OptionalQueryStructField( "Unset", eventTableUnset, g.KeywordOptions().SQL("UNSET"), ). OptionalQueryStructField("AddRowAccessPolicy", eventTableAddRowAccessPolicy, g.KeywordOptions()). OptionalQueryStructField("DropRowAccessPolicy", eventTableDropRowAccessPolicy, g.KeywordOptions()). OptionalQueryStructField("DropAndAddRowAccessPolicy", eventTableDropAndAddRowAccessPolicy, g.ListOptions().NoParentheses()). OptionalSQL("DROP ALL ROW ACCESS POLICIES"). OptionalQueryStructField( "ClusteringAction", eventTableClusteringAction, g.KeywordOptions(), ). OptionalQueryStructField( "SearchOptimizationAction", eventTableSearchOptimizationAction, g.KeywordOptions(), ). OptionalSetTags(). OptionalUnsetTags(). Identifier("RenameTo", g.KindOfTPointer[SchemaObjectIdentifier](), g.IdentifierOptions().SQL("RENAME TO")). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ExactlyOneValueSet, "RenameTo", "Set", "Unset", "SetTags", "UnsetTags", "AddRowAccessPolicy", "DropRowAccessPolicy", "DropAndAddRowAccessPolicy", "DropAllRowAccessPolicies", "ClusteringAction", "SearchOptimizationAction"), )
var ( NetworkPoliciesDef = g.NewInterface( "NetworkPolicies", "NetworkPolicy", g.KindOfT[AccountObjectIdentifier](), ). CreateOperation( "https://docs.snowflake.com/en/sql-reference/sql/create-network-policy", g.NewQueryStruct("CreateNetworkPolicies"). Create(). OrReplace(). SQL("NETWORK POLICY"). Name(). ListQueryStructField("AllowedIpList", ip, g.ParameterOptions().SQL("ALLOWED_IP_LIST").Parentheses()). ListQueryStructField("BlockedIpList", ip, g.ParameterOptions().SQL("BLOCKED_IP_LIST").Parentheses()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). WithValidation(g.ValidIdentifier, "name"), ). AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-network-policy", g.NewQueryStruct("AlterNetworkPolicy"). Alter(). SQL("NETWORK POLICY"). IfExists(). Name(). OptionalQueryStructField( "Set", g.NewQueryStruct("NetworkPolicySet"). ListQueryStructField("AllowedIpList", ip, g.ParameterOptions().SQL("ALLOWED_IP_LIST").Parentheses()). ListQueryStructField("BlockedIpList", ip, g.ParameterOptions().SQL("BLOCKED_IP_LIST").Parentheses()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). WithValidation(g.AtLeastOneValueSet, "AllowedIpList", "BlockedIpList", "Comment"), g.KeywordOptions().SQL("SET"), ). OptionalSQL("UNSET COMMENT"). Identifier("RenameTo", g.KindOfTPointer[AccountObjectIdentifier](), g.IdentifierOptions().SQL("RENAME TO")). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ExactlyOneValueSet, "Set", "UnsetComment", "RenameTo"). WithValidation(g.ValidIdentifierIfSet, "RenameTo"), ). DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-network-policy", g.NewQueryStruct("DropNetworkPolicy"). Drop(). SQL("NETWORK POLICY"). IfExists(). Name(). WithValidation(g.ValidIdentifier, "name"), ). ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-network-policies", g.DbStruct("showNetworkPolicyDBRow"). Field("created_on", "string"). Field("name", "string"). Field("comment", "string"). Field("entries_in_allowed_ip_list", "int"). Field("entries_in_blocked_ip_list", "int"), g.PlainStruct("NetworkPolicy"). Field("CreatedOn", "string"). Field("Name", "string"). Field("Comment", "string"). Field("EntriesInAllowedIpList", "int"). Field("EntriesInBlockedIpList", "int"), g.NewQueryStruct("ShowNetworkPolicies"). Show(). SQL("NETWORK POLICIES"), ). DescribeOperation( g.DescriptionMappingKindSlice, "https://docs.snowflake.com/en/sql-reference/sql/desc-network-policy", g.DbStruct("describeNetworkPolicyDBRow"). Field("name", "string"). Field("value", "string"), g.PlainStruct("NetworkPolicyDescription"). Field("Name", "string"). Field("Value", "string"), g.NewQueryStruct("DescribeNetworkPolicy"). Describe(). SQL("NETWORK POLICY"). Name(). WithValidation(g.ValidIdentifier, "name"), ) )
var ProceduresDef = g.NewInterface( "Procedures", "Procedure", g.KindOfT[SchemaObjectIdentifier](), ).CustomOperation( "CreateForJava", "https://docs.snowflake.com/en/sql-reference/sql/create-procedure#java-handler", g.NewQueryStruct("CreateForJava"). Create(). OrReplace(). OptionalSQL("SECURE"). SQL("PROCEDURE"). Name(). ListQueryStructField( "Arguments", procedureArgument, g.ListOptions().MustParentheses(), ). OptionalSQL("COPY GRANTS"). QueryStructField( "Returns", procedureReturns, g.KeywordOptions().SQL("RETURNS").Required(), ). SQL("LANGUAGE JAVA"). TextAssignment("RUNTIME_VERSION", g.ParameterOptions().SingleQuotes().Required()). ListQueryStructField( "Packages", procedurePackage, g.ParameterOptions().Parentheses().SQL("PACKAGES").Required(), ). ListQueryStructField( "Imports", procedureImport, g.ParameterOptions().Parentheses().SQL("IMPORTS"), ). TextAssignment("HANDLER", g.ParameterOptions().SingleQuotes().Required()). ListAssignment("EXTERNAL_ACCESS_INTEGRATIONS", "AccountObjectIdentifier", g.ParameterOptions().Parentheses()). ListAssignment("SECRETS", "Secret", g.ParameterOptions().Parentheses()). OptionalTextAssignment("TARGET_PATH", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("NullInputBehavior", "*NullInputBehavior", g.KeywordOptions()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("ExecuteAs", "*ExecuteAs", g.KeywordOptions()). PredefinedQueryStructField("ProcedureDefinition", "*string", g.ParameterOptions().NoEquals().SingleQuotes().SQL("AS")). WithValidation(g.ValidateValueSet, "RuntimeVersion"). WithValidation(g.ValidateValueSet, "Handler"). WithValidation(g.ValidateValueSet, "Packages"). WithValidation(g.ValidIdentifier, "name"), ).CustomOperation( "CreateForJavaScript", "https://docs.snowflake.com/en/sql-reference/sql/create-procedure#javascript-handler", g.NewQueryStruct("CreateForJavaScript"). Create(). OrReplace(). OptionalSQL("SECURE"). SQL("PROCEDURE"). Name(). ListQueryStructField( "Arguments", procedureArgument, g.ListOptions().MustParentheses(), ). OptionalSQL("COPY GRANTS"). PredefinedQueryStructField("ResultDataType", "DataType", g.ParameterOptions().NoEquals().SQL("RETURNS").Required()). OptionalSQL("NOT NULL"). SQL("LANGUAGE JAVASCRIPT"). PredefinedQueryStructField("NullInputBehavior", "*NullInputBehavior", g.KeywordOptions()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("ExecuteAs", "*ExecuteAs", g.KeywordOptions()). PredefinedQueryStructField("ProcedureDefinition", "string", g.ParameterOptions().NoEquals().SingleQuotes().SQL("AS").Required()). WithValidation(g.ValidateValueSet, "ProcedureDefinition"). WithValidation(g.ValidIdentifier, "name"), ).CustomOperation( "CreateForPython", "https://docs.snowflake.com/en/sql-reference/sql/create-procedure#python-handler", g.NewQueryStruct("CreateForPython"). Create(). OrReplace(). OptionalSQL("SECURE"). SQL("PROCEDURE"). Name(). ListQueryStructField( "Arguments", procedureArgument, g.ListOptions().MustParentheses(), ). OptionalSQL("COPY GRANTS"). QueryStructField( "Returns", procedureReturns, g.KeywordOptions().SQL("RETURNS").Required(), ). SQL("LANGUAGE PYTHON"). TextAssignment("RUNTIME_VERSION", g.ParameterOptions().SingleQuotes().Required()). ListQueryStructField( "Packages", procedurePackage, g.ParameterOptions().Parentheses().SQL("PACKAGES").Required(), ). ListQueryStructField( "Imports", procedureImport, g.ParameterOptions().Parentheses().SQL("IMPORTS"), ). TextAssignment("HANDLER", g.ParameterOptions().SingleQuotes().Required()). ListAssignment("EXTERNAL_ACCESS_INTEGRATIONS", "AccountObjectIdentifier", g.ParameterOptions().Parentheses()). ListAssignment("SECRETS", "Secret", g.ParameterOptions().Parentheses()). PredefinedQueryStructField("NullInputBehavior", "*NullInputBehavior", g.KeywordOptions()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("ExecuteAs", "*ExecuteAs", g.KeywordOptions()). PredefinedQueryStructField("ProcedureDefinition", "*string", g.ParameterOptions().NoEquals().SingleQuotes().SQL("AS")). WithValidation(g.ValidateValueSet, "RuntimeVersion"). WithValidation(g.ValidateValueSet, "Handler"). WithValidation(g.ValidateValueSet, "Packages"). WithValidation(g.ValidIdentifier, "name"), ).CustomOperation( "CreateForScala", "https://docs.snowflake.com/en/sql-reference/sql/create-procedure#scala-handler", g.NewQueryStruct("CreateForScala"). Create(). OrReplace(). OptionalSQL("SECURE"). SQL("PROCEDURE"). Name(). ListQueryStructField( "Arguments", procedureArgument, g.ListOptions().MustParentheses(), ). OptionalSQL("COPY GRANTS"). QueryStructField( "Returns", procedureReturns, g.KeywordOptions().SQL("RETURNS").Required(), ). SQL("LANGUAGE SCALA"). TextAssignment("RUNTIME_VERSION", g.ParameterOptions().SingleQuotes().Required()). ListQueryStructField( "Packages", procedurePackage, g.ParameterOptions().Parentheses().SQL("PACKAGES").Required(), ). ListQueryStructField( "Imports", procedureImport, g.ParameterOptions().Parentheses().SQL("IMPORTS"), ). TextAssignment("HANDLER", g.ParameterOptions().SingleQuotes().Required()). OptionalTextAssignment("TARGET_PATH", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("NullInputBehavior", "*NullInputBehavior", g.KeywordOptions()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("ExecuteAs", "*ExecuteAs", g.KeywordOptions()). PredefinedQueryStructField("ProcedureDefinition", "*string", g.ParameterOptions().NoEquals().SingleQuotes().SQL("AS")). WithValidation(g.ValidateValueSet, "RuntimeVersion"). WithValidation(g.ValidateValueSet, "Handler"). WithValidation(g.ValidateValueSet, "Packages"). WithValidation(g.ValidIdentifier, "name"), ).CustomOperation( "CreateForSQL", "https://docs.snowflake.com/en/sql-reference/sql/create-procedure#snowflake-scripting-handler", g.NewQueryStruct("CreateForSQL"). Create(). OrReplace(). OptionalSQL("SECURE"). SQL("PROCEDURE"). Name(). ListQueryStructField( "Arguments", procedureArgument, g.ListOptions().MustParentheses(), ). OptionalSQL("COPY GRANTS"). QueryStructField( "Returns", procedureSQLReturns, g.KeywordOptions().SQL("RETURNS").Required(), ). SQL("LANGUAGE SQL"). PredefinedQueryStructField("NullInputBehavior", "*NullInputBehavior", g.KeywordOptions()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). PredefinedQueryStructField("ExecuteAs", "*ExecuteAs", g.KeywordOptions()). PredefinedQueryStructField("ProcedureDefinition", "string", g.ParameterOptions().NoEquals().SingleQuotes().SQL("AS").Required()). WithValidation(g.ValidateValueSet, "ProcedureDefinition"). WithValidation(g.ValidIdentifier, "name"), ).AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-procedure", g.NewQueryStruct("AlterProcedure"). Alter(). SQL("PROCEDURE"). IfExists(). Name(). PredefinedQueryStructField("ArgumentDataTypes", "[]DataType", g.KeywordOptions().Parentheses().Required()). OptionalIdentifier("RenameTo", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().SQL("RENAME TO")). OptionalTextAssignment("SET COMMENT", g.ParameterOptions().SingleQuotes()). OptionalTextAssignment("SET LOG_LEVEL", g.ParameterOptions().SingleQuotes()). OptionalTextAssignment("SET TRACE_LEVEL", g.ParameterOptions().SingleQuotes()). OptionalSQL("UNSET COMMENT"). OptionalSetTags(). OptionalUnsetTags(). PredefinedQueryStructField("ExecuteAs", "*ExecuteAs", g.KeywordOptions()). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ValidIdentifierIfSet, "RenameTo"). WithValidation(g.ExactlyOneValueSet, "RenameTo", "SetComment", "SetLogLevel", "SetTraceLevel", "UnsetComment", "SetTags", "UnsetTags", "ExecuteAs"), ).DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-procedure", g.NewQueryStruct("DropProcedure"). Drop(). SQL("PROCEDURE"). IfExists(). Name(). PredefinedQueryStructField("ArgumentDataTypes", "[]DataType", g.KeywordOptions().Parentheses().Required()). WithValidation(g.ValidIdentifier, "name"), ).ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-procedures", g.DbStruct("procedureRow"). Field("created_on", "string"). Field("name", "string"). Field("schema_name", "string"). Field("is_builtin", "string"). Field("is_aggregate", "string"). Field("is_ansi", "string"). Field("min_num_arguments", "int"). Field("max_num_arguments", "int"). Field("arguments", "string"). Field("description", "string"). Field("catalog_name", "string"). Field("is_table_function", "string"). Field("valid_for_clustering", "string"). Field("is_secure", "sql.NullString"), g.PlainStruct("Procedure"). Field("CreatedOn", "string"). Field("Name", "string"). Field("SchemaName", "string"). Field("IsBuiltin", "bool"). Field("IsAggregate", "bool"). Field("IsAnsi", "bool"). Field("MinNumArguments", "int"). Field("MaxNumArguments", "int"). Field("Arguments", "string"). Field("Description", "string"). Field("CatalogName", "string"). Field("IsTableFunction", "bool"). Field("ValidForClustering", "bool"). Field("IsSecure", "bool"), g.NewQueryStruct("ShowProcedures"). Show(). SQL("PROCEDURES"). OptionalLike(). OptionalIn(), ).ShowByIdOperation().DescribeOperation( g.DescriptionMappingKindSlice, "https://docs.snowflake.com/en/sql-reference/sql/desc-procedure", g.DbStruct("procedureDetailRow"). Field("property", "string"). Field("value", "string"), g.PlainStruct("ProcedureDetail"). Field("Property", "string"). Field("Value", "string"), g.NewQueryStruct("DescribeProcedure"). Describe(). SQL("PROCEDURE"). Name(). PredefinedQueryStructField("ArgumentDataTypes", "[]DataType", g.KeywordOptions().Parentheses().Required()). WithValidation(g.ValidIdentifier, "name"), )
var SessionPoliciesDef = g.NewInterface( "SessionPolicies", "SessionPolicy", g.KindOfT[SchemaObjectIdentifier](), ). CreateOperation( "https://docs.snowflake.com/en/sql-reference/sql/create-session-policy", g.NewQueryStruct("CreateSessionPolicy"). Create(). OrReplace(). SQL("SESSION POLICY"). IfNotExists(). Name(). OptionalNumberAssignment("SESSION_IDLE_TIMEOUT_MINS", g.ParameterOptions().NoQuotes()). OptionalNumberAssignment("SESSION_UI_IDLE_TIMEOUT_MINS", g.ParameterOptions().NoQuotes()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ConflictingFields, "OrReplace", "IfNotExists"), ). AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-session-policy", g.NewQueryStruct("AlterSessionPolicy"). Alter(). SQL("SESSION POLICY"). IfExists(). Name(). OptionalIdentifier("RenameTo", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().SQL("RENAME TO")). OptionalQueryStructField( "Set", g.NewQueryStruct("SessionPolicySet"). OptionalNumberAssignment("SESSION_IDLE_TIMEOUT_MINS", g.ParameterOptions().NoQuotes()). OptionalNumberAssignment("SESSION_UI_IDLE_TIMEOUT_MINS", g.ParameterOptions().NoQuotes()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). WithValidation(g.AtLeastOneValueSet, "SessionIdleTimeoutMins", "SessionUiIdleTimeoutMins", "Comment"), g.KeywordOptions().SQL("SET"), ). OptionalSetTags(). OptionalUnsetTags(). OptionalQueryStructField( "Unset", g.NewQueryStruct("SessionPolicyUnset"). OptionalSQL("SESSION_IDLE_TIMEOUT_MINS"). OptionalSQL("SESSION_UI_IDLE_TIMEOUT_MINS"). OptionalSQL("COMMENT"). WithValidation(g.AtLeastOneValueSet, "SessionIdleTimeoutMins", "SessionUiIdleTimeoutMins", "Comment"), g.KeywordOptions().SQL("UNSET"), ). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ExactlyOneValueSet, "RenameTo", "Set", "SetTags", "UnsetTags", "Unset"), ). DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-session-policy", g.NewQueryStruct("DropSessionPolicy"). Drop(). SQL("SESSION POLICY"). IfExists(). Name(). WithValidation(g.ValidIdentifier, "name"), ). ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-session-policies", g.DbStruct("showSessionPolicyDBRow"). Field("created_on", "string"). Field("name", "string"). Field("database_name", "string"). Field("schema_name", "string"). Field("kind", "string"). Field("owner", "string"). Field("comment", "string"). Field("options", "string"), g.PlainStruct("SessionPolicy"). Field("CreatedOn", "string"). Field("Name", "string"). Field("DatabaseName", "string"). Field("SchemaName", "string"). Field("Kind", "string"). Field("Owner", "string"). Field("Comment", "string"). Field("Options", "string"), g.NewQueryStruct("ShowSessionPolicies"). Show(). SQL("SESSION POLICIES"), ). DescribeOperation( g.DescriptionMappingKindSingleValue, "https://docs.snowflake.com/en/sql-reference/sql/desc-session-policy", g.DbStruct("describeSessionPolicyDBRow"). Field("created_on", "string"). Field("name", "string"). Field("session_idle_timeout_mins", "int"). Field("session_ui_idle_timeout_mins", "int"). Field("comment", "string"), g.PlainStruct("SessionPolicyDescription"). Field("CreatedOn", "string"). Field("Name", "string"). Field("SessionIdleTimeoutMins", "int"). Field("SessionUIIdleTimeoutMins", "int"). Field("Comment", "string"), g.NewQueryStruct("DescribeSessionPolicy"). Describe(). SQL("SESSION POLICY"). Name(). WithValidation(g.ValidIdentifier, "name"), )
var StagesDef = g.NewInterface( "Stages", "Stage", g.KindOfT[SchemaObjectIdentifier](), ). CustomOperation( "CreateInternal", "https://docs.snowflake.com/en/sql-reference/sql/create-stage", createStageOperation("CreateInternalStage", func(qs *g.QueryStruct) *g.QueryStruct { return qs. OptionalQueryStructField( "Encryption", g.NewQueryStruct("InternalStageEncryption"). OptionalAssignment( "TYPE", g.KindOfT[InternalStageEncryptionOption](), g.ParameterOptions().SingleQuotes().Required(), ), g.ListOptions().Parentheses().NoComma().SQL("ENCRYPTION ="), ). OptionalQueryStructField( "DirectoryTableOptions", g.NewQueryStruct("InternalDirectoryTableOptions"). OptionalBooleanAssignment("ENABLE", nil). OptionalBooleanAssignment("REFRESH_ON_CREATE", nil), g.ListOptions().Parentheses().NoComma().SQL("DIRECTORY ="), ) }), ). CustomOperation( "CreateOnS3", "https://docs.snowflake.com/en/sql-reference/sql/create-stage", createStageOperation("CreateExternalS3Stage", func(qs *g.QueryStruct) *g.QueryStruct { return qs. OptionalQueryStructField("ExternalStageParams", externalS3StageParamsDef, nil). OptionalQueryStructField( "DirectoryTableOptions", g.NewQueryStruct("ExternalS3DirectoryTableOptions"). OptionalBooleanAssignment("ENABLE", nil). OptionalBooleanAssignment("REFRESH_ON_CREATE", nil). OptionalBooleanAssignment("AUTO_REFRESH", nil), g.ListOptions().Parentheses().NoComma().SQL("DIRECTORY ="), ) }), ). CustomOperation( "CreateOnGCS", "https://docs.snowflake.com/en/sql-reference/sql/create-stage", createStageOperation("CreateExternalGCSStage", func(qs *g.QueryStruct) *g.QueryStruct { return qs. OptionalQueryStructField("ExternalStageParams", externalGCSStageParamsDef, nil). OptionalQueryStructField( "DirectoryTableOptions", g.NewQueryStruct("ExternalGCSDirectoryTableOptions"). OptionalBooleanAssignment("ENABLE", nil). OptionalBooleanAssignment("REFRESH_ON_CREATE", nil). OptionalBooleanAssignment("AUTO_REFRESH", nil). OptionalTextAssignment("NOTIFICATION_INTEGRATION", g.ParameterOptions().SingleQuotes()), g.ListOptions().Parentheses().NoComma().SQL("DIRECTORY ="), ) }), ). CustomOperation( "CreateOnAzure", "https://docs.snowflake.com/en/sql-reference/sql/create-stage", createStageOperation("CreateExternalAzureStage", func(qs *g.QueryStruct) *g.QueryStruct { return qs. OptionalQueryStructField("ExternalStageParams", externalAzureStageParamsDef, nil). OptionalQueryStructField( "DirectoryTableOptions", g.NewQueryStruct("ExternalAzureDirectoryTableOptions"). OptionalBooleanAssignment("ENABLE", nil). OptionalBooleanAssignment("REFRESH_ON_CREATE", nil). OptionalBooleanAssignment("AUTO_REFRESH", nil). OptionalTextAssignment("NOTIFICATION_INTEGRATION", g.ParameterOptions().SingleQuotes()), g.ListOptions().Parentheses().NoComma().SQL("DIRECTORY ="), ) }), ). CustomOperation( "CreateOnS3Compatible", "https://docs.snowflake.com/en/sql-reference/sql/create-stage", createStageOperation("CreateExternalS3CompatibleStage", func(qs *g.QueryStruct) *g.QueryStruct { return qs. TextAssignment("URL", g.ParameterOptions().SingleQuotes()). TextAssignment("ENDPOINT", g.ParameterOptions().SingleQuotes()). OptionalQueryStructField( "Credentials", g.NewQueryStruct("ExternalStageS3CompatibleCredentials"). OptionalTextAssignment("AWS_KEY_ID", g.ParameterOptions().SingleQuotes().Required()). OptionalTextAssignment("AWS_SECRET_KEY", g.ParameterOptions().SingleQuotes().Required()), g.ListOptions().Parentheses().NoComma().SQL("CREDENTIALS ="), ). OptionalQueryStructField( "DirectoryTableOptions", g.NewQueryStruct("ExternalS3DirectoryTableOptions"). OptionalBooleanAssignment("ENABLE", nil). OptionalBooleanAssignment("REFRESH_ON_CREATE", nil). OptionalBooleanAssignment("AUTO_REFRESH", nil), g.ListOptions().Parentheses().NoComma().SQL("DIRECTORY ="), ) }), ). AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-stage", g.NewQueryStruct("AlterStage"). Alter(). SQL("STAGE"). IfExists(). Name(). OptionalIdentifier("RenameTo", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().SQL("RENAME TO")). NamedList("SET TAG", g.KindOfT[TagAssociation]()). NamedList("UNSET TAG", g.KindOfT[ObjectIdentifier]()). WithValidation(g.ValidIdentifierIfSet, "RenameTo"). WithValidation(g.ExactlyOneValueSet, "RenameTo", "SetTags", "UnsetTags"). WithValidation(g.ConflictingFields, "IfExists", "UnsetTags"). WithValidation(g.ValidIdentifier, "name"), ). CustomOperation( "AlterInternalStage", "https://docs.snowflake.com/en/sql-reference/sql/alter-stage", alterStageOperation("AlterInternalStage", func(qs *g.QueryStruct) *g.QueryStruct { return qs }), ). CustomOperation( "AlterExternalS3Stage", "https://docs.snowflake.com/en/sql-reference/sql/alter-stage", alterStageOperation("AlterExternalS3Stage", func(qs *g.QueryStruct) *g.QueryStruct { return qs.OptionalQueryStructField("ExternalStageParams", externalS3StageParamsDef, nil) }), ). CustomOperation( "AlterExternalGCSStage", "https://docs.snowflake.com/en/sql-reference/sql/alter-stage", alterStageOperation("AlterExternalGCSStage", func(qs *g.QueryStruct) *g.QueryStruct { return qs.OptionalQueryStructField("ExternalStageParams", externalGCSStageParamsDef, nil) }), ). CustomOperation( "AlterExternalAzureStage", "https://docs.snowflake.com/en/sql-reference/sql/alter-stage", alterStageOperation("AlterExternalAzureStage", func(qs *g.QueryStruct) *g.QueryStruct { return qs.OptionalQueryStructField("ExternalStageParams", externalAzureStageParamsDef, nil) }), ). CustomOperation( "AlterDirectoryTable", "https://docs.snowflake.com/en/sql-reference/sql/alter-stage", g.NewQueryStruct("AlterDirectoryTable"). Alter(). SQL("STAGE"). IfExists(). Name(). OptionalQueryStructField( "SetDirectory", g.NewQueryStruct("DirectoryTableSet").BooleanAssignment("ENABLE", g.ParameterOptions().Required()), g.ListOptions().Parentheses().NoComma().SQL("SET DIRECTORY ="), ). OptionalQueryStructField( "Refresh", g.NewQueryStruct("DirectoryTableRefresh").OptionalTextAssignment("SUBPATH", g.ParameterOptions().SingleQuotes()), g.KeywordOptions().SQL("REFRESH"), ). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ConflictingFields, "SetDirectory", "Refresh"), ). DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-stage", g.NewQueryStruct("DropStage"). Drop(). SQL("STAGE"). IfExists(). Name(). WithValidation(g.ValidIdentifier, "name"), ). DescribeOperation( g.DescriptionMappingKindSlice, "https://docs.snowflake.com/en/sql-reference/sql/desc-stage", g.DbStruct("stageDescRow"). Field("parent_property", "string"). Field("property", "string"). Field("property_type", "string"). Field("property_value", "string"). Field("property_default", "string"), g.PlainStruct("StageProperty"). Field("Parent", "string"). Field("Name", "string"). Field("Type", "string"). Field("Value", "string"). Field("Default", "string"), g.NewQueryStruct("DescStage"). Describe(). SQL("STAGE"). Name(). WithValidation(g.ValidIdentifier, "name"), ). ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-stages", g.DbStruct("stageShowRow"). Field("created_on", "time.Time"). Field("name", "string"). Field("database_name", "string"). Field("schema_name", "string"). Field("url", "string"). Field("has_credentials", "string"). Field("has_encryption_key", "string"). Field("owner", "string"). Field("comment", "string"). Field("region", "sql.NullString"). Field("type", "string"). Field("cloud", "sql.NullString"). Field("storage_integration", "sql.NullString"). Field("endpoint", "sql.NullString"). Field("owner_role_type", "sql.NullString"). Field("directory_enabled", "string"), g.PlainStruct("Stage"). Field("CreatedOn", "time.Time"). Field("Name", "string"). Field("DatabaseName", "string"). Field("SchemaName", "string"). Field("Url", "string"). Field("HasCredentials", "bool"). Field("HasEncryptionKey", "bool"). Field("Owner", "string"). Field("Comment", "string"). Field("Region", "*string"). Field("Type", "string"). Field("Cloud", "*string"). Field("StorageIntegration", "*string"). Field("Endpoint", "*string"). Field("OwnerRoleType", "*string"). Field("DirectoryEnabled", "bool"), g.NewQueryStruct("ShowStages"). Show(). SQL("STAGES"). OptionalLike(). OptionalIn(), ). ShowByIdOperation()
var ( StreamsDef = g.NewInterface( "Streams", "Stream", g.KindOfT[SchemaObjectIdentifier](), ). CustomOperation( "CreateOnTable", "https://docs.snowflake.com/en/sql-reference/sql/create-stream", g.NewQueryStruct("CreateStreamOnTable"). Create(). OrReplace(). SQL("STREAM"). IfNotExists(). Name(). OptionalCopyGrants(). SQL("ON TABLE"). Identifier("TableId", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().Required()). OptionalQueryStructField("On", onStreamDef, g.KeywordOptions()). OptionalBooleanAssignment("APPEND_ONLY", nil). OptionalBooleanAssignment("SHOW_INITIAL_ROWS", nil). OptionalComment(). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ValidIdentifier, "TableId"). WithValidation(g.ConflictingFields, "IfNotExists", "OrReplace"), ). CustomOperation( "CreateOnExternalTable", "https://docs.snowflake.com/en/sql-reference/sql/create-stream", g.NewQueryStruct("CreateStreamOnExternalTable"). Create(). OrReplace(). SQL("STREAM"). IfNotExists(). Name(). OptionalCopyGrants(). SQL("ON EXTERNAL TABLE"). Identifier("ExternalTableId", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().Required()). OptionalQueryStructField("On", onStreamDef, g.KeywordOptions()). OptionalBooleanAssignment("INSERT_ONLY", nil). OptionalComment(). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ValidIdentifier, "ExternalTableId"). WithValidation(g.ConflictingFields, "IfNotExists", "OrReplace"), ). CustomOperation( "CreateOnDirectoryTable", "https://docs.snowflake.com/en/sql-reference/sql/create-stream", g.NewQueryStruct("CreateStreamOnDirectoryTable"). Create(). OrReplace(). SQL("STREAM"). IfNotExists(). Name(). OptionalCopyGrants(). SQL("ON STAGE"). Identifier("StageId", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().Required()). OptionalComment(). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ValidIdentifier, "StageId"). WithValidation(g.ConflictingFields, "IfNotExists", "OrReplace"), ). CustomOperation( "CreateOnView", "https://docs.snowflake.com/en/sql-reference/sql/create-stream", g.NewQueryStruct("CreateStreamOnView"). Create(). OrReplace(). SQL("STREAM"). IfNotExists(). Name(). OptionalCopyGrants(). SQL("ON VIEW"). Identifier("ViewId", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().Required()). OptionalQueryStructField("On", onStreamDef, g.KeywordOptions()). OptionalBooleanAssignment("APPEND_ONLY", nil). OptionalBooleanAssignment("SHOW_INITIAL_ROWS", nil). OptionalComment(). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ValidIdentifier, "ViewId"). WithValidation(g.ConflictingFields, "IfNotExists", "OrReplace"), ). CustomOperation( "Clone", "https://docs.snowflake.com/en/sql-reference/sql/create-stream#variant-syntax", g.NewQueryStruct("CloneStream"). Create(). OrReplace(). SQL("STREAM"). Name(). Identifier("sourceStream", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().SQL("CLONE").Required()). OptionalCopyGrants(). WithValidation(g.ValidIdentifier, "name"), ). AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-stream", g.NewQueryStruct("AlterStream"). Alter(). SQL("STREAM"). IfExists(). Name(). OptionalTextAssignment("SET COMMENT", g.ParameterOptions().SingleQuotes()). OptionalSQL("UNSET COMMENT"). OptionalSetTags(). OptionalUnsetTags(). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ConflictingFields, "IfExists", "UnsetTags"). WithValidation(g.ExactlyOneValueSet, "SetComment", "UnsetComment", "SetTags", "UnsetTags"), ). DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-stream", g.NewQueryStruct("DropStream"). Drop(). SQL("STREAM"). IfExists(). Name(). WithValidation(g.ValidIdentifier, "name"), ). ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-streams", showStreamDbRowDef, streamPlainStructDef, g.NewQueryStruct("ShowStreams"). Show(). Terse(). SQL("STREAMS"). OptionalLike(). OptionalIn(). OptionalStartsWith(). OptionalLimit(), ). ShowByIdOperation(). DescribeOperation( g.DescriptionMappingKindSingleValue, "https://docs.snowflake.com/en/sql-reference/sql/desc-stream", showStreamDbRowDef, streamPlainStructDef, g.NewQueryStruct("DescribeStream"). Describe(). SQL("STREAM"). Name(). WithValidation(g.ValidIdentifier, "name"), ) )
var TasksDef = g.NewInterface( "Tasks", "Task", g.KindOfT[SchemaObjectIdentifier](), ). CreateOperation( "https://docs.snowflake.com/en/sql-reference/sql/create-task", g.NewQueryStruct("CreateTask"). Create(). OrReplace(). SQL("TASK"). IfNotExists(). Name(). OptionalQueryStructField( "Warehouse", g.NewQueryStruct("CreateTaskWarehouse"). OptionalIdentifier("Warehouse", g.KindOfT[AccountObjectIdentifier](), g.IdentifierOptions().Equals().SQL("WAREHOUSE")). OptionalAssignment("USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE", "WarehouseSize", g.ParameterOptions().SingleQuotes()). WithValidation(g.ExactlyOneValueSet, "Warehouse", "UserTaskManagedInitialWarehouseSize"), g.KeywordOptions(), ). OptionalTextAssignment("SCHEDULE", g.ParameterOptions().SingleQuotes()). OptionalTextAssignment("CONFIG", g.ParameterOptions().NoQuotes()). OptionalBooleanAssignment("ALLOW_OVERLAPPING_EXECUTION", nil). OptionalSessionParameters(). OptionalNumberAssignment("USER_TASK_TIMEOUT_MS", nil). OptionalNumberAssignment("SUSPEND_TASK_AFTER_NUM_FAILURES", nil). OptionalTextAssignment("ERROR_INTEGRATION", g.ParameterOptions().NoQuotes()). OptionalSQL("COPY GRANTS"). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). ListAssignment("AFTER", "SchemaObjectIdentifier", g.ParameterOptions().NoEquals()). OptionalTags(). OptionalTextAssignment("WHEN", g.ParameterOptions().NoQuotes().NoEquals()). SQL("AS"). Text("sql", g.KeywordOptions().NoQuotes().Required()). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ConflictingFields, "OrReplace", "IfNotExists"), ). CustomOperation( "Clone", "https://docs.snowflake.com/en/sql-reference/sql/create-task#variant-syntax", g.NewQueryStruct("CloneTask"). Create(). OrReplace(). SQL("TASK"). Name(). SQL("CLONE"). Identifier("sourceTask", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().Required()). OptionalSQL("COPY GRANTS"). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ValidIdentifier, "sourceTask"), ). AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-task", g.NewQueryStruct("AlterTask"). Alter(). SQL("TASK"). IfExists(). Name(). OptionalSQL("RESUME"). OptionalSQL("SUSPEND"). ListAssignment("REMOVE AFTER", "SchemaObjectIdentifier", g.ParameterOptions().NoEquals()). ListAssignment("ADD AFTER", "SchemaObjectIdentifier", g.ParameterOptions().NoEquals()). OptionalQueryStructField( "Set", g.NewQueryStruct("TaskSet"). OptionalIdentifier("Warehouse", g.KindOfT[AccountObjectIdentifier](), g.IdentifierOptions().Equals().SQL("WAREHOUSE")). OptionalAssignment("USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE", "WarehouseSize", g.ParameterOptions().SingleQuotes()). OptionalTextAssignment("SCHEDULE", g.ParameterOptions().SingleQuotes()). OptionalTextAssignment("CONFIG", g.ParameterOptions().NoQuotes()). OptionalBooleanAssignment("ALLOW_OVERLAPPING_EXECUTION", nil). OptionalNumberAssignment("USER_TASK_TIMEOUT_MS", nil). OptionalNumberAssignment("SUSPEND_TASK_AFTER_NUM_FAILURES", nil). OptionalTextAssignment("ERROR_INTEGRATION", g.ParameterOptions().NoQuotes()). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). OptionalSessionParameters(). WithValidation(g.AtLeastOneValueSet, "Warehouse", "UserTaskManagedInitialWarehouseSize", "Schedule", "Config", "AllowOverlappingExecution", "UserTaskTimeoutMs", "SuspendTaskAfterNumFailures", "ErrorIntegration", "Comment", "SessionParameters"). WithValidation(g.ConflictingFields, "Warehouse", "UserTaskManagedInitialWarehouseSize"), g.KeywordOptions().SQL("SET"), ). OptionalQueryStructField( "Unset", g.NewQueryStruct("TaskUnset"). OptionalSQL("WAREHOUSE"). OptionalSQL("SCHEDULE"). OptionalSQL("CONFIG"). OptionalSQL("ALLOW_OVERLAPPING_EXECUTION"). OptionalSQL("USER_TASK_TIMEOUT_MS"). OptionalSQL("SUSPEND_TASK_AFTER_NUM_FAILURES"). OptionalSQL("ERROR_INTEGRATION"). OptionalSQL("COMMENT"). OptionalSessionParametersUnset(). WithValidation(g.AtLeastOneValueSet, "Warehouse", "Schedule", "Config", "AllowOverlappingExecution", "UserTaskTimeoutMs", "SuspendTaskAfterNumFailures", "ErrorIntegration", "Comment", "SessionParametersUnset"), g.KeywordOptions().SQL("UNSET"), ). OptionalSetTags(). OptionalUnsetTags(). OptionalTextAssignment("MODIFY AS", g.ParameterOptions().NoQuotes().NoEquals()). OptionalTextAssignment("MODIFY WHEN", g.ParameterOptions().NoQuotes().NoEquals()). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ExactlyOneValueSet, "Resume", "Suspend", "RemoveAfter", "AddAfter", "Set", "Unset", "SetTags", "UnsetTags", "ModifyAs", "ModifyWhen"), ). DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-task", g.NewQueryStruct("DropTask"). Drop(). SQL("TASK"). IfExists(). Name(). WithValidation(g.ValidIdentifier, "name"), ). ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-tasks", taskDbRow, task, g.NewQueryStruct("ShowTasks"). Show(). Terse(). SQL("TASKS"). OptionalLike(). OptionalIn(). OptionalStartsWith(). OptionalSQL("ROOT ONLY"). OptionalLimit(), ). ShowByIdOperation(). DescribeOperation( g.DescriptionMappingKindSingleValue, "https://docs.snowflake.com/en/sql-reference/sql/desc-task", taskDbRow, task, g.NewQueryStruct("DescribeTask"). Describe(). SQL("TASK"). Name(). WithValidation(g.ValidIdentifier, "name"), ). CustomOperation( "Execute", "https://docs.snowflake.com/en/sql-reference/sql/execute-task", g.NewQueryStruct("ExecuteTask"). SQL("EXECUTE"). SQL("TASK"). Name(). OptionalSQL("RETRY LAST"). WithValidation(g.ValidIdentifier, "name"), )
var ViewsDef = g.NewInterface( "Views", "View", g.KindOfT[SchemaObjectIdentifier](), ). CreateOperation( "https://docs.snowflake.com/en/sql-reference/sql/create-view", g.NewQueryStruct("CreateView"). Create(). OrReplace(). OptionalSQL("SECURE"). OptionalSQL("TEMPORARY"). OptionalSQL("RECURSIVE"). SQL("VIEW"). IfNotExists(). Name(). ListQueryStructField("Columns", viewColumn, g.ListOptions().Parentheses()). ListQueryStructField("ColumnsMaskingPolicies", viewColumnMaskingPolicy, g.ListOptions().NoParentheses().NoEquals()). OptionalSQL("COPY GRANTS"). OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()). OptionalQueryStructField("RowAccessPolicy", viewRowAccessPolicy, g.KeywordOptions()). OptionalTags(). SQL("AS"). Text("sql", g.KeywordOptions().NoQuotes().Required()). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ConflictingFields, "OrReplace", "IfNotExists"), ). AlterOperation( "https://docs.snowflake.com/en/sql-reference/sql/alter-view", g.NewQueryStruct("AlterView"). Alter(). SQL("VIEW"). IfExists(). Name(). OptionalIdentifier("RenameTo", g.KindOfT[SchemaObjectIdentifier](), g.IdentifierOptions().SQL("RENAME TO")). OptionalTextAssignment("SET COMMENT", g.ParameterOptions().SingleQuotes()). OptionalSQL("UNSET COMMENT"). OptionalSQL("SET SECURE"). OptionalBooleanAssignment("SET CHANGE_TRACKING", nil). OptionalSQL("UNSET SECURE"). OptionalSetTags(). OptionalUnsetTags(). OptionalQueryStructField("AddRowAccessPolicy", viewAddRowAccessPolicy, g.KeywordOptions()). OptionalQueryStructField("DropRowAccessPolicy", viewDropRowAccessPolicy, g.KeywordOptions()). OptionalQueryStructField("DropAndAddRowAccessPolicy", viewDropAndAddRowAccessPolicy, g.ListOptions().NoParentheses()). OptionalSQL("DROP ALL ROW ACCESS POLICIES"). OptionalQueryStructField("SetMaskingPolicyOnColumn", viewSetColumnMaskingPolicy, g.KeywordOptions()). OptionalQueryStructField("UnsetMaskingPolicyOnColumn", viewUnsetColumnMaskingPolicy, g.KeywordOptions()). OptionalQueryStructField("SetTagsOnColumn", viewSetColumnTags, g.KeywordOptions()). OptionalQueryStructField("UnsetTagsOnColumn", viewUnsetColumnTags, g.KeywordOptions()). WithValidation(g.ValidIdentifier, "name"). WithValidation(g.ExactlyOneValueSet, "RenameTo", "SetComment", "UnsetComment", "SetSecure", "SetChangeTracking", "UnsetSecure", "SetTags", "UnsetTags", "AddRowAccessPolicy", "DropRowAccessPolicy", "DropAndAddRowAccessPolicy", "DropAllRowAccessPolicies", "SetMaskingPolicyOnColumn", "UnsetMaskingPolicyOnColumn", "SetTagsOnColumn", "UnsetTagsOnColumn"), ). DropOperation( "https://docs.snowflake.com/en/sql-reference/sql/drop-view", g.NewQueryStruct("DropView"). Drop(). SQL("VIEW"). IfExists(). Name(). WithValidation(g.ValidIdentifier, "name"), ). ShowOperation( "https://docs.snowflake.com/en/sql-reference/sql/show-views", viewDbRow, view, g.NewQueryStruct("ShowViews"). Show(). Terse(). SQL("VIEWS"). OptionalLike(). OptionalIn(). OptionalStartsWith(). OptionalLimit(), ). ShowByIdOperation(). DescribeOperation( g.DescriptionMappingKindSlice, "https://docs.snowflake.com/en/sql-reference/sql/desc-view", viewDetailsDbRow, viewDetails, g.NewQueryStruct("DescribeView"). Describe(). SQL("VIEW"). Name(). WithValidation(g.ValidIdentifier, "name"), )
Functions ¶
func DefaultConfig ¶
func DefaultConfig() *gosnowflake.Config
func EnvConfig ¶
func EnvConfig() *gosnowflake.Config
func ErrExactlyOneOf ¶ added in v0.75.0
func GetValidDateFormats ¶ added in v0.71.0
func GetValidDateFormats(f DateFormat, includeAuto bool) []string
func IsValidDataType ¶
func IsValidWarehouseSize ¶ added in v0.66.2
func JoinErrors ¶ added in v0.76.0
JoinErrors returns an error that wraps the given errors. Any nil error values are discarded. JoinErrors returns nil if errs contains no non-nil values, otherwise returns sdk.Error with errs as its nested errors
func MergeConfig ¶
func MergeConfig(baseConfig *gosnowflake.Config, mergeConfig *gosnowflake.Config) *gosnowflake.Config
func NewError ¶ added in v0.76.0
NewError creates new sdk.Error with information like filename or line number (depending on where NewError was called)
func Pointer ¶ added in v0.65.0
func Pointer[K any](v K) *K
Pointer is a generic function that returns a pointer to a given value.
func ProfileConfig ¶
func ProfileConfig(profile string) (*gosnowflake.Config, error)
func ValidObjectIdentifier ¶ added in v0.74.0
func ValidObjectIdentifier(objectIdentifier ObjectIdentifier) bool
func ValidateIdentifier ¶ added in v0.71.0
ValidateIdentifier implements a strict definition of valid identifiers from https://docs.snowflake.net/manuals/sql-reference/identifiers-syntax.html
Types ¶
type Account ¶ added in v0.65.0
type Account struct { OrganizationName string AccountName string RegionGroup string SnowflakeRegion string Edition AccountEdition AccountURL string CreatedOn time.Time Comment string AccountLocator string AccountLocatorURL string ManagedAccounts int ConsumptionBillingEntityName string MarketplaceConsumerBillingEntityName string MarketplaceProviderBillingEntityName string OldAccountURL string IsOrgAdmin bool }
func (*Account) AccountID ¶ added in v0.65.0
func (v *Account) AccountID() AccountIdentifier
func (*Account) ID ¶ added in v0.65.0
func (v *Account) ID() AccountObjectIdentifier
type AccountDrop ¶ added in v0.65.0
type AccountDrop struct { Name AccountObjectIdentifier `ddl:"identifier"` OldURL *bool `ddl:"keyword" sql:"DROP OLD URL"` }
type AccountEdition ¶ added in v0.65.0
type AccountEdition string
var ( EditionStandard AccountEdition = "STANDARD" EditionEnterprise AccountEdition = "ENTERPRISE" EditionBusinessCritical AccountEdition = "BUSINESS_CRITICAL" )
type AccountIdentifier ¶ added in v0.65.0
type AccountIdentifier struct {
// contains filtered or unexported fields
}
func NewAccountIdentifier ¶ added in v0.65.0
func NewAccountIdentifier(organizationName, accountName string) AccountIdentifier
func NewAccountIdentifierFromAccountLocator ¶ added in v0.65.0
func NewAccountIdentifierFromAccountLocator(accountLocator string) AccountIdentifier
func NewAccountIdentifierFromFullyQualifiedName ¶ added in v0.70.1
func NewAccountIdentifierFromFullyQualifiedName(fullyQualifiedName string) AccountIdentifier
func (AccountIdentifier) Name ¶ added in v0.65.0
func (i AccountIdentifier) Name() string
type AccountLevelParameters ¶ added in v0.65.0
type AccountLevelParameters struct { AccountParameters *AccountParameters `ddl:"list,no_parentheses"` SessionParameters *SessionParameters `ddl:"list,no_parentheses"` ObjectParameters *ObjectParameters `ddl:"list,no_parentheses"` UserParameters *UserParameters `ddl:"list,no_parentheses"` }
type AccountLevelParametersUnset ¶ added in v0.65.0
type AccountLevelParametersUnset struct { AccountParameters *AccountParametersUnset `ddl:"list,no_parentheses"` SessionParameters *SessionParametersUnset `ddl:"list,no_parentheses"` ObjectParameters *ObjectParametersUnset `ddl:"list,no_parentheses"` UserParameters *UserParametersUnset `ddl:"list,no_parentheses"` }
type AccountObjectIdentifier ¶
type AccountObjectIdentifier struct {
// contains filtered or unexported fields
}
func NewAccountObjectIdentifier ¶
func NewAccountObjectIdentifier(name string) AccountObjectIdentifier
func NewAccountObjectIdentifierFromFullyQualifiedName ¶ added in v0.68.0
func NewAccountObjectIdentifierFromFullyQualifiedName(fullyQualifiedName string) AccountObjectIdentifier
func RandomAccountObjectIdentifier ¶ added in v0.74.0
func RandomAccountObjectIdentifier() AccountObjectIdentifier
func (AccountObjectIdentifier) FullyQualifiedName ¶
func (i AccountObjectIdentifier) FullyQualifiedName() string
func (AccountObjectIdentifier) Name ¶
func (i AccountObjectIdentifier) Name() string
type AccountObjectPrivilege ¶ added in v0.68.0
type AccountObjectPrivilege string
const ( // -- For DATABASE // { CREATE { DATABASE ROLE | SCHEMA } | IMPORTED PRIVILEGES | MODIFY | MONITOR | USAGE } [ , ... ] AccountObjectPrivilegeCreateDatabaseRole AccountObjectPrivilege = "CREATE DATABASE ROLE" AccountObjectPrivilegeCreateSchema AccountObjectPrivilege = "CREATE SCHEMA" AccountObjectPrivilegeImportedPrivileges AccountObjectPrivilege = "IMPORTED PRIVILEGES" AccountObjectPrivilegeModify AccountObjectPrivilege = "MODIFY" AccountObjectPrivilegeMonitor AccountObjectPrivilege = "MONITOR" AccountObjectPrivilegeUsage AccountObjectPrivilege = "USAGE" // -- For FAILOVER GROUP // { FAILOVER | MODIFY | MONITOR | REPLICATE } [ , ... ] AccountObjectPrivilegeFailover AccountObjectPrivilege = "FAILOVER" // -- For INTEGRATION // { USAGE | USE_ANY_ROLE } [ , ... ] // AccountObjectPrivilegeUsage AccountObjectPrivilege = "USAGE" (duplicate) AccountObjectPrivilegeUseAnyRole AccountObjectPrivilege = "USE_ANY_ROLE" // -- For REPLICATION GROUP // { MODIFY | MONITOR | REPLICATE } [ , ... ] // AccountObjectPrivilegeModify AccountObjectPrivilege = "MODIFY" (duplicate) // AccountObjectPrivilegeMonitor AccountObjectPrivilege = "MONITOR" (duplicate) AccountObjectPrivilegeReplicate AccountObjectPrivilege = "REPLICATE" // -- For WAREHOUSE // { MODIFY | MONITOR | USAGE | OPERATE } [ , ... ] // AccountObjectPrivilegeModify AccountObjectPrivilege = "MODIFY" (duplicate) // AccountObjectPrivilegeMonitor AccountObjectPrivilege = "MONITOR" (duplicate) // AccountObjectPrivilegeUsage AccountObjectPrivilege = "USAGE" (duplicate) AccountObjectPrivilegeOperate AccountObjectPrivilege = "OPERATE" )
func (AccountObjectPrivilege) String ¶ added in v0.68.0
func (p AccountObjectPrivilege) String() string
type AccountParameter ¶ added in v0.65.0
type AccountParameter string
const ( // Account Parameters AccountParameterAllowClientMFACaching AccountParameter = "ALLOW_CLIENT_MFA_CACHING" AccountParameterAllowIDToken AccountParameter = "ALLOW_ID_TOKEN" // #nosec G101 AccountParameterClientEncryptionKeySize AccountParameter = "CLIENT_ENCRYPTION_KEY_SIZE" AccountParameterEnableInternalStagesPrivatelink AccountParameter = "ENABLE_INTERNAL_STAGES_PRIVATELINK" AccountParameterEventTable AccountParameter = "EVENT_TABLE" AccountParameterExternalOAuthAddPrivilegedRolesToBlockedList AccountParameter = "EXTERNAL_OAUTH_ADD_PRIVILEGED_ROLES_TO_BLOCKED_LIST" AccountParameterInitialReplicationSizeLimitInTB AccountParameter = "INITIAL_REPLICATION_SIZE_LIMIT_IN_TB" AccountParameterMinDataRetentionTimeInDays AccountParameter = "MIN_DATA_RETENTION_TIME_IN_DAYS" AccountParameterNetworkPolicy AccountParameter = "NETWORK_POLICY" AccountParameterPeriodicDataRekeying AccountParameter = "PERIODIC_DATA_REKEYING" AccountParameterPreventLoadFromInlineURL AccountParameter = "PREVENT_LOAD_FROM_INLINE_URL" AccountParameterPreventUnloadToInlineURL AccountParameter = "PREVENT_UNLOAD_TO_INLINE_URL" AccountParameterPreventUnloadToInternalStages AccountParameter = "PREVENT_UNLOAD_TO_INTERNAL_STAGES" AccountParameterRequireStorageIntegrationForStageCreation AccountParameter = "REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_CREATION" AccountParameterRequireStorageIntegrationForStageOperation AccountParameter = "REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_OPERATION" AccountParameterSSOLoginPage AccountParameter = "SSO_LOGIN_PAGE" // Session Parameters (inherited) AccountParameterAbortDetachedQuery AccountParameter = "ABORT_DETACHED_QUERY" AccountParameterAutocommit AccountParameter = "AUTOCOMMIT" AccountParameterBinaryInputFormat AccountParameter = "BINARY_INPUT_FORMAT" AccountParameterBinaryOutputFormat AccountParameter = "BINARY_OUTPUT_FORMAT" AccountParameterClientMetadataRequestUseConnectionCtx AccountParameter = "CLIENT_METADATA_REQUEST_USE_CONNECTION_CTX" AccountParameterClientMetadataUseSessionDatabase AccountParameter = "CLIENT_METADATA_USE_SESSION_DATABASE" AccountParameterClientResultColumnCaseInsensitive AccountParameter = "CLIENT_RESULT_COLUMN_CASE_INSENSITIVE" AccountParameterDateInputFormat AccountParameter = "DATE_INPUT_FORMAT" AccountParameterGeographyOutputFormat AccountParameter = "GEOGRAPHY_OUTPUT_FORMAT" AccountParameterDateOutputFormat AccountParameter = "DATE_OUTPUT_FORMAT" AccountParameterErrorOnNondeterministicMerge AccountParameter = "ERROR_ON_NONDETERMINISTIC_MERGE" AccountParameterErrorOnNondeterministicUpdate AccountParameter = "ERROR_ON_NONDETERMINISTIC_UPDATE" AccountParameterJSONIndent AccountParameter = "JSON_INDENT" AccountParameterLockTimeout AccountParameter = "LOCK_TIMEOUT" AccountParameterMultiStatementCount AccountParameter = "MULTI_STATEMENT_COUNT" AccountParameterQueryTag AccountParameter = "QUERY_TAG" AccountParameterQuotedIdentifiersIgnoreCase AccountParameter = "QUOTED_IDENTIFIERS_IGNORE_CASE" AccountParameterRowsPerResultset AccountParameter = "ROWS_PER_RESULTSET" AccountParameterSimulatedDataSharingConsumer AccountParameter = "SIMULATED_DATA_SHARING_CONSUMER" AccountParameterStatementTimeoutInSeconds AccountParameter = "STATEMENT_TIMEOUT_IN_SECONDS" AccountParameterStrictJSONOutput AccountParameter = "STRICT_JSON_OUTPUT" AccountParameterTimeInputFormat AccountParameter = "TIME_INPUT_FORMAT" AccountParameterTimeOutputFormat AccountParameter = "TIME_OUTPUT_FORMAT" AccountParameterTimestampDayIsAlways24h AccountParameter = "TIMESTAMP_DAY_IS_ALWAYS_24H" AccountParameterTimestampInputFormat AccountParameter = "TIMESTAMP_INPUT_FORMAT" AccountParameterTimestampLtzOutputFormat AccountParameter = "TIMESTAMP_LTZ_OUTPUT_FORMAT" AccountParameterTimestampNtzOutputFormat AccountParameter = "TIMESTAMP_NTZ_OUTPUT_FORMAT" AccountParameterTimestampOutputFormat AccountParameter = "TIMESTAMP_OUTPUT_FORMAT" AccountParameterTimestampTypeMapping AccountParameter = "TIMESTAMP_TYPE_MAPPING" AccountParameterTimestampTzOutputFormat AccountParameter = "TIMESTAMP_TZ_OUTPUT_FORMAT" AccountParameterTimezone AccountParameter = "TIMEZONE" AccountParameterTransactionDefaultIsolationLevel AccountParameter = "TRANSACTION_DEFAULT_ISOLATION_LEVEL" AccountParameterTwoDigitCenturyStart AccountParameter = "TWO_DIGIT_CENTURY_START" AccountParameterUnsupportedDdlAction AccountParameter = "UNSUPPORTED_DDL_ACTION" AccountParameterUseCachedResult AccountParameter = "USE_CACHED_RESULT" AccountParameterWeekOfYearPolicy AccountParameter = "WEEK_OF_YEAR_POLICY" AccountParameterWeekStart AccountParameter = "WEEK_START" // Object Parameters (inherited) AccountParameterDataRetentionTimeInDays AccountParameter = "DATA_RETENTION_TIME_IN_DAYS" AccountParameterDefaultDDLCollation AccountParameter = "DEFAULT_DDL_COLLATION" AccountParameterLogLevel AccountParameter = "LOG_LEVEL" AccountParameterMaxConcurrencyLevel AccountParameter = "MAX_CONCURRENCY_LEVEL" AccountParameterMaxDataExtensionTimeInDays AccountParameter = "MAX_DATA_EXTENSION_TIME_IN_DAYS" AccountParameterPipeExecutionPaused AccountParameter = "PIPE_EXECUTION_PAUSED" AccountParameterStatementQueuedTimeoutInSeconds AccountParameter = "STATEMENT_QUEUED_TIMEOUT_IN_SECONDS" AccountParameterSuspendTaskAfterNumFailures AccountParameter = "SUSPEND_TASK_AFTER_NUM_FAILURES" AccountParameterTraceLevel AccountParameter = "TRACE_LEVEL" AccountParameterUserTaskManagedInitialWarehouseSize AccountParameter = "USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE" AccountParameterUserTaskTimeoutMs AccountParameter = "USER_TASK_TIMEOUT_MS" // User Parameters (inherited) AccountParameterEnableUnredactedQuerySyntaxError AccountParameter = "ENABLE_UNREDACTED_QUERY_SYNTAX_ERROR" )
There is a hierarchical relationship between the different parameter types. Account parameters can set any of account, user, session or object parameters https://docs.snowflake.com/en/sql-reference/parameters#parameter-hierarchy-and-types Account Parameters include Session Parameters, Object Parameters and User Parameters
type AccountParameters ¶ added in v0.65.0
type AccountParameters struct { // Account Parameters AllowClientMFACaching *bool `ddl:"parameter" sql:"ALLOW_CLIENT_MFA_CACHING"` AllowIDToken *bool `ddl:"parameter" sql:"ALLOW_ID_TOKEN"` ClientEncryptionKeySize *int `ddl:"parameter" sql:"CLIENT_ENCRYPTION_KEY_SIZE"` EnableInternalStagesPrivatelink *bool `ddl:"parameter" sql:"ENABLE_INTERNAL_STAGES_PRIVATELINK"` EnableUnredactedQuerySyntaxError *bool `ddl:"parameter" sql:"ENABLE_UNREDACTED_QUERY_SYNTAX_ERROR"` EventTable *string `ddl:"parameter,single_quotes" sql:"EVENT_TABLE"` ExternalOAuthAddPrivilegedRolesToBlockedList *bool `ddl:"parameter" sql:"EXTERNAL_OAUTH_ADD_PRIVILEGED_ROLES_TO_BLOCKED_LIST"` InitialReplicationSizeLimitInTB *float64 `ddl:"parameter" sql:"INITIAL_REPLICATION_SIZE_LIMIT_IN_TB"` MinDataRetentionTimeInDays *int `ddl:"parameter" sql:"MIN_DATA_RETENTION_TIME_IN_DAYS"` NetworkPolicy *string `ddl:"parameter,single_quotes" sql:"NETWORK_POLICY"` PeriodicDataRekeying *bool `ddl:"parameter" sql:"PERIODIC_DATA_REKEYING"` PreventLoadFromInlineURL *bool `ddl:"parameter" sql:"PREVENT_LOAD_FROM_INLINE_URL"` PreventUnloadToInlineURL *bool `ddl:"parameter" sql:"PREVENT_UNLOAD_TO_INLINE_URL"` PreventUnloadToInternalStages *bool `ddl:"parameter" sql:"PREVENT_UNLOAD_TO_INTERNAL_STAGES"` RequireStorageIntegrationForStageCreation *bool `ddl:"parameter" sql:"REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_CREATION"` RequireStorageIntegrationForStageOperation *bool `ddl:"parameter" sql:"REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_OPERATION"` SSOLoginPage *bool `ddl:"parameter" sql:"SSO_LOGIN_PAGE"` }
AccountParameters is based on https://docs.snowflake.com/en/sql-reference/parameters#account-parameters.
type AccountParametersUnset ¶ added in v0.65.0
type AccountParametersUnset struct { AllowClientMFACaching *bool `ddl:"keyword" sql:"ALLOW_CLIENT_MFA_CACHING"` AllowIDToken *bool `ddl:"keyword" sql:"ALLOW_ID_TOKEN"` ClientEncryptionKeySize *bool `ddl:"keyword" sql:"CLIENT_ENCRYPTION_KEY_SIZE"` EnableInternalStagesPrivatelink *bool `ddl:"keyword" sql:"ENABLE_INTERNAL_STAGES_PRIVATELINK"` EventTable *bool `ddl:"keyword" sql:"EVENT_TABLE"` ExternalOAuthAddPrivilegedRolesToBlockedList *bool `ddl:"keyword" sql:"EXTERNAL_OAUTH_ADD_PRIVILEGED_ROLES_TO_BLOCKED_LIST"` InitialReplicationSizeLimitInTB *bool `ddl:"keyword" sql:"INITIAL_REPLICATION_SIZE_LIMIT_IN_TB"` MinDataRetentionTimeInDays *bool `ddl:"keyword" sql:"MIN_DATA_RETENTION_TIME_IN_DAYS"` NetworkPolicy *bool `ddl:"keyword,single_quotes" sql:"NETWORK_POLICY"` PeriodicDataRekeying *bool `ddl:"keyword" sql:"PERIODIC_DATA_REKEYING"` PreventUnloadToInlineURL *bool `ddl:"keyword" sql:"PREVENT_UNLOAD_TO_INLINE_URL"` PreventUnloadToInternalStages *bool `ddl:"keyword" sql:"PREVENT_UNLOAD_TO_INTERNAL_STAGES"` RequireStorageIntegrationForStageCreation *bool `ddl:"keyword" sql:"REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_CREATION"` RequireStorageIntegrationForStageOperation *bool `ddl:"keyword" sql:"REQUIRE_STORAGE_INTEGRATION_FOR_STAGE_OPERATION"` SSOLoginPage *bool `ddl:"keyword" sql:"SSO_LOGIN_PAGE"` }
type AccountRename ¶ added in v0.65.0
type AccountRename struct { Name AccountObjectIdentifier `ddl:"identifier"` NewName AccountObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` SaveOldURL *bool `ddl:"parameter" sql:"SAVE_OLD_URL"` }
type AccountRoleGrantOn ¶ added in v0.68.0
type AccountRoleGrantOn struct { Account *bool `ddl:"keyword" sql:"ACCOUNT"` AccountObject *GrantOnAccountObject `ddl:"-"` Schema *GrantOnSchema `ddl:"-"` SchemaObject *GrantOnSchemaObject `ddl:"-"` }
type AccountRoleGrantPrivileges ¶ added in v0.68.0
type AccountRoleGrantPrivileges struct { GlobalPrivileges []GlobalPrivilege `ddl:"-"` AccountObjectPrivileges []AccountObjectPrivilege `ddl:"-"` SchemaPrivileges []SchemaPrivilege `ddl:"-"` SchemaObjectPrivileges []SchemaObjectPrivilege `ddl:"-"` AllPrivileges *bool `ddl:"keyword" sql:"ALL PRIVILEGES"` }
type AccountSet ¶ added in v0.65.0
type AccountSet struct { Parameters *AccountLevelParameters `ddl:"list,no_parentheses"` ResourceMonitor AccountObjectIdentifier `ddl:"identifier,equals" sql:"RESOURCE_MONITOR"` PasswordPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"PASSWORD POLICY"` SessionPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"SESSION POLICY"` }
type AccountUnset ¶ added in v0.65.0
type AccountUnset struct { Parameters *AccountLevelParametersUnset `ddl:"list,no_parentheses"` PasswordPolicy *bool `ddl:"keyword" sql:"PASSWORD POLICY"` SessionPolicy *bool `ddl:"keyword" sql:"SESSION POLICY"` }
type Accounts ¶ added in v0.65.0
type Accounts interface { Create(ctx context.Context, id AccountObjectIdentifier, opts *CreateAccountOptions) error Alter(ctx context.Context, opts *AlterAccountOptions) error Show(ctx context.Context, opts *ShowAccountOptions) ([]Account, error) ShowByID(ctx context.Context, id AccountObjectIdentifier) (*Account, error) Drop(ctx context.Context, id AccountObjectIdentifier, gracePeriodInDays int, opts *DropAccountOptions) error Undrop(ctx context.Context, id AccountObjectIdentifier) error }
type AddDelegatedAuthorization ¶ added in v0.70.0
type AddRowAccessPolicyRequest ¶ added in v0.78.0
type AddRowAccessPolicyRequest struct { PolicyName string // required ColumnName []string // required }
func NewAddRowAccessPolicyRequest ¶ added in v0.78.0
func NewAddRowAccessPolicyRequest( policyName string, columnName []string, ) *AddRowAccessPolicyRequest
type AddSearchOptimization ¶ added in v0.78.0
type AddSearchOptimization struct { // Optional On []string `ddl:"keyword" sql:"ON"` // contains filtered or unexported fields }
type Alert ¶ added in v0.68.0
type Alert struct { CreatedOn time.Time Name string DatabaseName string SchemaName string Owner string Comment *string Warehouse string Schedule string State AlertState Condition string Action string }
func (*Alert) ID ¶ added in v0.68.0
func (v *Alert) ID() SchemaObjectIdentifier
func (*Alert) ObjectType ¶ added in v0.68.0
func (v *Alert) ObjectType() ObjectType
type AlertAction ¶ added in v0.68.0
type AlertAction string
var ( // AlertActionResume makes a suspended alert active. AlertActionResume AlertAction = "RESUME" // AlertActionSuspend puts the alert into a “Suspended” state. AlertActionSuspend AlertAction = "SUSPEND" )
type AlertCondition ¶ added in v0.68.0
type AlertCondition struct {
Condition []string `ddl:"keyword,parentheses,no_comma" sql:"EXISTS"`
}
type AlertDetails ¶ added in v0.68.0
type AlertSet ¶ added in v0.68.0
type AlertSet struct { Warehouse *AccountObjectIdentifier `ddl:"identifier,equals" sql:"WAREHOUSE"` Schedule *string `ddl:"parameter,single_quotes" sql:"SCHEDULE"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type AlertState ¶ added in v0.68.0
type AlertState string
var ( AlertStateStarted AlertState = "started" AlertStateSuspended AlertState = "suspended" )
type AlertUnset ¶ added in v0.68.0
type Alerts ¶ added in v0.68.0
type Alerts interface { Create(ctx context.Context, id SchemaObjectIdentifier, warehouse AccountObjectIdentifier, schedule string, condition string, action string, opts *CreateAlertOptions) error Alter(ctx context.Context, id SchemaObjectIdentifier, opts *AlterAlertOptions) error Drop(ctx context.Context, id SchemaObjectIdentifier) error Show(ctx context.Context, opts *ShowAlertOptions) ([]Alert, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*Alert, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*AlertDetails, error) }
type AllowedValue ¶ added in v0.74.0
type AllowedValue struct {
Value string `ddl:"keyword,single_quotes"`
}
type AllowedValues ¶ added in v0.74.0
type AllowedValues struct {
Values []AllowedValue `ddl:"list,comma"`
}
type AlterAccountOptions ¶ added in v0.66.0
type AlterAccountOptions struct { Set *AccountSet `ddl:"keyword" sql:"SET"` Unset *AccountUnset `ddl:"list,no_parentheses" sql:"UNSET"` SetTag []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTag []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` Rename *AccountRename `ddl:"-"` Drop *AccountDrop `ddl:"-"` // contains filtered or unexported fields }
AlterAccountOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-account.
type AlterAlertOptions ¶ added in v0.68.0
type AlterAlertOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // One of Action *AlertAction `ddl:"keyword"` Set *AlertSet `ddl:"keyword" sql:"SET"` Unset *AlertUnset `ddl:"keyword" sql:"UNSET"` ModifyCondition *[]string `ddl:"keyword,parentheses,no_comma" sql:"MODIFY CONDITION EXISTS"` ModifyAction *string `ddl:"parameter,no_equals" sql:"MODIFY ACTION"` // contains filtered or unexported fields }
AlterAlertOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-alert.
type AlterDatabaseFailoverOptions ¶ added in v0.66.0
type AlterDatabaseFailoverOptions struct { EnableFailover *EnableFailover `ddl:"keyword" sql:"ENABLE FAILOVER"` DisableFailover *DisableFailover `ddl:"keyword" sql:"DISABLE FAILOVER"` Primary *bool `ddl:"keyword" sql:"PRIMARY"` // contains filtered or unexported fields }
AlterDatabaseFailoverOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-database.
type AlterDatabaseOptions ¶ added in v0.66.0
type AlterDatabaseOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` NewName AccountObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` SwapWith AccountObjectIdentifier `ddl:"identifier" sql:"SWAP WITH"` Set *DatabaseSet `ddl:"list,no_parentheses" sql:"SET"` Unset *DatabaseUnset `ddl:"list,no_parentheses" sql:"UNSET"` // contains filtered or unexported fields }
AlterDatabaseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-database.
type AlterDatabaseReplicationOptions ¶ added in v0.66.0
type AlterDatabaseReplicationOptions struct { EnableReplication *EnableReplication `ddl:"keyword" sql:"ENABLE REPLICATION"` DisableReplication *DisableReplication `ddl:"keyword" sql:"DISABLE REPLICATION"` Refresh *bool `ddl:"keyword" sql:"REFRESH"` // contains filtered or unexported fields }
AlterDatabaseReplicationOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-database.
type AlterDatabaseRoleRequest ¶ added in v0.70.0
type AlterDatabaseRoleRequest struct {
// contains filtered or unexported fields
}
func NewAlterDatabaseRoleRequest ¶ added in v0.70.0
func NewAlterDatabaseRoleRequest( name DatabaseObjectIdentifier, ) *AlterDatabaseRoleRequest
func (*AlterDatabaseRoleRequest) WithIfExists ¶ added in v0.70.0
func (s *AlterDatabaseRoleRequest) WithIfExists(ifExists bool) *AlterDatabaseRoleRequest
func (*AlterDatabaseRoleRequest) WithRename ¶ added in v0.70.0
func (s *AlterDatabaseRoleRequest) WithRename(name DatabaseObjectIdentifier) *AlterDatabaseRoleRequest
func (*AlterDatabaseRoleRequest) WithSetComment ¶ added in v0.70.0
func (s *AlterDatabaseRoleRequest) WithSetComment(comment string) *AlterDatabaseRoleRequest
func (*AlterDatabaseRoleRequest) WithUnsetComment ¶ added in v0.70.0
func (s *AlterDatabaseRoleRequest) WithUnsetComment() *AlterDatabaseRoleRequest
type AlterDirectoryTableStageOptions ¶ added in v0.76.0
type AlterDirectoryTableStageOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` SetDirectory *DirectoryTableSet `ddl:"list,parentheses,no_comma" sql:"SET DIRECTORY ="` Refresh *DirectoryTableRefresh `ddl:"keyword" sql:"REFRESH"` // contains filtered or unexported fields }
AlterDirectoryTableStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-stage.
type AlterDirectoryTableStageRequest ¶ added in v0.76.0
type AlterDirectoryTableStageRequest struct { IfExists *bool SetDirectory *DirectoryTableSetRequest Refresh *DirectoryTableRefreshRequest // contains filtered or unexported fields }
func NewAlterDirectoryTableStageRequest ¶ added in v0.76.0
func NewAlterDirectoryTableStageRequest( name SchemaObjectIdentifier, ) *AlterDirectoryTableStageRequest
func (*AlterDirectoryTableStageRequest) WithIfExists ¶ added in v0.76.0
func (s *AlterDirectoryTableStageRequest) WithIfExists(IfExists *bool) *AlterDirectoryTableStageRequest
func (*AlterDirectoryTableStageRequest) WithRefresh ¶ added in v0.76.0
func (s *AlterDirectoryTableStageRequest) WithRefresh(Refresh *DirectoryTableRefreshRequest) *AlterDirectoryTableStageRequest
func (*AlterDirectoryTableStageRequest) WithSetDirectory ¶ added in v0.76.0
func (s *AlterDirectoryTableStageRequest) WithSetDirectory(SetDirectory *DirectoryTableSetRequest) *AlterDirectoryTableStageRequest
type AlterDynamicTableRequest ¶ added in v0.72.0
type AlterDynamicTableRequest struct {
// contains filtered or unexported fields
}
func NewAlterDynamicTableRequest ¶ added in v0.72.0
func NewAlterDynamicTableRequest( name SchemaObjectIdentifier, ) *AlterDynamicTableRequest
func (*AlterDynamicTableRequest) WithRefresh ¶ added in v0.72.0
func (s *AlterDynamicTableRequest) WithRefresh(refresh *bool) *AlterDynamicTableRequest
func (*AlterDynamicTableRequest) WithResume ¶ added in v0.72.0
func (s *AlterDynamicTableRequest) WithResume(resume *bool) *AlterDynamicTableRequest
func (*AlterDynamicTableRequest) WithSet ¶ added in v0.72.0
func (s *AlterDynamicTableRequest) WithSet(set *DynamicTableSetRequest) *AlterDynamicTableRequest
func (*AlterDynamicTableRequest) WithSuspend ¶ added in v0.72.0
func (s *AlterDynamicTableRequest) WithSuspend(suspend *bool) *AlterDynamicTableRequest
type AlterEventTableOptions ¶ added in v0.78.0
type AlterEventTableOptions struct { IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Set *EventTableSet `ddl:"keyword" sql:"SET"` Unset *EventTableUnset `ddl:"keyword" sql:"UNSET"` AddRowAccessPolicy *EventTableAddRowAccessPolicy `ddl:"keyword"` DropRowAccessPolicy *EventTableDropRowAccessPolicy `ddl:"keyword"` DropAndAddRowAccessPolicy *EventTableDropAndAddRowAccessPolicy `ddl:"list,no_parentheses"` DropAllRowAccessPolicies *bool `ddl:"keyword" sql:"DROP ALL ROW ACCESS POLICIES"` ClusteringAction *EventTableClusteringAction `ddl:"keyword"` SearchOptimizationAction *EventTableSearchOptimizationAction `ddl:"keyword"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` RenameTo *SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` // contains filtered or unexported fields }
AlterEventTableOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-table-event-table.
type AlterEventTableRequest ¶ added in v0.78.0
type AlterEventTableRequest struct { IfNotExists *bool Set *EventTableSetRequest Unset *EventTableUnsetRequest AddRowAccessPolicy *EventTableAddRowAccessPolicyRequest DropRowAccessPolicy *EventTableDropRowAccessPolicyRequest DropAndAddRowAccessPolicy *EventTableDropAndAddRowAccessPolicyRequest DropAllRowAccessPolicies *bool ClusteringAction *EventTableClusteringActionRequest SearchOptimizationAction *EventTableSearchOptimizationActionRequest SetTags []TagAssociation UnsetTags []ObjectIdentifier RenameTo *SchemaObjectIdentifier // contains filtered or unexported fields }
func NewAlterEventTableRequest ¶ added in v0.78.0
func NewAlterEventTableRequest( name SchemaObjectIdentifier, ) *AlterEventTableRequest
func (*AlterEventTableRequest) WithAddRowAccessPolicy ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithAddRowAccessPolicy(AddRowAccessPolicy *EventTableAddRowAccessPolicyRequest) *AlterEventTableRequest
func (*AlterEventTableRequest) WithClusteringAction ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithClusteringAction(ClusteringAction *EventTableClusteringActionRequest) *AlterEventTableRequest
func (*AlterEventTableRequest) WithDropAllRowAccessPolicies ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithDropAllRowAccessPolicies(DropAllRowAccessPolicies *bool) *AlterEventTableRequest
func (*AlterEventTableRequest) WithDropAndAddRowAccessPolicy ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithDropAndAddRowAccessPolicy(DropAndAddRowAccessPolicy *EventTableDropAndAddRowAccessPolicyRequest) *AlterEventTableRequest
func (*AlterEventTableRequest) WithDropRowAccessPolicy ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithDropRowAccessPolicy(DropRowAccessPolicy *EventTableDropRowAccessPolicyRequest) *AlterEventTableRequest
func (*AlterEventTableRequest) WithIfNotExists ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithIfNotExists(IfNotExists *bool) *AlterEventTableRequest
func (*AlterEventTableRequest) WithRenameTo ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterEventTableRequest
func (*AlterEventTableRequest) WithSearchOptimizationAction ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithSearchOptimizationAction(SearchOptimizationAction *EventTableSearchOptimizationActionRequest) *AlterEventTableRequest
func (*AlterEventTableRequest) WithSet ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithSet(Set *EventTableSetRequest) *AlterEventTableRequest
func (*AlterEventTableRequest) WithSetTags ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithSetTags(SetTags []TagAssociation) *AlterEventTableRequest
func (*AlterEventTableRequest) WithUnset ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithUnset(Unset *EventTableUnsetRequest) *AlterEventTableRequest
func (*AlterEventTableRequest) WithUnsetTags ¶ added in v0.78.0
func (s *AlterEventTableRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterEventTableRequest
type AlterExternalAzureStageStageOptions ¶ added in v0.76.0
type AlterExternalAzureStageStageOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` ExternalStageParams *ExternalAzureStageParams FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
AlterExternalAzureStageStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-stage.
type AlterExternalAzureStageStageRequest ¶ added in v0.76.0
type AlterExternalAzureStageStageRequest struct { IfExists *bool ExternalStageParams *ExternalAzureStageParamsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string // contains filtered or unexported fields }
func NewAlterExternalAzureStageStageRequest ¶ added in v0.76.0
func NewAlterExternalAzureStageStageRequest( name SchemaObjectIdentifier, ) *AlterExternalAzureStageStageRequest
func (*AlterExternalAzureStageStageRequest) WithComment ¶ added in v0.76.0
func (s *AlterExternalAzureStageStageRequest) WithComment(Comment *string) *AlterExternalAzureStageStageRequest
func (*AlterExternalAzureStageStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *AlterExternalAzureStageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterExternalAzureStageStageRequest
func (*AlterExternalAzureStageStageRequest) WithExternalStageParams ¶ added in v0.76.0
func (s *AlterExternalAzureStageStageRequest) WithExternalStageParams(ExternalStageParams *ExternalAzureStageParamsRequest) *AlterExternalAzureStageStageRequest
func (*AlterExternalAzureStageStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *AlterExternalAzureStageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterExternalAzureStageStageRequest
func (*AlterExternalAzureStageStageRequest) WithIfExists ¶ added in v0.76.0
func (s *AlterExternalAzureStageStageRequest) WithIfExists(IfExists *bool) *AlterExternalAzureStageStageRequest
type AlterExternalGCSStageStageOptions ¶ added in v0.76.0
type AlterExternalGCSStageStageOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` ExternalStageParams *ExternalGCSStageParams FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
AlterExternalGCSStageStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-stage.
type AlterExternalGCSStageStageRequest ¶ added in v0.76.0
type AlterExternalGCSStageStageRequest struct { IfExists *bool ExternalStageParams *ExternalGCSStageParamsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string // contains filtered or unexported fields }
func NewAlterExternalGCSStageStageRequest ¶ added in v0.76.0
func NewAlterExternalGCSStageStageRequest( name SchemaObjectIdentifier, ) *AlterExternalGCSStageStageRequest
func (*AlterExternalGCSStageStageRequest) WithComment ¶ added in v0.76.0
func (s *AlterExternalGCSStageStageRequest) WithComment(Comment *string) *AlterExternalGCSStageStageRequest
func (*AlterExternalGCSStageStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *AlterExternalGCSStageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterExternalGCSStageStageRequest
func (*AlterExternalGCSStageStageRequest) WithExternalStageParams ¶ added in v0.76.0
func (s *AlterExternalGCSStageStageRequest) WithExternalStageParams(ExternalStageParams *ExternalGCSStageParamsRequest) *AlterExternalGCSStageStageRequest
func (*AlterExternalGCSStageStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *AlterExternalGCSStageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterExternalGCSStageStageRequest
func (*AlterExternalGCSStageStageRequest) WithIfExists ¶ added in v0.76.0
func (s *AlterExternalGCSStageStageRequest) WithIfExists(IfExists *bool) *AlterExternalGCSStageStageRequest
type AlterExternalS3StageStageOptions ¶ added in v0.76.0
type AlterExternalS3StageStageOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` ExternalStageParams *ExternalS3StageParams FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
AlterExternalS3StageStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-stage.
type AlterExternalS3StageStageRequest ¶ added in v0.76.0
type AlterExternalS3StageStageRequest struct { IfExists *bool ExternalStageParams *ExternalS3StageParamsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string // contains filtered or unexported fields }
func NewAlterExternalS3StageStageRequest ¶ added in v0.76.0
func NewAlterExternalS3StageStageRequest( name SchemaObjectIdentifier, ) *AlterExternalS3StageStageRequest
func (*AlterExternalS3StageStageRequest) WithComment ¶ added in v0.76.0
func (s *AlterExternalS3StageStageRequest) WithComment(Comment *string) *AlterExternalS3StageStageRequest
func (*AlterExternalS3StageStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *AlterExternalS3StageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterExternalS3StageStageRequest
func (*AlterExternalS3StageStageRequest) WithExternalStageParams ¶ added in v0.76.0
func (s *AlterExternalS3StageStageRequest) WithExternalStageParams(ExternalStageParams *ExternalS3StageParamsRequest) *AlterExternalS3StageStageRequest
func (*AlterExternalS3StageStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *AlterExternalS3StageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterExternalS3StageStageRequest
func (*AlterExternalS3StageStageRequest) WithIfExists ¶ added in v0.76.0
func (s *AlterExternalS3StageStageRequest) WithIfExists(IfExists *bool) *AlterExternalS3StageStageRequest
type AlterExternalTableOptions ¶ added in v0.72.0
type AlterExternalTableOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // One of Refresh *RefreshExternalTable `ddl:"keyword" sql:"REFRESH"` AddFiles []ExternalTableFile `ddl:"keyword,no_quotes,parentheses" sql:"ADD FILES"` RemoveFiles []ExternalTableFile `ddl:"keyword,no_quotes,parentheses" sql:"REMOVE FILES"` AutoRefresh *bool `ddl:"parameter" sql:"SET AUTO_REFRESH"` SetTag []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTag []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
AlterExternalTableOptions based on https://docs.snowflake.com/en/sql-reference/sql/alter-external-table
type AlterExternalTablePartitionOptions ¶ added in v0.72.0
type AlterExternalTablePartitionOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` AddPartitions []Partition `ddl:"keyword,parentheses" sql:"ADD PARTITION"` DropPartition *bool `ddl:"keyword" sql:"DROP PARTITION"` Location string `ddl:"parameter,no_equals,single_quotes" sql:"LOCATION"` // contains filtered or unexported fields }
AlterExternalTablePartitionOptions based on https://docs.snowflake.com/en/sql-reference/sql/alter-external-table
type AlterExternalTablePartitionRequest ¶ added in v0.72.0
type AlterExternalTablePartitionRequest struct {
// contains filtered or unexported fields
}
func NewAlterExternalTablePartitionRequest ¶ added in v0.72.0
func NewAlterExternalTablePartitionRequest( name SchemaObjectIdentifier, ) *AlterExternalTablePartitionRequest
func (*AlterExternalTablePartitionRequest) WithAddPartitions ¶ added in v0.72.0
func (s *AlterExternalTablePartitionRequest) WithAddPartitions(addPartitions []*PartitionRequest) *AlterExternalTablePartitionRequest
func (*AlterExternalTablePartitionRequest) WithDropPartition ¶ added in v0.72.0
func (s *AlterExternalTablePartitionRequest) WithDropPartition(dropPartition *bool) *AlterExternalTablePartitionRequest
func (*AlterExternalTablePartitionRequest) WithIfExists ¶ added in v0.72.0
func (s *AlterExternalTablePartitionRequest) WithIfExists(ifExists *bool) *AlterExternalTablePartitionRequest
func (*AlterExternalTablePartitionRequest) WithLocation ¶ added in v0.72.0
func (s *AlterExternalTablePartitionRequest) WithLocation(location string) *AlterExternalTablePartitionRequest
type AlterExternalTableRequest ¶ added in v0.72.0
type AlterExternalTableRequest struct {
// contains filtered or unexported fields
}
func NewAlterExternalTableRequest ¶ added in v0.72.0
func NewAlterExternalTableRequest( name SchemaObjectIdentifier, ) *AlterExternalTableRequest
func (*AlterExternalTableRequest) WithAddFiles ¶ added in v0.72.0
func (s *AlterExternalTableRequest) WithAddFiles(addFiles []*ExternalTableFileRequest) *AlterExternalTableRequest
func (*AlterExternalTableRequest) WithAutoRefresh ¶ added in v0.72.0
func (s *AlterExternalTableRequest) WithAutoRefresh(autoRefresh *bool) *AlterExternalTableRequest
func (*AlterExternalTableRequest) WithIfExists ¶ added in v0.72.0
func (s *AlterExternalTableRequest) WithIfExists(ifExists *bool) *AlterExternalTableRequest
func (*AlterExternalTableRequest) WithRefresh ¶ added in v0.72.0
func (s *AlterExternalTableRequest) WithRefresh(refresh *RefreshExternalTableRequest) *AlterExternalTableRequest
func (*AlterExternalTableRequest) WithRemoveFiles ¶ added in v0.72.0
func (s *AlterExternalTableRequest) WithRemoveFiles(removeFiles []*ExternalTableFileRequest) *AlterExternalTableRequest
func (*AlterExternalTableRequest) WithSetTag ¶ added in v0.72.0
func (s *AlterExternalTableRequest) WithSetTag(setTag []*TagAssociationRequest) *AlterExternalTableRequest
func (*AlterExternalTableRequest) WithUnsetTag ¶ added in v0.72.0
func (s *AlterExternalTableRequest) WithUnsetTag(unsetTag []ObjectIdentifier) *AlterExternalTableRequest
type AlterFileFormatOptions ¶ added in v0.68.0
type AlterFileFormatOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Rename *AlterFileFormatRenameOptions Set *FileFormatTypeOptions `ddl:"list,no_comma" sql:"SET"` SetComment *string `ddl:"parameter,single_quotes" sql:"SET COMMENT"` // contains filtered or unexported fields }
AlterFileFormatOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-file-format.
type AlterFileFormatRenameOptions ¶ added in v0.68.0
type AlterFileFormatRenameOptions struct {
NewName SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"`
}
type AlterInternalStageStageOptions ¶ added in v0.76.0
type AlterInternalStageStageOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
AlterInternalStageStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-stage.
type AlterInternalStageStageRequest ¶ added in v0.76.0
type AlterInternalStageStageRequest struct { IfExists *bool FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string // contains filtered or unexported fields }
func NewAlterInternalStageStageRequest ¶ added in v0.76.0
func NewAlterInternalStageStageRequest( name SchemaObjectIdentifier, ) *AlterInternalStageStageRequest
func (*AlterInternalStageStageRequest) WithComment ¶ added in v0.76.0
func (s *AlterInternalStageStageRequest) WithComment(Comment *string) *AlterInternalStageStageRequest
func (*AlterInternalStageStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *AlterInternalStageStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *AlterInternalStageStageRequest
func (*AlterInternalStageStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *AlterInternalStageStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *AlterInternalStageStageRequest
func (*AlterInternalStageStageRequest) WithIfExists ¶ added in v0.76.0
func (s *AlterInternalStageStageRequest) WithIfExists(IfExists *bool) *AlterInternalStageStageRequest
type AlterMaskingPolicyOptions ¶ added in v0.66.0
type AlterMaskingPolicyOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` NewName *SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` Set *MaskingPolicySet `ddl:"keyword" sql:"SET"` Unset *MaskingPolicyUnset `ddl:"keyword" sql:"UNSET"` SetTag []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTag []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
AlterMaskingPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-masking-policy.
type AlterNetworkPolicyOptions ¶ added in v0.72.0
type AlterNetworkPolicyOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Set *NetworkPolicySet `ddl:"keyword" sql:"SET"` UnsetComment *bool `ddl:"keyword" sql:"UNSET COMMENT"` RenameTo *AccountObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` // contains filtered or unexported fields }
AlterNetworkPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-network-policy.
type AlterNetworkPolicyRequest ¶ added in v0.72.0
type AlterNetworkPolicyRequest struct { IfExists *bool Set *NetworkPolicySetRequest UnsetComment *bool RenameTo *AccountObjectIdentifier // contains filtered or unexported fields }
func NewAlterNetworkPolicyRequest ¶ added in v0.72.0
func NewAlterNetworkPolicyRequest( name AccountObjectIdentifier, ) *AlterNetworkPolicyRequest
func (*AlterNetworkPolicyRequest) WithIfExists ¶ added in v0.72.0
func (s *AlterNetworkPolicyRequest) WithIfExists(IfExists *bool) *AlterNetworkPolicyRequest
func (*AlterNetworkPolicyRequest) WithRenameTo ¶ added in v0.72.0
func (s *AlterNetworkPolicyRequest) WithRenameTo(RenameTo *AccountObjectIdentifier) *AlterNetworkPolicyRequest
func (*AlterNetworkPolicyRequest) WithSet ¶ added in v0.72.0
func (s *AlterNetworkPolicyRequest) WithSet(Set *NetworkPolicySetRequest) *AlterNetworkPolicyRequest
func (*AlterNetworkPolicyRequest) WithUnsetComment ¶ added in v0.72.0
func (s *AlterNetworkPolicyRequest) WithUnsetComment(UnsetComment *bool) *AlterNetworkPolicyRequest
type AlterPasswordPolicyOptions ¶ added in v0.66.0
type AlterPasswordPolicyOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` NewName *SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` Set *PasswordPolicySet `ddl:"list,no_parentheses" sql:"SET"` Unset *PasswordPolicyUnset `ddl:"list,no_parentheses" sql:"UNSET"` // contains filtered or unexported fields }
AlterPasswordPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-password-policy.
type AlterPipeOptions ¶ added in v0.72.0
type AlterPipeOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // One of Set *PipeSet `ddl:"list,no_parentheses" sql:"SET"` Unset *PipeUnset `ddl:"list,no_parentheses" sql:"UNSET"` SetTag []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTag []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` Refresh *PipeRefresh `ddl:"keyword" sql:"REFRESH"` // contains filtered or unexported fields }
AlterPipeOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-pipe.
type AlterProcedureOptions ¶ added in v0.79.0
type AlterProcedureOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` ArgumentDataTypes []DataType `ddl:"keyword,parentheses"` RenameTo *SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` SetComment *string `ddl:"parameter,single_quotes" sql:"SET COMMENT"` SetLogLevel *string `ddl:"parameter,single_quotes" sql:"SET LOG_LEVEL"` SetTraceLevel *string `ddl:"parameter,single_quotes" sql:"SET TRACE_LEVEL"` UnsetComment *bool `ddl:"keyword" sql:"UNSET COMMENT"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` ExecuteAs *ExecuteAs `ddl:"keyword"` // contains filtered or unexported fields }
AlterProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-procedure.
type AlterProcedureRequest ¶ added in v0.79.0
type AlterProcedureRequest struct { IfExists *bool ArgumentDataTypes []DataType // required RenameTo *SchemaObjectIdentifier SetComment *string SetLogLevel *string SetTraceLevel *string UnsetComment *bool SetTags []TagAssociation UnsetTags []ObjectIdentifier ExecuteAs *ExecuteAs // contains filtered or unexported fields }
func NewAlterProcedureRequest ¶ added in v0.79.0
func NewAlterProcedureRequest( name SchemaObjectIdentifier, ArgumentDataTypes []DataType, ) *AlterProcedureRequest
func (*AlterProcedureRequest) WithExecuteAs ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *AlterProcedureRequest
func (*AlterProcedureRequest) WithIfExists ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithIfExists(IfExists *bool) *AlterProcedureRequest
func (*AlterProcedureRequest) WithRenameTo ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterProcedureRequest
func (*AlterProcedureRequest) WithSetComment ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithSetComment(SetComment *string) *AlterProcedureRequest
func (*AlterProcedureRequest) WithSetLogLevel ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithSetLogLevel(SetLogLevel *string) *AlterProcedureRequest
func (*AlterProcedureRequest) WithSetTags ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithSetTags(SetTags []TagAssociation) *AlterProcedureRequest
func (*AlterProcedureRequest) WithSetTraceLevel ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithSetTraceLevel(SetTraceLevel *string) *AlterProcedureRequest
func (*AlterProcedureRequest) WithUnsetComment ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithUnsetComment(UnsetComment *bool) *AlterProcedureRequest
func (*AlterProcedureRequest) WithUnsetTags ¶ added in v0.79.0
func (s *AlterProcedureRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterProcedureRequest
type AlterResourceMonitorOptions ¶ added in v0.66.0
type AlterResourceMonitorOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Set *ResourceMonitorSet `ddl:"keyword" sql:"SET"` NotifyUsers *NotifyUsers `ddl:"parameter,equals" sql:"NOTIFY_USERS"` Triggers []TriggerDefinition `ddl:"keyword,no_comma" sql:"TRIGGERS"` // contains filtered or unexported fields }
AlterResourceMonitorOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-resource-monitor.
type AlterRoleOptions ¶ added in v0.72.0
type AlterRoleOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // One of RenameTo *AccountObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` SetComment *string `ddl:"parameter,single_quotes" sql:"SET COMMENT"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetComment *bool `ddl:"keyword" sql:"UNSET COMMENT"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
AlterRoleOptions based on https://docs.snowflake.com/en/sql-reference/sql/alter-role
type AlterRoleRequest ¶ added in v0.72.0
type AlterRoleRequest struct { IfExists *bool RenameTo *AccountObjectIdentifier SetComment *string SetTags []TagAssociation UnsetComment *bool UnsetTags []ObjectIdentifier // contains filtered or unexported fields }
func NewAlterRoleRequest ¶ added in v0.72.0
func NewAlterRoleRequest(name AccountObjectIdentifier) *AlterRoleRequest
func (*AlterRoleRequest) WithIfExists ¶ added in v0.72.0
func (s *AlterRoleRequest) WithIfExists(ifExists bool) *AlterRoleRequest
func (*AlterRoleRequest) WithRenameTo ¶ added in v0.72.0
func (s *AlterRoleRequest) WithRenameTo(renameTo AccountObjectIdentifier) *AlterRoleRequest
func (*AlterRoleRequest) WithSetComment ¶ added in v0.72.0
func (s *AlterRoleRequest) WithSetComment(setComment string) *AlterRoleRequest
func (*AlterRoleRequest) WithSetTags ¶ added in v0.72.0
func (s *AlterRoleRequest) WithSetTags(setTags []TagAssociation) *AlterRoleRequest
func (*AlterRoleRequest) WithUnsetComment ¶ added in v0.72.0
func (s *AlterRoleRequest) WithUnsetComment(unsetComment bool) *AlterRoleRequest
func (*AlterRoleRequest) WithUnsetTags ¶ added in v0.72.0
func (s *AlterRoleRequest) WithUnsetTags(unsetTags []ObjectIdentifier) *AlterRoleRequest
type AlterSchemaOptions ¶ added in v0.70.0
type AlterSchemaOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` NewName DatabaseObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` SwapWith DatabaseObjectIdentifier `ddl:"identifier" sql:"SWAP WITH"` Set *SchemaSet `ddl:"list,no_parentheses" sql:"SET"` Unset *SchemaUnset `ddl:"list,no_parentheses" sql:"UNSET"` SetTag []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTag []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // One of EnableManagedAccess *bool `ddl:"keyword" sql:"ENABLE MANAGED ACCESS"` DisableManagedAccess *bool `ddl:"keyword" sql:"DISABLE MANAGED ACCESS"` // contains filtered or unexported fields }
AlterSchemaOptions based on https://docs.snowflake.com/en/sql-reference/sql/alter-schema
type AlterSessionOptions ¶ added in v0.65.0
type AlterSessionOptions struct { Set *SessionSet `ddl:"keyword" sql:"SET"` Unset *SessionUnset `ddl:"keyword" sql:"UNSET"` // contains filtered or unexported fields }
AlterSessionOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-session.
type AlterSessionPolicyOptions ¶ added in v0.66.0
type AlterSessionPolicyOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` RenameTo *SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` Set *SessionPolicySet `ddl:"keyword" sql:"SET"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` Unset *SessionPolicyUnset `ddl:"keyword" sql:"UNSET"` // contains filtered or unexported fields }
AlterSessionPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-session-policy.
type AlterSessionPolicyRequest ¶ added in v0.72.0
type AlterSessionPolicyRequest struct { IfExists *bool RenameTo *SchemaObjectIdentifier Set *SessionPolicySetRequest SetTags []TagAssociation UnsetTags []ObjectIdentifier Unset *SessionPolicyUnsetRequest // contains filtered or unexported fields }
func NewAlterSessionPolicyRequest ¶ added in v0.72.0
func NewAlterSessionPolicyRequest( name SchemaObjectIdentifier, ) *AlterSessionPolicyRequest
func (*AlterSessionPolicyRequest) WithIfExists ¶ added in v0.72.0
func (s *AlterSessionPolicyRequest) WithIfExists(IfExists *bool) *AlterSessionPolicyRequest
func (*AlterSessionPolicyRequest) WithRenameTo ¶ added in v0.72.0
func (s *AlterSessionPolicyRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterSessionPolicyRequest
func (*AlterSessionPolicyRequest) WithSet ¶ added in v0.72.0
func (s *AlterSessionPolicyRequest) WithSet(Set *SessionPolicySetRequest) *AlterSessionPolicyRequest
func (*AlterSessionPolicyRequest) WithSetTags ¶ added in v0.72.0
func (s *AlterSessionPolicyRequest) WithSetTags(SetTags []TagAssociation) *AlterSessionPolicyRequest
func (*AlterSessionPolicyRequest) WithUnset ¶ added in v0.72.0
func (s *AlterSessionPolicyRequest) WithUnset(Unset *SessionPolicyUnsetRequest) *AlterSessionPolicyRequest
func (*AlterSessionPolicyRequest) WithUnsetTags ¶ added in v0.72.0
func (s *AlterSessionPolicyRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterSessionPolicyRequest
type AlterShareOptions ¶ added in v0.66.0
type AlterShareOptions struct { // contains filtered or unexported fields }
AlterShareOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-share.
type AlterSourceFailoverGroupOptions ¶ added in v0.66.0
type AlterSourceFailoverGroupOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` NewName AccountObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` Set *FailoverGroupSet `ddl:"keyword" sql:"SET"` Add *FailoverGroupAdd `ddl:"keyword" sql:"ADD"` Move *FailoverGroupMove `ddl:"keyword" sql:"MOVE"` Remove *FailoverGroupRemove `ddl:"keyword" sql:"REMOVE"` // contains filtered or unexported fields }
AlterSourceFailoverGroupOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-failover-group.
type AlterStageOptions ¶ added in v0.76.0
type AlterStageOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` RenameTo *SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
AlterStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-stage.
type AlterStageRequest ¶ added in v0.76.0
type AlterStageRequest struct { IfExists *bool RenameTo *SchemaObjectIdentifier SetTags []TagAssociation UnsetTags []ObjectIdentifier // contains filtered or unexported fields }
func NewAlterStageRequest ¶ added in v0.76.0
func NewAlterStageRequest( name SchemaObjectIdentifier, ) *AlterStageRequest
func (*AlterStageRequest) WithIfExists ¶ added in v0.76.0
func (s *AlterStageRequest) WithIfExists(IfExists *bool) *AlterStageRequest
func (*AlterStageRequest) WithRenameTo ¶ added in v0.76.0
func (s *AlterStageRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterStageRequest
func (*AlterStageRequest) WithSetTags ¶ added in v0.76.0
func (s *AlterStageRequest) WithSetTags(SetTags []TagAssociation) *AlterStageRequest
func (*AlterStageRequest) WithUnsetTags ¶ added in v0.76.0
func (s *AlterStageRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterStageRequest
type AlterStreamOptions ¶ added in v0.74.0
type AlterStreamOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` SetComment *string `ddl:"parameter,single_quotes" sql:"SET COMMENT"` UnsetComment *bool `ddl:"keyword" sql:"UNSET COMMENT"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
AlterStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-stream.
type AlterStreamRequest ¶ added in v0.74.0
type AlterStreamRequest struct { IfExists *bool SetComment *string UnsetComment *bool SetTags []TagAssociation UnsetTags []ObjectIdentifier // contains filtered or unexported fields }
func NewAlterStreamRequest ¶ added in v0.74.0
func NewAlterStreamRequest( name SchemaObjectIdentifier, ) *AlterStreamRequest
func (*AlterStreamRequest) WithIfExists ¶ added in v0.74.0
func (s *AlterStreamRequest) WithIfExists(IfExists *bool) *AlterStreamRequest
func (*AlterStreamRequest) WithSetComment ¶ added in v0.74.0
func (s *AlterStreamRequest) WithSetComment(SetComment *string) *AlterStreamRequest
func (*AlterStreamRequest) WithSetTags ¶ added in v0.74.0
func (s *AlterStreamRequest) WithSetTags(SetTags []TagAssociation) *AlterStreamRequest
func (*AlterStreamRequest) WithUnsetComment ¶ added in v0.74.0
func (s *AlterStreamRequest) WithUnsetComment(UnsetComment *bool) *AlterStreamRequest
func (*AlterStreamRequest) WithUnsetTags ¶ added in v0.74.0
func (s *AlterStreamRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterStreamRequest
type AlterTableRequest ¶ added in v0.78.0
type AlterTableRequest struct { IfExists *bool NewName *SchemaObjectIdentifier SwapWith *SchemaObjectIdentifier ClusteringAction *TableClusteringActionRequest ColumnAction *TableColumnActionRequest ConstraintAction *TableConstraintActionRequest ExternalTableAction *TableExternalTableActionRequest SearchOptimizationAction *TableSearchOptimizationActionRequest Set *TableSetRequest SetTags []TagAssociationRequest UnsetTags []ObjectIdentifier Unset *TableUnsetRequest AddRowAccessPolicy *TableAddRowAccessPolicyRequest DropRowAccessPolicy *TableDropRowAccessPolicyRequest DropAndAddRowAccessPolicy *TableDropAndAddRowAccessPolicy DropAllAccessRowPolicies *bool // contains filtered or unexported fields }
func NewAlterTableRequest ¶ added in v0.78.0
func NewAlterTableRequest( name SchemaObjectIdentifier, ) *AlterTableRequest
func (*AlterTableRequest) WithAddRowAccessPolicy ¶ added in v0.78.0
func (s *AlterTableRequest) WithAddRowAccessPolicy(addRowAccessPolicy *TableAddRowAccessPolicyRequest) *AlterTableRequest
func (*AlterTableRequest) WithClusteringAction ¶ added in v0.78.0
func (s *AlterTableRequest) WithClusteringAction(clusteringAction *TableClusteringActionRequest) *AlterTableRequest
func (*AlterTableRequest) WithColumnAction ¶ added in v0.78.0
func (s *AlterTableRequest) WithColumnAction(columnAction *TableColumnActionRequest) *AlterTableRequest
func (*AlterTableRequest) WithConstraintAction ¶ added in v0.78.0
func (s *AlterTableRequest) WithConstraintAction(constraintAction *TableConstraintActionRequest) *AlterTableRequest
func (*AlterTableRequest) WithDropAllAccessRowPolicies ¶ added in v0.78.0
func (s *AlterTableRequest) WithDropAllAccessRowPolicies(dropAllAccessRowPolicies *bool) *AlterTableRequest
func (*AlterTableRequest) WithDropAndAddRowAccessPolicy ¶ added in v0.78.0
func (s *AlterTableRequest) WithDropAndAddRowAccessPolicy(dropAndAddRowAccessPolicy *TableDropAndAddRowAccessPolicy) *AlterTableRequest
func (*AlterTableRequest) WithDropRowAccessPolicy ¶ added in v0.78.0
func (s *AlterTableRequest) WithDropRowAccessPolicy(dropRowAccessPolicy *TableDropRowAccessPolicyRequest) *AlterTableRequest
func (*AlterTableRequest) WithExternalTableAction ¶ added in v0.78.0
func (s *AlterTableRequest) WithExternalTableAction(externalTableAction *TableExternalTableActionRequest) *AlterTableRequest
func (*AlterTableRequest) WithIfExists ¶ added in v0.78.0
func (s *AlterTableRequest) WithIfExists(ifExists *bool) *AlterTableRequest
func (*AlterTableRequest) WithNewName ¶ added in v0.78.0
func (s *AlterTableRequest) WithNewName(newName *SchemaObjectIdentifier) *AlterTableRequest
func (*AlterTableRequest) WithSearchOptimizationAction ¶ added in v0.78.0
func (s *AlterTableRequest) WithSearchOptimizationAction(searchOptimizationAction *TableSearchOptimizationActionRequest) *AlterTableRequest
func (*AlterTableRequest) WithSet ¶ added in v0.78.0
func (s *AlterTableRequest) WithSet(set *TableSetRequest) *AlterTableRequest
func (*AlterTableRequest) WithSetTags ¶ added in v0.78.0
func (s *AlterTableRequest) WithSetTags(setTags []TagAssociationRequest) *AlterTableRequest
func (*AlterTableRequest) WithSwapWith ¶ added in v0.78.0
func (s *AlterTableRequest) WithSwapWith(swapWith *SchemaObjectIdentifier) *AlterTableRequest
func (*AlterTableRequest) WithUnset ¶ added in v0.78.0
func (s *AlterTableRequest) WithUnset(unset *TableUnsetRequest) *AlterTableRequest
func (*AlterTableRequest) WithUnsetTags ¶ added in v0.78.0
func (s *AlterTableRequest) WithUnsetTags(unsetTags []ObjectIdentifier) *AlterTableRequest
type AlterTagRequest ¶ added in v0.74.0
type AlterTagRequest struct {
// contains filtered or unexported fields
}
func NewAlterTagRequest ¶ added in v0.74.0
func NewAlterTagRequest(name SchemaObjectIdentifier) *AlterTagRequest
func (*AlterTagRequest) WithAdd ¶ added in v0.74.0
func (s *AlterTagRequest) WithAdd(values []string) *AlterTagRequest
func (*AlterTagRequest) WithDrop ¶ added in v0.74.0
func (s *AlterTagRequest) WithDrop(values []string) *AlterTagRequest
func (*AlterTagRequest) WithRename ¶ added in v0.74.0
func (s *AlterTagRequest) WithRename(name SchemaObjectIdentifier) *AlterTagRequest
func (*AlterTagRequest) WithSet ¶ added in v0.74.0
func (s *AlterTagRequest) WithSet(request *TagSetRequest) *AlterTagRequest
func (*AlterTagRequest) WithUnset ¶ added in v0.74.0
func (s *AlterTagRequest) WithUnset(request *TagUnsetRequest) *AlterTagRequest
type AlterTargetFailoverGroupOptions ¶ added in v0.66.0
type AlterTargetFailoverGroupOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Refresh *bool `ddl:"keyword" sql:"REFRESH"` Primary *bool `ddl:"keyword" sql:"PRIMARY"` Suspend *bool `ddl:"keyword" sql:"SUSPEND"` Resume *bool `ddl:"keyword" sql:"RESUME"` // contains filtered or unexported fields }
AlterTargetFailoverGroupOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-failover-group.
type AlterTaskOptions ¶ added in v0.73.0
type AlterTaskOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Resume *bool `ddl:"keyword" sql:"RESUME"` Suspend *bool `ddl:"keyword" sql:"SUSPEND"` RemoveAfter []SchemaObjectIdentifier `ddl:"parameter,no_equals" sql:"REMOVE AFTER"` AddAfter []SchemaObjectIdentifier `ddl:"parameter,no_equals" sql:"ADD AFTER"` Set *TaskSet `ddl:"list,no_parentheses" sql:"SET"` Unset *TaskUnset `ddl:"list,no_parentheses" sql:"UNSET"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` ModifyAs *string `ddl:"parameter,no_quotes,no_equals" sql:"MODIFY AS"` ModifyWhen *string `ddl:"parameter,no_quotes,no_equals" sql:"MODIFY WHEN"` // contains filtered or unexported fields }
AlterTaskOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-task.
type AlterTaskRequest ¶ added in v0.73.0
type AlterTaskRequest struct { IfExists *bool Resume *bool Suspend *bool RemoveAfter []SchemaObjectIdentifier AddAfter []SchemaObjectIdentifier Set *TaskSetRequest Unset *TaskUnsetRequest SetTags []TagAssociation UnsetTags []ObjectIdentifier ModifyAs *string ModifyWhen *string // contains filtered or unexported fields }
func NewAlterTaskRequest ¶ added in v0.73.0
func NewAlterTaskRequest( name SchemaObjectIdentifier, ) *AlterTaskRequest
func (*AlterTaskRequest) WithAddAfter ¶ added in v0.73.0
func (s *AlterTaskRequest) WithAddAfter(AddAfter []SchemaObjectIdentifier) *AlterTaskRequest
func (*AlterTaskRequest) WithIfExists ¶ added in v0.73.0
func (s *AlterTaskRequest) WithIfExists(IfExists *bool) *AlterTaskRequest
func (*AlterTaskRequest) WithModifyAs ¶ added in v0.73.0
func (s *AlterTaskRequest) WithModifyAs(ModifyAs *string) *AlterTaskRequest
func (*AlterTaskRequest) WithModifyWhen ¶ added in v0.73.0
func (s *AlterTaskRequest) WithModifyWhen(ModifyWhen *string) *AlterTaskRequest
func (*AlterTaskRequest) WithRemoveAfter ¶ added in v0.73.0
func (s *AlterTaskRequest) WithRemoveAfter(RemoveAfter []SchemaObjectIdentifier) *AlterTaskRequest
func (*AlterTaskRequest) WithResume ¶ added in v0.73.0
func (s *AlterTaskRequest) WithResume(Resume *bool) *AlterTaskRequest
func (*AlterTaskRequest) WithSet ¶ added in v0.73.0
func (s *AlterTaskRequest) WithSet(Set *TaskSetRequest) *AlterTaskRequest
func (*AlterTaskRequest) WithSetTags ¶ added in v0.73.0
func (s *AlterTaskRequest) WithSetTags(SetTags []TagAssociation) *AlterTaskRequest
func (*AlterTaskRequest) WithSuspend ¶ added in v0.73.0
func (s *AlterTaskRequest) WithSuspend(Suspend *bool) *AlterTaskRequest
func (*AlterTaskRequest) WithUnset ¶ added in v0.73.0
func (s *AlterTaskRequest) WithUnset(Unset *TaskUnsetRequest) *AlterTaskRequest
func (*AlterTaskRequest) WithUnsetTags ¶ added in v0.73.0
func (s *AlterTaskRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterTaskRequest
type AlterUserOptions ¶ added in v0.66.0
type AlterUserOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // one of NewName AccountObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` ResetPassword *bool `ddl:"keyword" sql:"RESET PASSWORD"` AbortAllQueries *bool `ddl:"keyword" sql:"ABORT ALL QUERIES"` AddDelegatedAuthorization *AddDelegatedAuthorization `ddl:"keyword"` RemoveDelegatedAuthorization *RemoveDelegatedAuthorization `ddl:"keyword"` Set *UserSet `ddl:"keyword" sql:"SET"` Unset *UserUnset `ddl:"keyword" sql:"UNSET"` SetTag []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTag []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
AlterUserOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-user.
type AlterViewOptions ¶ added in v0.76.0
type AlterViewOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` RenameTo *SchemaObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` SetComment *string `ddl:"parameter,single_quotes" sql:"SET COMMENT"` UnsetComment *bool `ddl:"keyword" sql:"UNSET COMMENT"` SetSecure *bool `ddl:"keyword" sql:"SET SECURE"` SetChangeTracking *bool `ddl:"parameter" sql:"SET CHANGE_TRACKING"` UnsetSecure *bool `ddl:"keyword" sql:"UNSET SECURE"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` AddRowAccessPolicy *ViewAddRowAccessPolicy `ddl:"keyword"` DropRowAccessPolicy *ViewDropRowAccessPolicy `ddl:"keyword"` DropAndAddRowAccessPolicy *ViewDropAndAddRowAccessPolicy `ddl:"list,no_parentheses"` DropAllRowAccessPolicies *bool `ddl:"keyword" sql:"DROP ALL ROW ACCESS POLICIES"` SetMaskingPolicyOnColumn *ViewSetColumnMaskingPolicy `ddl:"keyword"` UnsetMaskingPolicyOnColumn *ViewUnsetColumnMaskingPolicy `ddl:"keyword"` SetTagsOnColumn *ViewSetColumnTags `ddl:"keyword"` UnsetTagsOnColumn *ViewUnsetColumnTags `ddl:"keyword"` // contains filtered or unexported fields }
AlterViewOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-view.
type AlterViewRequest ¶ added in v0.76.0
type AlterViewRequest struct { IfExists *bool RenameTo *SchemaObjectIdentifier SetComment *string UnsetComment *bool SetSecure *bool SetChangeTracking *bool UnsetSecure *bool SetTags []TagAssociation UnsetTags []ObjectIdentifier AddRowAccessPolicy *ViewAddRowAccessPolicyRequest DropRowAccessPolicy *ViewDropRowAccessPolicyRequest DropAndAddRowAccessPolicy *ViewDropAndAddRowAccessPolicyRequest DropAllRowAccessPolicies *bool SetMaskingPolicyOnColumn *ViewSetColumnMaskingPolicyRequest UnsetMaskingPolicyOnColumn *ViewUnsetColumnMaskingPolicyRequest SetTagsOnColumn *ViewSetColumnTagsRequest UnsetTagsOnColumn *ViewUnsetColumnTagsRequest // contains filtered or unexported fields }
func NewAlterViewRequest ¶ added in v0.76.0
func NewAlterViewRequest( name SchemaObjectIdentifier, ) *AlterViewRequest
func (*AlterViewRequest) WithAddRowAccessPolicy ¶ added in v0.76.0
func (s *AlterViewRequest) WithAddRowAccessPolicy(AddRowAccessPolicy *ViewAddRowAccessPolicyRequest) *AlterViewRequest
func (*AlterViewRequest) WithDropAllRowAccessPolicies ¶ added in v0.76.0
func (s *AlterViewRequest) WithDropAllRowAccessPolicies(DropAllRowAccessPolicies *bool) *AlterViewRequest
func (*AlterViewRequest) WithDropAndAddRowAccessPolicy ¶ added in v0.76.0
func (s *AlterViewRequest) WithDropAndAddRowAccessPolicy(DropAndAddRowAccessPolicy *ViewDropAndAddRowAccessPolicyRequest) *AlterViewRequest
func (*AlterViewRequest) WithDropRowAccessPolicy ¶ added in v0.76.0
func (s *AlterViewRequest) WithDropRowAccessPolicy(DropRowAccessPolicy *ViewDropRowAccessPolicyRequest) *AlterViewRequest
func (*AlterViewRequest) WithIfExists ¶ added in v0.76.0
func (s *AlterViewRequest) WithIfExists(IfExists *bool) *AlterViewRequest
func (*AlterViewRequest) WithRenameTo ¶ added in v0.76.0
func (s *AlterViewRequest) WithRenameTo(RenameTo *SchemaObjectIdentifier) *AlterViewRequest
func (*AlterViewRequest) WithSetChangeTracking ¶ added in v0.76.0
func (s *AlterViewRequest) WithSetChangeTracking(SetChangeTracking *bool) *AlterViewRequest
func (*AlterViewRequest) WithSetComment ¶ added in v0.76.0
func (s *AlterViewRequest) WithSetComment(SetComment *string) *AlterViewRequest
func (*AlterViewRequest) WithSetMaskingPolicyOnColumn ¶ added in v0.76.0
func (s *AlterViewRequest) WithSetMaskingPolicyOnColumn(SetMaskingPolicyOnColumn *ViewSetColumnMaskingPolicyRequest) *AlterViewRequest
func (*AlterViewRequest) WithSetSecure ¶ added in v0.76.0
func (s *AlterViewRequest) WithSetSecure(SetSecure *bool) *AlterViewRequest
func (*AlterViewRequest) WithSetTags ¶ added in v0.76.0
func (s *AlterViewRequest) WithSetTags(SetTags []TagAssociation) *AlterViewRequest
func (*AlterViewRequest) WithSetTagsOnColumn ¶ added in v0.76.0
func (s *AlterViewRequest) WithSetTagsOnColumn(SetTagsOnColumn *ViewSetColumnTagsRequest) *AlterViewRequest
func (*AlterViewRequest) WithUnsetComment ¶ added in v0.76.0
func (s *AlterViewRequest) WithUnsetComment(UnsetComment *bool) *AlterViewRequest
func (*AlterViewRequest) WithUnsetMaskingPolicyOnColumn ¶ added in v0.76.0
func (s *AlterViewRequest) WithUnsetMaskingPolicyOnColumn(UnsetMaskingPolicyOnColumn *ViewUnsetColumnMaskingPolicyRequest) *AlterViewRequest
func (*AlterViewRequest) WithUnsetSecure ¶ added in v0.76.0
func (s *AlterViewRequest) WithUnsetSecure(UnsetSecure *bool) *AlterViewRequest
func (*AlterViewRequest) WithUnsetTags ¶ added in v0.76.0
func (s *AlterViewRequest) WithUnsetTags(UnsetTags []ObjectIdentifier) *AlterViewRequest
func (*AlterViewRequest) WithUnsetTagsOnColumn ¶ added in v0.76.0
func (s *AlterViewRequest) WithUnsetTagsOnColumn(UnsetTagsOnColumn *ViewUnsetColumnTagsRequest) *AlterViewRequest
type AlterWarehouseOptions ¶ added in v0.66.0
type AlterWarehouseOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Suspend *bool `ddl:"keyword" sql:"SUSPEND"` Resume *bool `ddl:"keyword" sql:"RESUME"` IfSuspended *bool `ddl:"keyword" sql:"IF SUSPENDED"` AbortAllQueries *bool `ddl:"keyword" sql:"ABORT ALL QUERIES"` NewName *AccountObjectIdentifier `ddl:"identifier" sql:"RENAME TO"` Set *WarehouseSet `ddl:"keyword" sql:"SET"` Unset *WarehouseUnset `ddl:"list,no_parentheses" sql:"UNSET"` SetTag []TagAssociation `ddl:"keyword" sql:"SET TAG"` UnsetTag []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
AlterWarehouseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/alter-warehouse.
type ApplicationRole ¶ added in v0.76.0
type ApplicationRoles ¶ added in v0.76.0
type ApplicationRoles interface { Show(ctx context.Context, request *ShowApplicationRoleRequest) ([]ApplicationRole, error) ShowByID(ctx context.Context, request *ShowByIDApplicationRoleRequest) (*ApplicationRole, error) }
ApplicationRoles is an interface that allows for querying application roles. It does not allow for other DDL queries (CREATE, ALTER, DROP, ...) to be called, because they are not possible to be called from the program level. Application roles are a special case where they're only usable inside application context (e.g. setup.sql). Right now, they can be only manipulated from the program context by applying debug_mode parameter to the application, but it's a hacky solution and even with that you're limited with GRANT and REVOKE options. That's why we're only exposing SHOW operations, because only they are the only allowed operations to be called from the program context.
type AvroCompression ¶ added in v0.68.0
type AvroCompression string
var ( AvroCompressionAuto AvroCompression = "AUTO" AvroCompressionGzip AvroCompression = "GZIP" AvroCompressionBrotli AvroCompression = "BROTLI" AvroCompressionZstd AvroCompression = "ZSTD" AvroCompressionDeflate AvroCompression = "DEFLATE" AvroCompressionRawDeflate AvroCompression = "RAW_DEFLATE" AvroCompressionNone AvroCompression = "NONE" )
type BinaryFormat ¶ added in v0.68.0
type BinaryFormat string
var ( BinaryFormatHex BinaryFormat = "HEX" BinaryFormatBase64 BinaryFormat = "BASE64" BinaryFormatUTF8 BinaryFormat = "UTF8" )
type BinaryInputFormat ¶ added in v0.65.0
type BinaryInputFormat string
const ( BinaryInputFormatHex BinaryInputFormat = "HEX" BinaryInputFormatBase64 BinaryInputFormat = "BASE64" BinaryInputFormatUTF8 BinaryInputFormat = "UTF8" )
type BinaryOutputFormat ¶ added in v0.71.0
type BinaryOutputFormat string
const ( BinaryOutputFormatHex BinaryOutputFormat = "HEX" BinaryOutputFormatBase64 BinaryOutputFormat = "BASE64" )
type BoolProperty ¶ added in v0.70.0
type CSVCompression ¶ added in v0.68.0
type CSVCompression string
var ( CSVCompressionAuto CSVCompression = "AUTO" CSVCompressionGzip CSVCompression = "GZIP" CSVCompressionBz2 CSVCompression = "BZ2" CSVCompressionBrotli CSVCompression = "BROTLI" CSVCompressionZstd CSVCompression = "ZSTD" CSVCompressionDeflate CSVCompression = "DEFLATE" CSVCompressionRawDeflate CSVCompression = "RAW_DEFLATE" CSVCompressionNone CSVCompression = "NONE" )
type CSVEncoding ¶ added in v0.68.0
type CSVEncoding string
var ( CSVEncodingBIG5 CSVEncoding = "BIG5" CSVEncodingEUCJP CSVEncoding = "EUCJP" CSVEncodingEUCKR CSVEncoding = "EUCKR" CSVEncodingGB18030 CSVEncoding = "GB18030" CSVEncodingIBM420 CSVEncoding = "IBM420" CSVEncodingIBM424 CSVEncoding = "IBM424" CSVEncodingISO2022CN CSVEncoding = "ISO2022CN" CSVEncodingISO2022JP CSVEncoding = "ISO2022JP" CSVEncodingISO2022KR CSVEncoding = "ISO2022KR" CSVEncodingISO88591 CSVEncoding = "ISO88591" CSVEncodingISO88592 CSVEncoding = "ISO88592" CSVEncodingISO88595 CSVEncoding = "ISO88595" CSVEncodingISO88596 CSVEncoding = "ISO88596" CSVEncodingISO88597 CSVEncoding = "ISO88597" CSVEncodingISO88598 CSVEncoding = "ISO88598" CSVEncodingISO88599 CSVEncoding = "ISO88599" CSVEncodingISO885915 CSVEncoding = "ISO885915" CSVEncodingKOI8R CSVEncoding = "KOI8R" CSVEncodingSHIFTJIS CSVEncoding = "SHIFTJIS" CSVEncodingUTF8 CSVEncoding = "UTF8" CSVEncodingUTF16 CSVEncoding = "UTF16" CSVEncodingUTF16BE CSVEncoding = "UTF16BE" CSVEncodingUTF16LE CSVEncoding = "UTF16LE" CSVEncodingUTF32 CSVEncoding = "UTF32" CSVEncodingUTF32BE CSVEncoding = "UTF32BE" CSVEncodingUTF32LE CSVEncoding = "UTF32LE" CSVEncodingWINDOWS1250 CSVEncoding = "WINDOWS1250" CSVEncodingWINDOWS1251 CSVEncoding = "WINDOWS1251" CSVEncodingWINDOWS1252 CSVEncoding = "WINDOWS1252" CSVEncodingWINDOWS1253 CSVEncoding = "WINDOWS1253" CSVEncodingWINDOWS1254 CSVEncoding = "WINDOWS1254" CSVEncodingWINDOWS1255 CSVEncoding = "WINDOWS1255" CSVEncodingWINDOWS1256 CSVEncoding = "WINDOWS1256" )
type Client ¶
type Client struct { // System-Defined Functions ContextFunctions ContextFunctions ConversionFunctions ConversionFunctions SystemFunctions SystemFunctions ReplicationFunctions ReplicationFunctions // DDL Commands Accounts Accounts Alerts Alerts ApplicationRoles ApplicationRoles Comments Comments DatabaseRoles DatabaseRoles Databases Databases DynamicTables DynamicTables ExternalTables ExternalTables EventTables EventTables FailoverGroups FailoverGroups FileFormats FileFormats Grants Grants MaskingPolicies MaskingPolicies NetworkPolicies NetworkPolicies Parameters Parameters PasswordPolicies PasswordPolicies Pipes Pipes Procedures Procedures ResourceMonitors ResourceMonitors Roles Roles Schemas Schemas SessionPolicies SessionPolicies Sessions Sessions Stages Stages Streams Streams Tables Tables Tags Tags Tasks Tasks Users Users Views Views Warehouses Warehouses // contains filtered or unexported fields }
func NewClientFromDB ¶
func NewDefaultClient ¶
func NewDryRunClient ¶ added in v0.76.0
func NewDryRunClient() *Client
func (*Client) ExecForTests ¶ added in v0.74.0
ExecForTests is an exact copy of exec (that is unexported), that some integration tests/helpers were using TODO: remove after we have all usages covered by SDK (for now it means implementing stages, tables, and tags)
func (*Client) ExecUnsafe ¶ added in v0.77.0
func (*Client) GetAccountLocator ¶ added in v0.74.0
func (*Client) GetConfig ¶ added in v0.74.0
func (c *Client) GetConfig() *gosnowflake.Config
func (*Client) QueryForTests ¶ added in v0.78.0
QueryForTests is an exact copy of query (that is unexported), that some integration tests/helpers were using TODO: remove after introducing all resources using this
func (*Client) QueryOneForTests ¶ added in v0.76.0
QueryOneForTests is an exact copy of queryOne (that is unexported), that some integration tests/helpers were using TODO: remove after introducing all resources using this
func (*Client) QueryUnsafe ¶ added in v0.77.0
QueryUnsafe for now only supports single query. For more queries we will have to adjust the behavior. From the gosnowflake driver docs:
(...) while using the multi-statement feature, pass a Context that specifies the number of statements in the string. When multiple queries are executed by a single call to QueryContext(), multiple result sets are returned. After you process the first result set, get the next result set (for the next SQL statement) by calling NextResultSet().
Therefore, only single resultSet is processed.
type Clone ¶ added in v0.66.0
type Clone struct { SourceObject ObjectIdentifier `ddl:"identifier" sql:"CLONE"` At *TimeTravel `ddl:"list,parentheses,no_comma" sql:"AT"` Before *TimeTravel `ddl:"list,parentheses,no_comma" sql:"BEFORE"` }
type CloneMoment ¶ added in v0.78.0
type CloneMoment string
const ( CloneMomentAt CloneMoment = "AT" CloneMomentBefore CloneMoment = "BEFORE" )
type ClonePoint ¶ added in v0.78.0
type ClonePoint struct { Moment CloneMoment `ddl:"parameter,no_equals"` At TimeTravel `ddl:"list,parentheses,no_comma"` }
type ClonePointRequest ¶ added in v0.78.0
type ClonePointRequest struct { Moment CloneMoment At TimeTravelRequest }
func NewClonePointRequest ¶ added in v0.78.0
func NewClonePointRequest() *ClonePointRequest
func (*ClonePointRequest) WithAt ¶ added in v0.78.0
func (s *ClonePointRequest) WithAt(at TimeTravelRequest) *ClonePointRequest
func (*ClonePointRequest) WithMoment ¶ added in v0.78.0
func (s *ClonePointRequest) WithMoment(moment CloneMoment) *ClonePointRequest
type CloneStreamOptions ¶ added in v0.74.0
type CloneStreamOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` // contains filtered or unexported fields }
CloneStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stream#variant-syntax.
type CloneStreamRequest ¶ added in v0.74.0
type CloneStreamRequest struct { OrReplace *bool CopyGrants *bool // contains filtered or unexported fields }
func NewCloneStreamRequest ¶ added in v0.74.0
func NewCloneStreamRequest( name SchemaObjectIdentifier, sourceStream SchemaObjectIdentifier, ) *CloneStreamRequest
func (*CloneStreamRequest) WithCopyGrants ¶ added in v0.74.0
func (s *CloneStreamRequest) WithCopyGrants(CopyGrants *bool) *CloneStreamRequest
func (*CloneStreamRequest) WithOrReplace ¶ added in v0.74.0
func (s *CloneStreamRequest) WithOrReplace(OrReplace *bool) *CloneStreamRequest
type CloneTaskOptions ¶ added in v0.73.0
type CloneTaskOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` // contains filtered or unexported fields }
CloneTaskOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-task#variant-syntax.
type CloneTaskRequest ¶ added in v0.73.0
type CloneTaskRequest struct { OrReplace *bool CopyGrants *bool // contains filtered or unexported fields }
func NewCloneTaskRequest ¶ added in v0.73.0
func NewCloneTaskRequest( name SchemaObjectIdentifier, sourceTask SchemaObjectIdentifier, ) *CloneTaskRequest
func (*CloneTaskRequest) GetName ¶ added in v0.74.0
func (r *CloneTaskRequest) GetName() SchemaObjectIdentifier
func (*CloneTaskRequest) WithCopyGrants ¶ added in v0.73.0
func (s *CloneTaskRequest) WithCopyGrants(CopyGrants *bool) *CloneTaskRequest
func (*CloneTaskRequest) WithOrReplace ¶ added in v0.73.0
func (s *CloneTaskRequest) WithOrReplace(OrReplace *bool) *CloneTaskRequest
type CloudProviderParams ¶ added in v0.72.0
type CloudProviderParamsRequest ¶ added in v0.72.0
type CloudProviderParamsRequest struct {
// contains filtered or unexported fields
}
func NewCloudProviderParamsRequest ¶ added in v0.72.0
func NewCloudProviderParamsRequest() *CloudProviderParamsRequest
func (*CloudProviderParamsRequest) WithGoogleCloudStorageIntegration ¶ added in v0.72.0
func (s *CloudProviderParamsRequest) WithGoogleCloudStorageIntegration(googleCloudStorageIntegration *string) *CloudProviderParamsRequest
func (*CloudProviderParamsRequest) WithMicrosoftAzureIntegration ¶ added in v0.72.0
func (s *CloudProviderParamsRequest) WithMicrosoftAzureIntegration(microsoftAzureIntegration *string) *CloudProviderParamsRequest
type ColumnAddForeignKey ¶ added in v0.78.0
type ColumnAddForeignKeyRequest ¶ added in v0.78.0
func NewColumnAddForeignKeyRequest ¶ added in v0.78.0
func NewColumnAddForeignKeyRequest() *ColumnAddForeignKeyRequest
func (*ColumnAddForeignKeyRequest) WithColumnName ¶ added in v0.78.0
func (s *ColumnAddForeignKeyRequest) WithColumnName(columnName string) *ColumnAddForeignKeyRequest
func (*ColumnAddForeignKeyRequest) WithTableName ¶ added in v0.78.0
func (s *ColumnAddForeignKeyRequest) WithTableName(tableName string) *ColumnAddForeignKeyRequest
type ColumnConstraintType ¶ added in v0.72.0
type ColumnConstraintType string
const ( ColumnConstraintTypeUnique ColumnConstraintType = "UNIQUE" ColumnConstraintTypePrimaryKey ColumnConstraintType = "PRIMARY KEY" ColumnConstraintTypeForeignKey ColumnConstraintType = "FOREIGN KEY" )
type ColumnDefaultValue ¶ added in v0.78.0
type ColumnDefaultValue struct { // One of Expression *string `ddl:"parameter,no_equals" sql:"DEFAULT"` Identity *ColumnIdentity `ddl:"keyword" sql:"IDENTITY"` }
type ColumnDefaultValueRequest ¶ added in v0.78.0
type ColumnDefaultValueRequest struct {
// contains filtered or unexported fields
}
func NewColumnDefaultValueRequest ¶ added in v0.78.0
func NewColumnDefaultValueRequest() *ColumnDefaultValueRequest
func (*ColumnDefaultValueRequest) WithExpression ¶ added in v0.78.0
func (s *ColumnDefaultValueRequest) WithExpression(expression *string) *ColumnDefaultValueRequest
func (*ColumnDefaultValueRequest) WithIdentity ¶ added in v0.78.0
func (s *ColumnDefaultValueRequest) WithIdentity(identity *ColumnIdentityRequest) *ColumnDefaultValueRequest
type ColumnIdentity ¶ added in v0.78.0
type ColumnIdentityRequest ¶ added in v0.78.0
type ColumnIdentityRequest struct { Start int // required Increment int // required Order *bool Noorder *bool }
func NewColumnIdentityRequest ¶ added in v0.78.0
func NewColumnIdentityRequest( start int, increment int, ) *ColumnIdentityRequest
func (*ColumnIdentityRequest) WithNoorder ¶ added in v0.78.0
func (s *ColumnIdentityRequest) WithNoorder() *ColumnIdentityRequest
func (*ColumnIdentityRequest) WithOrder ¶ added in v0.78.0
func (s *ColumnIdentityRequest) WithOrder() *ColumnIdentityRequest
type ColumnInlineConstraint ¶ added in v0.72.0
type ColumnInlineConstraint struct { Name *string `ddl:"parameter,no_equals" sql:"CONSTRAINT"` Type ColumnConstraintType `ddl:"keyword"` ForeignKey *InlineForeignKey `ddl:"keyword" sql:"FOREIGN KEY"` // optional Enforced *bool `ddl:"keyword" sql:"ENFORCED"` NotEnforced *bool `ddl:"keyword" sql:"NOT ENFORCED"` Deferrable *bool `ddl:"keyword" sql:"DEFERRABLE"` NotDeferrable *bool `ddl:"keyword" sql:"NOT DEFERRABLE"` InitiallyDeferred *bool `ddl:"keyword" sql:"INITIALLY DEFERRED"` InitiallyImmediate *bool `ddl:"keyword" sql:"INITIALLY IMMEDIATE"` Enable *bool `ddl:"keyword" sql:"ENABLE"` Disable *bool `ddl:"keyword" sql:"DISABLE"` Validate *bool `ddl:"keyword" sql:"VALIDATE"` NoValidate *bool `ddl:"keyword" sql:"NOVALIDATE"` Rely *bool `ddl:"keyword" sql:"RELY"` NoRely *bool `ddl:"keyword" sql:"NORELY"` }
ColumnInlineConstraint is based on https://docs.snowflake.com/en/sql-reference/sql/create-table-constraint#inline-unique-primary-foreign-key.
type ColumnInlineConstraintRequest ¶ added in v0.72.0
type ColumnInlineConstraintRequest struct { Name string // required // contains filtered or unexported fields }
func NewColumnInlineConstraintRequest ¶ added in v0.72.0
func NewColumnInlineConstraintRequest( name string, type_ ColumnConstraintType, ) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithDeferrable ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithDeferrable(deferrable *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithDisable ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithDisable(disable *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithEnable ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithEnable(enable *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithEnforced ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithEnforced(enforced *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithForeignKey ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithForeignKey(foreignKey *InlineForeignKeyRequest) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithInitiallyDeferred ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithInitiallyDeferred(initiallyDeferred *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithInitiallyImmediate ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithInitiallyImmediate(initiallyImmediate *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithNoRely ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithNoRely(noRely *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithNoValidate ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithNoValidate(noValidate *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithNotDeferrable ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithNotDeferrable(notDeferrable *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithNotEnforced ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithNotEnforced(notEnforced *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithRely ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithRely(rely *bool) *ColumnInlineConstraintRequest
func (*ColumnInlineConstraintRequest) WithValidate ¶ added in v0.72.0
func (s *ColumnInlineConstraintRequest) WithValidate(validate *bool) *ColumnInlineConstraintRequest
type ColumnMaskingPolicy ¶ added in v0.78.0
type ColumnMaskingPolicy struct { With *bool `ddl:"keyword" sql:"WITH"` Name SchemaObjectIdentifier `ddl:"identifier"` Using []string `ddl:"keyword,parentheses" sql:"USING"` // contains filtered or unexported fields }
type ColumnMaskingPolicyRequest ¶ added in v0.78.0
type ColumnMaskingPolicyRequest struct {
// contains filtered or unexported fields
}
func NewColumnMaskingPolicyRequest ¶ added in v0.78.0
func NewColumnMaskingPolicyRequest( name SchemaObjectIdentifier, ) *ColumnMaskingPolicyRequest
func (*ColumnMaskingPolicyRequest) WithUsing ¶ added in v0.78.0
func (s *ColumnMaskingPolicyRequest) WithUsing(using []string) *ColumnMaskingPolicyRequest
func (*ColumnMaskingPolicyRequest) WithWith ¶ added in v0.78.0
func (s *ColumnMaskingPolicyRequest) WithWith(with *bool) *ColumnMaskingPolicyRequest
type Comments ¶ added in v0.65.0
type Comments interface { Set(ctx context.Context, opts *SetCommentOptions) error SetColumn(ctx context.Context, opts *SetColumnCommentOptions) error }
type ContextFunctions ¶
type ContextFunctions interface { // Session functions. CurrentAccount(ctx context.Context) (string, error) CurrentRole(ctx context.Context) (string, error) CurrentSecondaryRoles(ctx context.Context) (*CurrentSecondaryRoles, error) CurrentRegion(ctx context.Context) (string, error) CurrentSession(ctx context.Context) (string, error) CurrentUser(ctx context.Context) (string, error) // Session Object functions. CurrentDatabase(ctx context.Context) (string, error) CurrentSchema(ctx context.Context) (string, error) CurrentWarehouse(ctx context.Context) (string, error) IsRoleInSession(ctx context.Context, role AccountObjectIdentifier) (bool, error) }
type ConversionFunctions ¶ added in v0.66.0
type CreateAccountOptions ¶ added in v0.66.0
type CreateAccountOptions struct { // Object properties AdminName string `ddl:"parameter,single_quotes" sql:"ADMIN_NAME"` AdminPassword *string `ddl:"parameter,single_quotes" sql:"ADMIN_PASSWORD"` AdminRSAPublicKey *string `ddl:"parameter,single_quotes" sql:"ADMIN_RSA_PUBLIC_KEY"` FirstName *string `ddl:"parameter,single_quotes" sql:"FIRST_NAME"` LastName *string `ddl:"parameter,single_quotes" sql:"LAST_NAME"` Email string `ddl:"parameter,single_quotes" sql:"EMAIL"` MustChangePassword *bool `ddl:"parameter" sql:"MUST_CHANGE_PASSWORD"` Edition AccountEdition `ddl:"parameter" sql:"EDITION"` RegionGroup *string `ddl:"parameter,single_quotes" sql:"REGION_GROUP"` Region *string `ddl:"parameter,single_quotes" sql:"REGION"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateAccountOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-account.
type CreateAlertOptions ¶ added in v0.68.0
type CreateAlertOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` // optional Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateAlertOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-alert.
type CreateDatabaseOptions ¶ added in v0.66.0
type CreateDatabaseOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Transient *bool `ddl:"keyword" sql:"TRANSIENT"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Clone *Clone `ddl:"-"` DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateDatabaseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-database.
type CreateDatabaseRoleRequest ¶ added in v0.70.0
type CreateDatabaseRoleRequest struct {
// contains filtered or unexported fields
}
func NewCreateDatabaseRoleRequest ¶ added in v0.70.0
func NewCreateDatabaseRoleRequest( name DatabaseObjectIdentifier, ) *CreateDatabaseRoleRequest
func (*CreateDatabaseRoleRequest) WithComment ¶ added in v0.70.0
func (s *CreateDatabaseRoleRequest) WithComment(comment *string) *CreateDatabaseRoleRequest
func (*CreateDatabaseRoleRequest) WithIfNotExists ¶ added in v0.70.0
func (s *CreateDatabaseRoleRequest) WithIfNotExists(ifNotExists bool) *CreateDatabaseRoleRequest
func (*CreateDatabaseRoleRequest) WithOrReplace ¶ added in v0.70.0
func (s *CreateDatabaseRoleRequest) WithOrReplace(orReplace bool) *CreateDatabaseRoleRequest
type CreateDeltaLakeExternalTableOptions ¶ added in v0.72.0
type CreateDeltaLakeExternalTableOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Columns []ExternalTableColumn `ddl:"list,parentheses"` CloudProviderParams *CloudProviderParams PartitionBy []string `ddl:"keyword,parentheses" sql:"PARTITION BY"` Location string `ddl:"parameter" sql:"LOCATION"` RefreshOnCreate *bool `ddl:"parameter" sql:"REFRESH_ON_CREATE"` AutoRefresh *bool `ddl:"parameter" sql:"AUTO_REFRESH"` UserSpecifiedPartitionType *bool `ddl:"keyword" sql:"PARTITION_TYPE = USER_SPECIFIED"` FileFormat []ExternalTableFileFormat `ddl:"parameter,parentheses" sql:"FILE_FORMAT"` DeltaTableFormat *bool `ddl:"keyword" sql:"TABLE_FORMAT = DELTA"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` RowAccessPolicy *TableRowAccessPolicy `ddl:"keyword"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateDeltaLakeExternalTableOptions based on https://docs.snowflake.com/en/sql-reference/sql/create-external-table
type CreateDeltaLakeExternalTableRequest ¶ added in v0.72.0
type CreateDeltaLakeExternalTableRequest struct {
// contains filtered or unexported fields
}
func NewCreateDeltaLakeExternalTableRequest ¶ added in v0.72.0
func NewCreateDeltaLakeExternalTableRequest( name SchemaObjectIdentifier, location string, fileFormat *ExternalTableFileFormatRequest, ) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithAutoRefresh ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithAutoRefresh(autoRefresh *bool) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithCloudProviderParams ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithColumns ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithColumns(columns []*ExternalTableColumnRequest) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithComment ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithComment(comment *string) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithCopyGrants ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithCopyGrants(copyGrants *bool) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithDeltaTableFormat ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithDeltaTableFormat(deltaTableFormat *bool) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithIfNotExists ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithIfNotExists(ifNotExists *bool) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithOrReplace(orReplace *bool) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithPartitionBy ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithPartitionBy(partitionBy []string) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithRefreshOnCreate ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithRefreshOnCreate(refreshOnCreate *bool) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithRowAccessPolicy ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithTag ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithTag(tag []*TagAssociationRequest) *CreateDeltaLakeExternalTableRequest
func (*CreateDeltaLakeExternalTableRequest) WithUserSpecifiedPartitionType ¶ added in v0.72.0
func (s *CreateDeltaLakeExternalTableRequest) WithUserSpecifiedPartitionType(userSpecifiedPartitionType *bool) *CreateDeltaLakeExternalTableRequest
type CreateDynamicTableRequest ¶ added in v0.72.0
type CreateDynamicTableRequest struct {
// contains filtered or unexported fields
}
func NewCreateDynamicTableRequest ¶ added in v0.72.0
func NewCreateDynamicTableRequest( name SchemaObjectIdentifier, warehouse AccountObjectIdentifier, targetLag TargetLag, query string, ) *CreateDynamicTableRequest
func (*CreateDynamicTableRequest) WithComment ¶ added in v0.72.0
func (s *CreateDynamicTableRequest) WithComment(comment *string) *CreateDynamicTableRequest
func (*CreateDynamicTableRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateDynamicTableRequest) WithOrReplace(orReplace bool) *CreateDynamicTableRequest
type CreateEventTableOptions ¶ added in v0.78.0
type CreateEventTableOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` ClusterBy []string `ddl:"keyword,parentheses" sql:"CLUSTER BY"` DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` ChangeTracking *bool `ddl:"parameter" sql:"CHANGE_TRACKING"` DefaultDdlCollation *string `ddl:"parameter,single_quotes" sql:"DEFAULT_DDL_COLLATION"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` RowAccessPolicy *TableRowAccessPolicy `ddl:"keyword"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateEventTableOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-event-table.
type CreateEventTableRequest ¶ added in v0.78.0
type CreateEventTableRequest struct { OrReplace *bool IfNotExists *bool ClusterBy []string DataRetentionTimeInDays *int MaxDataExtensionTimeInDays *int ChangeTracking *bool DefaultDdlCollation *string CopyGrants *bool Comment *string RowAccessPolicy *TableRowAccessPolicy Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateEventTableRequest ¶ added in v0.78.0
func NewCreateEventTableRequest( name SchemaObjectIdentifier, ) *CreateEventTableRequest
func (*CreateEventTableRequest) WithChangeTracking ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithChangeTracking(ChangeTracking *bool) *CreateEventTableRequest
func (*CreateEventTableRequest) WithClusterBy ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithClusterBy(ClusterBy []string) *CreateEventTableRequest
func (*CreateEventTableRequest) WithComment ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithComment(Comment *string) *CreateEventTableRequest
func (*CreateEventTableRequest) WithCopyGrants ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithCopyGrants(CopyGrants *bool) *CreateEventTableRequest
func (*CreateEventTableRequest) WithDataRetentionTimeInDays ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithDataRetentionTimeInDays(DataRetentionTimeInDays *int) *CreateEventTableRequest
func (*CreateEventTableRequest) WithDefaultDdlCollation ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithDefaultDdlCollation(DefaultDdlCollation *string) *CreateEventTableRequest
func (*CreateEventTableRequest) WithIfNotExists ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithIfNotExists(IfNotExists *bool) *CreateEventTableRequest
func (*CreateEventTableRequest) WithMaxDataExtensionTimeInDays ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithMaxDataExtensionTimeInDays(MaxDataExtensionTimeInDays *int) *CreateEventTableRequest
func (*CreateEventTableRequest) WithOrReplace ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithOrReplace(OrReplace *bool) *CreateEventTableRequest
func (*CreateEventTableRequest) WithRowAccessPolicy ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithRowAccessPolicy(RowAccessPolicy *TableRowAccessPolicy) *CreateEventTableRequest
func (*CreateEventTableRequest) WithTag ¶ added in v0.78.0
func (s *CreateEventTableRequest) WithTag(Tag []TagAssociation) *CreateEventTableRequest
type CreateExternalTableOptions ¶ added in v0.72.0
type CreateExternalTableOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Columns []ExternalTableColumn `ddl:"list,parentheses"` CloudProviderParams *CloudProviderParams PartitionBy []string `ddl:"keyword,parentheses" sql:"PARTITION BY"` Location string `ddl:"parameter" sql:"LOCATION"` RefreshOnCreate *bool `ddl:"parameter" sql:"REFRESH_ON_CREATE"` AutoRefresh *bool `ddl:"parameter" sql:"AUTO_REFRESH"` Pattern *string `ddl:"parameter,single_quotes" sql:"PATTERN"` FileFormat []ExternalTableFileFormat `ddl:"parameter,parentheses" sql:"FILE_FORMAT"` AwsSnsTopic *string `ddl:"parameter,single_quotes" sql:"AWS_SNS_TOPIC"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` RowAccessPolicy *TableRowAccessPolicy `ddl:"keyword"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateExternalTableOptions based on https://docs.snowflake.com/en/sql-reference/sql/create-external-table
type CreateExternalTableRequest ¶ added in v0.72.0
type CreateExternalTableRequest struct {
// contains filtered or unexported fields
}
func NewCreateExternalTableRequest ¶ added in v0.72.0
func NewCreateExternalTableRequest( name SchemaObjectIdentifier, location string, fileFormat *ExternalTableFileFormatRequest, ) *CreateExternalTableRequest
func (*CreateExternalTableRequest) GetColumns ¶ added in v0.74.0
func (s *CreateExternalTableRequest) GetColumns() []*ExternalTableColumnRequest
func (*CreateExternalTableRequest) WithAutoRefresh ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithAutoRefresh(autoRefresh *bool) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithAwsSnsTopic ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithAwsSnsTopic(awsSnsTopic *string) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithCloudProviderParams ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithColumns ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithColumns(columns []*ExternalTableColumnRequest) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithComment ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithComment(comment *string) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithCopyGrants ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithCopyGrants(copyGrants *bool) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithIfNotExists ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithIfNotExists(ifNotExists *bool) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithOrReplace(orReplace *bool) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithPartitionBy ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithPartitionBy(partitionBy []string) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithPattern ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithPattern(pattern *string) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithRefreshOnCreate ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithRefreshOnCreate(refreshOnCreate *bool) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithRowAccessPolicy ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateExternalTableRequest
func (*CreateExternalTableRequest) WithTag ¶ added in v0.72.0
func (s *CreateExternalTableRequest) WithTag(tag []*TagAssociationRequest) *CreateExternalTableRequest
type CreateExternalTableUsingTemplateOptions ¶ added in v0.72.0
type CreateExternalTableUsingTemplateOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Query []string `ddl:"parameter,no_equals,parentheses" sql:"USING TEMPLATE"` CloudProviderParams *CloudProviderParams PartitionBy []string `ddl:"keyword,parentheses" sql:"PARTITION BY"` Location string `ddl:"parameter" sql:"LOCATION"` RefreshOnCreate *bool `ddl:"parameter" sql:"REFRESH_ON_CREATE"` AutoRefresh *bool `ddl:"parameter" sql:"AUTO_REFRESH"` Pattern *string `ddl:"parameter,single_quotes" sql:"PATTERN"` FileFormat []ExternalTableFileFormat `ddl:"parameter,parentheses" sql:"FILE_FORMAT"` AwsSnsTopic *string `ddl:"parameter,single_quotes" sql:"AWS_SNS_TOPIC"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` RowAccessPolicy *TableRowAccessPolicy `ddl:"keyword"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateExternalTableUsingTemplateOptions based on https://docs.snowflake.com/en/sql-reference/sql/create-external-table#variant-syntax
type CreateExternalTableUsingTemplateRequest ¶ added in v0.72.0
type CreateExternalTableUsingTemplateRequest struct {
// contains filtered or unexported fields
}
func NewCreateExternalTableUsingTemplateRequest ¶ added in v0.72.0
func NewCreateExternalTableUsingTemplateRequest( name SchemaObjectIdentifier, location string, fileFormat *ExternalTableFileFormatRequest, ) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithAutoRefresh ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithAutoRefresh(autoRefresh *bool) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithAwsSnsTopic ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithAwsSnsTopic(awsSnsTopic *string) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithCloudProviderParams ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithComment ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithComment(comment *string) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithCopyGrants ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithCopyGrants(copyGrants *bool) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithOrReplace(orReplace *bool) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithPartitionBy ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithPartitionBy(partitionBy []string) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithPattern ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithPattern(pattern *string) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithQuery ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithQuery(query string) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithRefreshOnCreate ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithRefreshOnCreate(refreshOnCreate *bool) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithRowAccessPolicy ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateExternalTableUsingTemplateRequest
func (*CreateExternalTableUsingTemplateRequest) WithTag ¶ added in v0.72.0
func (s *CreateExternalTableUsingTemplateRequest) WithTag(tag []*TagAssociationRequest) *CreateExternalTableUsingTemplateRequest
type CreateFailoverGroupOptions ¶ added in v0.66.0
type CreateFailoverGroupOptions struct { IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` AllowedDatabases []AccountObjectIdentifier `ddl:"parameter" sql:"ALLOWED_DATABASES"` AllowedIntegrationTypes []IntegrationType `ddl:"parameter" sql:"ALLOWED_INTEGRATION_TYPES"` IgnoreEditionCheck *bool `ddl:"keyword" sql:"IGNORE EDITION CHECK"` ReplicationSchedule *string `ddl:"parameter,single_quotes" sql:"REPLICATION_SCHEDULE"` // contains filtered or unexported fields }
CreateFailoverGroupOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-failover-group.
type CreateFileFormatOptions ¶ added in v0.68.0
type CreateFileFormatOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Temporary *bool `ddl:"keyword" sql:"TEMPORARY"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Type FileFormatType `ddl:"parameter" sql:"TYPE"` FileFormatTypeOptions Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateFileFormatOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-file-format.
type CreateForJavaProcedureOptions ¶ added in v0.79.0
type CreateForJavaProcedureOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Secure *bool `ddl:"keyword" sql:"SECURE"` Arguments []ProcedureArgument `ddl:"list,must_parentheses"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Returns ProcedureReturns `ddl:"keyword" sql:"RETURNS"` RuntimeVersion string `ddl:"parameter,single_quotes" sql:"RUNTIME_VERSION"` Packages []ProcedurePackage `ddl:"parameter,parentheses" sql:"PACKAGES"` Imports []ProcedureImport `ddl:"parameter,parentheses" sql:"IMPORTS"` Handler string `ddl:"parameter,single_quotes" sql:"HANDLER"` ExternalAccessIntegrations []AccountObjectIdentifier `ddl:"parameter,parentheses" sql:"EXTERNAL_ACCESS_INTEGRATIONS"` Secrets []Secret `ddl:"parameter,parentheses" sql:"SECRETS"` TargetPath *string `ddl:"parameter,single_quotes" sql:"TARGET_PATH"` NullInputBehavior *NullInputBehavior `ddl:"keyword"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` ExecuteAs *ExecuteAs `ddl:"keyword"` ProcedureDefinition *string `ddl:"parameter,single_quotes,no_equals" sql:"AS"` // contains filtered or unexported fields }
CreateForJavaProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-procedure#java-handler.
type CreateForJavaProcedureRequest ¶ added in v0.79.0
type CreateForJavaProcedureRequest struct { OrReplace *bool Secure *bool Arguments []ProcedureArgumentRequest CopyGrants *bool Returns ProcedureReturnsRequest // required RuntimeVersion string // required Packages []ProcedurePackageRequest // required Imports []ProcedureImportRequest Handler string // required ExternalAccessIntegrations []AccountObjectIdentifier Secrets []Secret TargetPath *string NullInputBehavior *NullInputBehavior Comment *string ExecuteAs *ExecuteAs ProcedureDefinition *string // contains filtered or unexported fields }
func NewCreateForJavaProcedureRequest ¶ added in v0.79.0
func NewCreateForJavaProcedureRequest( name SchemaObjectIdentifier, Returns ProcedureReturnsRequest, RuntimeVersion string, Packages []ProcedurePackageRequest, Handler string, ) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithArguments ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithComment ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithComment(Comment *string) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithCopyGrants ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithExecuteAs ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithExternalAccessIntegrations ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithExternalAccessIntegrations(ExternalAccessIntegrations []AccountObjectIdentifier) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithImports ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithImports(Imports []ProcedureImportRequest) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithNullInputBehavior ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithOrReplace ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithProcedureDefinition ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithProcedureDefinition(ProcedureDefinition *string) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithSecrets ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithSecrets(Secrets []Secret) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithSecure ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithSecure(Secure *bool) *CreateForJavaProcedureRequest
func (*CreateForJavaProcedureRequest) WithTargetPath ¶ added in v0.79.0
func (s *CreateForJavaProcedureRequest) WithTargetPath(TargetPath *string) *CreateForJavaProcedureRequest
type CreateForJavaScriptProcedureOptions ¶ added in v0.79.0
type CreateForJavaScriptProcedureOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Secure *bool `ddl:"keyword" sql:"SECURE"` Arguments []ProcedureArgument `ddl:"list,must_parentheses"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` ResultDataType DataType `ddl:"parameter,no_equals" sql:"RETURNS"` NotNull *bool `ddl:"keyword" sql:"NOT NULL"` NullInputBehavior *NullInputBehavior `ddl:"keyword"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` ExecuteAs *ExecuteAs `ddl:"keyword"` ProcedureDefinition string `ddl:"parameter,single_quotes,no_equals" sql:"AS"` // contains filtered or unexported fields }
CreateForJavaScriptProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-procedure#javascript-handler.
type CreateForJavaScriptProcedureRequest ¶ added in v0.79.0
type CreateForJavaScriptProcedureRequest struct { OrReplace *bool Secure *bool Arguments []ProcedureArgumentRequest CopyGrants *bool ResultDataType DataType // required NotNull *bool NullInputBehavior *NullInputBehavior Comment *string ExecuteAs *ExecuteAs ProcedureDefinition string // required // contains filtered or unexported fields }
func NewCreateForJavaScriptProcedureRequest ¶ added in v0.79.0
func NewCreateForJavaScriptProcedureRequest( name SchemaObjectIdentifier, ResultDataType DataType, ProcedureDefinition string, ) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithArguments ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithComment ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithComment(Comment *string) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithCopyGrants ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithExecuteAs ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithNotNull ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithNotNull(NotNull *bool) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithNullInputBehavior ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithOrReplace ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForJavaScriptProcedureRequest
func (*CreateForJavaScriptProcedureRequest) WithSecure ¶ added in v0.79.0
func (s *CreateForJavaScriptProcedureRequest) WithSecure(Secure *bool) *CreateForJavaScriptProcedureRequest
type CreateForPythonProcedureOptions ¶ added in v0.79.0
type CreateForPythonProcedureOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Secure *bool `ddl:"keyword" sql:"SECURE"` Arguments []ProcedureArgument `ddl:"list,must_parentheses"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Returns ProcedureReturns `ddl:"keyword" sql:"RETURNS"` RuntimeVersion string `ddl:"parameter,single_quotes" sql:"RUNTIME_VERSION"` Packages []ProcedurePackage `ddl:"parameter,parentheses" sql:"PACKAGES"` Imports []ProcedureImport `ddl:"parameter,parentheses" sql:"IMPORTS"` Handler string `ddl:"parameter,single_quotes" sql:"HANDLER"` ExternalAccessIntegrations []AccountObjectIdentifier `ddl:"parameter,parentheses" sql:"EXTERNAL_ACCESS_INTEGRATIONS"` Secrets []Secret `ddl:"parameter,parentheses" sql:"SECRETS"` NullInputBehavior *NullInputBehavior `ddl:"keyword"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` ExecuteAs *ExecuteAs `ddl:"keyword"` ProcedureDefinition *string `ddl:"parameter,single_quotes,no_equals" sql:"AS"` // contains filtered or unexported fields }
CreateForPythonProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-procedure#python-handler.
type CreateForPythonProcedureRequest ¶ added in v0.79.0
type CreateForPythonProcedureRequest struct { OrReplace *bool Secure *bool Arguments []ProcedureArgumentRequest CopyGrants *bool Returns ProcedureReturnsRequest // required RuntimeVersion string // required Packages []ProcedurePackageRequest // required Imports []ProcedureImportRequest Handler string // required ExternalAccessIntegrations []AccountObjectIdentifier Secrets []Secret NullInputBehavior *NullInputBehavior Comment *string ExecuteAs *ExecuteAs ProcedureDefinition *string // contains filtered or unexported fields }
func NewCreateForPythonProcedureRequest ¶ added in v0.79.0
func NewCreateForPythonProcedureRequest( name SchemaObjectIdentifier, Returns ProcedureReturnsRequest, RuntimeVersion string, Packages []ProcedurePackageRequest, Handler string, ) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithArguments ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithComment ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithComment(Comment *string) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithCopyGrants ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithExecuteAs ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithExternalAccessIntegrations ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithExternalAccessIntegrations(ExternalAccessIntegrations []AccountObjectIdentifier) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithImports ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithImports(Imports []ProcedureImportRequest) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithNullInputBehavior ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithOrReplace ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithProcedureDefinition ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithProcedureDefinition(ProcedureDefinition *string) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithSecrets ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithSecrets(Secrets []Secret) *CreateForPythonProcedureRequest
func (*CreateForPythonProcedureRequest) WithSecure ¶ added in v0.79.0
func (s *CreateForPythonProcedureRequest) WithSecure(Secure *bool) *CreateForPythonProcedureRequest
type CreateForSQLProcedureOptions ¶ added in v0.79.0
type CreateForSQLProcedureOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Secure *bool `ddl:"keyword" sql:"SECURE"` Arguments []ProcedureArgument `ddl:"list,must_parentheses"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Returns ProcedureSQLReturns `ddl:"keyword" sql:"RETURNS"` NullInputBehavior *NullInputBehavior `ddl:"keyword"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` ExecuteAs *ExecuteAs `ddl:"keyword"` ProcedureDefinition string `ddl:"parameter,single_quotes,no_equals" sql:"AS"` // contains filtered or unexported fields }
CreateForSQLProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-procedure#snowflake-scripting-handler.
type CreateForSQLProcedureRequest ¶ added in v0.79.0
type CreateForSQLProcedureRequest struct { OrReplace *bool Secure *bool Arguments []ProcedureArgumentRequest CopyGrants *bool Returns ProcedureSQLReturnsRequest // required NullInputBehavior *NullInputBehavior Comment *string ExecuteAs *ExecuteAs ProcedureDefinition string // required // contains filtered or unexported fields }
func NewCreateForSQLProcedureRequest ¶ added in v0.79.0
func NewCreateForSQLProcedureRequest( name SchemaObjectIdentifier, Returns ProcedureSQLReturnsRequest, ProcedureDefinition string, ) *CreateForSQLProcedureRequest
func (*CreateForSQLProcedureRequest) WithArguments ¶ added in v0.79.0
func (s *CreateForSQLProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForSQLProcedureRequest
func (*CreateForSQLProcedureRequest) WithComment ¶ added in v0.79.0
func (s *CreateForSQLProcedureRequest) WithComment(Comment *string) *CreateForSQLProcedureRequest
func (*CreateForSQLProcedureRequest) WithCopyGrants ¶ added in v0.79.0
func (s *CreateForSQLProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForSQLProcedureRequest
func (*CreateForSQLProcedureRequest) WithExecuteAs ¶ added in v0.79.0
func (s *CreateForSQLProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForSQLProcedureRequest
func (*CreateForSQLProcedureRequest) WithNullInputBehavior ¶ added in v0.79.0
func (s *CreateForSQLProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForSQLProcedureRequest
func (*CreateForSQLProcedureRequest) WithOrReplace ¶ added in v0.79.0
func (s *CreateForSQLProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForSQLProcedureRequest
func (*CreateForSQLProcedureRequest) WithSecure ¶ added in v0.79.0
func (s *CreateForSQLProcedureRequest) WithSecure(Secure *bool) *CreateForSQLProcedureRequest
type CreateForScalaProcedureOptions ¶ added in v0.79.0
type CreateForScalaProcedureOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Secure *bool `ddl:"keyword" sql:"SECURE"` Arguments []ProcedureArgument `ddl:"list,must_parentheses"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Returns ProcedureReturns `ddl:"keyword" sql:"RETURNS"` RuntimeVersion string `ddl:"parameter,single_quotes" sql:"RUNTIME_VERSION"` Packages []ProcedurePackage `ddl:"parameter,parentheses" sql:"PACKAGES"` Imports []ProcedureImport `ddl:"parameter,parentheses" sql:"IMPORTS"` Handler string `ddl:"parameter,single_quotes" sql:"HANDLER"` TargetPath *string `ddl:"parameter,single_quotes" sql:"TARGET_PATH"` NullInputBehavior *NullInputBehavior `ddl:"keyword"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` ExecuteAs *ExecuteAs `ddl:"keyword"` ProcedureDefinition *string `ddl:"parameter,single_quotes,no_equals" sql:"AS"` // contains filtered or unexported fields }
CreateForScalaProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-procedure#scala-handler.
type CreateForScalaProcedureRequest ¶ added in v0.79.0
type CreateForScalaProcedureRequest struct { OrReplace *bool Secure *bool Arguments []ProcedureArgumentRequest CopyGrants *bool Returns ProcedureReturnsRequest // required RuntimeVersion string // required Packages []ProcedurePackageRequest // required Imports []ProcedureImportRequest Handler string // required TargetPath *string NullInputBehavior *NullInputBehavior Comment *string ExecuteAs *ExecuteAs ProcedureDefinition *string // contains filtered or unexported fields }
func NewCreateForScalaProcedureRequest ¶ added in v0.79.0
func NewCreateForScalaProcedureRequest( name SchemaObjectIdentifier, Returns ProcedureReturnsRequest, RuntimeVersion string, Packages []ProcedurePackageRequest, Handler string, ) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithArguments ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithArguments(Arguments []ProcedureArgumentRequest) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithComment ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithComment(Comment *string) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithCopyGrants ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithCopyGrants(CopyGrants *bool) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithExecuteAs ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithExecuteAs(ExecuteAs *ExecuteAs) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithImports ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithImports(Imports []ProcedureImportRequest) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithNullInputBehavior ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithNullInputBehavior(NullInputBehavior *NullInputBehavior) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithOrReplace ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithOrReplace(OrReplace *bool) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithProcedureDefinition ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithProcedureDefinition(ProcedureDefinition *string) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithSecure ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithSecure(Secure *bool) *CreateForScalaProcedureRequest
func (*CreateForScalaProcedureRequest) WithTargetPath ¶ added in v0.79.0
func (s *CreateForScalaProcedureRequest) WithTargetPath(TargetPath *string) *CreateForScalaProcedureRequest
type CreateInternalStageOptions ¶ added in v0.76.0
type CreateInternalStageOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Temporary *bool `ddl:"keyword" sql:"TEMPORARY"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Encryption *InternalStageEncryption `ddl:"list,parentheses,no_comma" sql:"ENCRYPTION ="` DirectoryTableOptions *InternalDirectoryTableOptions `ddl:"list,parentheses,no_comma" sql:"DIRECTORY ="` FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateInternalStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stage.
type CreateInternalStageRequest ¶ added in v0.76.0
type CreateInternalStageRequest struct { OrReplace *bool Temporary *bool IfNotExists *bool Encryption *InternalStageEncryptionRequest DirectoryTableOptions *InternalDirectoryTableOptionsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateInternalStageRequest ¶ added in v0.76.0
func NewCreateInternalStageRequest( name SchemaObjectIdentifier, ) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithComment ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithComment(Comment *string) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithDirectoryTableOptions ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *InternalDirectoryTableOptionsRequest) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithEncryption ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithEncryption(Encryption *InternalStageEncryptionRequest) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithIfNotExists ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithIfNotExists(IfNotExists *bool) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithOrReplace ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithOrReplace(OrReplace *bool) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithTag ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithTag(Tag []TagAssociation) *CreateInternalStageRequest
func (*CreateInternalStageRequest) WithTemporary ¶ added in v0.76.0
func (s *CreateInternalStageRequest) WithTemporary(Temporary *bool) *CreateInternalStageRequest
type CreateMaskingPolicyOptions ¶ added in v0.66.0
type CreateMaskingPolicyOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` // optional Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` ExemptOtherPolicies *bool `ddl:"parameter" sql:"EXEMPT_OTHER_POLICIES"` // contains filtered or unexported fields }
CreateMaskingPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-masking-policy.
type CreateNetworkPolicyOptions ¶ added in v0.72.0
type CreateNetworkPolicyOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` AllowedIpList []IP `ddl:"parameter,parentheses" sql:"ALLOWED_IP_LIST"` BlockedIpList []IP `ddl:"parameter,parentheses" sql:"BLOCKED_IP_LIST"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateNetworkPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-network-policy.
type CreateNetworkPolicyRequest ¶ added in v0.72.0
type CreateNetworkPolicyRequest struct { OrReplace *bool AllowedIpList []IPRequest BlockedIpList []IPRequest Comment *string // contains filtered or unexported fields }
func NewCreateNetworkPolicyRequest ¶ added in v0.72.0
func NewCreateNetworkPolicyRequest( name AccountObjectIdentifier, ) *CreateNetworkPolicyRequest
func (*CreateNetworkPolicyRequest) GetName ¶ added in v0.74.0
func (r *CreateNetworkPolicyRequest) GetName() AccountObjectIdentifier
func (*CreateNetworkPolicyRequest) WithAllowedIpList ¶ added in v0.72.0
func (s *CreateNetworkPolicyRequest) WithAllowedIpList(AllowedIpList []IPRequest) *CreateNetworkPolicyRequest
func (*CreateNetworkPolicyRequest) WithBlockedIpList ¶ added in v0.72.0
func (s *CreateNetworkPolicyRequest) WithBlockedIpList(BlockedIpList []IPRequest) *CreateNetworkPolicyRequest
func (*CreateNetworkPolicyRequest) WithComment ¶ added in v0.72.0
func (s *CreateNetworkPolicyRequest) WithComment(Comment *string) *CreateNetworkPolicyRequest
func (*CreateNetworkPolicyRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateNetworkPolicyRequest) WithOrReplace(OrReplace *bool) *CreateNetworkPolicyRequest
type CreateOnAzureStageOptions ¶ added in v0.76.0
type CreateOnAzureStageOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Temporary *bool `ddl:"keyword" sql:"TEMPORARY"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` ExternalStageParams *ExternalAzureStageParams DirectoryTableOptions *ExternalAzureDirectoryTableOptions `ddl:"list,parentheses,no_comma" sql:"DIRECTORY ="` FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateOnAzureStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stage.
type CreateOnAzureStageRequest ¶ added in v0.76.0
type CreateOnAzureStageRequest struct { OrReplace *bool Temporary *bool IfNotExists *bool ExternalStageParams *ExternalAzureStageParamsRequest DirectoryTableOptions *ExternalAzureDirectoryTableOptionsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateOnAzureStageRequest ¶ added in v0.76.0
func NewCreateOnAzureStageRequest( name SchemaObjectIdentifier, ) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithComment ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithComment(Comment *string) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithDirectoryTableOptions ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalAzureDirectoryTableOptionsRequest) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithExternalStageParams ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithExternalStageParams(ExternalStageParams *ExternalAzureStageParamsRequest) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithIfNotExists ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithOrReplace ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithOrReplace(OrReplace *bool) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithTag ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithTag(Tag []TagAssociation) *CreateOnAzureStageRequest
func (*CreateOnAzureStageRequest) WithTemporary ¶ added in v0.76.0
func (s *CreateOnAzureStageRequest) WithTemporary(Temporary *bool) *CreateOnAzureStageRequest
type CreateOnDirectoryTableStreamOptions ¶ added in v0.74.0
type CreateOnDirectoryTableStreamOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` StageId SchemaObjectIdentifier `ddl:"identifier"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateOnDirectoryTableStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stream.
type CreateOnDirectoryTableStreamRequest ¶ added in v0.74.0
type CreateOnDirectoryTableStreamRequest struct { OrReplace *bool IfNotExists *bool CopyGrants *bool StageId SchemaObjectIdentifier // required Comment *string // contains filtered or unexported fields }
func NewCreateStreamOnDirectoryTableRequest ¶ added in v0.74.0
func NewCreateStreamOnDirectoryTableRequest( name SchemaObjectIdentifier, StageId SchemaObjectIdentifier, ) *CreateOnDirectoryTableStreamRequest
func (*CreateOnDirectoryTableStreamRequest) WithComment ¶ added in v0.74.0
func (s *CreateOnDirectoryTableStreamRequest) WithComment(Comment *string) *CreateOnDirectoryTableStreamRequest
func (*CreateOnDirectoryTableStreamRequest) WithCopyGrants ¶ added in v0.74.0
func (s *CreateOnDirectoryTableStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnDirectoryTableStreamRequest
func (*CreateOnDirectoryTableStreamRequest) WithIfNotExists ¶ added in v0.74.0
func (s *CreateOnDirectoryTableStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnDirectoryTableStreamRequest
func (*CreateOnDirectoryTableStreamRequest) WithOrReplace ¶ added in v0.74.0
func (s *CreateOnDirectoryTableStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnDirectoryTableStreamRequest
type CreateOnExternalTableStreamOptions ¶ added in v0.74.0
type CreateOnExternalTableStreamOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` ExternalTableId SchemaObjectIdentifier `ddl:"identifier"` On *OnStream `ddl:"keyword"` InsertOnly *bool `ddl:"parameter" sql:"INSERT_ONLY"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateOnExternalTableStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stream.
type CreateOnExternalTableStreamRequest ¶ added in v0.74.0
type CreateOnExternalTableStreamRequest struct { OrReplace *bool IfNotExists *bool CopyGrants *bool ExternalTableId SchemaObjectIdentifier // required On *OnStreamRequest InsertOnly *bool Comment *string // contains filtered or unexported fields }
func NewCreateStreamOnExternalTableRequest ¶ added in v0.74.0
func NewCreateStreamOnExternalTableRequest( name SchemaObjectIdentifier, ExternalTableId SchemaObjectIdentifier, ) *CreateOnExternalTableStreamRequest
func (*CreateOnExternalTableStreamRequest) WithComment ¶ added in v0.74.0
func (s *CreateOnExternalTableStreamRequest) WithComment(Comment *string) *CreateOnExternalTableStreamRequest
func (*CreateOnExternalTableStreamRequest) WithCopyGrants ¶ added in v0.74.0
func (s *CreateOnExternalTableStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnExternalTableStreamRequest
func (*CreateOnExternalTableStreamRequest) WithIfNotExists ¶ added in v0.74.0
func (s *CreateOnExternalTableStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnExternalTableStreamRequest
func (*CreateOnExternalTableStreamRequest) WithInsertOnly ¶ added in v0.74.0
func (s *CreateOnExternalTableStreamRequest) WithInsertOnly(InsertOnly *bool) *CreateOnExternalTableStreamRequest
func (*CreateOnExternalTableStreamRequest) WithOn ¶ added in v0.74.0
func (s *CreateOnExternalTableStreamRequest) WithOn(On *OnStreamRequest) *CreateOnExternalTableStreamRequest
func (*CreateOnExternalTableStreamRequest) WithOrReplace ¶ added in v0.74.0
func (s *CreateOnExternalTableStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnExternalTableStreamRequest
type CreateOnGCSStageOptions ¶ added in v0.76.0
type CreateOnGCSStageOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Temporary *bool `ddl:"keyword" sql:"TEMPORARY"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` ExternalStageParams *ExternalGCSStageParams DirectoryTableOptions *ExternalGCSDirectoryTableOptions `ddl:"list,parentheses,no_comma" sql:"DIRECTORY ="` FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateOnGCSStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stage.
type CreateOnGCSStageRequest ¶ added in v0.76.0
type CreateOnGCSStageRequest struct { OrReplace *bool Temporary *bool IfNotExists *bool ExternalStageParams *ExternalGCSStageParamsRequest DirectoryTableOptions *ExternalGCSDirectoryTableOptionsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateOnGCSStageRequest ¶ added in v0.76.0
func NewCreateOnGCSStageRequest( name SchemaObjectIdentifier, ) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithComment ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithComment(Comment *string) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithDirectoryTableOptions ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalGCSDirectoryTableOptionsRequest) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithExternalStageParams ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithExternalStageParams(ExternalStageParams *ExternalGCSStageParamsRequest) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithIfNotExists ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithOrReplace ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithOrReplace(OrReplace *bool) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithTag ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithTag(Tag []TagAssociation) *CreateOnGCSStageRequest
func (*CreateOnGCSStageRequest) WithTemporary ¶ added in v0.76.0
func (s *CreateOnGCSStageRequest) WithTemporary(Temporary *bool) *CreateOnGCSStageRequest
type CreateOnS3CompatibleStageOptions ¶ added in v0.76.0
type CreateOnS3CompatibleStageOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Temporary *bool `ddl:"keyword" sql:"TEMPORARY"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Url string `ddl:"parameter,single_quotes" sql:"URL"` Endpoint string `ddl:"parameter,single_quotes" sql:"ENDPOINT"` Credentials *ExternalStageS3CompatibleCredentials `ddl:"list,parentheses,no_comma" sql:"CREDENTIALS ="` DirectoryTableOptions *ExternalS3DirectoryTableOptions `ddl:"list,parentheses,no_comma" sql:"DIRECTORY ="` FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateOnS3CompatibleStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stage.
type CreateOnS3CompatibleStageRequest ¶ added in v0.76.0
type CreateOnS3CompatibleStageRequest struct { OrReplace *bool Temporary *bool IfNotExists *bool Url string // required Endpoint string // required Credentials *ExternalStageS3CompatibleCredentialsRequest DirectoryTableOptions *ExternalS3DirectoryTableOptionsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateOnS3CompatibleStageRequest ¶ added in v0.76.0
func NewCreateOnS3CompatibleStageRequest( name SchemaObjectIdentifier, Url string, Endpoint string, ) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithComment ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithComment(Comment *string) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithCredentials ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithCredentials(Credentials *ExternalStageS3CompatibleCredentialsRequest) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithDirectoryTableOptions ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalS3DirectoryTableOptionsRequest) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithFileFormat ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithIfNotExists ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithOrReplace ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithOrReplace(OrReplace *bool) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithTag ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithTag(Tag []TagAssociation) *CreateOnS3CompatibleStageRequest
func (*CreateOnS3CompatibleStageRequest) WithTemporary ¶ added in v0.76.0
func (s *CreateOnS3CompatibleStageRequest) WithTemporary(Temporary *bool) *CreateOnS3CompatibleStageRequest
type CreateOnS3StageOptions ¶ added in v0.76.0
type CreateOnS3StageOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Temporary *bool `ddl:"keyword" sql:"TEMPORARY"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` ExternalStageParams *ExternalS3StageParams DirectoryTableOptions *ExternalS3DirectoryTableOptions `ddl:"list,parentheses,no_comma" sql:"DIRECTORY ="` FileFormat *StageFileFormat `ddl:"list,parentheses" sql:"FILE_FORMAT ="` CopyOptions *StageCopyOptions `ddl:"list,parentheses,no_comma" sql:"COPY_OPTIONS ="` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateOnS3StageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stage.
type CreateOnS3StageRequest ¶ added in v0.76.0
type CreateOnS3StageRequest struct { OrReplace *bool Temporary *bool IfNotExists *bool ExternalStageParams *ExternalS3StageParamsRequest DirectoryTableOptions *ExternalS3DirectoryTableOptionsRequest FileFormat *StageFileFormatRequest CopyOptions *StageCopyOptionsRequest Comment *string Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateOnS3StageRequest ¶ added in v0.76.0
func NewCreateOnS3StageRequest( name SchemaObjectIdentifier, ) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithComment ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithComment(Comment *string) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithCopyOptions ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithCopyOptions(CopyOptions *StageCopyOptionsRequest) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithDirectoryTableOptions ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithDirectoryTableOptions(DirectoryTableOptions *ExternalS3DirectoryTableOptionsRequest) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithExternalStageParams ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithExternalStageParams(ExternalStageParams *ExternalS3StageParamsRequest) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithFileFormat ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithFileFormat(FileFormat *StageFileFormatRequest) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithIfNotExists ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithIfNotExists(IfNotExists *bool) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithOrReplace ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithOrReplace(OrReplace *bool) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithTag ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithTag(Tag []TagAssociation) *CreateOnS3StageRequest
func (*CreateOnS3StageRequest) WithTemporary ¶ added in v0.76.0
func (s *CreateOnS3StageRequest) WithTemporary(Temporary *bool) *CreateOnS3StageRequest
type CreateOnTableStreamOptions ¶ added in v0.74.0
type CreateOnTableStreamOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` TableId SchemaObjectIdentifier `ddl:"identifier"` On *OnStream `ddl:"keyword"` AppendOnly *bool `ddl:"parameter" sql:"APPEND_ONLY"` ShowInitialRows *bool `ddl:"parameter" sql:"SHOW_INITIAL_ROWS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateOnTableStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stream.
type CreateOnTableStreamRequest ¶ added in v0.74.0
type CreateOnTableStreamRequest struct { OrReplace *bool IfNotExists *bool CopyGrants *bool TableId SchemaObjectIdentifier // required On *OnStreamRequest AppendOnly *bool ShowInitialRows *bool Comment *string // contains filtered or unexported fields }
func NewCreateStreamOnTableRequest ¶ added in v0.74.0
func NewCreateStreamOnTableRequest( name SchemaObjectIdentifier, TableId SchemaObjectIdentifier, ) *CreateOnTableStreamRequest
func (*CreateOnTableStreamRequest) WithAppendOnly ¶ added in v0.74.0
func (s *CreateOnTableStreamRequest) WithAppendOnly(AppendOnly *bool) *CreateOnTableStreamRequest
func (*CreateOnTableStreamRequest) WithComment ¶ added in v0.74.0
func (s *CreateOnTableStreamRequest) WithComment(Comment *string) *CreateOnTableStreamRequest
func (*CreateOnTableStreamRequest) WithCopyGrants ¶ added in v0.74.0
func (s *CreateOnTableStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnTableStreamRequest
func (*CreateOnTableStreamRequest) WithIfNotExists ¶ added in v0.74.0
func (s *CreateOnTableStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnTableStreamRequest
func (*CreateOnTableStreamRequest) WithOn ¶ added in v0.74.0
func (s *CreateOnTableStreamRequest) WithOn(On *OnStreamRequest) *CreateOnTableStreamRequest
func (*CreateOnTableStreamRequest) WithOrReplace ¶ added in v0.74.0
func (s *CreateOnTableStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnTableStreamRequest
func (*CreateOnTableStreamRequest) WithShowInitialRows ¶ added in v0.74.0
func (s *CreateOnTableStreamRequest) WithShowInitialRows(ShowInitialRows *bool) *CreateOnTableStreamRequest
type CreateOnViewStreamOptions ¶ added in v0.74.0
type CreateOnViewStreamOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` ViewId SchemaObjectIdentifier `ddl:"identifier"` On *OnStream `ddl:"keyword"` AppendOnly *bool `ddl:"parameter" sql:"APPEND_ONLY"` ShowInitialRows *bool `ddl:"parameter" sql:"SHOW_INITIAL_ROWS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateOnViewStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-stream.
type CreateOnViewStreamRequest ¶ added in v0.74.0
type CreateOnViewStreamRequest struct { OrReplace *bool IfNotExists *bool CopyGrants *bool ViewId SchemaObjectIdentifier // required On *OnStreamRequest AppendOnly *bool ShowInitialRows *bool Comment *string // contains filtered or unexported fields }
func NewCreateStreamOnViewRequest ¶ added in v0.74.0
func NewCreateStreamOnViewRequest( name SchemaObjectIdentifier, ViewId SchemaObjectIdentifier, ) *CreateOnViewStreamRequest
func (*CreateOnViewStreamRequest) WithAppendOnly ¶ added in v0.74.0
func (s *CreateOnViewStreamRequest) WithAppendOnly(AppendOnly *bool) *CreateOnViewStreamRequest
func (*CreateOnViewStreamRequest) WithComment ¶ added in v0.74.0
func (s *CreateOnViewStreamRequest) WithComment(Comment *string) *CreateOnViewStreamRequest
func (*CreateOnViewStreamRequest) WithCopyGrants ¶ added in v0.74.0
func (s *CreateOnViewStreamRequest) WithCopyGrants(CopyGrants *bool) *CreateOnViewStreamRequest
func (*CreateOnViewStreamRequest) WithIfNotExists ¶ added in v0.74.0
func (s *CreateOnViewStreamRequest) WithIfNotExists(IfNotExists *bool) *CreateOnViewStreamRequest
func (*CreateOnViewStreamRequest) WithOn ¶ added in v0.74.0
func (s *CreateOnViewStreamRequest) WithOn(On *OnStreamRequest) *CreateOnViewStreamRequest
func (*CreateOnViewStreamRequest) WithOrReplace ¶ added in v0.74.0
func (s *CreateOnViewStreamRequest) WithOrReplace(OrReplace *bool) *CreateOnViewStreamRequest
func (*CreateOnViewStreamRequest) WithShowInitialRows ¶ added in v0.74.0
func (s *CreateOnViewStreamRequest) WithShowInitialRows(ShowInitialRows *bool) *CreateOnViewStreamRequest
type CreatePasswordPolicyOptions ¶ added in v0.66.0
type CreatePasswordPolicyOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` PasswordMinLength *int `ddl:"parameter" sql:"PASSWORD_MIN_LENGTH"` PasswordMaxLength *int `ddl:"parameter" sql:"PASSWORD_MAX_LENGTH"` PasswordMinUpperCaseChars *int `ddl:"parameter" sql:"PASSWORD_MIN_UPPER_CASE_CHARS"` PasswordMinLowerCaseChars *int `ddl:"parameter" sql:"PASSWORD_MIN_LOWER_CASE_CHARS"` PasswordMinNumericChars *int `ddl:"parameter" sql:"PASSWORD_MIN_NUMERIC_CHARS"` PasswordMinSpecialChars *int `ddl:"parameter" sql:"PASSWORD_MIN_SPECIAL_CHARS"` PasswordMinAgeDays *int `ddl:"parameter" sql:"PASSWORD_MIN_AGE_DAYS"` PasswordMaxAgeDays *int `ddl:"parameter" sql:"PASSWORD_MAX_AGE_DAYS"` PasswordMaxRetries *int `ddl:"parameter" sql:"PASSWORD_MAX_RETRIES"` PasswordLockoutTimeMins *int `ddl:"parameter" sql:"PASSWORD_LOCKOUT_TIME_MINS"` PasswordHistory *int `ddl:"parameter" sql:"PASSWORD_HISTORY"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreatePasswordPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-password-policy.
type CreatePipeOptions ¶ added in v0.72.0
type CreatePipeOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` AutoIngest *bool `ddl:"parameter" sql:"AUTO_INGEST"` ErrorIntegration *string `ddl:"parameter,no_quotes" sql:"ERROR_INTEGRATION"` AwsSnsTopic *string `ddl:"parameter,single_quotes" sql:"AWS_SNS_TOPIC"` Integration *string `ddl:"parameter,single_quotes" sql:"INTEGRATION"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreatePipeOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-pipe.
type CreateResourceMonitorOptions ¶ added in v0.66.0
type CreateResourceMonitorOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` With *ResourceMonitorWith `ddl:"keyword" sql:"WITH"` // contains filtered or unexported fields }
CreateResourceMonitorOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-resource-monitor.
type CreateRoleOptions ¶ added in v0.72.0
type CreateRoleOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateRoleOptions based on https://docs.snowflake.com/en/sql-reference/sql/create-role
type CreateRoleRequest ¶ added in v0.72.0
type CreateRoleRequest struct { OrReplace *bool IfNotExists *bool Comment *string Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateRoleRequest ¶ added in v0.72.0
func NewCreateRoleRequest(name AccountObjectIdentifier) *CreateRoleRequest
func (*CreateRoleRequest) GetName ¶ added in v0.74.0
func (s *CreateRoleRequest) GetName() AccountObjectIdentifier
func (*CreateRoleRequest) WithComment ¶ added in v0.72.0
func (s *CreateRoleRequest) WithComment(comment string) *CreateRoleRequest
func (*CreateRoleRequest) WithIfNotExists ¶ added in v0.72.0
func (s *CreateRoleRequest) WithIfNotExists(ifNotExists bool) *CreateRoleRequest
func (*CreateRoleRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateRoleRequest) WithOrReplace(orReplace bool) *CreateRoleRequest
func (*CreateRoleRequest) WithTag ¶ added in v0.72.0
func (s *CreateRoleRequest) WithTag(tag []TagAssociation) *CreateRoleRequest
type CreateSchemaOptions ¶ added in v0.70.0
type CreateSchemaOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Transient *bool `ddl:"keyword" sql:"TRANSIENT"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Clone *Clone `ddl:"-"` WithManagedAccess *bool `ddl:"keyword" sql:"WITH MANAGED ACCESS"` DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` DefaultDDLCollation *string `ddl:"parameter,single_quotes" sql:"DEFAULT_DDL_COLLATION"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateSchemaOptions based on https://docs.snowflake.com/en/sql-reference/sql/create-schema
type CreateSecondaryDatabaseOptions ¶ added in v0.66.0
type CreateSecondaryDatabaseOptions struct { DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` // contains filtered or unexported fields }
CreateSecondaryDatabaseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-database.
type CreateSecondaryReplicationGroupOptions ¶ added in v0.66.0
type CreateSecondaryReplicationGroupOptions struct { IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` // contains filtered or unexported fields }
CreateSecondaryReplicationGroupOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-failover-group.
type CreateSessionPolicyOptions ¶ added in v0.66.0
type CreateSessionPolicyOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` SessionIdleTimeoutMins *int `ddl:"parameter,no_quotes" sql:"SESSION_IDLE_TIMEOUT_MINS"` SessionUiIdleTimeoutMins *int `ddl:"parameter,no_quotes" sql:"SESSION_UI_IDLE_TIMEOUT_MINS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` // contains filtered or unexported fields }
CreateSessionPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-session-policy.
type CreateSessionPolicyRequest ¶ added in v0.72.0
type CreateSessionPolicyRequest struct { OrReplace *bool IfNotExists *bool SessionIdleTimeoutMins *int SessionUiIdleTimeoutMins *int Comment *string // contains filtered or unexported fields }
func NewCreateSessionPolicyRequest ¶ added in v0.72.0
func NewCreateSessionPolicyRequest( name SchemaObjectIdentifier, ) *CreateSessionPolicyRequest
func (*CreateSessionPolicyRequest) WithComment ¶ added in v0.72.0
func (s *CreateSessionPolicyRequest) WithComment(Comment *string) *CreateSessionPolicyRequest
func (*CreateSessionPolicyRequest) WithIfNotExists ¶ added in v0.72.0
func (s *CreateSessionPolicyRequest) WithIfNotExists(IfNotExists *bool) *CreateSessionPolicyRequest
func (*CreateSessionPolicyRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateSessionPolicyRequest) WithOrReplace(OrReplace *bool) *CreateSessionPolicyRequest
func (*CreateSessionPolicyRequest) WithSessionIdleTimeoutMins ¶ added in v0.72.0
func (s *CreateSessionPolicyRequest) WithSessionIdleTimeoutMins(SessionIdleTimeoutMins *int) *CreateSessionPolicyRequest
func (*CreateSessionPolicyRequest) WithSessionUiIdleTimeoutMins ¶ added in v0.72.0
func (s *CreateSessionPolicyRequest) WithSessionUiIdleTimeoutMins(SessionUiIdleTimeoutMins *int) *CreateSessionPolicyRequest
type CreateShareOptions ¶ added in v0.66.0
type CreateShareOptions struct { // contains filtered or unexported fields }
CreateShareOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-share.
type CreateSharedDatabaseOptions ¶ added in v0.66.0
type CreateSharedDatabaseOptions struct { // contains filtered or unexported fields }
CreateSharedDatabaseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-database.
type CreateTableAsSelectRequest ¶ added in v0.78.0
type CreateTableAsSelectRequest struct {
// contains filtered or unexported fields
}
func NewCreateTableAsSelectRequest ¶ added in v0.78.0
func NewCreateTableAsSelectRequest( name SchemaObjectIdentifier, columns []TableAsSelectColumnRequest, query string, ) *CreateTableAsSelectRequest
func (*CreateTableAsSelectRequest) WithOrReplace ¶ added in v0.78.0
func (s *CreateTableAsSelectRequest) WithOrReplace(orReplace *bool) *CreateTableAsSelectRequest
type CreateTableCloneRequest ¶ added in v0.78.0
type CreateTableCloneRequest struct { ClonePoint *ClonePointRequest // contains filtered or unexported fields }
func NewCreateTableCloneRequest ¶ added in v0.78.0
func NewCreateTableCloneRequest( name SchemaObjectIdentifier, sourceTable SchemaObjectIdentifier, ) *CreateTableCloneRequest
func (*CreateTableCloneRequest) WithClonePoint ¶ added in v0.78.0
func (s *CreateTableCloneRequest) WithClonePoint(clonePoint *ClonePointRequest) *CreateTableCloneRequest
func (*CreateTableCloneRequest) WithCopyGrants ¶ added in v0.78.0
func (s *CreateTableCloneRequest) WithCopyGrants(copyGrants *bool) *CreateTableCloneRequest
func (*CreateTableCloneRequest) WithOrReplace ¶ added in v0.78.0
func (s *CreateTableCloneRequest) WithOrReplace(orReplace *bool) *CreateTableCloneRequest
type CreateTableColumnsAndConstraints ¶ added in v0.78.0
type CreateTableColumnsAndConstraints struct { Columns []TableColumn `ddl:"keyword"` OutOfLineConstraint []OutOfLineConstraint `ddl:"list,no_parentheses"` }
type CreateTableLikeRequest ¶ added in v0.78.0
type CreateTableLikeRequest struct {
// contains filtered or unexported fields
}
func NewCreateTableLikeRequest ¶ added in v0.78.0
func NewCreateTableLikeRequest( name SchemaObjectIdentifier, sourceTable SchemaObjectIdentifier, ) *CreateTableLikeRequest
func (*CreateTableLikeRequest) WithClusterBy ¶ added in v0.78.0
func (s *CreateTableLikeRequest) WithClusterBy(clusterBy []string) *CreateTableLikeRequest
func (*CreateTableLikeRequest) WithCopyGrants ¶ added in v0.78.0
func (s *CreateTableLikeRequest) WithCopyGrants(copyGrants *bool) *CreateTableLikeRequest
func (*CreateTableLikeRequest) WithOrReplace ¶ added in v0.78.0
func (s *CreateTableLikeRequest) WithOrReplace(orReplace *bool) *CreateTableLikeRequest
type CreateTableRequest ¶ added in v0.78.0
type CreateTableRequest struct { OutOfLineConstraints []OutOfLineConstraintRequest DataRetentionTimeInDays *int MaxDataExtensionTimeInDays *int ChangeTracking *bool DefaultDDLCollation *string CopyGrants *bool RowAccessPolicy *RowAccessPolicyRequest Tags []TagAssociationRequest Comment *string // contains filtered or unexported fields }
func NewCreateTableRequest ¶ added in v0.78.0
func NewCreateTableRequest( name SchemaObjectIdentifier, columns []TableColumnRequest, ) *CreateTableRequest
func (*CreateTableRequest) WithChangeTracking ¶ added in v0.78.0
func (s *CreateTableRequest) WithChangeTracking(changeTracking *bool) *CreateTableRequest
func (*CreateTableRequest) WithClusterBy ¶ added in v0.78.0
func (s *CreateTableRequest) WithClusterBy(clusterBy []string) *CreateTableRequest
func (*CreateTableRequest) WithComment ¶ added in v0.78.0
func (s *CreateTableRequest) WithComment(comment *string) *CreateTableRequest
func (*CreateTableRequest) WithCopyGrants ¶ added in v0.78.0
func (s *CreateTableRequest) WithCopyGrants(copyGrants *bool) *CreateTableRequest
func (*CreateTableRequest) WithDataRetentionTimeInDays ¶ added in v0.78.0
func (s *CreateTableRequest) WithDataRetentionTimeInDays(dataRetentionTimeInDays *int) *CreateTableRequest
func (*CreateTableRequest) WithDefaultDDLCollation ¶ added in v0.78.0
func (s *CreateTableRequest) WithDefaultDDLCollation(defaultDDLCollation *string) *CreateTableRequest
func (*CreateTableRequest) WithEnableSchemaEvolution ¶ added in v0.78.0
func (s *CreateTableRequest) WithEnableSchemaEvolution(enableSchemaEvolution *bool) *CreateTableRequest
func (*CreateTableRequest) WithIfNotExists ¶ added in v0.78.0
func (s *CreateTableRequest) WithIfNotExists(ifNotExists *bool) *CreateTableRequest
func (*CreateTableRequest) WithKind ¶ added in v0.78.0
func (s *CreateTableRequest) WithKind(kind *TableKind) *CreateTableRequest
func (*CreateTableRequest) WithMaxDataExtensionTimeInDays ¶ added in v0.78.0
func (s *CreateTableRequest) WithMaxDataExtensionTimeInDays(maxDataExtensionTimeInDays *int) *CreateTableRequest
func (*CreateTableRequest) WithOrReplace ¶ added in v0.78.0
func (s *CreateTableRequest) WithOrReplace(orReplace *bool) *CreateTableRequest
func (*CreateTableRequest) WithOutOfLineConstraint ¶ added in v0.78.0
func (s *CreateTableRequest) WithOutOfLineConstraint(outOfLineConstraint OutOfLineConstraintRequest) *CreateTableRequest
func (*CreateTableRequest) WithRowAccessPolicy ¶ added in v0.78.0
func (s *CreateTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateTableRequest
func (*CreateTableRequest) WithScope ¶ added in v0.78.0
func (s *CreateTableRequest) WithScope(scope *TableScope) *CreateTableRequest
func (*CreateTableRequest) WithStageCopyOptions ¶ added in v0.78.0
func (s *CreateTableRequest) WithStageCopyOptions(stageCopyOptions StageCopyOptionsRequest) *CreateTableRequest
func (*CreateTableRequest) WithStageFileFormat ¶ added in v0.78.0
func (s *CreateTableRequest) WithStageFileFormat(stageFileFormat StageFileFormatRequest) *CreateTableRequest
func (*CreateTableRequest) WithTags ¶ added in v0.78.0
func (s *CreateTableRequest) WithTags(tags []TagAssociationRequest) *CreateTableRequest
type CreateTableUsingTemplateRequest ¶ added in v0.78.0
type CreateTableUsingTemplateRequest struct { Query string // required // contains filtered or unexported fields }
func NewCreateTableUsingTemplateRequest ¶ added in v0.78.0
func NewCreateTableUsingTemplateRequest( name SchemaObjectIdentifier, query string, ) *CreateTableUsingTemplateRequest
func (*CreateTableUsingTemplateRequest) WithCopyGrants ¶ added in v0.78.0
func (s *CreateTableUsingTemplateRequest) WithCopyGrants(copyGrants *bool) *CreateTableUsingTemplateRequest
func (*CreateTableUsingTemplateRequest) WithOrReplace ¶ added in v0.78.0
func (s *CreateTableUsingTemplateRequest) WithOrReplace(orReplace *bool) *CreateTableUsingTemplateRequest
type CreateTagRequest ¶ added in v0.74.0
type CreateTagRequest struct {
// contains filtered or unexported fields
}
func NewCreateTagRequest ¶ added in v0.74.0
func NewCreateTagRequest(name SchemaObjectIdentifier) *CreateTagRequest
func (*CreateTagRequest) WithAllowedValues ¶ added in v0.74.0
func (s *CreateTagRequest) WithAllowedValues(values []string) *CreateTagRequest
func (*CreateTagRequest) WithComment ¶ added in v0.74.0
func (s *CreateTagRequest) WithComment(comment *string) *CreateTagRequest
func (*CreateTagRequest) WithIfExists ¶ added in v0.74.0
func (s *CreateTagRequest) WithIfExists(ifExists bool) *CreateTagRequest
func (*CreateTagRequest) WithOrReplace ¶ added in v0.74.0
func (s *CreateTagRequest) WithOrReplace(orReplace bool) *CreateTagRequest
type CreateTaskOptions ¶ added in v0.73.0
type CreateTaskOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Warehouse *CreateTaskWarehouse `ddl:"keyword"` Schedule *string `ddl:"parameter,single_quotes" sql:"SCHEDULE"` Config *string `ddl:"parameter,no_quotes" sql:"CONFIG"` AllowOverlappingExecution *bool `ddl:"parameter" sql:"ALLOW_OVERLAPPING_EXECUTION"` SessionParameters *SessionParameters `ddl:"list,no_parentheses"` UserTaskTimeoutMs *int `ddl:"parameter" sql:"USER_TASK_TIMEOUT_MS"` SuspendTaskAfterNumFailures *int `ddl:"parameter" sql:"SUSPEND_TASK_AFTER_NUM_FAILURES"` ErrorIntegration *string `ddl:"parameter,no_quotes" sql:"ERROR_INTEGRATION"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` After []SchemaObjectIdentifier `ddl:"parameter,no_equals" sql:"AFTER"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` When *string `ddl:"parameter,no_quotes,no_equals" sql:"WHEN"` // contains filtered or unexported fields }
CreateTaskOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-task.
type CreateTaskRequest ¶ added in v0.73.0
type CreateTaskRequest struct { OrReplace *bool IfNotExists *bool Warehouse *CreateTaskWarehouseRequest Schedule *string Config *string AllowOverlappingExecution *bool SessionParameters *SessionParameters UserTaskTimeoutMs *int SuspendTaskAfterNumFailures *int ErrorIntegration *string CopyGrants *bool Comment *string After []SchemaObjectIdentifier Tag []TagAssociation When *string // contains filtered or unexported fields }
func NewCreateTaskRequest ¶ added in v0.73.0
func NewCreateTaskRequest( name SchemaObjectIdentifier, sql string, ) *CreateTaskRequest
func (*CreateTaskRequest) GetName ¶ added in v0.74.0
func (r *CreateTaskRequest) GetName() SchemaObjectIdentifier
func (*CreateTaskRequest) WithAfter ¶ added in v0.73.0
func (s *CreateTaskRequest) WithAfter(After []SchemaObjectIdentifier) *CreateTaskRequest
func (*CreateTaskRequest) WithAllowOverlappingExecution ¶ added in v0.73.0
func (s *CreateTaskRequest) WithAllowOverlappingExecution(AllowOverlappingExecution *bool) *CreateTaskRequest
func (*CreateTaskRequest) WithComment ¶ added in v0.73.0
func (s *CreateTaskRequest) WithComment(Comment *string) *CreateTaskRequest
func (*CreateTaskRequest) WithConfig ¶ added in v0.73.0
func (s *CreateTaskRequest) WithConfig(Config *string) *CreateTaskRequest
func (*CreateTaskRequest) WithCopyGrants ¶ added in v0.73.0
func (s *CreateTaskRequest) WithCopyGrants(CopyGrants *bool) *CreateTaskRequest
func (*CreateTaskRequest) WithErrorIntegration ¶ added in v0.73.0
func (s *CreateTaskRequest) WithErrorIntegration(ErrorIntegration *string) *CreateTaskRequest
func (*CreateTaskRequest) WithIfNotExists ¶ added in v0.73.0
func (s *CreateTaskRequest) WithIfNotExists(IfNotExists *bool) *CreateTaskRequest
func (*CreateTaskRequest) WithOrReplace ¶ added in v0.73.0
func (s *CreateTaskRequest) WithOrReplace(OrReplace *bool) *CreateTaskRequest
func (*CreateTaskRequest) WithSchedule ¶ added in v0.73.0
func (s *CreateTaskRequest) WithSchedule(Schedule *string) *CreateTaskRequest
func (*CreateTaskRequest) WithSessionParameters ¶ added in v0.73.0
func (s *CreateTaskRequest) WithSessionParameters(SessionParameters *SessionParameters) *CreateTaskRequest
func (*CreateTaskRequest) WithSuspendTaskAfterNumFailures ¶ added in v0.73.0
func (s *CreateTaskRequest) WithSuspendTaskAfterNumFailures(SuspendTaskAfterNumFailures *int) *CreateTaskRequest
func (*CreateTaskRequest) WithTag ¶ added in v0.73.0
func (s *CreateTaskRequest) WithTag(Tag []TagAssociation) *CreateTaskRequest
func (*CreateTaskRequest) WithUserTaskTimeoutMs ¶ added in v0.73.0
func (s *CreateTaskRequest) WithUserTaskTimeoutMs(UserTaskTimeoutMs *int) *CreateTaskRequest
func (*CreateTaskRequest) WithWarehouse ¶ added in v0.73.0
func (s *CreateTaskRequest) WithWarehouse(Warehouse *CreateTaskWarehouseRequest) *CreateTaskRequest
func (*CreateTaskRequest) WithWhen ¶ added in v0.73.0
func (s *CreateTaskRequest) WithWhen(When *string) *CreateTaskRequest
type CreateTaskWarehouse ¶ added in v0.73.0
type CreateTaskWarehouse struct { Warehouse *AccountObjectIdentifier `ddl:"identifier,equals" sql:"WAREHOUSE"` UserTaskManagedInitialWarehouseSize *WarehouseSize `ddl:"parameter,single_quotes" sql:"USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE"` }
type CreateTaskWarehouseRequest ¶ added in v0.73.0
type CreateTaskWarehouseRequest struct { Warehouse *AccountObjectIdentifier UserTaskManagedInitialWarehouseSize *WarehouseSize }
func NewCreateTaskWarehouseRequest ¶ added in v0.73.0
func NewCreateTaskWarehouseRequest() *CreateTaskWarehouseRequest
func (*CreateTaskWarehouseRequest) WithUserTaskManagedInitialWarehouseSize ¶ added in v0.73.0
func (s *CreateTaskWarehouseRequest) WithUserTaskManagedInitialWarehouseSize(UserTaskManagedInitialWarehouseSize *WarehouseSize) *CreateTaskWarehouseRequest
func (*CreateTaskWarehouseRequest) WithWarehouse ¶ added in v0.73.0
func (s *CreateTaskWarehouseRequest) WithWarehouse(Warehouse *AccountObjectIdentifier) *CreateTaskWarehouseRequest
type CreateUserOptions ¶ added in v0.66.0
type CreateUserOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` ObjectProperties *UserObjectProperties `ddl:"keyword"` ObjectParameters *UserObjectParameters `ddl:"keyword"` SessionParameters *SessionParameters `ddl:"keyword"` With *bool `ddl:"keyword" sql:"WITH"` Tags []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateUserOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-user.
type CreateViewOptions ¶ added in v0.76.0
type CreateViewOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` Secure *bool `ddl:"keyword" sql:"SECURE"` Temporary *bool `ddl:"keyword" sql:"TEMPORARY"` Recursive *bool `ddl:"keyword" sql:"RECURSIVE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Columns []ViewColumn `ddl:"list,parentheses"` ColumnsMaskingPolicies []ViewColumnMaskingPolicy `ddl:"list,no_parentheses,no_equals"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` RowAccessPolicy *ViewRowAccessPolicy `ddl:"keyword"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateViewOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-view.
type CreateViewRequest ¶ added in v0.76.0
type CreateViewRequest struct { OrReplace *bool Secure *bool Temporary *bool Recursive *bool IfNotExists *bool Columns []ViewColumnRequest ColumnsMaskingPolicies []ViewColumnMaskingPolicyRequest CopyGrants *bool Comment *string RowAccessPolicy *ViewRowAccessPolicyRequest Tag []TagAssociation // contains filtered or unexported fields }
func NewCreateViewRequest ¶ added in v0.76.0
func NewCreateViewRequest( name SchemaObjectIdentifier, sql string, ) *CreateViewRequest
func (*CreateViewRequest) GetName ¶ added in v0.76.0
func (r *CreateViewRequest) GetName() SchemaObjectIdentifier
func (*CreateViewRequest) WithColumns ¶ added in v0.76.0
func (s *CreateViewRequest) WithColumns(Columns []ViewColumnRequest) *CreateViewRequest
func (*CreateViewRequest) WithColumnsMaskingPolicies ¶ added in v0.76.0
func (s *CreateViewRequest) WithColumnsMaskingPolicies(ColumnsMaskingPolicies []ViewColumnMaskingPolicyRequest) *CreateViewRequest
func (*CreateViewRequest) WithComment ¶ added in v0.76.0
func (s *CreateViewRequest) WithComment(Comment *string) *CreateViewRequest
func (*CreateViewRequest) WithCopyGrants ¶ added in v0.76.0
func (s *CreateViewRequest) WithCopyGrants(CopyGrants *bool) *CreateViewRequest
func (*CreateViewRequest) WithIfNotExists ¶ added in v0.76.0
func (s *CreateViewRequest) WithIfNotExists(IfNotExists *bool) *CreateViewRequest
func (*CreateViewRequest) WithOrReplace ¶ added in v0.76.0
func (s *CreateViewRequest) WithOrReplace(OrReplace *bool) *CreateViewRequest
func (*CreateViewRequest) WithRecursive ¶ added in v0.76.0
func (s *CreateViewRequest) WithRecursive(Recursive *bool) *CreateViewRequest
func (*CreateViewRequest) WithRowAccessPolicy ¶ added in v0.76.0
func (s *CreateViewRequest) WithRowAccessPolicy(RowAccessPolicy *ViewRowAccessPolicyRequest) *CreateViewRequest
func (*CreateViewRequest) WithSecure ¶ added in v0.76.0
func (s *CreateViewRequest) WithSecure(Secure *bool) *CreateViewRequest
func (*CreateViewRequest) WithTag ¶ added in v0.76.0
func (s *CreateViewRequest) WithTag(Tag []TagAssociation) *CreateViewRequest
func (*CreateViewRequest) WithTemporary ¶ added in v0.76.0
func (s *CreateViewRequest) WithTemporary(Temporary *bool) *CreateViewRequest
type CreateWarehouseOptions ¶ added in v0.66.0
type CreateWarehouseOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` // Object properties WarehouseType *WarehouseType `ddl:"parameter,single_quotes" sql:"WAREHOUSE_TYPE"` WarehouseSize *WarehouseSize `ddl:"parameter,single_quotes" sql:"WAREHOUSE_SIZE"` MaxClusterCount *int `ddl:"parameter" sql:"MAX_CLUSTER_COUNT"` MinClusterCount *int `ddl:"parameter" sql:"MIN_CLUSTER_COUNT"` ScalingPolicy *ScalingPolicy `ddl:"parameter,single_quotes" sql:"SCALING_POLICY"` AutoSuspend *int `ddl:"parameter" sql:"AUTO_SUSPEND"` AutoResume *bool `ddl:"parameter" sql:"AUTO_RESUME"` InitiallySuspended *bool `ddl:"parameter" sql:"INITIALLY_SUSPENDED"` ResourceMonitor *string `ddl:"parameter,double_quotes" sql:"RESOURCE_MONITOR"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` EnableQueryAcceleration *bool `ddl:"parameter" sql:"ENABLE_QUERY_ACCELERATION"` QueryAccelerationMaxScaleFactor *int `ddl:"parameter" sql:"QUERY_ACCELERATION_MAX_SCALE_FACTOR"` // Object params MaxConcurrencyLevel *int `ddl:"parameter" sql:"MAX_CONCURRENCY_LEVEL"` StatementQueuedTimeoutInSeconds *int `ddl:"parameter" sql:"STATEMENT_QUEUED_TIMEOUT_IN_SECONDS"` StatementTimeoutInSeconds *int `ddl:"parameter" sql:"STATEMENT_TIMEOUT_IN_SECONDS"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateWarehouseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/create-warehouse.
type CreateWithManualPartitioningExternalTableOptions ¶ added in v0.72.0
type CreateWithManualPartitioningExternalTableOptions struct { OrReplace *bool `ddl:"keyword" sql:"OR REPLACE"` IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Columns []ExternalTableColumn `ddl:"list,parentheses"` CloudProviderParams *CloudProviderParams PartitionBy []string `ddl:"keyword,parentheses" sql:"PARTITION BY"` Location string `ddl:"parameter" sql:"LOCATION"` UserSpecifiedPartitionType *bool `ddl:"keyword" sql:"PARTITION_TYPE = USER_SPECIFIED"` FileFormat []ExternalTableFileFormat `ddl:"parameter,parentheses" sql:"FILE_FORMAT"` CopyGrants *bool `ddl:"keyword" sql:"COPY GRANTS"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` RowAccessPolicy *TableRowAccessPolicy `ddl:"keyword"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
CreateWithManualPartitioningExternalTableOptions based on https://docs.snowflake.com/en/sql-reference/sql/create-external-table
type CreateWithManualPartitioningExternalTableRequest ¶ added in v0.72.0
type CreateWithManualPartitioningExternalTableRequest struct {
// contains filtered or unexported fields
}
func NewCreateWithManualPartitioningExternalTableRequest ¶ added in v0.72.0
func NewCreateWithManualPartitioningExternalTableRequest( name SchemaObjectIdentifier, location string, fileFormat *ExternalTableFileFormatRequest, ) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithCloudProviderParams ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithCloudProviderParams(cloudProviderParams *CloudProviderParamsRequest) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithColumns ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithColumns(columns []*ExternalTableColumnRequest) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithComment ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithComment(comment *string) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithCopyGrants ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithCopyGrants(copyGrants *bool) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithIfNotExists ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithIfNotExists(ifNotExists *bool) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithOrReplace ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithOrReplace(orReplace *bool) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithPartitionBy ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithPartitionBy(partitionBy []string) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithRowAccessPolicy ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithRowAccessPolicy(rowAccessPolicy *RowAccessPolicyRequest) *CreateWithManualPartitioningExternalTableRequest
func (*CreateWithManualPartitioningExternalTableRequest) WithUserSpecifiedPartitionType ¶ added in v0.72.0
func (s *CreateWithManualPartitioningExternalTableRequest) WithUserSpecifiedPartitionType(userSpecifiedPartitionType *bool) *CreateWithManualPartitioningExternalTableRequest
type CurrentSecondaryRoles ¶ added in v0.72.0
type CurrentSecondaryRoles struct { Roles []AccountObjectIdentifier Value SecondaryRoleOption }
type DataType ¶
type DataType string
DataType is based on https://docs.snowflake.com/en/sql-reference/intro-summary-data-types.
const ( DataTypeNumber DataType = "NUMBER" DataTypeFloat DataType = "FLOAT" DataTypeVARCHAR DataType = "VARCHAR" DataTypeString DataType = "STRING" DataTypeBinary DataType = "BINARY" DataTypeBoolean DataType = "BOOLEAN" DataTypeDate DataType = "DATE" DataTypeTime DataType = "TIME" DataTypeTimestamp DataType = "TIMESTAMP" DataTypeTimestampLTZ DataType = "TIMESTAMP_LTZ" DataTypeTimestampNTZ DataType = "TIMESTAMP_NTZ" DataTypeTimestampTZ DataType = "TIMESTAMP_TZ" DataTypeVariant DataType = "VARIANT" DataTypeObject DataType = "OBJECT" DataTypeArray DataType = "ARRAY" DataTypeGeography DataType = "GEOGRAPHY" DataTypeGeometry DataType = "GEOMETRY" )
func ToDataType ¶ added in v0.66.2
type Database ¶
type Database struct { CreatedOn time.Time Name string IsDefault bool IsCurrent bool Origin string Owner string Comment string Options string RetentionTime int ResourceGroup string DroppedOn time.Time Transient bool Kind string }
func (*Database) ID ¶
func (v *Database) ID() AccountObjectIdentifier
func (*Database) ObjectType ¶ added in v0.65.0
func (v *Database) ObjectType() ObjectType
type DatabaseDetails ¶ added in v0.65.0
type DatabaseDetails struct {
Rows []DatabaseDetailsRow
}
type DatabaseDetailsRow ¶ added in v0.66.0
type DatabaseObjectIdentifier ¶ added in v0.70.0
type DatabaseObjectIdentifier struct {
// contains filtered or unexported fields
}
func AlphanumericDatabaseObjectIdentifier ¶ added in v0.74.0
func AlphanumericDatabaseObjectIdentifier() DatabaseObjectIdentifier
func NewDatabaseObjectIdentifier ¶ added in v0.70.0
func NewDatabaseObjectIdentifier(databaseName, name string) DatabaseObjectIdentifier
func NewDatabaseObjectIdentifierFromFullyQualifiedName ¶ added in v0.70.0
func NewDatabaseObjectIdentifierFromFullyQualifiedName(fullyQualifiedName string) DatabaseObjectIdentifier
func RandomDatabaseObjectIdentifier ¶ added in v0.74.0
func RandomDatabaseObjectIdentifier() DatabaseObjectIdentifier
func (DatabaseObjectIdentifier) DatabaseName ¶ added in v0.70.0
func (i DatabaseObjectIdentifier) DatabaseName() string
func (DatabaseObjectIdentifier) FullyQualifiedName ¶ added in v0.70.0
func (i DatabaseObjectIdentifier) FullyQualifiedName() string
func (DatabaseObjectIdentifier) Name ¶ added in v0.70.0
func (i DatabaseObjectIdentifier) Name() string
type DatabaseRole ¶ added in v0.70.0
type DatabaseRole struct { CreatedOn string Name string IsDefault bool IsCurrent bool IsInherited bool GrantedToRoles int GrantedToDatabaseRoles int GrantedDatabaseRoles int Owner string Comment string OwnerRoleType string }
DatabaseRole is a user-friendly result for a SHOW DATABASE ROLES query. At the time of writing there is no format specified in the docs.
type DatabaseRoleGrantOn ¶ added in v0.71.0
type DatabaseRoleGrantOn struct { Database *AccountObjectIdentifier `ddl:"identifier" sql:"DATABASE"` Schema *GrantOnSchema `ddl:"-"` SchemaObject *GrantOnSchemaObject `ddl:"-"` }
type DatabaseRoleGrantPrivileges ¶ added in v0.71.0
type DatabaseRoleGrantPrivileges struct { DatabasePrivileges []AccountObjectPrivilege `ddl:"-"` SchemaPrivileges []SchemaPrivilege `ddl:"-"` SchemaObjectPrivileges []SchemaObjectPrivilege `ddl:"-"` }
type DatabaseRoleRename ¶ added in v0.70.0
type DatabaseRoleRename struct {
Name DatabaseObjectIdentifier `ddl:"identifier"`
}
type DatabaseRoleRenameRequest ¶ added in v0.70.0
type DatabaseRoleRenameRequest struct {
// contains filtered or unexported fields
}
func NewDatabaseRoleRenameRequest ¶ added in v0.70.0
func NewDatabaseRoleRenameRequest( name DatabaseObjectIdentifier, ) *DatabaseRoleRenameRequest
type DatabaseRoleSet ¶ added in v0.70.0
type DatabaseRoleSet struct {
Comment string `ddl:"parameter,single_quotes" sql:"COMMENT"`
}
type DatabaseRoleSetRequest ¶ added in v0.70.0
type DatabaseRoleSetRequest struct {
// contains filtered or unexported fields
}
func NewDatabaseRoleSetRequest ¶ added in v0.70.0
func NewDatabaseRoleSetRequest( comment string, ) *DatabaseRoleSetRequest
type DatabaseRoleUnset ¶ added in v0.70.0
type DatabaseRoleUnset struct {
Comment bool `ddl:"keyword" sql:"COMMENT"`
}
type DatabaseRoleUnsetRequest ¶ added in v0.70.0
type DatabaseRoleUnsetRequest struct{}
func NewDatabaseRoleUnsetRequest ¶ added in v0.70.0
func NewDatabaseRoleUnsetRequest() *DatabaseRoleUnsetRequest
type DatabaseRoles ¶ added in v0.70.0
type DatabaseRoles interface { Create(ctx context.Context, request *CreateDatabaseRoleRequest) error Alter(ctx context.Context, request *AlterDatabaseRoleRequest) error Drop(ctx context.Context, request *DropDatabaseRoleRequest) error Show(ctx context.Context, request *ShowDatabaseRoleRequest) ([]DatabaseRole, error) ShowByID(ctx context.Context, id DatabaseObjectIdentifier) (*DatabaseRole, error) Grant(ctx context.Context, request *GrantDatabaseRoleRequest) error Revoke(ctx context.Context, request *RevokeDatabaseRoleRequest) error }
type DatabaseSet ¶ added in v0.66.0
type DatabaseSet struct { DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` DefaultDDLCollation *string `ddl:"parameter,single_quotes" sql:"DEFAULT_DDL_COLLATION"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type DatabaseUnset ¶ added in v0.66.0
type DatabaseUnset struct { DataRetentionTimeInDays *bool `ddl:"keyword" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *bool `ddl:"keyword" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` DefaultDDLCollation *bool `ddl:"keyword" sql:"DEFAULT_DDL_COLLATION"` Comment *bool `ddl:"keyword" sql:"COMMENT"` Tag []ObjectIdentifier `ddl:"keyword" sql:"TAG"` }
type Databases ¶ added in v0.65.0
type Databases interface { Create(ctx context.Context, id AccountObjectIdentifier, opts *CreateDatabaseOptions) error CreateSecondary(ctx context.Context, id AccountObjectIdentifier, primaryID ExternalObjectIdentifier, opts *CreateSecondaryDatabaseOptions) error Alter(ctx context.Context, id AccountObjectIdentifier, opts *AlterDatabaseOptions) error AlterReplication(ctx context.Context, id AccountObjectIdentifier, opts *AlterDatabaseReplicationOptions) error AlterFailover(ctx context.Context, id AccountObjectIdentifier, opts *AlterDatabaseFailoverOptions) error Drop(ctx context.Context, id AccountObjectIdentifier, opts *DropDatabaseOptions) error Undrop(ctx context.Context, id AccountObjectIdentifier) error Show(ctx context.Context, opts *ShowDatabasesOptions) ([]Database, error) ShowByID(ctx context.Context, id AccountObjectIdentifier) (*Database, error) Describe(ctx context.Context, id AccountObjectIdentifier) (*DatabaseDetails, error) Use(ctx context.Context, id AccountObjectIdentifier) error }
type DateFormat ¶ added in v0.71.0
type DateFormat string
const ( DateFormatISO DateFormat = "DateFormatISO" DateFormatOther DateFormat = "DateFormatOther" DateFormatAny DateFormat = "DateFormatAny" )
type DescribeDynamicTableRequest ¶ added in v0.72.0
type DescribeDynamicTableRequest struct {
// contains filtered or unexported fields
}
func NewDescribeDynamicTableRequest ¶ added in v0.72.0
func NewDescribeDynamicTableRequest( name SchemaObjectIdentifier, ) *DescribeDynamicTableRequest
type DescribeEventTableOptions ¶ added in v0.78.0
type DescribeEventTableOptions struct {
// contains filtered or unexported fields
}
DescribeEventTableOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-event-table.
type DescribeEventTableRequest ¶ added in v0.78.0
type DescribeEventTableRequest struct {
// contains filtered or unexported fields
}
func NewDescribeEventTableRequest ¶ added in v0.78.0
func NewDescribeEventTableRequest( name SchemaObjectIdentifier, ) *DescribeEventTableRequest
type DescribeExternalTableColumnsRequest ¶ added in v0.72.0
type DescribeExternalTableColumnsRequest struct {
// contains filtered or unexported fields
}
func NewDescribeExternalTableColumnsRequest ¶ added in v0.72.0
func NewDescribeExternalTableColumnsRequest( id SchemaObjectIdentifier, ) *DescribeExternalTableColumnsRequest
type DescribeExternalTableStageRequest ¶ added in v0.72.0
type DescribeExternalTableStageRequest struct {
// contains filtered or unexported fields
}
func NewDescribeExternalTableStageRequest ¶ added in v0.72.0
func NewDescribeExternalTableStageRequest( id SchemaObjectIdentifier, ) *DescribeExternalTableStageRequest
type DescribeNetworkPolicyOptions ¶ added in v0.72.0
type DescribeNetworkPolicyOptions struct {
// contains filtered or unexported fields
}
DescribeNetworkPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-network-policy.
type DescribeNetworkPolicyRequest ¶ added in v0.72.0
type DescribeNetworkPolicyRequest struct {
// contains filtered or unexported fields
}
func NewDescribeNetworkPolicyRequest ¶ added in v0.72.0
func NewDescribeNetworkPolicyRequest( name AccountObjectIdentifier, ) *DescribeNetworkPolicyRequest
type DescribeProcedureOptions ¶ added in v0.79.0
type DescribeProcedureOptions struct { ArgumentDataTypes []DataType `ddl:"keyword,parentheses"` // contains filtered or unexported fields }
DescribeProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-procedure.
type DescribeProcedureRequest ¶ added in v0.79.0
type DescribeProcedureRequest struct { ArgumentDataTypes []DataType // required // contains filtered or unexported fields }
func NewDescribeProcedureRequest ¶ added in v0.79.0
func NewDescribeProcedureRequest( name SchemaObjectIdentifier, ArgumentDataTypes []DataType, ) *DescribeProcedureRequest
type DescribeSessionPolicyOptions ¶ added in v0.72.0
type DescribeSessionPolicyOptions struct {
// contains filtered or unexported fields
}
DescribeSessionPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-session-policy.
type DescribeSessionPolicyRequest ¶ added in v0.72.0
type DescribeSessionPolicyRequest struct {
// contains filtered or unexported fields
}
func NewDescribeSessionPolicyRequest ¶ added in v0.72.0
func NewDescribeSessionPolicyRequest( name SchemaObjectIdentifier, ) *DescribeSessionPolicyRequest
type DescribeStageOptions ¶ added in v0.76.0
type DescribeStageOptions struct {
// contains filtered or unexported fields
}
DescribeStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-stage.
type DescribeStageRequest ¶ added in v0.76.0
type DescribeStageRequest struct {
// contains filtered or unexported fields
}
func NewDescribeStageRequest ¶ added in v0.76.0
func NewDescribeStageRequest( name SchemaObjectIdentifier, ) *DescribeStageRequest
type DescribeStreamOptions ¶ added in v0.74.0
type DescribeStreamOptions struct {
// contains filtered or unexported fields
}
DescribeStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-stream.
type DescribeStreamRequest ¶ added in v0.74.0
type DescribeStreamRequest struct {
// contains filtered or unexported fields
}
func NewDescribeStreamRequest ¶ added in v0.74.0
func NewDescribeStreamRequest( name SchemaObjectIdentifier, ) *DescribeStreamRequest
type DescribeTableColumnsRequest ¶ added in v0.78.0
type DescribeTableColumnsRequest struct {
// contains filtered or unexported fields
}
func NewDescribeTableColumnsRequest ¶ added in v0.78.0
func NewDescribeTableColumnsRequest( id SchemaObjectIdentifier, ) *DescribeTableColumnsRequest
type DescribeTableStageRequest ¶ added in v0.78.0
type DescribeTableStageRequest struct {
// contains filtered or unexported fields
}
func NewDescribeTableStageRequest ¶ added in v0.78.0
func NewDescribeTableStageRequest( id SchemaObjectIdentifier, ) *DescribeTableStageRequest
type DescribeTaskOptions ¶ added in v0.73.0
type DescribeTaskOptions struct {
// contains filtered or unexported fields
}
DescribeTaskOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-task.
type DescribeTaskRequest ¶ added in v0.73.0
type DescribeTaskRequest struct {
// contains filtered or unexported fields
}
func NewDescribeTaskRequest ¶ added in v0.73.0
func NewDescribeTaskRequest( name SchemaObjectIdentifier, ) *DescribeTaskRequest
type DescribeViewOptions ¶ added in v0.76.0
type DescribeViewOptions struct {
// contains filtered or unexported fields
}
DescribeViewOptions is based on https://docs.snowflake.com/en/sql-reference/sql/desc-view.
type DescribeViewRequest ¶ added in v0.76.0
type DescribeViewRequest struct {
// contains filtered or unexported fields
}
func NewDescribeViewRequest ¶ added in v0.76.0
func NewDescribeViewRequest( name SchemaObjectIdentifier, ) *DescribeViewRequest
type DirectoryTableRefresh ¶ added in v0.76.0
type DirectoryTableRefresh struct {
Subpath *string `ddl:"parameter,single_quotes" sql:"SUBPATH"`
}
type DirectoryTableRefreshRequest ¶ added in v0.76.0
type DirectoryTableRefreshRequest struct {
Subpath *string
}
func NewDirectoryTableRefreshRequest ¶ added in v0.76.0
func NewDirectoryTableRefreshRequest() *DirectoryTableRefreshRequest
func (*DirectoryTableRefreshRequest) WithSubpath ¶ added in v0.76.0
func (s *DirectoryTableRefreshRequest) WithSubpath(Subpath *string) *DirectoryTableRefreshRequest
type DirectoryTableSet ¶ added in v0.76.0
type DirectoryTableSet struct {
Enable bool `ddl:"parameter" sql:"ENABLE"`
}
type DirectoryTableSetRequest ¶ added in v0.76.0
type DirectoryTableSetRequest struct {
Enable bool // required
}
func NewDirectoryTableSetRequest ¶ added in v0.76.0
func NewDirectoryTableSetRequest( Enable bool, ) *DirectoryTableSetRequest
type DisableFailover ¶ added in v0.66.0
type DisableFailover struct {
ToAccounts []AccountIdentifier `ddl:"keyword,no_parentheses" sql:"TO ACCOUNTS"`
}
type DisableReplication ¶ added in v0.66.0
type DisableReplication struct {
ToAccounts []AccountIdentifier `ddl:"keyword,no_parentheses" sql:"TO ACCOUNTS"`
}
type DropAccountOptions ¶ added in v0.72.0
type DropAccountOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropAccountOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-account.
type DropDatabaseOptions ¶ added in v0.66.0
type DropDatabaseOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropDatabaseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-database.
type DropDatabaseRoleRequest ¶ added in v0.70.0
type DropDatabaseRoleRequest struct {
// contains filtered or unexported fields
}
func NewDropDatabaseRoleRequest ¶ added in v0.70.0
func NewDropDatabaseRoleRequest( name DatabaseObjectIdentifier, ) *DropDatabaseRoleRequest
func (*DropDatabaseRoleRequest) WithIfExists ¶ added in v0.70.0
func (s *DropDatabaseRoleRequest) WithIfExists(ifExists bool) *DropDatabaseRoleRequest
type DropDynamicTableRequest ¶ added in v0.72.0
type DropDynamicTableRequest struct {
// contains filtered or unexported fields
}
func NewDropDynamicTableRequest ¶ added in v0.72.0
func NewDropDynamicTableRequest( name SchemaObjectIdentifier, ) *DropDynamicTableRequest
type DropEventTableOptions ¶ added in v0.78.0
type DropEventTableOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Restrict *bool `ddl:"keyword" sql:"RESTRICT"` // contains filtered or unexported fields }
DropEventTableOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-table.
type DropEventTableRequest ¶ added in v0.78.0
type DropEventTableRequest struct { IfExists *bool Restrict *bool // contains filtered or unexported fields }
func NewDropEventTableRequest ¶ added in v0.78.0
func NewDropEventTableRequest( name SchemaObjectIdentifier, ) *DropEventTableRequest
func (*DropEventTableRequest) WithIfExists ¶ added in v0.78.0
func (s *DropEventTableRequest) WithIfExists(IfExists *bool) *DropEventTableRequest
func (*DropEventTableRequest) WithRestrict ¶ added in v0.78.0
func (s *DropEventTableRequest) WithRestrict(Restrict *bool) *DropEventTableRequest
type DropExternalTableOptions ¶ added in v0.72.0
type DropExternalTableOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` DropOption *ExternalTableDropOption // contains filtered or unexported fields }
DropExternalTableOptions based on https://docs.snowflake.com/en/sql-reference/sql/drop-external-table
type DropExternalTableRequest ¶ added in v0.72.0
type DropExternalTableRequest struct {
// contains filtered or unexported fields
}
func NewDropExternalTableRequest ¶ added in v0.72.0
func NewDropExternalTableRequest( name SchemaObjectIdentifier, ) *DropExternalTableRequest
func (*DropExternalTableRequest) WithDropOption ¶ added in v0.72.0
func (s *DropExternalTableRequest) WithDropOption(dropOption *ExternalTableDropOptionRequest) *DropExternalTableRequest
func (*DropExternalTableRequest) WithIfExists ¶ added in v0.72.0
func (s *DropExternalTableRequest) WithIfExists(ifExists *bool) *DropExternalTableRequest
type DropFailoverGroupOptions ¶ added in v0.66.0
type DropFailoverGroupOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropFailoverGroupOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-failover-group.
type DropFileFormatOptions ¶ added in v0.68.0
type DropFileFormatOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropFileFormatOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-file-format.
type DropMaskingPolicyOptions ¶ added in v0.66.0
type DropMaskingPolicyOptions struct {
// contains filtered or unexported fields
}
DropMaskingPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-masking-policy.
type DropNetworkPolicyOptions ¶ added in v0.72.0
type DropNetworkPolicyOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropNetworkPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-network-policy.
type DropNetworkPolicyRequest ¶ added in v0.72.0
type DropNetworkPolicyRequest struct { IfExists *bool // contains filtered or unexported fields }
func NewDropNetworkPolicyRequest ¶ added in v0.72.0
func NewDropNetworkPolicyRequest( name AccountObjectIdentifier, ) *DropNetworkPolicyRequest
func (*DropNetworkPolicyRequest) WithIfExists ¶ added in v0.72.0
func (s *DropNetworkPolicyRequest) WithIfExists(IfExists *bool) *DropNetworkPolicyRequest
type DropPasswordPolicyOptions ¶ added in v0.66.0
type DropPasswordPolicyOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropPasswordPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-password-policy.
type DropPipeOptions ¶ added in v0.72.0
type DropPipeOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropPipeOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-pipe.
type DropProcedureOptions ¶ added in v0.79.0
type DropProcedureOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` ArgumentDataTypes []DataType `ddl:"keyword,must_parentheses"` // contains filtered or unexported fields }
DropProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-procedure.
type DropProcedureRequest ¶ added in v0.79.0
type DropProcedureRequest struct { IfExists *bool ArgumentDataTypes []DataType // required // contains filtered or unexported fields }
func NewDropProcedureRequest ¶ added in v0.79.0
func NewDropProcedureRequest( name SchemaObjectIdentifier, ArgumentDataTypes []DataType, ) *DropProcedureRequest
func (*DropProcedureRequest) WithIfExists ¶ added in v0.79.0
func (s *DropProcedureRequest) WithIfExists(IfExists *bool) *DropProcedureRequest
type DropRoleOptions ¶ added in v0.72.0
type DropRoleOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropRoleOptions based on https://docs.snowflake.com/en/sql-reference/sql/drop-role
type DropRoleRequest ¶ added in v0.72.0
type DropRoleRequest struct { IfExists *bool // contains filtered or unexported fields }
func NewDropRoleRequest ¶ added in v0.72.0
func NewDropRoleRequest(name AccountObjectIdentifier) *DropRoleRequest
func (*DropRoleRequest) WithIfExists ¶ added in v0.72.0
func (s *DropRoleRequest) WithIfExists(ifExists bool) *DropRoleRequest
type DropSchemaOptions ¶ added in v0.70.0
type DropSchemaOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // one of Cascade *bool `ddl:"static" sql:"CASCADE"` Restrict *bool `ddl:"static" sql:"RESTRICT"` // contains filtered or unexported fields }
DropSchemaOptions Based on https://docs.snowflake.com/en/sql-reference/sql/drop-schema
type DropSearchOptimization ¶ added in v0.78.0
type DropSearchOptimization struct { // Optional On []string `ddl:"keyword" sql:"ON"` // contains filtered or unexported fields }
type DropSessionPolicyOptions ¶ added in v0.66.0
type DropSessionPolicyOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropSessionPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-session-policy.
type DropSessionPolicyRequest ¶ added in v0.72.0
type DropSessionPolicyRequest struct { IfExists *bool // contains filtered or unexported fields }
func NewDropSessionPolicyRequest ¶ added in v0.72.0
func NewDropSessionPolicyRequest( name SchemaObjectIdentifier, ) *DropSessionPolicyRequest
func (*DropSessionPolicyRequest) WithIfExists ¶ added in v0.72.0
func (s *DropSessionPolicyRequest) WithIfExists(IfExists *bool) *DropSessionPolicyRequest
type DropStageOptions ¶ added in v0.76.0
type DropStageOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-stage.
type DropStageRequest ¶ added in v0.76.0
type DropStageRequest struct { IfExists *bool // contains filtered or unexported fields }
func NewDropStageRequest ¶ added in v0.76.0
func NewDropStageRequest( name SchemaObjectIdentifier, ) *DropStageRequest
func (*DropStageRequest) WithIfExists ¶ added in v0.76.0
func (s *DropStageRequest) WithIfExists(IfExists *bool) *DropStageRequest
type DropStreamOptions ¶ added in v0.74.0
type DropStreamOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-stream.
type DropStreamRequest ¶ added in v0.74.0
type DropStreamRequest struct { IfExists *bool // contains filtered or unexported fields }
func NewDropStreamRequest ¶ added in v0.74.0
func NewDropStreamRequest( name SchemaObjectIdentifier, ) *DropStreamRequest
func (*DropStreamRequest) WithIfExists ¶ added in v0.74.0
func (s *DropStreamRequest) WithIfExists(IfExists *bool) *DropStreamRequest
type DropTableRequest ¶ added in v0.78.0
type DropTableRequest struct { IfExists *bool Name SchemaObjectIdentifier // required // One of Cascade *bool Restrict *bool }
func NewDropTableRequest ¶ added in v0.78.0
func NewDropTableRequest( name SchemaObjectIdentifier, ) *DropTableRequest
func (*DropTableRequest) WithCascade ¶ added in v0.78.0
func (s *DropTableRequest) WithCascade(cascade *bool) *DropTableRequest
func (*DropTableRequest) WithIfExists ¶ added in v0.78.0
func (s *DropTableRequest) WithIfExists(ifExists *bool) *DropTableRequest
func (*DropTableRequest) WithRestrict ¶ added in v0.78.0
func (s *DropTableRequest) WithRestrict(restrict *bool) *DropTableRequest
type DropTagRequest ¶ added in v0.74.0
type DropTagRequest struct {
// contains filtered or unexported fields
}
func NewDropTagRequest ¶ added in v0.74.0
func NewDropTagRequest(name SchemaObjectIdentifier) *DropTagRequest
func (*DropTagRequest) WithIfExists ¶ added in v0.74.0
func (s *DropTagRequest) WithIfExists(ifExists bool) *DropTagRequest
type DropTaskOptions ¶ added in v0.73.0
type DropTaskOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropTaskOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-task.
type DropTaskRequest ¶ added in v0.73.0
type DropTaskRequest struct { IfExists *bool // contains filtered or unexported fields }
func NewDropTaskRequest ¶ added in v0.73.0
func NewDropTaskRequest( name SchemaObjectIdentifier, ) *DropTaskRequest
func (*DropTaskRequest) WithIfExists ¶ added in v0.73.0
func (s *DropTaskRequest) WithIfExists(IfExists *bool) *DropTaskRequest
type DropUserOptions ¶ added in v0.66.0
type DropUserOptions struct {
// contains filtered or unexported fields
}
DropUserOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-user.
type DropViewOptions ¶ added in v0.76.0
type DropViewOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropViewOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-view.
type DropViewRequest ¶ added in v0.76.0
type DropViewRequest struct { IfExists *bool // contains filtered or unexported fields }
func NewDropViewRequest ¶ added in v0.76.0
func NewDropViewRequest( name SchemaObjectIdentifier, ) *DropViewRequest
func (*DropViewRequest) WithIfExists ¶ added in v0.76.0
func (s *DropViewRequest) WithIfExists(IfExists *bool) *DropViewRequest
type DropWarehouseOptions ¶ added in v0.66.0
type DropWarehouseOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` // contains filtered or unexported fields }
DropWarehouseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/drop-warehouse.
type DynamicTable ¶ added in v0.72.0
type DynamicTable struct { CreatedOn time.Time Name string Reserved string DatabaseName string SchemaName string ClusterBy string Rows int Bytes int Owner string TargetLag string RefreshMode DynamicTableRefreshMode RefreshModeReason string Warehouse string Comment string Text string AutomaticClustering bool SchedulingState DynamicTableSchedulingState LastSuspendedOn time.Time IsClone bool IsReplica bool DataTimestamp time.Time }
func (*DynamicTable) ID ¶ added in v0.72.0
func (dt *DynamicTable) ID() SchemaObjectIdentifier
type DynamicTableDetails ¶ added in v0.72.0
type DynamicTableRefreshMode ¶ added in v0.72.0
type DynamicTableRefreshMode string
const ( DynamicTableRefreshModeIncremental DynamicTableRefreshMode = "INCREMENTAL" DynamicTableRefreshModeFull DynamicTableRefreshMode = "FULL" )
type DynamicTableSchedulingState ¶ added in v0.72.0
type DynamicTableSchedulingState string
const ( DynamicTableSchedulingStateRunning DynamicTableSchedulingState = "RUNNING" DynamicTableSchedulingStateSuspended DynamicTableSchedulingState = "SUSPENDED" )
type DynamicTableSet ¶ added in v0.72.0
type DynamicTableSet struct { TargetLag *TargetLag `ddl:"parameter,no_quotes" sql:"TARGET_LAG"` Warehouse *AccountObjectIdentifier `ddl:"identifier,equals" sql:"WAREHOUSE"` }
type DynamicTableSetRequest ¶ added in v0.72.0
type DynamicTableSetRequest struct {
// contains filtered or unexported fields
}
func NewDynamicTableSetRequest ¶ added in v0.72.0
func NewDynamicTableSetRequest() *DynamicTableSetRequest
func (*DynamicTableSetRequest) WithTargetLag ¶ added in v0.72.0
func (s *DynamicTableSetRequest) WithTargetLag(targetLag TargetLag) *DynamicTableSetRequest
func (*DynamicTableSetRequest) WithWarehouse ¶ added in v0.74.0
func (s *DynamicTableSetRequest) WithWarehouse(warehourse AccountObjectIdentifier) *DynamicTableSetRequest
type DynamicTables ¶ added in v0.72.0
type DynamicTables interface { Create(ctx context.Context, request *CreateDynamicTableRequest) error Alter(ctx context.Context, request *AlterDynamicTableRequest) error Describe(ctx context.Context, request *DescribeDynamicTableRequest) (*DynamicTableDetails, error) Drop(ctx context.Context, request *DropDynamicTableRequest) error Show(ctx context.Context, request *ShowDynamicTableRequest) ([]DynamicTable, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*DynamicTable, error) }
type EnableFailover ¶ added in v0.66.0
type EnableFailover struct {
ToAccounts []AccountIdentifier `ddl:"keyword,no_parentheses" sql:"TO ACCOUNTS"`
}
type EnableReplication ¶ added in v0.66.0
type EnableReplication struct { ToAccounts []AccountIdentifier `ddl:"keyword,no_parentheses" sql:"TO ACCOUNTS"` IgnoreEditionCheck *bool `ddl:"keyword" sql:"IGNORE EDITION CHECK"` }
type EventTable ¶ added in v0.78.0
type EventTableAddRowAccessPolicy ¶ added in v0.78.0
type EventTableAddRowAccessPolicy struct { RowAccessPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"ROW ACCESS POLICY"` On []string `ddl:"keyword,parentheses" sql:"ON"` // contains filtered or unexported fields }
type EventTableAddRowAccessPolicyRequest ¶ added in v0.78.0
type EventTableAddRowAccessPolicyRequest struct { RowAccessPolicy SchemaObjectIdentifier // required On []string // required }
func NewEventTableAddRowAccessPolicyRequest ¶ added in v0.78.0
func NewEventTableAddRowAccessPolicyRequest( RowAccessPolicy SchemaObjectIdentifier, On []string, ) *EventTableAddRowAccessPolicyRequest
type EventTableClusteringAction ¶ added in v0.78.0
type EventTableClusteringActionRequest ¶ added in v0.78.0
type EventTableClusteringActionRequest struct { ClusterBy *[]string SuspendRecluster *bool ResumeRecluster *bool DropClusteringKey *bool }
func NewEventTableClusteringActionRequest ¶ added in v0.78.0
func NewEventTableClusteringActionRequest() *EventTableClusteringActionRequest
func (*EventTableClusteringActionRequest) WithClusterBy ¶ added in v0.78.0
func (s *EventTableClusteringActionRequest) WithClusterBy(ClusterBy *[]string) *EventTableClusteringActionRequest
func (*EventTableClusteringActionRequest) WithDropClusteringKey ¶ added in v0.78.0
func (s *EventTableClusteringActionRequest) WithDropClusteringKey(DropClusteringKey *bool) *EventTableClusteringActionRequest
func (*EventTableClusteringActionRequest) WithResumeRecluster ¶ added in v0.78.0
func (s *EventTableClusteringActionRequest) WithResumeRecluster(ResumeRecluster *bool) *EventTableClusteringActionRequest
func (*EventTableClusteringActionRequest) WithSuspendRecluster ¶ added in v0.78.0
func (s *EventTableClusteringActionRequest) WithSuspendRecluster(SuspendRecluster *bool) *EventTableClusteringActionRequest
type EventTableDetails ¶ added in v0.78.0
type EventTableDropAndAddRowAccessPolicy ¶ added in v0.78.0
type EventTableDropAndAddRowAccessPolicy struct { Drop EventTableDropRowAccessPolicy `ddl:"keyword"` Add EventTableAddRowAccessPolicy `ddl:"keyword"` }
type EventTableDropAndAddRowAccessPolicyRequest ¶ added in v0.78.0
type EventTableDropAndAddRowAccessPolicyRequest struct { Drop EventTableDropRowAccessPolicyRequest // required Add EventTableAddRowAccessPolicyRequest // required }
func NewEventTableDropAndAddRowAccessPolicyRequest ¶ added in v0.78.0
func NewEventTableDropAndAddRowAccessPolicyRequest( Drop EventTableDropRowAccessPolicyRequest, Add EventTableAddRowAccessPolicyRequest, ) *EventTableDropAndAddRowAccessPolicyRequest
type EventTableDropRowAccessPolicy ¶ added in v0.78.0
type EventTableDropRowAccessPolicy struct { RowAccessPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"ROW ACCESS POLICY"` // contains filtered or unexported fields }
type EventTableDropRowAccessPolicyRequest ¶ added in v0.78.0
type EventTableDropRowAccessPolicyRequest struct {
RowAccessPolicy SchemaObjectIdentifier // required
}
func NewEventTableDropRowAccessPolicyRequest ¶ added in v0.78.0
func NewEventTableDropRowAccessPolicyRequest( RowAccessPolicy SchemaObjectIdentifier, ) *EventTableDropRowAccessPolicyRequest
type EventTableSearchOptimizationAction ¶ added in v0.78.0
type EventTableSearchOptimizationAction struct { Add *SearchOptimization `ddl:"keyword" sql:"ADD"` Drop *SearchOptimization `ddl:"keyword" sql:"DROP"` }
type EventTableSearchOptimizationActionRequest ¶ added in v0.78.0
type EventTableSearchOptimizationActionRequest struct { Add *SearchOptimizationRequest Drop *SearchOptimizationRequest }
func NewEventTableSearchOptimizationActionRequest ¶ added in v0.78.0
func NewEventTableSearchOptimizationActionRequest() *EventTableSearchOptimizationActionRequest
func (*EventTableSearchOptimizationActionRequest) WithAdd ¶ added in v0.78.0
func (s *EventTableSearchOptimizationActionRequest) WithAdd(Add *SearchOptimizationRequest) *EventTableSearchOptimizationActionRequest
func (*EventTableSearchOptimizationActionRequest) WithDrop ¶ added in v0.78.0
func (s *EventTableSearchOptimizationActionRequest) WithDrop(Drop *SearchOptimizationRequest) *EventTableSearchOptimizationActionRequest
type EventTableSet ¶ added in v0.78.0
type EventTableSet struct { DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` ChangeTracking *bool `ddl:"parameter" sql:"CHANGE_TRACKING"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type EventTableSetRequest ¶ added in v0.78.0
type EventTableSetRequest struct { DataRetentionTimeInDays *int MaxDataExtensionTimeInDays *int ChangeTracking *bool Comment *string }
func NewEventTableSetRequest ¶ added in v0.78.0
func NewEventTableSetRequest() *EventTableSetRequest
func (*EventTableSetRequest) WithChangeTracking ¶ added in v0.78.0
func (s *EventTableSetRequest) WithChangeTracking(ChangeTracking *bool) *EventTableSetRequest
func (*EventTableSetRequest) WithComment ¶ added in v0.78.0
func (s *EventTableSetRequest) WithComment(Comment *string) *EventTableSetRequest
func (*EventTableSetRequest) WithDataRetentionTimeInDays ¶ added in v0.78.0
func (s *EventTableSetRequest) WithDataRetentionTimeInDays(DataRetentionTimeInDays *int) *EventTableSetRequest
func (*EventTableSetRequest) WithMaxDataExtensionTimeInDays ¶ added in v0.78.0
func (s *EventTableSetRequest) WithMaxDataExtensionTimeInDays(MaxDataExtensionTimeInDays *int) *EventTableSetRequest
type EventTableUnset ¶ added in v0.78.0
type EventTableUnset struct { DataRetentionTimeInDays *bool `ddl:"keyword" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *bool `ddl:"keyword" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` ChangeTracking *bool `ddl:"keyword" sql:"CHANGE_TRACKING"` Comment *bool `ddl:"keyword" sql:"COMMENT"` }
type EventTableUnsetRequest ¶ added in v0.78.0
type EventTableUnsetRequest struct { DataRetentionTimeInDays *bool MaxDataExtensionTimeInDays *bool ChangeTracking *bool Comment *bool }
func NewEventTableUnsetRequest ¶ added in v0.78.0
func NewEventTableUnsetRequest() *EventTableUnsetRequest
func (*EventTableUnsetRequest) WithChangeTracking ¶ added in v0.78.0
func (s *EventTableUnsetRequest) WithChangeTracking(ChangeTracking *bool) *EventTableUnsetRequest
func (*EventTableUnsetRequest) WithComment ¶ added in v0.78.0
func (s *EventTableUnsetRequest) WithComment(Comment *bool) *EventTableUnsetRequest
func (*EventTableUnsetRequest) WithDataRetentionTimeInDays ¶ added in v0.78.0
func (s *EventTableUnsetRequest) WithDataRetentionTimeInDays(DataRetentionTimeInDays *bool) *EventTableUnsetRequest
func (*EventTableUnsetRequest) WithMaxDataExtensionTimeInDays ¶ added in v0.78.0
func (s *EventTableUnsetRequest) WithMaxDataExtensionTimeInDays(MaxDataExtensionTimeInDays *bool) *EventTableUnsetRequest
type EventTables ¶ added in v0.78.0
type EventTables interface { Create(ctx context.Context, request *CreateEventTableRequest) error Show(ctx context.Context, request *ShowEventTableRequest) ([]EventTable, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*EventTable, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*EventTableDetails, error) Drop(ctx context.Context, request *DropEventTableRequest) error Alter(ctx context.Context, request *AlterEventTableRequest) error }
type ExecuteTaskOptions ¶ added in v0.73.0
type ExecuteTaskOptions struct { RetryLast *bool `ddl:"keyword" sql:"RETRY LAST"` // contains filtered or unexported fields }
ExecuteTaskOptions is based on https://docs.snowflake.com/en/sql-reference/sql/execute-task.
type ExecuteTaskRequest ¶ added in v0.73.0
type ExecuteTaskRequest struct { RetryLast *bool // contains filtered or unexported fields }
func NewExecuteTaskRequest ¶ added in v0.73.0
func NewExecuteTaskRequest( name SchemaObjectIdentifier, ) *ExecuteTaskRequest
func (*ExecuteTaskRequest) WithRetryLast ¶ added in v0.73.0
func (s *ExecuteTaskRequest) WithRetryLast(RetryLast *bool) *ExecuteTaskRequest
type ExternalAzureDirectoryTableOptions ¶ added in v0.76.0
type ExternalAzureDirectoryTableOptions struct { Enable *bool `ddl:"parameter" sql:"ENABLE"` RefreshOnCreate *bool `ddl:"parameter" sql:"REFRESH_ON_CREATE"` AutoRefresh *bool `ddl:"parameter" sql:"AUTO_REFRESH"` NotificationIntegration *string `ddl:"parameter,single_quotes" sql:"NOTIFICATION_INTEGRATION"` }
type ExternalAzureDirectoryTableOptionsRequest ¶ added in v0.76.0
type ExternalAzureDirectoryTableOptionsRequest struct { Enable *bool RefreshOnCreate *bool AutoRefresh *bool NotificationIntegration *string }
func NewExternalAzureDirectoryTableOptionsRequest ¶ added in v0.76.0
func NewExternalAzureDirectoryTableOptionsRequest() *ExternalAzureDirectoryTableOptionsRequest
func (*ExternalAzureDirectoryTableOptionsRequest) WithAutoRefresh ¶ added in v0.76.0
func (s *ExternalAzureDirectoryTableOptionsRequest) WithAutoRefresh(AutoRefresh *bool) *ExternalAzureDirectoryTableOptionsRequest
func (*ExternalAzureDirectoryTableOptionsRequest) WithEnable ¶ added in v0.76.0
func (s *ExternalAzureDirectoryTableOptionsRequest) WithEnable(Enable *bool) *ExternalAzureDirectoryTableOptionsRequest
func (*ExternalAzureDirectoryTableOptionsRequest) WithNotificationIntegration ¶ added in v0.76.0
func (s *ExternalAzureDirectoryTableOptionsRequest) WithNotificationIntegration(NotificationIntegration *string) *ExternalAzureDirectoryTableOptionsRequest
func (*ExternalAzureDirectoryTableOptionsRequest) WithRefreshOnCreate ¶ added in v0.76.0
func (s *ExternalAzureDirectoryTableOptionsRequest) WithRefreshOnCreate(RefreshOnCreate *bool) *ExternalAzureDirectoryTableOptionsRequest
type ExternalAzureStageParams ¶ added in v0.76.0
type ExternalAzureStageParams struct { Url string `ddl:"parameter,single_quotes" sql:"URL"` StorageIntegration *AccountObjectIdentifier `ddl:"identifier,equals" sql:"STORAGE_INTEGRATION"` Credentials *ExternalStageAzureCredentials `ddl:"list,parentheses,no_comma" sql:"CREDENTIALS ="` Encryption *ExternalStageAzureEncryption `ddl:"list,parentheses,no_comma" sql:"ENCRYPTION ="` }
type ExternalAzureStageParamsRequest ¶ added in v0.76.0
type ExternalAzureStageParamsRequest struct { Url string // required StorageIntegration *AccountObjectIdentifier Credentials *ExternalStageAzureCredentialsRequest Encryption *ExternalStageAzureEncryptionRequest }
func NewExternalAzureStageParamsRequest ¶ added in v0.76.0
func NewExternalAzureStageParamsRequest( Url string, ) *ExternalAzureStageParamsRequest
func (*ExternalAzureStageParamsRequest) WithCredentials ¶ added in v0.76.0
func (s *ExternalAzureStageParamsRequest) WithCredentials(Credentials *ExternalStageAzureCredentialsRequest) *ExternalAzureStageParamsRequest
func (*ExternalAzureStageParamsRequest) WithEncryption ¶ added in v0.76.0
func (s *ExternalAzureStageParamsRequest) WithEncryption(Encryption *ExternalStageAzureEncryptionRequest) *ExternalAzureStageParamsRequest
func (*ExternalAzureStageParamsRequest) WithStorageIntegration ¶ added in v0.76.0
func (s *ExternalAzureStageParamsRequest) WithStorageIntegration(StorageIntegration *AccountObjectIdentifier) *ExternalAzureStageParamsRequest
type ExternalGCSDirectoryTableOptions ¶ added in v0.76.0
type ExternalGCSDirectoryTableOptions struct { Enable *bool `ddl:"parameter" sql:"ENABLE"` RefreshOnCreate *bool `ddl:"parameter" sql:"REFRESH_ON_CREATE"` AutoRefresh *bool `ddl:"parameter" sql:"AUTO_REFRESH"` NotificationIntegration *string `ddl:"parameter,single_quotes" sql:"NOTIFICATION_INTEGRATION"` }
type ExternalGCSDirectoryTableOptionsRequest ¶ added in v0.76.0
type ExternalGCSDirectoryTableOptionsRequest struct { Enable *bool RefreshOnCreate *bool AutoRefresh *bool NotificationIntegration *string }
func NewExternalGCSDirectoryTableOptionsRequest ¶ added in v0.76.0
func NewExternalGCSDirectoryTableOptionsRequest() *ExternalGCSDirectoryTableOptionsRequest
func (*ExternalGCSDirectoryTableOptionsRequest) WithAutoRefresh ¶ added in v0.76.0
func (s *ExternalGCSDirectoryTableOptionsRequest) WithAutoRefresh(AutoRefresh *bool) *ExternalGCSDirectoryTableOptionsRequest
func (*ExternalGCSDirectoryTableOptionsRequest) WithEnable ¶ added in v0.76.0
func (s *ExternalGCSDirectoryTableOptionsRequest) WithEnable(Enable *bool) *ExternalGCSDirectoryTableOptionsRequest
func (*ExternalGCSDirectoryTableOptionsRequest) WithNotificationIntegration ¶ added in v0.76.0
func (s *ExternalGCSDirectoryTableOptionsRequest) WithNotificationIntegration(NotificationIntegration *string) *ExternalGCSDirectoryTableOptionsRequest
func (*ExternalGCSDirectoryTableOptionsRequest) WithRefreshOnCreate ¶ added in v0.76.0
func (s *ExternalGCSDirectoryTableOptionsRequest) WithRefreshOnCreate(RefreshOnCreate *bool) *ExternalGCSDirectoryTableOptionsRequest
type ExternalGCSStageParams ¶ added in v0.76.0
type ExternalGCSStageParams struct { Url string `ddl:"parameter,single_quotes" sql:"URL"` StorageIntegration *AccountObjectIdentifier `ddl:"identifier,equals" sql:"STORAGE_INTEGRATION"` Encryption *ExternalStageGCSEncryption `ddl:"list,parentheses,no_comma" sql:"ENCRYPTION ="` }
type ExternalGCSStageParamsRequest ¶ added in v0.76.0
type ExternalGCSStageParamsRequest struct { Url string // required StorageIntegration *AccountObjectIdentifier Encryption *ExternalStageGCSEncryptionRequest }
func NewExternalGCSStageParamsRequest ¶ added in v0.76.0
func NewExternalGCSStageParamsRequest( Url string, ) *ExternalGCSStageParamsRequest
func (*ExternalGCSStageParamsRequest) WithEncryption ¶ added in v0.76.0
func (s *ExternalGCSStageParamsRequest) WithEncryption(Encryption *ExternalStageGCSEncryptionRequest) *ExternalGCSStageParamsRequest
func (*ExternalGCSStageParamsRequest) WithStorageIntegration ¶ added in v0.76.0
func (s *ExternalGCSStageParamsRequest) WithStorageIntegration(StorageIntegration *AccountObjectIdentifier) *ExternalGCSStageParamsRequest
type ExternalObjectIdentifier ¶ added in v0.65.0
type ExternalObjectIdentifier struct {
// contains filtered or unexported fields
}
for objects that live in other accounts
func NewExternalObjectIdentifier ¶ added in v0.65.0
func NewExternalObjectIdentifier(accountIdentifier AccountIdentifier, objectIdentifier ObjectIdentifier) ExternalObjectIdentifier
func NewExternalObjectIdentifierFromFullyQualifiedName ¶ added in v0.65.0
func NewExternalObjectIdentifierFromFullyQualifiedName(fullyQualifiedName string) ExternalObjectIdentifier
func (ExternalObjectIdentifier) FullyQualifiedName ¶ added in v0.65.0
func (i ExternalObjectIdentifier) FullyQualifiedName() string
func (ExternalObjectIdentifier) Name ¶ added in v0.65.0
func (i ExternalObjectIdentifier) Name() string
type ExternalS3DirectoryTableOptions ¶ added in v0.76.0
type ExternalS3DirectoryTableOptionsRequest ¶ added in v0.76.0
type ExternalS3DirectoryTableOptionsRequest struct { Enable *bool RefreshOnCreate *bool AutoRefresh *bool }
func NewExternalS3DirectoryTableOptionsRequest ¶ added in v0.76.0
func NewExternalS3DirectoryTableOptionsRequest() *ExternalS3DirectoryTableOptionsRequest
func (*ExternalS3DirectoryTableOptionsRequest) WithAutoRefresh ¶ added in v0.76.0
func (s *ExternalS3DirectoryTableOptionsRequest) WithAutoRefresh(AutoRefresh *bool) *ExternalS3DirectoryTableOptionsRequest
func (*ExternalS3DirectoryTableOptionsRequest) WithEnable ¶ added in v0.76.0
func (s *ExternalS3DirectoryTableOptionsRequest) WithEnable(Enable *bool) *ExternalS3DirectoryTableOptionsRequest
func (*ExternalS3DirectoryTableOptionsRequest) WithRefreshOnCreate ¶ added in v0.76.0
func (s *ExternalS3DirectoryTableOptionsRequest) WithRefreshOnCreate(RefreshOnCreate *bool) *ExternalS3DirectoryTableOptionsRequest
type ExternalS3StageParams ¶ added in v0.76.0
type ExternalS3StageParams struct { Url string `ddl:"parameter,single_quotes" sql:"URL"` StorageIntegration *AccountObjectIdentifier `ddl:"identifier,equals" sql:"STORAGE_INTEGRATION"` Credentials *ExternalStageS3Credentials `ddl:"list,parentheses,no_comma" sql:"CREDENTIALS ="` Encryption *ExternalStageS3Encryption `ddl:"list,parentheses,no_comma" sql:"ENCRYPTION ="` }
type ExternalS3StageParamsRequest ¶ added in v0.76.0
type ExternalS3StageParamsRequest struct { Url string // required StorageIntegration *AccountObjectIdentifier Credentials *ExternalStageS3CredentialsRequest Encryption *ExternalStageS3EncryptionRequest }
func NewExternalS3StageParamsRequest ¶ added in v0.76.0
func NewExternalS3StageParamsRequest( Url string, ) *ExternalS3StageParamsRequest
func (*ExternalS3StageParamsRequest) WithCredentials ¶ added in v0.76.0
func (s *ExternalS3StageParamsRequest) WithCredentials(Credentials *ExternalStageS3CredentialsRequest) *ExternalS3StageParamsRequest
func (*ExternalS3StageParamsRequest) WithEncryption ¶ added in v0.76.0
func (s *ExternalS3StageParamsRequest) WithEncryption(Encryption *ExternalStageS3EncryptionRequest) *ExternalS3StageParamsRequest
func (*ExternalS3StageParamsRequest) WithStorageIntegration ¶ added in v0.76.0
func (s *ExternalS3StageParamsRequest) WithStorageIntegration(StorageIntegration *AccountObjectIdentifier) *ExternalS3StageParamsRequest
type ExternalStageAzureCredentials ¶ added in v0.76.0
type ExternalStageAzureCredentials struct {
AzureSasToken string `ddl:"parameter,single_quotes" sql:"AZURE_SAS_TOKEN"`
}
type ExternalStageAzureCredentialsRequest ¶ added in v0.76.0
type ExternalStageAzureCredentialsRequest struct {
AzureSasToken string // required
}
func NewExternalStageAzureCredentialsRequest ¶ added in v0.76.0
func NewExternalStageAzureCredentialsRequest( AzureSasToken string, ) *ExternalStageAzureCredentialsRequest
type ExternalStageAzureEncryption ¶ added in v0.76.0
type ExternalStageAzureEncryption struct { Type *ExternalStageAzureEncryptionOption `ddl:"parameter,single_quotes" sql:"TYPE"` MasterKey *string `ddl:"parameter,single_quotes" sql:"MASTER_KEY"` }
type ExternalStageAzureEncryptionOption ¶ added in v0.76.0
type ExternalStageAzureEncryptionOption string
var ( ExternalStageAzureEncryptionCSE ExternalStageAzureEncryptionOption = "AZURE_CSE" ExternalStageAzureEncryptionNone ExternalStageAzureEncryptionOption = "NONE" )
type ExternalStageAzureEncryptionRequest ¶ added in v0.76.0
type ExternalStageAzureEncryptionRequest struct { Type *ExternalStageAzureEncryptionOption // required MasterKey *string }
func NewExternalStageAzureEncryptionRequest ¶ added in v0.76.0
func NewExternalStageAzureEncryptionRequest( Type *ExternalStageAzureEncryptionOption, ) *ExternalStageAzureEncryptionRequest
func (*ExternalStageAzureEncryptionRequest) WithMasterKey ¶ added in v0.76.0
func (s *ExternalStageAzureEncryptionRequest) WithMasterKey(MasterKey *string) *ExternalStageAzureEncryptionRequest
type ExternalStageGCSEncryption ¶ added in v0.76.0
type ExternalStageGCSEncryption struct { Type *ExternalStageGCSEncryptionOption `ddl:"parameter,single_quotes" sql:"TYPE"` KmsKeyId *string `ddl:"parameter,single_quotes" sql:"KMS_KEY_ID"` }
type ExternalStageGCSEncryptionOption ¶ added in v0.76.0
type ExternalStageGCSEncryptionOption string
var ( ExternalStageGCSEncryptionSSEKMS ExternalStageGCSEncryptionOption = "GCS_SSE_KMS" ExternalStageGCSEncryptionNone ExternalStageGCSEncryptionOption = "NONE" )
type ExternalStageGCSEncryptionRequest ¶ added in v0.76.0
type ExternalStageGCSEncryptionRequest struct { Type *ExternalStageGCSEncryptionOption // required KmsKeyId *string }
func NewExternalStageGCSEncryptionRequest ¶ added in v0.76.0
func NewExternalStageGCSEncryptionRequest( Type *ExternalStageGCSEncryptionOption, ) *ExternalStageGCSEncryptionRequest
func (*ExternalStageGCSEncryptionRequest) WithKmsKeyId ¶ added in v0.76.0
func (s *ExternalStageGCSEncryptionRequest) WithKmsKeyId(KmsKeyId *string) *ExternalStageGCSEncryptionRequest
type ExternalStageS3CompatibleCredentials ¶ added in v0.76.0
type ExternalStageS3CompatibleCredentialsRequest ¶ added in v0.76.0
type ExternalStageS3CompatibleCredentialsRequest struct { AWSKeyId *string // required AWSSecretKey *string // required }
func NewExternalStageS3CompatibleCredentialsRequest ¶ added in v0.76.0
func NewExternalStageS3CompatibleCredentialsRequest( AwsKeyId *string, AwsSecretKey *string, ) *ExternalStageS3CompatibleCredentialsRequest
type ExternalStageS3Credentials ¶ added in v0.76.0
type ExternalStageS3Credentials struct { AWSKeyId *string `ddl:"parameter,single_quotes" sql:"AWS_KEY_ID"` AWSSecretKey *string `ddl:"parameter,single_quotes" sql:"AWS_SECRET_KEY"` AWSToken *string `ddl:"parameter,single_quotes" sql:"AWS_TOKEN"` AWSRole *string `ddl:"parameter,single_quotes" sql:"AWS_ROLE"` }
type ExternalStageS3CredentialsRequest ¶ added in v0.76.0
type ExternalStageS3CredentialsRequest struct { AWSKeyId *string AWSSecretKey *string AWSToken *string AWSRole *string }
func NewExternalStageS3CredentialsRequest ¶ added in v0.76.0
func NewExternalStageS3CredentialsRequest() *ExternalStageS3CredentialsRequest
func (*ExternalStageS3CredentialsRequest) WithAwsKeyId ¶ added in v0.76.0
func (s *ExternalStageS3CredentialsRequest) WithAwsKeyId(AwsKeyId *string) *ExternalStageS3CredentialsRequest
func (*ExternalStageS3CredentialsRequest) WithAwsRole ¶ added in v0.76.0
func (s *ExternalStageS3CredentialsRequest) WithAwsRole(AwsRole *string) *ExternalStageS3CredentialsRequest
func (*ExternalStageS3CredentialsRequest) WithAwsSecretKey ¶ added in v0.76.0
func (s *ExternalStageS3CredentialsRequest) WithAwsSecretKey(AwsSecretKey *string) *ExternalStageS3CredentialsRequest
func (*ExternalStageS3CredentialsRequest) WithAwsToken ¶ added in v0.76.0
func (s *ExternalStageS3CredentialsRequest) WithAwsToken(AwsToken *string) *ExternalStageS3CredentialsRequest
type ExternalStageS3Encryption ¶ added in v0.76.0
type ExternalStageS3Encryption struct { Type *ExternalStageS3EncryptionOption `ddl:"parameter,single_quotes" sql:"TYPE"` MasterKey *string `ddl:"parameter,single_quotes" sql:"MASTER_KEY"` KmsKeyId *string `ddl:"parameter,single_quotes" sql:"KMS_KEY_ID"` }
type ExternalStageS3EncryptionOption ¶ added in v0.76.0
type ExternalStageS3EncryptionOption string
var ( ExternalStageS3EncryptionCSE ExternalStageS3EncryptionOption = "AWS_CSE" ExternalStageS3EncryptionSSES3 ExternalStageS3EncryptionOption = "AWS_SSE_S3" ExternalStageS3EncryptionSSEKMS ExternalStageS3EncryptionOption = "AWS_SSE_KMS" ExternalStageS3EncryptionNone ExternalStageS3EncryptionOption = "NONE" )
type ExternalStageS3EncryptionRequest ¶ added in v0.76.0
type ExternalStageS3EncryptionRequest struct { Type *ExternalStageS3EncryptionOption // required MasterKey *string KmsKeyId *string }
func NewExternalStageS3EncryptionRequest ¶ added in v0.76.0
func NewExternalStageS3EncryptionRequest( Type *ExternalStageS3EncryptionOption, ) *ExternalStageS3EncryptionRequest
func (*ExternalStageS3EncryptionRequest) WithKmsKeyId ¶ added in v0.76.0
func (s *ExternalStageS3EncryptionRequest) WithKmsKeyId(KmsKeyId *string) *ExternalStageS3EncryptionRequest
func (*ExternalStageS3EncryptionRequest) WithMasterKey ¶ added in v0.76.0
func (s *ExternalStageS3EncryptionRequest) WithMasterKey(MasterKey *string) *ExternalStageS3EncryptionRequest
type ExternalTable ¶ added in v0.72.0
type ExternalTable struct { CreatedOn time.Time Name string DatabaseName string SchemaName string Invalid bool InvalidReason string Owner string Comment string Stage string Location string FileFormatName string FileFormatType string Cloud string Region string NotificationChannel string LastRefreshedOn time.Time TableFormat string LastRefreshDetails string OwnerRoleType string }
func (*ExternalTable) ID ¶ added in v0.72.0
func (v *ExternalTable) ID() SchemaObjectIdentifier
func (*ExternalTable) ObjectType ¶ added in v0.72.0
func (v *ExternalTable) ObjectType() ObjectType
type ExternalTableAvroCompression ¶ added in v0.72.0
type ExternalTableAvroCompression string
var ( ExternalTableAvroCompressionAuto ExternalTableAvroCompression = "AUTO" ExternalTableAvroCompressionGzip ExternalTableAvroCompression = "GZIP" ExternalTableAvroCompressionBz2 ExternalTableAvroCompression = "BZ2" ExternalTableAvroCompressionBrotli ExternalTableAvroCompression = "BROTLI" ExternalTableAvroCompressionZstd ExternalTableAvroCompression = "ZSTD" ExternalTableAvroCompressionDeflate ExternalTableAvroCompression = "DEFLATE" ExternalTableAvroCompressionRawDeflate ExternalTableAvroCompression = "RAW_DEFLATE" ExternalTableAvroCompressionNone ExternalTableAvroCompression = "NONE" )
type ExternalTableColumn ¶ added in v0.72.0
type ExternalTableColumn struct { Name string `ddl:"keyword"` Type DataType `ddl:"keyword"` AsExpression []string `ddl:"keyword,parentheses" sql:"AS"` NotNull *bool `ddl:"keyword" sql:"NOT NULL"` InlineConstraint *ColumnInlineConstraint }
type ExternalTableColumnDetails ¶ added in v0.72.0
type ExternalTableColumnRequest ¶ added in v0.72.0
type ExternalTableColumnRequest struct {
// contains filtered or unexported fields
}
func NewExternalTableColumnRequest ¶ added in v0.72.0
func NewExternalTableColumnRequest( name string, dataType DataType, asExpression string, ) *ExternalTableColumnRequest
func (*ExternalTableColumnRequest) WithInlineConstraint ¶ added in v0.72.0
func (s *ExternalTableColumnRequest) WithInlineConstraint(inlineConstraint *ColumnInlineConstraintRequest) *ExternalTableColumnRequest
func (*ExternalTableColumnRequest) WithNotNull ¶ added in v0.78.0
func (s *ExternalTableColumnRequest) WithNotNull() *ExternalTableColumnRequest
type ExternalTableCsvCompression ¶ added in v0.72.0
type ExternalTableCsvCompression string
var ( ExternalTableCsvCompressionAuto ExternalTableCsvCompression = "AUTO" ExternalTableCsvCompressionGzip ExternalTableCsvCompression = "GZIP" ExternalTableCsvCompressionBz2 ExternalTableCsvCompression = "BZ2" ExternalTableCsvCompressionBrotli ExternalTableCsvCompression = "BROTLI" ExternalTableCsvCompressionZstd ExternalTableCsvCompression = "ZSTD" ExternalTableCsvCompressionDeflate ExternalTableCsvCompression = "DEFLATE" ExternalTableCsvCompressionRawDeflate ExternalTableCsvCompression = "RAW_DEFALTE" ExternalTableCsvCompressionNone ExternalTableCsvCompression = "NONE" )
type ExternalTableDropOption ¶ added in v0.72.0
type ExternalTableDropOptionRequest ¶ added in v0.72.0
type ExternalTableDropOptionRequest struct {
// contains filtered or unexported fields
}
func NewExternalTableDropOptionRequest ¶ added in v0.72.0
func NewExternalTableDropOptionRequest() *ExternalTableDropOptionRequest
func (*ExternalTableDropOptionRequest) WithCascade ¶ added in v0.72.0
func (s *ExternalTableDropOptionRequest) WithCascade(cascade *bool) *ExternalTableDropOptionRequest
func (*ExternalTableDropOptionRequest) WithRestrict ¶ added in v0.72.0
func (s *ExternalTableDropOptionRequest) WithRestrict(restrict *bool) *ExternalTableDropOptionRequest
type ExternalTableFile ¶ added in v0.72.0
type ExternalTableFile struct {
Name string `ddl:"keyword,single_quotes"`
}
type ExternalTableFileFormat ¶ added in v0.72.0
type ExternalTableFileFormat struct { Name *string `ddl:"parameter,single_quotes" sql:"FORMAT_NAME"` Type *ExternalTableFileFormatType `ddl:"parameter" sql:"TYPE"` Options *ExternalTableFileFormatTypeOptions }
type ExternalTableFileFormatRequest ¶ added in v0.72.0
type ExternalTableFileFormatRequest struct {
// contains filtered or unexported fields
}
func NewExternalTableFileFormatRequest ¶ added in v0.72.0
func NewExternalTableFileFormatRequest() *ExternalTableFileFormatRequest
func (*ExternalTableFileFormatRequest) WithFileFormatType ¶ added in v0.72.0
func (s *ExternalTableFileFormatRequest) WithFileFormatType(fileFormatType *ExternalTableFileFormatType) *ExternalTableFileFormatRequest
func (*ExternalTableFileFormatRequest) WithName ¶ added in v0.72.0
func (s *ExternalTableFileFormatRequest) WithName(name *string) *ExternalTableFileFormatRequest
func (*ExternalTableFileFormatRequest) WithOptions ¶ added in v0.72.0
func (s *ExternalTableFileFormatRequest) WithOptions(options *ExternalTableFileFormatTypeOptionsRequest) *ExternalTableFileFormatRequest
type ExternalTableFileFormatType ¶ added in v0.72.0
type ExternalTableFileFormatType string
var ( ExternalTableFileFormatTypeCSV ExternalTableFileFormatType = "CSV" ExternalTableFileFormatTypeJSON ExternalTableFileFormatType = "JSON" ExternalTableFileFormatTypeAvro ExternalTableFileFormatType = "AVRO" ExternalTableFileFormatTypeORC ExternalTableFileFormatType = "ORC" ExternalTableFileFormatTypeParquet ExternalTableFileFormatType = "PARQUET" )
type ExternalTableFileFormatTypeOptions ¶ added in v0.72.0
type ExternalTableFileFormatTypeOptions struct { // CSV type options CSVCompression *ExternalTableCsvCompression `ddl:"parameter" sql:"COMPRESSION"` CSVRecordDelimiter *string `ddl:"parameter,single_quotes" sql:"RECORD_DELIMITER"` CSVFieldDelimiter *string `ddl:"parameter,single_quotes" sql:"FIELD_DELIMITER"` CSVSkipHeader *int `ddl:"parameter" sql:"SKIP_HEADER"` CSVSkipBlankLines *bool `ddl:"parameter" sql:"SKIP_BLANK_LINES"` CSVEscapeUnenclosedField *string `ddl:"parameter,single_quotes" sql:"ESCAPE_UNENCLOSED_FIELD"` CSVTrimSpace *bool `ddl:"parameter" sql:"TRIM_SPACE"` CSVFieldOptionallyEnclosedBy *string `ddl:"parameter,single_quotes" sql:"FIELD_OPTIONALLY_ENCLOSED_BY"` CSVNullIf *[]NullString `ddl:"parameter,parentheses" sql:"NULL_IF"` CSVEmptyFieldAsNull *bool `ddl:"parameter" sql:"EMPTY_FIELD_AS_NULL"` CSVEncoding *CSVEncoding `ddl:"parameter,single_quotes" sql:"ENCODING"` // JSON type options JSONCompression *ExternalTableJsonCompression `ddl:"parameter" sql:"COMPRESSION"` JSONAllowDuplicate *bool `ddl:"parameter" sql:"ALLOW_DUPLICATE"` JSONStripOuterArray *bool `ddl:"parameter" sql:"STRIP_OUTER_ARRAY"` JSONStripNullValues *bool `ddl:"parameter" sql:"STRIP_NULL_VALUES"` JSONReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` // AVRO type options AvroCompression *ExternalTableAvroCompression `ddl:"parameter" sql:"COMPRESSION"` AvroReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` // ORC type options ORCTrimSpace *bool `ddl:"parameter" sql:"TRIM_SPACE"` ORCReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` ORCNullIf *[]NullString `ddl:"parameter,parentheses" sql:"NULL_IF"` // PARQUET type options ParquetCompression *ExternalTableParquetCompression `ddl:"parameter" sql:"COMPRESSION"` ParquetBinaryAsText *bool `ddl:"parameter" sql:"BINARY_AS_TEXT"` ParquetReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` }
type ExternalTableFileFormatTypeOptionsRequest ¶ added in v0.72.0
type ExternalTableFileFormatTypeOptionsRequest struct {
// contains filtered or unexported fields
}
func NewExternalTableFileFormatTypeOptionsRequest ¶ added in v0.72.0
func NewExternalTableFileFormatTypeOptionsRequest() *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithAvroCompression ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithAvroCompression(avroCompression *ExternalTableAvroCompression) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithAvroReplaceInvalidCharacters ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithAvroReplaceInvalidCharacters(avroReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvCompression ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvCompression(csvCompression *ExternalTableCsvCompression) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvEmptyFieldAsNull ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvEmptyFieldAsNull(csvEmptyFieldAsNull *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvEncoding ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvEncoding(csvEncoding *CSVEncoding) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvEscapeUnenclosedField ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvEscapeUnenclosedField(csvEscapeUnenclosedField *string) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvFieldDelimiter ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvFieldDelimiter(csvFieldDelimiter *string) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvFieldOptionallyEnclosedBy ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvFieldOptionallyEnclosedBy(csvFieldOptionallyEnclosedBy *string) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvNullIf ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvNullIf(csvNullIf *[]NullStringRequest) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvRecordDelimiter ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvRecordDelimiter(csvRecordDelimiter *string) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvSkipBlankLines ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvSkipBlankLines(csvSkipBlankLines *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvSkipHeader ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvSkipHeader(csvSkipHeader *int) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithCsvTrimSpace ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithCsvTrimSpace(csvTrimSpace *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithJsonAllowDuplicate ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonAllowDuplicate(jsonAllowDuplicate *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithJsonCompression ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonCompression(jsonCompression *ExternalTableJsonCompression) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithJsonReplaceInvalidCharacters ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonReplaceInvalidCharacters(jsonReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithJsonStripNullValues ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonStripNullValues(jsonStripNullValues *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithJsonStripOuterArray ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithJsonStripOuterArray(jsonStripOuterArray *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithOrcNullIf ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithOrcNullIf(orcNullIf *[]NullStringRequest) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithOrcReplaceInvalidCharacters ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithOrcReplaceInvalidCharacters(orcReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithOrcTrimSpace ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithOrcTrimSpace(orcTrimSpace *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithParquetBinaryAsText ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithParquetBinaryAsText(parquetBinaryAsText *bool) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithParquetCompression ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithParquetCompression(parquetCompression *ExternalTableParquetCompression) *ExternalTableFileFormatTypeOptionsRequest
func (*ExternalTableFileFormatTypeOptionsRequest) WithParquetReplaceInvalidCharacters ¶ added in v0.72.0
func (s *ExternalTableFileFormatTypeOptionsRequest) WithParquetReplaceInvalidCharacters(parquetReplaceInvalidCharacters *bool) *ExternalTableFileFormatTypeOptionsRequest
type ExternalTableFileRequest ¶ added in v0.72.0
type ExternalTableFileRequest struct {
// contains filtered or unexported fields
}
func NewExternalTableFileRequest ¶ added in v0.72.0
func NewExternalTableFileRequest( name string, ) *ExternalTableFileRequest
type ExternalTableJsonCompression ¶ added in v0.72.0
type ExternalTableJsonCompression string
var ( ExternalTableJsonCompressionAuto ExternalTableJsonCompression = "AUTO" ExternalTableJsonCompressionGzip ExternalTableJsonCompression = "GZIP" ExternalTableJsonCompressionBz2 ExternalTableJsonCompression = "BZ2" ExternalTableJsonCompressionBrotli ExternalTableJsonCompression = "BROTLI" ExternalTableJsonCompressionZstd ExternalTableJsonCompression = "ZSTD" ExternalTableJsonCompressionDeflate ExternalTableJsonCompression = "DEFLATE" ExternalTableJsonCompressionRawDeflate ExternalTableJsonCompression = "RAW_DEFLATE" ExternalTableJsonCompressionNone ExternalTableJsonCompression = "NONE" )
type ExternalTableParquetCompression ¶ added in v0.72.0
type ExternalTableParquetCompression string
var ( ExternalTableParquetCompressionAuto ExternalTableParquetCompression = "AUTO" ExternalTableParquetCompressionSnappy ExternalTableParquetCompression = "SNAPPY" ExternalTableParquetCompressionNone ExternalTableParquetCompression = "NONE" )
type ExternalTableStageDetails ¶ added in v0.72.0
type ExternalTables ¶ added in v0.72.0
type ExternalTables interface { Create(ctx context.Context, req *CreateExternalTableRequest) error CreateWithManualPartitioning(ctx context.Context, req *CreateWithManualPartitioningExternalTableRequest) error CreateDeltaLake(ctx context.Context, req *CreateDeltaLakeExternalTableRequest) error CreateUsingTemplate(ctx context.Context, req *CreateExternalTableUsingTemplateRequest) error // TODO: Add alter options from https://docs.snowflake.com/en/sql-reference/sql/alter-table#external-table-column-actions-exttablecolumnaction (for better UX) Alter(ctx context.Context, req *AlterExternalTableRequest) error AlterPartitions(ctx context.Context, req *AlterExternalTablePartitionRequest) error Drop(ctx context.Context, req *DropExternalTableRequest) error Show(ctx context.Context, req *ShowExternalTableRequest) ([]ExternalTable, error) ShowByID(ctx context.Context, req *ShowExternalTableByIDRequest) (*ExternalTable, error) DescribeColumns(ctx context.Context, req *DescribeExternalTableColumnsRequest) ([]ExternalTableColumnDetails, error) DescribeStage(ctx context.Context, req *DescribeExternalTableStageRequest) ([]ExternalTableStageDetails, error) }
type FailoverGroup ¶ added in v0.65.0
type FailoverGroup struct { RegionGroup string SnowflakeRegion string CreatedOn time.Time AccountName string Name string Type string Comment string IsPrimary bool Primary ExternalObjectIdentifier ObjectTypes []PluralObjectType AllowedIntegrationTypes []IntegrationType AllowedAccounts []AccountIdentifier OrganizationName string AccountLocator string ReplicationSchedule string SecondaryState FailoverGroupSecondaryState NextScheduledRefresh string Owner string }
FailoverGroups is a user friendly result for a CREATE FAILOVER GROUP query.
func (*FailoverGroup) ExternalID ¶ added in v0.65.0
func (v *FailoverGroup) ExternalID() ExternalObjectIdentifier
func (*FailoverGroup) ID ¶ added in v0.65.0
func (v *FailoverGroup) ID() AccountObjectIdentifier
func (*FailoverGroup) ObjectType ¶ added in v0.65.0
func (v *FailoverGroup) ObjectType() ObjectType
type FailoverGroupAdd ¶ added in v0.65.0
type FailoverGroupAdd struct { AllowedDatabases []AccountObjectIdentifier `ddl:"parameter,reverse" sql:"TO ALLOWED_DATABASES"` AllowedAccounts []AccountIdentifier `ddl:"parameter,reverse" sql:"TO ALLOWED_ACCOUNTS"` IgnoreEditionCheck *bool `ddl:"keyword" sql:"IGNORE_EDITION_CHECK"` }
type FailoverGroupMove ¶ added in v0.65.0
type FailoverGroupMove struct { Databases []AccountObjectIdentifier `ddl:"parameter,no_equals" sql:"DATABASES"` To AccountObjectIdentifier `ddl:"identifier" sql:"TO FAILOVER GROUP"` }
type FailoverGroupRemove ¶ added in v0.65.0
type FailoverGroupRemove struct { AllowedDatabases []AccountObjectIdentifier `ddl:"parameter,reverse" sql:"FROM ALLOWED_DATABASES"` AllowedAccounts []AccountIdentifier `ddl:"parameter,reverse" sql:"FROM ALLOWED_ACCOUNTS"` }
type FailoverGroupSecondaryState ¶ added in v0.65.0
type FailoverGroupSecondaryState string
const ( FailoverGroupSecondaryStateSuspended FailoverGroupSecondaryState = "SUSPENDED" FailoverGroupSecondaryStateStarted FailoverGroupSecondaryState = "STARTED" FailoverGroupSecondaryStateNull FailoverGroupSecondaryState = "NULL" )
type FailoverGroupSet ¶ added in v0.65.0
type FailoverGroupSet struct { ObjectTypes []PluralObjectType `ddl:"parameter" sql:"OBJECT_TYPES"` ReplicationSchedule *string `ddl:"parameter,single_quotes" sql:"REPLICATION_SCHEDULE"` AllowedIntegrationTypes []IntegrationType `ddl:"parameter" sql:"ALLOWED_INTEGRATION_TYPES"` }
type FailoverGroups ¶ added in v0.65.0
type FailoverGroups interface { Create(ctx context.Context, id AccountObjectIdentifier, objectTypes []PluralObjectType, allowedAccounts []AccountIdentifier, opts *CreateFailoverGroupOptions) error CreateSecondaryReplicationGroup(ctx context.Context, id AccountObjectIdentifier, primaryFailoverGroupID ExternalObjectIdentifier, opts *CreateSecondaryReplicationGroupOptions) error AlterSource(ctx context.Context, id AccountObjectIdentifier, opts *AlterSourceFailoverGroupOptions) error AlterTarget(ctx context.Context, id AccountObjectIdentifier, opts *AlterTargetFailoverGroupOptions) error Drop(ctx context.Context, id AccountObjectIdentifier, opts *DropFailoverGroupOptions) error Show(ctx context.Context, opts *ShowFailoverGroupOptions) ([]FailoverGroup, error) ShowByID(ctx context.Context, id AccountObjectIdentifier) (*FailoverGroup, error) ShowDatabases(ctx context.Context, id AccountObjectIdentifier) ([]AccountObjectIdentifier, error) }
type FileFormat ¶ added in v0.68.0
type FileFormat struct { Name SchemaObjectIdentifier CreatedOn time.Time Type FileFormatType Owner string Comment string OwnerRoleType string Options FileFormatTypeOptions }
func (*FileFormat) ID ¶ added in v0.68.0
func (v *FileFormat) ID() SchemaObjectIdentifier
func (*FileFormat) ObjectType ¶ added in v0.68.0
func (v *FileFormat) ObjectType() ObjectType
type FileFormatDetails ¶ added in v0.68.0
type FileFormatDetails struct { Type FileFormatType Options FileFormatTypeOptions }
type FileFormatDetailsRow ¶ added in v0.68.0
type FileFormatRow ¶ added in v0.68.0
type FileFormatRow struct { FormatOptions string `db:"format_options"` CreatedOn time.Time `db:"created_on"` Name string `db:"name"` DatabaseName string `db:"database_name"` SchemaName string `db:"schema_name"` FormatType string `db:"type"` Owner string `db:"owner"` Comment string `db:"comment"` OwnerRoleType string `db:"owner_role_type"` }
type FileFormatType ¶ added in v0.68.0
type FileFormatType string
var ( FileFormatTypeCSV FileFormatType = "CSV" FileFormatTypeJSON FileFormatType = "JSON" FileFormatTypeAvro FileFormatType = "AVRO" FileFormatTypeORC FileFormatType = "ORC" FileFormatTypeParquet FileFormatType = "PARQUET" FileFormatTypeXML FileFormatType = "XML" )
type FileFormatTypeOptions ¶ added in v0.68.0
type FileFormatTypeOptions struct { // CSV type options CSVCompression *CSVCompression `ddl:"parameter" sql:"COMPRESSION"` CSVRecordDelimiter *string `ddl:"parameter,single_quotes" sql:"RECORD_DELIMITER"` CSVFieldDelimiter *string `ddl:"parameter,single_quotes" sql:"FIELD_DELIMITER"` CSVFileExtension *string `ddl:"parameter,single_quotes" sql:"FILE_EXTENSION"` CSVParseHeader *bool `ddl:"parameter" sql:"PARSE_HEADER"` CSVSkipHeader *int `ddl:"parameter" sql:"SKIP_HEADER"` CSVSkipBlankLines *bool `ddl:"parameter" sql:"SKIP_BLANK_LINES"` CSVDateFormat *string `ddl:"parameter,single_quotes" sql:"DATE_FORMAT"` CSVTimeFormat *string `ddl:"parameter,single_quotes" sql:"TIME_FORMAT"` CSVTimestampFormat *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_FORMAT"` CSVBinaryFormat *BinaryFormat `ddl:"parameter" sql:"BINARY_FORMAT"` CSVEscape *string `ddl:"parameter,single_quotes" sql:"ESCAPE"` CSVEscapeUnenclosedField *string `ddl:"parameter,single_quotes" sql:"ESCAPE_UNENCLOSED_FIELD"` CSVTrimSpace *bool `ddl:"parameter" sql:"TRIM_SPACE"` CSVFieldOptionallyEnclosedBy *string `ddl:"parameter,single_quotes" sql:"FIELD_OPTIONALLY_ENCLOSED_BY"` CSVNullIf *[]NullString `ddl:"parameter,parentheses" sql:"NULL_IF"` CSVErrorOnColumnCountMismatch *bool `ddl:"parameter" sql:"ERROR_ON_COLUMN_COUNT_MISMATCH"` CSVReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` CSVEmptyFieldAsNull *bool `ddl:"parameter" sql:"EMPTY_FIELD_AS_NULL"` CSVSkipByteOrderMark *bool `ddl:"parameter" sql:"SKIP_BYTE_ORDER_MARK"` CSVEncoding *CSVEncoding `ddl:"parameter,single_quotes" sql:"ENCODING"` // JSON type options JSONCompression *JSONCompression `ddl:"parameter" sql:"COMPRESSION"` JSONDateFormat *string `ddl:"parameter,single_quotes" sql:"DATE_FORMAT"` JSONTimeFormat *string `ddl:"parameter,single_quotes" sql:"TIME_FORMAT"` JSONTimestampFormat *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_FORMAT"` JSONBinaryFormat *BinaryFormat `ddl:"parameter" sql:"BINARY_FORMAT"` JSONTrimSpace *bool `ddl:"parameter" sql:"TRIM_SPACE"` JSONNullIf []NullString `ddl:"parameter,parentheses" sql:"NULL_IF"` JSONFileExtension *string `ddl:"parameter,single_quotes" sql:"FILE_EXTENSION"` JSONEnableOctal *bool `ddl:"parameter" sql:"ENABLE_OCTAL"` JSONAllowDuplicate *bool `ddl:"parameter" sql:"ALLOW_DUPLICATE"` JSONStripOuterArray *bool `ddl:"parameter" sql:"STRIP_OUTER_ARRAY"` JSONStripNullValues *bool `ddl:"parameter" sql:"STRIP_NULL_VALUES"` JSONReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` JSONIgnoreUTF8Errors *bool `ddl:"parameter" sql:"IGNORE_UTF8_ERRORS"` JSONSkipByteOrderMark *bool `ddl:"parameter" sql:"SKIP_BYTE_ORDER_MARK"` // AVRO type options AvroCompression *AvroCompression `ddl:"parameter" sql:"COMPRESSION"` AvroTrimSpace *bool `ddl:"parameter" sql:"TRIM_SPACE"` AvroReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` AvroNullIf *[]NullString `ddl:"parameter,parentheses" sql:"NULL_IF"` // ORC type options ORCTrimSpace *bool `ddl:"parameter" sql:"TRIM_SPACE"` ORCReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` ORCNullIf *[]NullString `ddl:"parameter,parentheses" sql:"NULL_IF"` // PARQUET type options ParquetCompression *ParquetCompression `ddl:"parameter" sql:"COMPRESSION"` ParquetSnappyCompression *bool `ddl:"parameter" sql:"SNAPPY_COMPRESSION"` ParquetBinaryAsText *bool `ddl:"parameter" sql:"BINARY_AS_TEXT"` ParquetTrimSpace *bool `ddl:"parameter" sql:"TRIM_SPACE"` ParquetReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` ParquetNullIf *[]NullString `ddl:"parameter,parentheses" sql:"NULL_IF"` // XML type options XMLCompression *XMLCompression `ddl:"parameter" sql:"COMPRESSION"` XMLIgnoreUTF8Errors *bool `ddl:"parameter" sql:"IGNORE_UTF8_ERRORS"` XMLPreserveSpace *bool `ddl:"parameter" sql:"PRESERVE_SPACE"` XMLStripOuterElement *bool `ddl:"parameter" sql:"STRIP_OUTER_ELEMENT"` XMLDisableSnowflakeData *bool `ddl:"parameter" sql:"DISABLE_SNOWFLAKE_DATA"` XMLDisableAutoConvert *bool `ddl:"parameter" sql:"DISABLE_AUTO_CONVERT"` XMLReplaceInvalidCharacters *bool `ddl:"parameter" sql:"REPLACE_INVALID_CHARACTERS"` XMLSkipByteOrderMark *bool `ddl:"parameter" sql:"SKIP_BYTE_ORDER_MARK"` }
type FileFormatTypeOptionsRequest ¶ added in v0.78.0
type FileFormatTypeOptionsRequest struct { CSVCompression *CSVCompression CSVRecordDelimiter *string CSVFieldDelimiter *string CSVFileExtension *string CSVParseHeader *bool CSVSkipHeader *int CSVSkipBlankLines *bool CSVDateFormat *string CSVTimeFormat *string CSVTimestampFormat *string CSVBinaryFormat *BinaryFormat CSVEscape *string CSVEscapeUnenclosedField *string CSVTrimSpace *bool CSVFieldOptionallyEnclosedBy *string CSVNullIf *[]NullString CSVErrorOnColumnCountMismatch *bool CSVReplaceInvalidCharacters *bool CSVEmptyFieldAsNull *bool CSVSkipByteOrderMark *bool CSVEncoding *CSVEncoding // JSON type options JSONCompression *JSONCompression JSONDateFormat *string JSONTimeFormat *string JSONTimestampFormat *string JSONBinaryFormat *BinaryFormat JSONTrimSpace *bool JSONNullIf []NullString JSONFileExtension *string JSONEnableOctal *bool JSONAllowDuplicate *bool JSONStripOuterArray *bool JSONStripNullValues *bool JSONReplaceInvalidCharacters *bool JSONIgnoreUTF8Errors *bool JSONSkipByteOrderMark *bool // AVRO type options AvroCompression *AvroCompression AvroTrimSpace *bool AvroReplaceInvalidCharacters *bool AvroNullIf *[]NullString // ORC type options ORCTrimSpace *bool ORCReplaceInvalidCharacters *bool ORCNullIf *[]NullString // PARQUET type options ParquetCompression *ParquetCompression ParquetSnappyCompression *bool ParquetBinaryAsText *bool ParquetTrimSpace *bool ParquetReplaceInvalidCharacters *bool ParquetNullIf *[]NullString // XML type options XMLCompression *XMLCompression XMLIgnoreUTF8Errors *bool XMLPreserveSpace *bool XMLStripOuterElement *bool XMLDisableSnowflakeData *bool XMLDisableAutoConvert *bool XMLReplaceInvalidCharacters *bool XMLSkipByteOrderMark *bool Comment *string }
func NewFileFormatTypeOptionsRequest ¶ added in v0.78.0
func NewFileFormatTypeOptionsRequest() *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithAvroCompression ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithAvroCompression(avroCompression *AvroCompression) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithAvroNullIf ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithAvroNullIf(avroNullIf *[]NullString) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithAvroReplaceInvalidCharacters ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithAvroReplaceInvalidCharacters(avroReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithAvroTrimSpace ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithAvroTrimSpace(avroTrimSpace *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVBinaryFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVBinaryFormat(csvBinaryFormat *BinaryFormat) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVCompression ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVCompression(csvCompression *CSVCompression) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVDateFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVDateFormat(csvDateFormat *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVEmptyFieldAsNull ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVEmptyFieldAsNull(csvEmptyFieldAsNull *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVEncoding ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVEncoding(csvEncoding *CSVEncoding) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVErrorOnColumnCountMismatch ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVErrorOnColumnCountMismatch(csvErrorOnColumnCountMismatch *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVEscape ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVEscape(csvEscape *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVEscapeUnenclosedField ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVEscapeUnenclosedField(csvEscapeUnenclosedField *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVFieldDelimiter ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVFieldDelimiter(csvFieldDelimiter *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVFieldOptionallyEnclosedBy ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVFieldOptionallyEnclosedBy(csvFieldOptionallyEnclosedBy *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVFileExtension ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVFileExtension(csvFileExtension *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVNullIf ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVNullIf(csvNullIf *[]NullString) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVParseHeader ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVParseHeader(csvParseHeader *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVRecordDelimiter ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVRecordDelimiter(csvRecordDelimiter *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVReplaceInvalidCharacters ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVReplaceInvalidCharacters(csvReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVSkipBlankLines ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVSkipBlankLines(csvSkipBlankLines *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVSkipByteOrderMark ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVSkipByteOrderMark(csvSkipByteOrderMark *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVSkipHeader ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVSkipHeader(csvSkipHeader *int) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVTimeFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVTimeFormat(csvTimeFormat *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVTimestampFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVTimestampFormat(csvTimestampFormat *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithCSVTrimSpace ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithCSVTrimSpace(csvTrimSpace *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithComment ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithComment(comment *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONAllowDuplicate ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONAllowDuplicate(jsonAllowDuplicate *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONBinaryFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONBinaryFormat(jsonBinaryFormat *BinaryFormat) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONCompression ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONCompression(jsonCompression *JSONCompression) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONDateFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONDateFormat(jsonDateFormat *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONEnableOctal ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONEnableOctal(jsonEnableOctal *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONFileExtension ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONFileExtension(jsonFileExtension *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONIgnoreUTF8Errors ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONIgnoreUTF8Errors(jsonIgnoreUTF8Errors *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONNullIf ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONNullIf(jsonNullIf []NullString) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONReplaceInvalidCharacters ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONReplaceInvalidCharacters(jsonReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONSkipByteOrderMark ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONSkipByteOrderMark(jsonSkipByteOrderMark *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONStripNullValues ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONStripNullValues(jsonStripNullValues *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONStripOuterArray ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONStripOuterArray(jsonStripOuterArray *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONTimeFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONTimeFormat(jsonTimeFormat *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONTimestampFormat ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONTimestampFormat(jsonTimestampFormat *string) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithJSONTrimSpace ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithJSONTrimSpace(jsonTrimSpace *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithORCNullIf ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithORCNullIf(orcNullIf *[]NullString) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithORCReplaceInvalidCharacters ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithORCReplaceInvalidCharacters(orcReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithORCTrimSpace ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithORCTrimSpace(orcTrimSpace *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithParquetBinaryAsText ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithParquetBinaryAsText(parquetBinaryAsText *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithParquetCompression ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithParquetCompression(parquetCompression *ParquetCompression) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithParquetNullIf ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithParquetNullIf(parquetNullIf *[]NullString) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithParquetReplaceInvalidCharacters ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithParquetReplaceInvalidCharacters(parquetReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithParquetSnappyCompression ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithParquetSnappyCompression(parquetSnappyCompression *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithParquetTrimSpace ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithParquetTrimSpace(parquetTrimSpace *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLCompression ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLCompression(xmlCompression *XMLCompression) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLDisableAutoConvert ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLDisableAutoConvert(xmlDisableAutoConvert *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLDisableSnowflakeData ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLDisableSnowflakeData(xmlDisableSnowflakeData *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLIgnoreUTF8Errors ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLIgnoreUTF8Errors(xmlIgnoreUTF8Errors *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLPreserveSpace ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLPreserveSpace(xmlPreserveSpace *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLReplaceInvalidCharacters ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLReplaceInvalidCharacters(xmlReplaceInvalidCharacters *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLSkipByteOrderMark ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLSkipByteOrderMark(xmlSkipByteOrderMark *bool) *FileFormatTypeOptionsRequest
func (*FileFormatTypeOptionsRequest) WithXMLStripOuterElement ¶ added in v0.78.0
func (s *FileFormatTypeOptionsRequest) WithXMLStripOuterElement(xmlStripOuterElement *bool) *FileFormatTypeOptionsRequest
type FileFormats ¶ added in v0.68.0
type FileFormats interface { Create(ctx context.Context, id SchemaObjectIdentifier, opts *CreateFileFormatOptions) error Alter(ctx context.Context, id SchemaObjectIdentifier, opts *AlterFileFormatOptions) error Drop(ctx context.Context, id SchemaObjectIdentifier, opts *DropFileFormatOptions) error Show(ctx context.Context, opts *ShowFileFormatsOptions) ([]FileFormat, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*FileFormat, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*FileFormatDetails, error) }
type ForeignKeyAction ¶ added in v0.78.0
type ForeignKeyAction string
const ( ForeignKeyCascadeAction ForeignKeyAction = "CASCADE" ForeignKeySetNullAction ForeignKeyAction = "SET NULL" ForeignKeySetDefaultAction ForeignKeyAction = "SET DEFAULT" ForeignKeyRestrictAction ForeignKeyAction = "RESTRICT" ForeignKeyNoAction ForeignKeyAction = "NO ACTION" )
type ForeignKeyOnAction ¶ added in v0.72.0
type ForeignKeyOnAction struct { OnUpdate *ForeignKeyAction `ddl:"parameter,no_equals" sql:"ON UPDATE"` OnDelete *ForeignKeyAction `ddl:"parameter,no_equals" sql:"ON DELETE"` }
func NewForeignKeyOnAction ¶ added in v0.78.0
func NewForeignKeyOnAction() *ForeignKeyOnAction
func (*ForeignKeyOnAction) WithOnDelete ¶ added in v0.78.0
func (s *ForeignKeyOnAction) WithOnDelete(onDelete *ForeignKeyAction) *ForeignKeyOnAction
func (*ForeignKeyOnAction) WithOnUpdate ¶ added in v0.78.0
func (s *ForeignKeyOnAction) WithOnUpdate(onUpdate *ForeignKeyAction) *ForeignKeyOnAction
type GeographyOutputFormat ¶ added in v0.65.0
type GeographyOutputFormat string
const ( GeographyOutputFormatGeoJSON GeographyOutputFormat = "GeoJSON" GeographyOutputFormatWKT GeographyOutputFormat = "WKT" GeographyOutputFormatWKB GeographyOutputFormat = "WKB" GeographyOutputFormatEWKT GeographyOutputFormat = "EWKT" )
type GlobalPrivilege ¶ added in v0.68.0
type GlobalPrivilege string
const ( // CREATE { // ACCOUNT | DATA EXCHANGE LISTING | DATABASE | FAILOVER GROUP | INTEGRATION // | NETWORK POLICY | REPLICATION GROUP | ROLE | SHARE | USER | WAREHOUSE // } GlobalPrivilegeCreateAccount GlobalPrivilege = "CREATE ACCOUNT" GlobalPrivilegeCreateDataExchangeListing GlobalPrivilege = "CREATE DATA EXCHANGE LISTING" GlobalPrivilegeCreateDatabase GlobalPrivilege = "CREATE DATABASE" GlobalPrivilegeCreateFailoverGroup GlobalPrivilege = "CREATE FAILOVER GROUP" GlobalPrivilegeCreateIntegration GlobalPrivilege = "CREATE INTEGRATION" GlobalPrivilegeCreateNetworkPolicy GlobalPrivilege = "CREATE NETWORK POLICY" GlobalPrivilegeCreateExternalVolume GlobalPrivilege = "CREATE EXTERNAL VOLUME" GlobalPrivilegeCreateReplicationGroup GlobalPrivilege = "CREATE REPLICATION GROUP" GlobalPrivilegeCreateRole GlobalPrivilege = "CREATE ROLE" GlobalPrivilegeCreateUser GlobalPrivilege = "CREATE USER" GlobalPrivilegeCreateWarehouse GlobalPrivilege = "CREATE WAREHOUSE" // | APPLY { { MASKING | PASSWORD | ROW ACCESS | SESSION } POLICY | TAG } GlobalPrivilegeApplyMaskingPolicy GlobalPrivilege = "APPLY MASKING POLICY" GlobalPrivilegeApplyPasswordPolicy GlobalPrivilege = "APPLY PASSWORD POLICY" GlobalPrivilegeApplyRowAccessPolicy GlobalPrivilege = "APPLY ROW ACCESS POLICY" GlobalPrivilegeApplySessionPolicy GlobalPrivilege = "APPLY SESSION POLICY" GlobalPrivilegeApplyTag GlobalPrivilege = "APPLY TAG" // | ATTACH POLICY | AUDIT | GlobalPrivilegeAttachPolicy GlobalPrivilege = "ATTACH POLICY" GlobalPrivilegeAudit GlobalPrivilege = "AUDIT" // | EXECUTE { ALERT | TASK } GlobalPrivilegeExecuteAlert GlobalPrivilege = "EXECUTE ALERT" GlobalPrivilegeExecuteTask GlobalPrivilege = "EXECUTE TASK" GlobalPrivilegeImportShare GlobalPrivilege = "IMPORT SHARE" // | MANAGE GRANTS GlobalPrivilegeManageGrants GlobalPrivilege = "MANAGE GRANTS" // | MANAGE WAREHOUSES GlobalPrivilegeManageWarehouses GlobalPrivilege = "MANAGE WAREHOUSES" // | MODIFY { LOG LEVEL | TRACE LEVEL | SESSION LOG LEVEL | SESSION TRACE LEVEL } GlobalPrivilegeModifyLogLevel GlobalPrivilege = "MODIFY LOG LEVEL" GlobalPrivilegeModifyTraceLevel GlobalPrivilege = "MODIFY TRACE LEVEL" GlobalPrivilegeModifySessionLogLevel GlobalPrivilege = "MODIFY SESSION LOG LEVEL" GlobalPrivilegeModifySessionTraceLevel GlobalPrivilege = "MODIFY SESSION TRACE LEVEL" // | MONITOR { EXECUTION | USAGE } GlobalPrivilegeMonitorExecution GlobalPrivilege = "MONITOR EXECUTION" GlobalPrivilegeMonitorUsage GlobalPrivilege = "MONITOR USAGE" // | OVERRIDE SHARE RESTRICTIONS | RESOLVE ALL GlobalPrivilegeResolveAll GlobalPrivilege = "RESOLVE ALL" )
func (GlobalPrivilege) String ¶ added in v0.68.0
func (p GlobalPrivilege) String() string
type Grant ¶ added in v0.65.0
type Grant struct { CreatedOn time.Time Privilege string GrantedOn ObjectType GrantOn ObjectType Name ObjectIdentifier GrantedTo ObjectType GrantTo ObjectType GranteeName AccountObjectIdentifier GrantOption bool GrantedBy AccountObjectIdentifier }
func (*Grant) ID ¶ added in v0.65.0
func (v *Grant) ID() ObjectIdentifier
type GrantDatabaseRoleRequest ¶ added in v0.70.0
type GrantDatabaseRoleRequest struct {
// contains filtered or unexported fields
}
func NewGrantDatabaseRoleRequest ¶ added in v0.70.0
func NewGrantDatabaseRoleRequest( name DatabaseObjectIdentifier, ) *GrantDatabaseRoleRequest
func (*GrantDatabaseRoleRequest) WithAccountRole ¶ added in v0.70.0
func (s *GrantDatabaseRoleRequest) WithAccountRole(accountRole AccountObjectIdentifier) *GrantDatabaseRoleRequest
func (*GrantDatabaseRoleRequest) WithDatabaseRole ¶ added in v0.70.0
func (s *GrantDatabaseRoleRequest) WithDatabaseRole(databaseRole DatabaseObjectIdentifier) *GrantDatabaseRoleRequest
type GrantDatabaseRoleToShareRequest ¶ added in v0.70.0
type GrantDatabaseRoleToShareRequest struct {
// contains filtered or unexported fields
}
func NewGrantDatabaseRoleToShareRequest ¶ added in v0.70.0
func NewGrantDatabaseRoleToShareRequest( name DatabaseObjectIdentifier, share AccountObjectIdentifier, ) *GrantDatabaseRoleToShareRequest
type GrantOnAccountObject ¶ added in v0.68.0
type GrantOnAccountObject struct { User *AccountObjectIdentifier `ddl:"identifier" sql:"USER"` ResourceMonitor *AccountObjectIdentifier `ddl:"identifier" sql:"RESOURCE MONITOR"` Warehouse *AccountObjectIdentifier `ddl:"identifier" sql:"WAREHOUSE"` Database *AccountObjectIdentifier `ddl:"identifier" sql:"DATABASE"` Integration *AccountObjectIdentifier `ddl:"identifier" sql:"INTEGRATION"` FailoverGroup *AccountObjectIdentifier `ddl:"identifier" sql:"FAILOVER GROUP"` ReplicationGroup *AccountObjectIdentifier `ddl:"identifier" sql:"REPLICATION GROUP"` ExternalVolume *AccountObjectIdentifier `ddl:"identifier" sql:"EXTERNAL VOLUME"` }
type GrantOnSchema ¶ added in v0.68.0
type GrantOnSchema struct { Schema *DatabaseObjectIdentifier `ddl:"identifier" sql:"SCHEMA"` AllSchemasInDatabase *AccountObjectIdentifier `ddl:"identifier" sql:"ALL SCHEMAS IN DATABASE"` FutureSchemasInDatabase *AccountObjectIdentifier `ddl:"identifier" sql:"FUTURE SCHEMAS IN DATABASE"` }
type GrantOnSchemaObject ¶ added in v0.68.0
type GrantOnSchemaObject struct { SchemaObject *Object `ddl:"-"` All *GrantOnSchemaObjectIn `ddl:"keyword" sql:"ALL"` Future *GrantOnSchemaObjectIn `ddl:"keyword" sql:"FUTURE"` }
type GrantOnSchemaObjectIn ¶ added in v0.68.0
type GrantOnSchemaObjectIn struct { PluralObjectType PluralObjectType `ddl:"keyword" sql:"ALL"` InDatabase *AccountObjectIdentifier `ddl:"identifier" sql:"IN DATABASE"` InSchema *DatabaseObjectIdentifier `ddl:"identifier" sql:"IN SCHEMA"` }
type GrantOwnershipOptions ¶ added in v0.72.0
type GrantOwnershipOptions struct { On OwnershipGrantOn `ddl:"keyword" sql:"ON"` To OwnershipGrantTo `ddl:"keyword" sql:"TO"` CurrentGrants *OwnershipCurrentGrants `ddl:"-"` // contains filtered or unexported fields }
GrantOwnershipOptions is based on https://docs.snowflake.com/en/sql-reference/sql/grant-ownership#syntax. Description is a bit misleading, ownership can be given not only to schema objects but also to account level objects.
type GrantPrivilegeToShareOn ¶ added in v0.65.0
type GrantPrivilegeToShareOn struct {}
type GrantPrivilegesToAccountRoleOptions ¶ added in v0.68.0
type GrantPrivilegesToAccountRoleOptions struct { WithGrantOption *bool `ddl:"keyword" sql:"WITH GRANT OPTION"` // contains filtered or unexported fields }
GrantPrivilegesToAccountRoleOptions is based on https://docs.snowflake.com/en/sql-reference/sql/grant-privilege#syntax.
type GrantPrivilegesToDatabaseRoleOptions ¶ added in v0.71.0
type GrantPrivilegesToDatabaseRoleOptions struct { WithGrantOption *bool `ddl:"keyword" sql:"WITH GRANT OPTION"` // contains filtered or unexported fields }
GrantPrivilegesToDatabaseRoleOptions is based on https://docs.snowflake.com/en/sql-reference/sql/grant-privilege#syntax.
type GrantRole ¶ added in v0.72.0
type GrantRole struct { // one of Role *AccountObjectIdentifier `ddl:"identifier" sql:"ROLE"` User *AccountObjectIdentifier `ddl:"identifier" sql:"USER"` }
type GrantRoleOptions ¶ added in v0.72.0
type GrantRoleOptions struct { Grant GrantRole `ddl:"keyword,no_parentheses" sql:"TO"` // contains filtered or unexported fields }
GrantRoleOptions based on https://docs.snowflake.com/en/sql-reference/sql/grant-role
type GrantRoleRequest ¶ added in v0.72.0
type GrantRoleRequest struct { Grant GrantRole // required // contains filtered or unexported fields }
func NewGrantRoleRequest ¶ added in v0.72.0
func NewGrantRoleRequest(name AccountObjectIdentifier, grant GrantRole) *GrantRoleRequest
type Grants ¶ added in v0.65.0
type Grants interface { GrantPrivilegesToAccountRole(ctx context.Context, privileges *AccountRoleGrantPrivileges, on *AccountRoleGrantOn, role AccountObjectIdentifier, opts *GrantPrivilegesToAccountRoleOptions) error RevokePrivilegesFromAccountRole(ctx context.Context, privileges *AccountRoleGrantPrivileges, on *AccountRoleGrantOn, role AccountObjectIdentifier, opts *RevokePrivilegesFromAccountRoleOptions) error GrantPrivilegesToDatabaseRole(ctx context.Context, privileges *DatabaseRoleGrantPrivileges, on *DatabaseRoleGrantOn, role DatabaseObjectIdentifier, opts *GrantPrivilegesToDatabaseRoleOptions) error RevokePrivilegesFromDatabaseRole(ctx context.Context, privileges *DatabaseRoleGrantPrivileges, on *DatabaseRoleGrantOn, role DatabaseObjectIdentifier, opts *RevokePrivilegesFromDatabaseRoleOptions) error GrantOwnership(ctx context.Context, on OwnershipGrantOn, to OwnershipGrantTo, opts *GrantOwnershipOptions) error Show(ctx context.Context, opts *ShowGrantOptions) ([]Grant, error) }
type IPRequest ¶ added in v0.72.0
type IPRequest struct {
IP string // required
}
func NewIPRequest ¶ added in v0.72.0
type Identifier ¶ added in v0.65.0
type Identifier interface {
Name() string
}
type In ¶
type In struct { Account *bool `ddl:"keyword" sql:"ACCOUNT"` Database AccountObjectIdentifier `ddl:"identifier" sql:"DATABASE"` Schema DatabaseObjectIdentifier `ddl:"identifier" sql:"SCHEMA"` }
type InlineForeignKey ¶ added in v0.72.0
type InlineForeignKey struct { TableName string `ddl:"keyword" sql:"REFERENCES"` ColumnName []string `ddl:"keyword,parentheses"` Match *MatchType `ddl:"keyword" sql:"MATCH"` On *ForeignKeyOnAction `ddl:"keyword" sql:"ON"` }
type InlineForeignKeyRequest ¶ added in v0.72.0
type InlineForeignKeyRequest struct { TableName string // required ColumnName []string Match *MatchType On *ForeignKeyOnAction }
func NewInlineForeignKeyRequest ¶ added in v0.72.0
func NewInlineForeignKeyRequest( tableName string, ) *InlineForeignKeyRequest
func (*InlineForeignKeyRequest) WithColumnName ¶ added in v0.72.0
func (s *InlineForeignKeyRequest) WithColumnName(columnName []string) *InlineForeignKeyRequest
func (*InlineForeignKeyRequest) WithMatch ¶ added in v0.72.0
func (s *InlineForeignKeyRequest) WithMatch(match *MatchType) *InlineForeignKeyRequest
func (*InlineForeignKeyRequest) WithOn ¶ added in v0.72.0
func (s *InlineForeignKeyRequest) WithOn(on *ForeignKeyOnAction) *InlineForeignKeyRequest
type IntErrType ¶ added in v0.75.0
type IntErrType string
const ( IntErrEqual IntErrType = "equal to" IntErrGreaterOrEqual IntErrType = "greater than or equal to" IntErrGreater IntErrType = "greater than" IntErrLessOrEqual IntErrType = "less than or equal to" IntErrLess IntErrType = "less than" )
type IntProperty ¶
type IntegrationType ¶ added in v0.65.0
type IntegrationType string
IntegrationType is the type of integration.
const ( IntegrationTypeSecurityIntegrations IntegrationType = "SECURITY INTEGRATIONS" IntegrationTypeAPIIntegrations IntegrationType = "API INTEGRATIONS" IntegrationTypeNotificationIntegrations IntegrationType = "NOTIFICATION INTEGRATIONS" )
type InternalDirectoryTableOptions ¶ added in v0.76.0
type InternalDirectoryTableOptionsRequest ¶ added in v0.76.0
func NewInternalDirectoryTableOptionsRequest ¶ added in v0.76.0
func NewInternalDirectoryTableOptionsRequest() *InternalDirectoryTableOptionsRequest
func (*InternalDirectoryTableOptionsRequest) WithEnable ¶ added in v0.76.0
func (s *InternalDirectoryTableOptionsRequest) WithEnable(Enable *bool) *InternalDirectoryTableOptionsRequest
func (*InternalDirectoryTableOptionsRequest) WithRefreshOnCreate ¶ added in v0.76.0
func (s *InternalDirectoryTableOptionsRequest) WithRefreshOnCreate(RefreshOnCreate *bool) *InternalDirectoryTableOptionsRequest
type InternalStageEncryption ¶ added in v0.76.0
type InternalStageEncryption struct {
Type *InternalStageEncryptionOption `ddl:"parameter,single_quotes" sql:"TYPE"`
}
type InternalStageEncryptionOption ¶ added in v0.76.0
type InternalStageEncryptionOption string
var ( InternalStageEncryptionFull InternalStageEncryptionOption = "SNOWFLAKE_FULL" InternalStageEncryptionSSE InternalStageEncryptionOption = "SNOWFLAKE_SSE" )
type InternalStageEncryptionRequest ¶ added in v0.76.0
type InternalStageEncryptionRequest struct {
Type *InternalStageEncryptionOption // required
}
func NewInternalStageEncryptionRequest ¶ added in v0.76.0
func NewInternalStageEncryptionRequest( Type *InternalStageEncryptionOption, ) *InternalStageEncryptionRequest
type JSONCompression ¶ added in v0.68.0
type JSONCompression string
var ( JSONCompressionAuto JSONCompression = "AUTO" JSONCompressionGzip JSONCompression = "GZIP" JSONCompressionBz2 JSONCompression = "BZ2" JSONCompressionBrotli JSONCompression = "BROTLI" JSONCompressionZstd JSONCompression = "ZSTD" JSONCompressionDeflate JSONCompression = "DEFLATE" JSONCompressionRawDeflate JSONCompression = "RAW_DEFLATE" JSONCompressionNone JSONCompression = "NONE" )
type LikeRequest ¶ added in v0.72.0
type LikeRequest struct {
// contains filtered or unexported fields
}
func NewLikeRequest ¶ added in v0.72.0
func NewLikeRequest(pattern string) *LikeRequest
type LimitFromRequest ¶ added in v0.72.0
type LimitFromRequest struct {
// contains filtered or unexported fields
}
func NewLimitFromRequest ¶ added in v0.72.0
func NewLimitFromRequest() *LimitFromRequest
func (*LimitFromRequest) WithFrom ¶ added in v0.72.0
func (s *LimitFromRequest) WithFrom(from *string) *LimitFromRequest
func (*LimitFromRequest) WithRows ¶ added in v0.72.0
func (s *LimitFromRequest) WithRows(rows *int) *LimitFromRequest
type MaskingPolicies ¶
type MaskingPolicies interface { Create(ctx context.Context, id SchemaObjectIdentifier, signature []TableColumnSignature, returns DataType, expression string, opts *CreateMaskingPolicyOptions) error Alter(ctx context.Context, id SchemaObjectIdentifier, opts *AlterMaskingPolicyOptions) error Drop(ctx context.Context, id SchemaObjectIdentifier) error Show(ctx context.Context, opts *ShowMaskingPolicyOptions) ([]MaskingPolicy, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*MaskingPolicy, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*MaskingPolicyDetails, error) }
type MaskingPolicy ¶
type MaskingPolicy struct { CreatedOn time.Time Name string DatabaseName string SchemaName string Kind string Owner string Comment string ExemptOtherPolicies bool }
MaskingPolicys is a user friendly result for a CREATE MASKING POLICY query.
func (*MaskingPolicy) ID ¶
func (v *MaskingPolicy) ID() SchemaObjectIdentifier
func (*MaskingPolicy) ObjectType ¶ added in v0.65.0
func (v *MaskingPolicy) ObjectType() ObjectType
type MaskingPolicyDetails ¶
type MaskingPolicyDetails struct { Name string Signature []TableColumnSignature ReturnType DataType Body string }
type MaskingPolicySet ¶
type MaskingPolicyUnset ¶
type MaskingPolicyUnset struct {
Comment *bool `ddl:"keyword" sql:"COMMENT"`
}
type NetworkPolicies ¶ added in v0.72.0
type NetworkPolicies interface { Create(ctx context.Context, request *CreateNetworkPolicyRequest) error Alter(ctx context.Context, request *AlterNetworkPolicyRequest) error Drop(ctx context.Context, request *DropNetworkPolicyRequest) error Show(ctx context.Context, request *ShowNetworkPolicyRequest) ([]NetworkPolicy, error) ShowByID(ctx context.Context, id AccountObjectIdentifier) (*NetworkPolicy, error) Describe(ctx context.Context, id AccountObjectIdentifier) ([]NetworkPolicyDescription, error) }
type NetworkPolicy ¶ added in v0.72.0
type NetworkPolicyDescription ¶ added in v0.72.0
type NetworkPolicySet ¶ added in v0.72.0
type NetworkPolicySetRequest ¶ added in v0.72.0
type NetworkPolicySetRequest struct { AllowedIpList []IPRequest BlockedIpList []IPRequest Comment *string }
func NewNetworkPolicySetRequest ¶ added in v0.72.0
func NewNetworkPolicySetRequest() *NetworkPolicySetRequest
func (*NetworkPolicySetRequest) WithAllowedIpList ¶ added in v0.72.0
func (s *NetworkPolicySetRequest) WithAllowedIpList(AllowedIpList []IPRequest) *NetworkPolicySetRequest
func (*NetworkPolicySetRequest) WithBlockedIpList ¶ added in v0.72.0
func (s *NetworkPolicySetRequest) WithBlockedIpList(BlockedIpList []IPRequest) *NetworkPolicySetRequest
func (*NetworkPolicySetRequest) WithComment ¶ added in v0.72.0
func (s *NetworkPolicySetRequest) WithComment(Comment *string) *NetworkPolicySetRequest
type NotifiedUser ¶ added in v0.69.0
type NotifiedUser struct {
Name string `ddl:"keyword,double_quotes"`
}
type NotifyUsers ¶ added in v0.69.0
type NotifyUsers struct {
Users []NotifiedUser `ddl:"list,parentheses,comma"`
}
type NullInputBehavior ¶ added in v0.79.0
type NullInputBehavior string
const ( NullInputBehaviorCalledOnNullInput NullInputBehavior = "CALLED ON NULL INPUT" NullInputBehaviorReturnNullInput NullInputBehavior = "RETURN NULL ON NULL INPUT" NullInputBehaviorStrict NullInputBehavior = "STRICT" )
func NullInputBehaviorPointer ¶ added in v0.79.0
func NullInputBehaviorPointer(v NullInputBehavior) *NullInputBehavior
type NullString ¶ added in v0.68.0
type NullString struct {
S string `ddl:"parameter,no_equals,single_quotes"`
}
type NullStringRequest ¶ added in v0.72.0
type NullStringRequest struct {
// contains filtered or unexported fields
}
func NewNullStringRequest ¶ added in v0.72.0
func NewNullStringRequest() *NullStringRequest
func (*NullStringRequest) WithStr ¶ added in v0.72.0
func (s *NullStringRequest) WithStr(str string) *NullStringRequest
type Object ¶ added in v0.65.0
type Object struct { ObjectType ObjectType `ddl:"keyword"` Name ObjectIdentifier `ddl:"identifier"` }
Object bundles together the object type and name. Its used for DDL statements.
type ObjectIdentifier ¶
type ObjectIdentifier interface { Identifier FullyQualifiedName() string }
func NewObjectIdentifierFromFullyQualifiedName ¶ added in v0.65.0
func NewObjectIdentifierFromFullyQualifiedName(fullyQualifiedName string) ObjectIdentifier
type ObjectParameter ¶ added in v0.65.0
type ObjectParameter string
const ( // Object Parameters ObjectParameterDataRetentionTimeInDays ObjectParameter = "DATA_RETENTION_TIME_IN_DAYS" ObjectParameterDefaultDDLCollation ObjectParameter = "DEFAULT_DDL_COLLATION" ObjectParameterLogLevel ObjectParameter = "LOG_LEVEL" ObjectParameterMaxConcurrencyLevel ObjectParameter = "MAX_CONCURRENCY_LEVEL" ObjectParameterMaxDataExtensionTimeInDays ObjectParameter = "MAX_DATA_EXTENSION_TIME_IN_DAYS" ObjectParameterPipeExecutionPaused ObjectParameter = "PIPE_EXECUTION_PAUSED" ObjectParameterPreventUnloadToInternalStages ObjectParameter = "PREVENT_UNLOAD_TO_INTERNAL_STAGES" // also an account param ObjectParameterStatementQueuedTimeoutInSeconds ObjectParameter = "STATEMENT_QUEUED_TIMEOUT_IN_SECONDS" ObjectParameterNetworkPolicy ObjectParameter = "NETWORK_POLICY" // also an account param ObjectParameterSuspendTaskAfterNumFailures ObjectParameter = "SUSPEND_TASK_AFTER_NUM_FAILURES" ObjectParameterTraceLevel ObjectParameter = "TRACE_LEVEL" ObjectParameterUserTaskManagedInitialWarehouseSize ObjectParameter = "USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE" ObjectParameterUserTaskTimeoutMs ObjectParameter = "USER_TASK_TIMEOUT_MS" // User Parameters ObjectParameterEnableUnredactedQuerySyntaxError ObjectParameter = "ENABLE_UNREDACTED_QUERY_SYNTAX_ERROR" )
type ObjectParameters ¶ added in v0.65.0
type ObjectParameters struct { DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` DefaultDDLCollation *string `ddl:"parameter,single_quotes" sql:"DEFAULT_DDL_COLLATION"` EnableUnredactedQuerySyntaxError *bool `ddl:"parameter" sql:"ENABLE_UNREDACTED_QUERY_SYNTAX_ERROR"` LogLevel *LogLevel `ddl:"parameter" sql:"LOG_LEVEL"` MaxConcurrencyLevel *int `ddl:"parameter" sql:"MAX_CONCURRENCY_LEVEL"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` PipeExecutionPaused *bool `ddl:"parameter" sql:"PIPE_EXECUTION_PAUSED"` PreventUnloadToInternalStages *bool `ddl:"parameter" sql:"PREVENT_UNLOAD_TO_INTERNAL_STAGES"` StatementQueuedTimeoutInSeconds *int `ddl:"parameter" sql:"STATEMENT_QUEUED_TIMEOUT_IN_SECONDS"` NetworkPolicy *string `ddl:"parameter,single_quotes" sql:"NETWORK_POLICY"` SuspendTaskAfterNumFailures *int `ddl:"parameter" sql:"SUSPEND_TASK_AFTER_NUM_FAILURES"` TraceLevel *TraceLevel `ddl:"parameter" sql:"TRACE_LEVEL"` UserTaskManagedInitialWarehouseSize *WarehouseSize `ddl:"parameter" sql:"USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE"` UserTaskTimeoutMs *int `ddl:"parameter" sql:"USER_TASK_TIMEOUT_MS"` }
ObjectParameters is based on https://docs.snowflake.com/en/sql-reference/parameters#object-parameters.
type ObjectParametersUnset ¶ added in v0.65.0
type ObjectParametersUnset struct { DataRetentionTimeInDays *bool `ddl:"keyword" sql:"DATA_RETENTION_TIME_IN_DAYS"` DefaultDDLCollation *bool `ddl:"keyword" sql:"DEFAULT_DDL_COLLATION"` LogLevel *bool `ddl:"keyword" sql:"LOG_LEVEL"` MaxConcurrencyLevel *bool `ddl:"keyword" sql:"MAX_CONCURRENCY_LEVEL"` MaxDataExtensionTimeInDays *bool `ddl:"keyword" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` PipeExecutionPaused *bool `ddl:"keyword" sql:"PIPE_EXECUTION_PAUSED"` PreventUnloadToInternalStages *bool `ddl:"keyword" sql:"PREVENT_UNLOAD_TO_INTERNAL_STAGES"` StatementQueuedTimeoutInSeconds *bool `ddl:"keyword" sql:"STATEMENT_QUEUED_TIMEOUT_IN_SECONDS"` NetworkPolicy *bool `ddl:"keyword,single_quotes" sql:"NETWORK_POLICY"` SuspendTaskAfterNumFailures *bool `ddl:"keyword" sql:"SUSPEND_TASK_AFTER_NUM_FAILURES"` TraceLevel *bool `ddl:"keyword" sql:"TRACE_LEVEL"` UserTaskManagedInitialWarehouseSize *bool `ddl:"keyword" sql:"USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE"` UserTaskTimeoutMs *bool `ddl:"keyword" sql:"USER_TASK_TIMEOUT_MS"` }
type ObjectPrivilege ¶ added in v0.68.0
type ObjectPrivilege string
const ( ObjectPrivilegeUsage ObjectPrivilege = "USAGE" ObjectPrivilegeSelect ObjectPrivilege = "SELECT" ObjectPrivilegeReferenceUsage ObjectPrivilege = "REFERENCE_USAGE" )
func (ObjectPrivilege) String ¶ added in v0.68.0
func (p ObjectPrivilege) String() string
type ObjectType ¶
type ObjectType string
ObjectType is the type of object.
const ( ObjectTypeAccount ObjectType = "ACCOUNT" ObjectTypeManagedAccount ObjectType = "MANAGED ACCOUNT" ObjectTypeUser ObjectType = "USER" ObjectTypeDatabaseRole ObjectType = "DATABASE ROLE" ObjectTypeRole ObjectType = "ROLE" ObjectTypeIntegration ObjectType = "INTEGRATION" ObjectTypeNetworkPolicy ObjectType = "NETWORK POLICY" ObjectTypePasswordPolicy ObjectType = "PASSWORD POLICY" ObjectTypeSessionPolicy ObjectType = "SESSION POLICY" ObjectTypeReplicationGroup ObjectType = "REPLICATION GROUP" ObjectTypeFailoverGroup ObjectType = "FAILOVER GROUP" ObjectTypeConnection ObjectType = "CONNECTION" ObjectTypeParameter ObjectType = "PARAMETER" ObjectTypeWarehouse ObjectType = "WAREHOUSE" ObjectTypeResourceMonitor ObjectType = "RESOURCE MONITOR" ObjectTypeDatabase ObjectType = "DATABASE" ObjectTypeSchema ObjectType = "SCHEMA" ObjectTypeTable ObjectType = "TABLE" ObjectTypeDynamicTable ObjectType = "DYNAMIC TABLE" ObjectTypeExternalTable ObjectType = "EXTERNAL TABLE" ObjectTypeEventTable ObjectType = "EVENT TABLE" ObjectTypeView ObjectType = "VIEW" ObjectTypeMaterializedView ObjectType = "MATERIALIZED VIEW" ObjectTypeSequence ObjectType = "SEQUENCE" ObjectTypeFunction ObjectType = "FUNCTION" ObjectTypeExternalFunction ObjectType = "EXTERNAL FUNCTION" ObjectTypeProcedure ObjectType = "PROCEDURE" ObjectTypeStream ObjectType = "STREAM" ObjectTypeTask ObjectType = "TASK" ObjectTypeMaskingPolicy ObjectType = "MASKING POLICY" ObjectTypeRowAccessPolicy ObjectType = "ROW ACCESS POLICY" ObjectTypeTag ObjectType = "TAG" ObjectTypeSecret ObjectType = "SECRET" ObjectTypeStage ObjectType = "STAGE" ObjectTypeFileFormat ObjectType = "FILE FORMAT" ObjectTypePipe ObjectType = "PIPE" ObjectTypeAlert ObjectType = "ALERT" ObjectTypeApplication ObjectType = "APPLICATION" ObjectTypeApplicationPackage ObjectType = "APPLICATION PACKAGE" ObjectTypeApplicationRole ObjectType = "APPLICATION ROLE" ObjectTypeStreamlit ObjectType = "STREAMLIT" ObjectTypeColumn ObjectType = "COLUMN" ObjectTypeIcebergTable ObjectType = "ICEBERG TABLE" ObjectTypeExternalVolume ObjectType = "EXTERNAL VOLUME" )
func (ObjectType) GetObjectIdentifier ¶ added in v0.65.0
func (o ObjectType) GetObjectIdentifier(fullyQualifiedName string) ObjectIdentifier
GetObjectIdentifier returns the ObjectIdentifier for the ObjectType and fully qualified name.
func (ObjectType) Plural ¶ added in v0.65.0
func (o ObjectType) Plural() PluralObjectType
func (ObjectType) String ¶
func (o ObjectType) String() string
type OnStream ¶ added in v0.74.0
type OnStream struct { At *bool `ddl:"keyword" sql:"AT"` Before *bool `ddl:"keyword" sql:"BEFORE"` Statement OnStreamStatement `ddl:"list,parentheses"` }
type OnStreamRequest ¶ added in v0.74.0
type OnStreamRequest struct { At *bool Before *bool Statement OnStreamStatementRequest }
func NewOnStreamRequest ¶ added in v0.74.0
func NewOnStreamRequest() *OnStreamRequest
func (*OnStreamRequest) WithAt ¶ added in v0.74.0
func (s *OnStreamRequest) WithAt(At *bool) *OnStreamRequest
func (*OnStreamRequest) WithBefore ¶ added in v0.74.0
func (s *OnStreamRequest) WithBefore(Before *bool) *OnStreamRequest
func (*OnStreamRequest) WithStatement ¶ added in v0.74.0
func (s *OnStreamRequest) WithStatement(Statement OnStreamStatementRequest) *OnStreamRequest
type OnStreamStatement ¶ added in v0.74.0
type OnStreamStatementRequest ¶ added in v0.74.0
type OnStreamStatementRequest struct { Timestamp *string Offset *string Statement *string Stream *string }
func NewOnStreamStatementRequest ¶ added in v0.74.0
func NewOnStreamStatementRequest() *OnStreamStatementRequest
func (*OnStreamStatementRequest) WithOffset ¶ added in v0.74.0
func (s *OnStreamStatementRequest) WithOffset(Offset *string) *OnStreamStatementRequest
func (*OnStreamStatementRequest) WithStatement ¶ added in v0.74.0
func (s *OnStreamStatementRequest) WithStatement(Statement *string) *OnStreamStatementRequest
func (*OnStreamStatementRequest) WithStream ¶ added in v0.74.0
func (s *OnStreamStatementRequest) WithStream(Stream *string) *OnStreamStatementRequest
func (*OnStreamStatementRequest) WithTimestamp ¶ added in v0.74.0
func (s *OnStreamStatementRequest) WithTimestamp(Timestamp *string) *OnStreamStatementRequest
type OnTable ¶ added in v0.65.0
type OnTable struct { Name SchemaObjectIdentifier `ddl:"identifier" sql:"TABLE"` AllInSchema DatabaseObjectIdentifier `ddl:"identifier" sql:"ALL TABLES IN SCHEMA"` }
type OnView ¶ added in v0.65.0
type OnView struct { Name SchemaObjectIdentifier `ddl:"identifier" sql:"VIEW"` AllInSchema DatabaseObjectIdentifier `ddl:"identifier" sql:"ALL VIEWS IN SCHEMA"` }
type OutOfLineConstraint ¶ added in v0.78.0
type OutOfLineConstraint struct { Name string `ddl:"parameter,no_equals" sql:"CONSTRAINT"` Type ColumnConstraintType `ddl:"keyword"` Columns []string `ddl:"keyword,parentheses"` ForeignKey *OutOfLineForeignKey `ddl:"keyword"` // optional Enforced *bool `ddl:"keyword" sql:"ENFORCED"` NotEnforced *bool `ddl:"keyword" sql:"NOT ENFORCED"` Deferrable *bool `ddl:"keyword" sql:"DEFERRABLE"` NotDeferrable *bool `ddl:"keyword" sql:"NOT DEFERRABLE"` InitiallyDeferred *bool `ddl:"keyword" sql:"INITIALLY DEFERRED"` InitiallyImmediate *bool `ddl:"keyword" sql:"INITIALLY IMMEDIATE"` Enable *bool `ddl:"keyword" sql:"ENABLE"` Disable *bool `ddl:"keyword" sql:"DISABLE"` Validate *bool `ddl:"keyword" sql:"VALIDATE"` NoValidate *bool `ddl:"keyword" sql:"NOVALIDATE"` Rely *bool `ddl:"keyword" sql:"RELY"` NoRely *bool `ddl:"keyword" sql:"NORELY"` }
OutOfLineConstraint is based on https://docs.snowflake.com/en/sql-reference/sql/create-table-constraint#out-of-line-unique-primary-foreign-key.
type OutOfLineConstraintRequest ¶ added in v0.78.0
type OutOfLineConstraintRequest struct { Name string // required Type ColumnConstraintType // required Columns []string ForeignKey *OutOfLineForeignKeyRequest // Optional Enforced *bool NotEnforced *bool Deferrable *bool NotDeferrable *bool InitiallyDeferred *bool InitiallyImmediate *bool Enable *bool Disable *bool Validate *bool NoValidate *bool Rely *bool NoRely *bool }
func NewOutOfLineConstraintRequest ¶ added in v0.78.0
func NewOutOfLineConstraintRequest( name string, constraintType ColumnConstraintType, ) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithColumns ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithColumns(columns []string) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithDeferrable ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithDeferrable(deferrable *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithDisable ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithDisable(disable *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithEnable ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithEnable(enable *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithEnforced ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithEnforced(enforced *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithForeignKey ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithForeignKey(foreignKey *OutOfLineForeignKeyRequest) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithInitiallyDeferred ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithInitiallyDeferred(initiallyDeferred *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithInitiallyImmediate ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithInitiallyImmediate(initiallyImmediate *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithNoRely ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithNoRely(noRely *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithNoValidate ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithNoValidate(noValidate *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithNotDeferrable ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithNotDeferrable(notDeferrable *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithNotEnforced ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithNotEnforced(notEnforced *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithRely ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithRely(rely *bool) *OutOfLineConstraintRequest
func (*OutOfLineConstraintRequest) WithValidate ¶ added in v0.78.0
func (s *OutOfLineConstraintRequest) WithValidate(validate *bool) *OutOfLineConstraintRequest
type OutOfLineForeignKey ¶ added in v0.78.0
type OutOfLineForeignKey struct { TableName SchemaObjectIdentifier `ddl:"identifier"` ColumnNames []string `ddl:"parameter,no_equals,parentheses"` Match *MatchType `ddl:"parameter,no_equals" sql:"MATCH"` On *ForeignKeyOnAction `ddl:"keyword"` // contains filtered or unexported fields }
type OutOfLineForeignKeyRequest ¶ added in v0.78.0
type OutOfLineForeignKeyRequest struct { TableName SchemaObjectIdentifier // required ColumnNames []string // required Match *MatchType On *ForeignKeyOnAction }
func NewOutOfLineForeignKeyRequest ¶ added in v0.78.0
func NewOutOfLineForeignKeyRequest( tableName SchemaObjectIdentifier, columnNames []string, ) *OutOfLineForeignKeyRequest
func (*OutOfLineForeignKeyRequest) WithMatch ¶ added in v0.78.0
func (s *OutOfLineForeignKeyRequest) WithMatch(match *MatchType) *OutOfLineForeignKeyRequest
func (*OutOfLineForeignKeyRequest) WithOn ¶ added in v0.78.0
func (s *OutOfLineForeignKeyRequest) WithOn(on *ForeignKeyOnAction) *OutOfLineForeignKeyRequest
type OwnershipCurrentGrants ¶ added in v0.72.0
type OwnershipCurrentGrants struct { OutboundPrivileges OwnershipCurrentGrantsOutboundPrivileges `ddl:"keyword"` // contains filtered or unexported fields }
type OwnershipCurrentGrantsOutboundPrivileges ¶ added in v0.72.0
type OwnershipCurrentGrantsOutboundPrivileges string
const ( Revoke OwnershipCurrentGrantsOutboundPrivileges = "REVOKE" Copy OwnershipCurrentGrantsOutboundPrivileges = "COPY" )
type OwnershipGrantOn ¶ added in v0.72.0
type OwnershipGrantOn struct { // One of Object *Object `ddl:"-"` All *GrantOnSchemaObjectIn `ddl:"keyword" sql:"ALL"` Future *GrantOnSchemaObjectIn `ddl:"keyword" sql:"FUTURE"` }
type OwnershipGrantTo ¶ added in v0.72.0
type OwnershipGrantTo struct { // One of DatabaseRoleName *DatabaseObjectIdentifier `ddl:"identifier" sql:"DATABASE ROLE"` AccountRoleName *AccountObjectIdentifier `ddl:"identifier" sql:"ROLE"` }
type Parameter ¶ added in v0.65.0
type Parameter struct { Key string Value string Default string Level ParameterType Description string }
type ParameterType ¶ added in v0.65.0
type ParameterType string
const ( ParameterTypeAccount ParameterType = "ACCOUNT" ParameterTypeUser ParameterType = "USER" ParameterTypeSession ParameterType = "SESSION" ParameterTypeObject ParameterType = "OBJECT" )
type Parameters ¶ added in v0.71.0
type Parameters interface { SetAccountParameter(ctx context.Context, parameter AccountParameter, value string) error SetSessionParameterOnAccount(ctx context.Context, parameter SessionParameter, value string) error SetSessionParameterOnUser(ctx context.Context, userID AccountObjectIdentifier, parameter SessionParameter, value string) error SetObjectParameterOnAccount(ctx context.Context, parameter ObjectParameter, value string) error SetObjectParameterOnObject(ctx context.Context, object Object, parameter ObjectParameter, value string) error ShowParameters(ctx context.Context, opts *ShowParametersOptions) ([]*Parameter, error) ShowAccountParameter(ctx context.Context, parameter AccountParameter) (*Parameter, error) ShowSessionParameter(ctx context.Context, parameter SessionParameter) (*Parameter, error) ShowUserParameter(ctx context.Context, parameter UserParameter, user AccountObjectIdentifier) (*Parameter, error) ShowObjectParameter(ctx context.Context, parameter ObjectParameter, object Object) (*Parameter, error) }
type ParametersIn ¶ added in v0.65.0
type ParametersIn struct { Session *bool `ddl:"keyword" sql:"SESSION"` Account *bool `ddl:"keyword" sql:"ACCOUNT"` User AccountObjectIdentifier `ddl:"identifier" sql:"USER"` Warehouse AccountObjectIdentifier `ddl:"identifier" sql:"WAREHOUSE"` Database AccountObjectIdentifier `ddl:"identifier" sql:"DATABASE"` Schema DatabaseObjectIdentifier `ddl:"identifier" sql:"SCHEMA"` Task SchemaObjectIdentifier `ddl:"identifier" sql:"TASK"` Table SchemaObjectIdentifier `ddl:"identifier" sql:"TABLE"` }
type ParquetCompression ¶ added in v0.68.0
type ParquetCompression string
var ( ParquetCompressionAuto ParquetCompression = "AUTO" ParquetCompressionLzo ParquetCompression = "LZO" ParquetCompressionSnappy ParquetCompression = "SNAPPY" ParquetCompressionNone ParquetCompression = "NONE" )
type PartitionRequest ¶ added in v0.72.0
type PartitionRequest struct {
// contains filtered or unexported fields
}
func NewPartitionRequest ¶ added in v0.72.0
func NewPartitionRequest( columnName string, value string, ) *PartitionRequest
type PasswordPolicies ¶
type PasswordPolicies interface { Create(ctx context.Context, id SchemaObjectIdentifier, opts *CreatePasswordPolicyOptions) error Alter(ctx context.Context, id SchemaObjectIdentifier, opts *AlterPasswordPolicyOptions) error Drop(ctx context.Context, id SchemaObjectIdentifier, opts *DropPasswordPolicyOptions) error Show(ctx context.Context, opts *ShowPasswordPolicyOptions) ([]PasswordPolicy, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*PasswordPolicy, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*PasswordPolicyDetails, error) }
type PasswordPolicy ¶
type PasswordPolicy struct { CreatedOn time.Time Name string DatabaseName string SchemaName string Kind string Owner string Comment string }
PasswordPolicy is a user-friendly result for a CREATE PASSWORD POLICY query.
func (*PasswordPolicy) ID ¶
func (v *PasswordPolicy) ID() SchemaObjectIdentifier
func (*PasswordPolicy) ObjectType ¶ added in v0.65.0
func (v *PasswordPolicy) ObjectType() ObjectType
type PasswordPolicyDetails ¶
type PasswordPolicyDetails struct { Name *StringProperty Owner *StringProperty Comment *StringProperty PasswordMinLength *IntProperty PasswordMaxLength *IntProperty PasswordMinUpperCaseChars *IntProperty PasswordMinLowerCaseChars *IntProperty PasswordMinNumericChars *IntProperty PasswordMinSpecialChars *IntProperty PasswordMinAgeDays *IntProperty PasswordMaxAgeDays *IntProperty PasswordMaxRetries *IntProperty PasswordLockoutTimeMins *IntProperty PasswordHistory *IntProperty }
type PasswordPolicySet ¶
type PasswordPolicySet struct { PasswordMinLength *int `ddl:"parameter" sql:"PASSWORD_MIN_LENGTH"` PasswordMaxLength *int `ddl:"parameter" sql:"PASSWORD_MAX_LENGTH"` PasswordMinUpperCaseChars *int `ddl:"parameter" sql:"PASSWORD_MIN_UPPER_CASE_CHARS"` PasswordMinLowerCaseChars *int `ddl:"parameter" sql:"PASSWORD_MIN_LOWER_CASE_CHARS"` PasswordMinNumericChars *int `ddl:"parameter" sql:"PASSWORD_MIN_NUMERIC_CHARS"` PasswordMinSpecialChars *int `ddl:"parameter" sql:"PASSWORD_MIN_SPECIAL_CHARS"` PasswordMinAgeDays *int `ddl:"parameter" sql:"PASSWORD_MIN_AGE_DAYS"` PasswordMaxAgeDays *int `ddl:"parameter" sql:"PASSWORD_MAX_AGE_DAYS"` PasswordMaxRetries *int `ddl:"parameter" sql:"PASSWORD_MAX_RETRIES"` PasswordLockoutTimeMins *int `ddl:"parameter" sql:"PASSWORD_LOCKOUT_TIME_MINS"` PasswordHistory *int `ddl:"parameter" sql:"PASSWORD_HISTORY"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type PasswordPolicyUnset ¶
type PasswordPolicyUnset struct { PasswordMinLength *bool `ddl:"keyword" sql:"PASSWORD_MIN_LENGTH"` PasswordMaxLength *bool `ddl:"keyword" sql:"PASSWORD_MAX_LENGTH"` PasswordMinUpperCaseChars *bool `ddl:"keyword" sql:"PASSWORD_MIN_UPPER_CASE_CHARS"` PasswordMinLowerCaseChars *bool `ddl:"keyword" sql:"PASSWORD_MIN_LOWER_CASE_CHARS"` PasswordMinNumericChars *bool `ddl:"keyword" sql:"PASSWORD_MIN_NUMERIC_CHARS"` PasswordMinSpecialChars *bool `ddl:"keyword" sql:"PASSWORD_MIN_SPECIAL_CHARS"` PasswordMinAgeDays *bool `ddl:"keyword" sql:"PASSWORD_MIN_AGE_DAYS"` PasswordMaxAgeDays *bool `ddl:"keyword" sql:"PASSWORD_MAX_AGE_DAYS"` PasswordMaxRetries *bool `ddl:"keyword" sql:"PASSWORD_MAX_RETRIES"` PasswordLockoutTimeMins *bool `ddl:"keyword" sql:"PASSWORD_LOCKOUT_TIME_MINS"` PasswordHistory *bool `ddl:"keyword" sql:"PASSWORD_HISTORY"` Comment *bool `ddl:"keyword" sql:"COMMENT"` }
type Pipe ¶ added in v0.70.0
type Pipe struct { CreatedOn string Name string DatabaseName string SchemaName string Definition string Owner string NotificationChannel string Comment string Integration string Pattern string ErrorIntegration string OwnerRoleType string InvalidReason string }
Pipe is a user-friendly result for a SHOW PIPES and DESCRIBE PIPE queries.
Based on https://docs.snowflake.com/en/sql-reference/sql/show-pipes#output and https://docs.snowflake.com/en/sql-reference/sql/desc-pipe#output.
func (*Pipe) ID ¶ added in v0.70.0
func (v *Pipe) ID() SchemaObjectIdentifier
func (*Pipe) ObjectType ¶ added in v0.70.0
func (v *Pipe) ObjectType() ObjectType
type PipeRefresh ¶ added in v0.70.0
type Pipes ¶ added in v0.70.0
type Pipes interface { Create(ctx context.Context, id SchemaObjectIdentifier, copyStatement string, opts *CreatePipeOptions) error Alter(ctx context.Context, id SchemaObjectIdentifier, opts *AlterPipeOptions) error Drop(ctx context.Context, id SchemaObjectIdentifier) error Show(ctx context.Context, opts *ShowPipeOptions) ([]Pipe, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*Pipe, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*Pipe, error) }
type PluralObjectType ¶ added in v0.65.0
type PluralObjectType string
const ( PluralObjectTypeAccounts PluralObjectType = "ACCOUNTS" PluralObjectTypeManagedAccounts PluralObjectType = "MANAGED ACCOUNTS" PluralObjectTypeUsers PluralObjectType = "USERS" PluralObjectTypeDatabaseRoles PluralObjectType = "DATABASE ROLES" PluralObjectTypeRoles PluralObjectType = "ROLES" PluralObjectTypeIntegrations PluralObjectType = "INTEGRATIONS" PluralObjectTypeNetworkPolicies PluralObjectType = "NETWORK POLICIES" PluralObjectTypePasswordPolicies PluralObjectType = "PASSWORD POLICIES" PluralObjectTypeSessionPolicies PluralObjectType = "SESSION POLICIES" PluralObjectTypeReplicationGroups PluralObjectType = "REPLICATION GROUPS" PluralObjectTypeFailoverGroups PluralObjectType = "FAILOVER GROUPS" PluralObjectTypeConnections PluralObjectType = "CONNECTIONS" PluralObjectTypeParameters PluralObjectType = "PARAMETERS" PluralObjectTypeWarehouses PluralObjectType = "WAREHOUSES" PluralObjectTypeResourceMonitors PluralObjectType = "RESOURCE MONITORS" PluralObjectTypeDatabases PluralObjectType = "DATABASES" PluralObjectTypeSchemas PluralObjectType = "SCHEMAS" PluralObjectTypeTables PluralObjectType = "TABLES" PluralObjectTypeDynamicTables PluralObjectType = "DYNAMIC TABLES" PluralObjectTypeExternalTables PluralObjectType = "EXTERNAL TABLES" PluralObjectTypeEventTables PluralObjectType = "EVENT TABLES" PluralObjectTypeViews PluralObjectType = "VIEWS" PluralObjectTypeMaterializedViews PluralObjectType = "MATERIALIZED VIEWS" PluralObjectTypeSequences PluralObjectType = "SEQUENCES" PluralObjectTypeFunctions PluralObjectType = "FUNCTIONS" PluralObjectTypeExternalFunctions PluralObjectType = "EXTERNAL FUNCTIONS" PluralObjectTypeProcedures PluralObjectType = "PROCEDURES" PluralObjectTypeStreams PluralObjectType = "STREAMS" PluralObjectTypeTasks PluralObjectType = "TASKS" PluralObjectTypeMaskingPolicies PluralObjectType = "MASKING POLICIES" PluralObjectTypeRowAccessPolicies PluralObjectType = "ROW ACCESS POLICIES" PluralObjectTypeTags PluralObjectType = "TAGS" PluralObjectTypeSecrets PluralObjectType = "SECRETS" PluralObjectTypeStages PluralObjectType = "STAGES" PluralObjectTypeFileFormats PluralObjectType = "FILE FORMATS" PluralObjectTypePipes PluralObjectType = "PIPES" PluralObjectTypeAlerts PluralObjectType = "ALERTS" PluralObjectTypeApplications PluralObjectType = "APPLICATIONS" PluralObjectTypeApplicationPackages PluralObjectType = "APPLICATION PACKAGES" PluralObjectTypeApplicationRoles PluralObjectType = "APPLICATION ROLES" PluralObjectTypeStreamlits PluralObjectType = "STREAMLITS" PluralObjectTypeIcebergTables PluralObjectType = "ICEBERG TABLES" PluralObjectTypeExternalVolumes PluralObjectType = "EXTERNAL VOLUMES" )
func (PluralObjectType) Singular ¶ added in v0.65.0
func (p PluralObjectType) Singular() ObjectType
func (PluralObjectType) String ¶ added in v0.65.0
func (p PluralObjectType) String() string
type ProcedureArgument ¶ added in v0.79.0
type ProcedureArgumentRequest ¶ added in v0.79.0
type ProcedureArgumentRequest struct { ArgName string // required ArgDataType DataType // required DefaultValue *string }
func NewProcedureArgumentRequest ¶ added in v0.79.0
func NewProcedureArgumentRequest( ArgName string, ArgDataType DataType, ) *ProcedureArgumentRequest
func (*ProcedureArgumentRequest) WithDefaultValue ¶ added in v0.79.0
func (s *ProcedureArgumentRequest) WithDefaultValue(DefaultValue *string) *ProcedureArgumentRequest
type ProcedureColumn ¶ added in v0.79.0
type ProcedureColumnRequest ¶ added in v0.79.0
type ProcedureColumnRequest struct { ColumnName string // required ColumnDataType DataType // required }
func NewProcedureColumnRequest ¶ added in v0.79.0
func NewProcedureColumnRequest( ColumnName string, ColumnDataType DataType, ) *ProcedureColumnRequest
type ProcedureDetail ¶ added in v0.79.0
type ProcedureImport ¶ added in v0.79.0
type ProcedureImport struct {
Import string `ddl:"keyword,single_quotes"`
}
type ProcedureImportRequest ¶ added in v0.79.0
type ProcedureImportRequest struct {
Import string // required
}
func NewProcedureImportRequest ¶ added in v0.79.0
func NewProcedureImportRequest( Import string, ) *ProcedureImportRequest
type ProcedurePackage ¶ added in v0.79.0
type ProcedurePackage struct {
Package string `ddl:"keyword,single_quotes"`
}
type ProcedurePackageRequest ¶ added in v0.79.0
type ProcedurePackageRequest struct {
Package string // required
}
func NewProcedurePackageRequest ¶ added in v0.79.0
func NewProcedurePackageRequest( Package string, ) *ProcedurePackageRequest
type ProcedureReturns ¶ added in v0.79.0
type ProcedureReturns struct { ResultDataType *ProcedureReturnsResultDataType `ddl:"keyword"` Table *ProcedureReturnsTable `ddl:"keyword" sql:"TABLE"` }
type ProcedureReturnsRequest ¶ added in v0.79.0
type ProcedureReturnsRequest struct { ResultDataType *ProcedureReturnsResultDataTypeRequest Table *ProcedureReturnsTableRequest }
func NewProcedureReturnsRequest ¶ added in v0.79.0
func NewProcedureReturnsRequest() *ProcedureReturnsRequest
func (*ProcedureReturnsRequest) WithResultDataType ¶ added in v0.79.0
func (s *ProcedureReturnsRequest) WithResultDataType(ResultDataType *ProcedureReturnsResultDataTypeRequest) *ProcedureReturnsRequest
func (*ProcedureReturnsRequest) WithTable ¶ added in v0.79.0
func (s *ProcedureReturnsRequest) WithTable(Table *ProcedureReturnsTableRequest) *ProcedureReturnsRequest
type ProcedureReturnsResultDataType ¶ added in v0.79.0
type ProcedureReturnsResultDataTypeRequest ¶ added in v0.79.0
type ProcedureReturnsResultDataTypeRequest struct { ResultDataType DataType // required Null *bool NotNull *bool }
func NewProcedureReturnsResultDataTypeRequest ¶ added in v0.79.0
func NewProcedureReturnsResultDataTypeRequest( ResultDataType DataType, ) *ProcedureReturnsResultDataTypeRequest
func (*ProcedureReturnsResultDataTypeRequest) WithNotNull ¶ added in v0.79.0
func (s *ProcedureReturnsResultDataTypeRequest) WithNotNull(NotNull *bool) *ProcedureReturnsResultDataTypeRequest
func (*ProcedureReturnsResultDataTypeRequest) WithNull ¶ added in v0.79.0
func (s *ProcedureReturnsResultDataTypeRequest) WithNull(Null *bool) *ProcedureReturnsResultDataTypeRequest
type ProcedureReturnsTable ¶ added in v0.79.0
type ProcedureReturnsTable struct {
Columns []ProcedureColumn `ddl:"list,must_parentheses"`
}
type ProcedureReturnsTableRequest ¶ added in v0.79.0
type ProcedureReturnsTableRequest struct {
Columns []ProcedureColumnRequest
}
func NewProcedureReturnsTableRequest ¶ added in v0.79.0
func NewProcedureReturnsTableRequest() *ProcedureReturnsTableRequest
func (*ProcedureReturnsTableRequest) WithColumns ¶ added in v0.79.0
func (s *ProcedureReturnsTableRequest) WithColumns(Columns []ProcedureColumnRequest) *ProcedureReturnsTableRequest
type ProcedureSQLReturns ¶ added in v0.79.0
type ProcedureSQLReturns struct { ResultDataType *ProcedureReturnsResultDataType `ddl:"keyword"` Table *ProcedureReturnsTable `ddl:"keyword" sql:"TABLE"` NotNull *bool `ddl:"keyword" sql:"NOT NULL"` }
type ProcedureSQLReturnsRequest ¶ added in v0.79.0
type ProcedureSQLReturnsRequest struct { ResultDataType *ProcedureReturnsResultDataTypeRequest Table *ProcedureReturnsTableRequest NotNull *bool }
func NewProcedureSQLReturnsRequest ¶ added in v0.79.0
func NewProcedureSQLReturnsRequest() *ProcedureSQLReturnsRequest
func (*ProcedureSQLReturnsRequest) WithNotNull ¶ added in v0.79.0
func (s *ProcedureSQLReturnsRequest) WithNotNull(NotNull *bool) *ProcedureSQLReturnsRequest
func (*ProcedureSQLReturnsRequest) WithResultDataType ¶ added in v0.79.0
func (s *ProcedureSQLReturnsRequest) WithResultDataType(ResultDataType *ProcedureReturnsResultDataTypeRequest) *ProcedureSQLReturnsRequest
func (*ProcedureSQLReturnsRequest) WithTable ¶ added in v0.79.0
func (s *ProcedureSQLReturnsRequest) WithTable(Table *ProcedureReturnsTableRequest) *ProcedureSQLReturnsRequest
type Procedures ¶ added in v0.79.0
type Procedures interface { CreateForJava(ctx context.Context, request *CreateForJavaProcedureRequest) error CreateForJavaScript(ctx context.Context, request *CreateForJavaScriptProcedureRequest) error CreateForPython(ctx context.Context, request *CreateForPythonProcedureRequest) error CreateForScala(ctx context.Context, request *CreateForScalaProcedureRequest) error CreateForSQL(ctx context.Context, request *CreateForSQLProcedureRequest) error Alter(ctx context.Context, request *AlterProcedureRequest) error Drop(ctx context.Context, request *DropProcedureRequest) error Show(ctx context.Context, request *ShowProcedureRequest) ([]Procedure, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*Procedure, error) Describe(ctx context.Context, request *DescribeProcedureRequest) ([]ProcedureDetail, error) }
type ReclusterState ¶ added in v0.78.0
type ReclusterState string
const ( ReclusterStateResume ReclusterState = "RESUME" ReclusterStateSuspend ReclusterState = "SUSPEND" )
type RefreshExternalTable ¶ added in v0.72.0
type RefreshExternalTable struct {
Path string `ddl:"parameter,no_equals,single_quotes"`
}
type RefreshExternalTableRequest ¶ added in v0.72.0
type RefreshExternalTableRequest struct {
// contains filtered or unexported fields
}
func NewRefreshExternalTableRequest ¶ added in v0.72.0
func NewRefreshExternalTableRequest( path string, ) *RefreshExternalTableRequest
type RemoveDelegatedAuthorization ¶ added in v0.70.0
type RemoveDelegatedAuthorization struct { // one of Role *string `ddl:"parameter,no_equals" sql:"REMOVE DELEGATED AUTHORIZATION OF ROLE"` Authorizations *bool `ddl:"parameter,no_equals" sql:"REMOVE DELEGATED AUTHORIZATIONS"` Integration string `ddl:"parameter,no_equals" sql:"FROM SECURITY INTEGRATION"` }
type ReplicationAccount ¶ added in v0.65.0
type ReplicationAccount struct { SnowflakeRegion string `db:"snowflake_region"` CreatedOn time.Time `db:"created_on"` AccountName string `db:"account_name"` AccountLocator string `db:"account_locator"` Comment string `db:"comment"` OrganizationName string `db:"organization_name"` IsOrgAdmin bool `db:"is_org_admin"` }
func (*ReplicationAccount) ID ¶ added in v0.65.0
func (v *ReplicationAccount) ID() AccountIdentifier
type ReplicationFunctions ¶ added in v0.65.0
type ReplicationFunctions interface { ShowReplicationAccounts(ctx context.Context) ([]*ReplicationAccount, error) // todo: ShowReplicationDatabases(ctx context.Context, opts *ShowReplicationDatabasesOptions) ([]*ReplicationDatabase, error) ShowRegions(ctx context.Context, opts *ShowRegionsOptions) ([]*Region, error) }
type ResourceMonitor ¶ added in v0.65.0
type ResourceMonitor struct { Name string CreditQuota float64 UsedCredits float64 RemainingCredits float64 Frequency Frequency StartTime string EndTime string SuspendAt *int SuspendImmediateAt *int NotifyTriggers []int Level ResourceMonitorLevel Comment string NotifyUsers []string }
func (*ResourceMonitor) ID ¶ added in v0.65.0
func (v *ResourceMonitor) ID() AccountObjectIdentifier
func (*ResourceMonitor) ObjectType ¶ added in v0.65.0
func (v *ResourceMonitor) ObjectType() ObjectType
type ResourceMonitorLevel ¶ added in v0.69.0
type ResourceMonitorLevel int
type ResourceMonitorSet ¶ added in v0.69.0
type ResourceMonitorSet struct { // at least one CreditQuota *int `ddl:"parameter,equals" sql:"CREDIT_QUOTA"` Frequency *Frequency `ddl:"parameter,equals" sql:"FREQUENCY"` StartTimestamp *string `ddl:"parameter,equals,single_quotes" sql:"START_TIMESTAMP"` EndTimestamp *string `ddl:"parameter,equals,single_quotes" sql:"END_TIMESTAMP"` }
type ResourceMonitorWith ¶ added in v0.69.0
type ResourceMonitorWith struct { CreditQuota *int `ddl:"parameter,equals" sql:"CREDIT_QUOTA"` Frequency *Frequency `ddl:"parameter,equals" sql:"FREQUENCY"` StartTimestamp *string `ddl:"parameter,equals,single_quotes" sql:"START_TIMESTAMP"` EndTimestamp *string `ddl:"parameter,equals,single_quotes" sql:"END_TIMESTAMP"` NotifyUsers *NotifyUsers `ddl:"parameter,equals" sql:"NOTIFY_USERS"` Triggers []TriggerDefinition `ddl:"keyword,no_comma" sql:"TRIGGERS"` }
type ResourceMonitors ¶ added in v0.65.0
type ResourceMonitors interface { Create(ctx context.Context, id AccountObjectIdentifier, opts *CreateResourceMonitorOptions) error Alter(ctx context.Context, id AccountObjectIdentifier, opts *AlterResourceMonitorOptions) error Drop(ctx context.Context, id AccountObjectIdentifier) error Show(ctx context.Context, opts *ShowResourceMonitorOptions) ([]ResourceMonitor, error) ShowByID(ctx context.Context, id AccountObjectIdentifier) (*ResourceMonitor, error) }
type RevokeDatabaseRoleFromShareRequest ¶ added in v0.70.0
type RevokeDatabaseRoleFromShareRequest struct {
// contains filtered or unexported fields
}
func NewRevokeDatabaseRoleFromShareRequest ¶ added in v0.70.0
func NewRevokeDatabaseRoleFromShareRequest( name DatabaseObjectIdentifier, share AccountObjectIdentifier, ) *RevokeDatabaseRoleFromShareRequest
type RevokeDatabaseRoleRequest ¶ added in v0.70.0
type RevokeDatabaseRoleRequest struct {
// contains filtered or unexported fields
}
func NewRevokeDatabaseRoleRequest ¶ added in v0.70.0
func NewRevokeDatabaseRoleRequest( name DatabaseObjectIdentifier, ) *RevokeDatabaseRoleRequest
func (*RevokeDatabaseRoleRequest) WithAccountRole ¶ added in v0.70.0
func (s *RevokeDatabaseRoleRequest) WithAccountRole(accountRole AccountObjectIdentifier) *RevokeDatabaseRoleRequest
func (*RevokeDatabaseRoleRequest) WithDatabaseRole ¶ added in v0.70.0
func (s *RevokeDatabaseRoleRequest) WithDatabaseRole(databaseRole DatabaseObjectIdentifier) *RevokeDatabaseRoleRequest
type RevokePrivilegeFromShareOn ¶ added in v0.65.0
type RevokePrivilegeFromShareOn struct {}
type RevokePrivilegesFromAccountRoleOptions ¶ added in v0.68.0
type RevokePrivilegesFromAccountRoleOptions struct { GrantOptionFor *bool `ddl:"keyword" sql:"GRANT OPTION FOR"` Restrict *bool `ddl:"keyword" sql:"RESTRICT"` Cascade *bool `ddl:"keyword" sql:"CASCADE"` // contains filtered or unexported fields }
RevokePrivilegesFromAccountRoleOptions is based on https://docs.snowflake.com/en/sql-reference/sql/revoke-privilege#syntax.
type RevokePrivilegesFromDatabaseRoleOptions ¶ added in v0.71.0
type RevokePrivilegesFromDatabaseRoleOptions struct { GrantOptionFor *bool `ddl:"keyword" sql:"GRANT OPTION FOR"` Restrict *bool `ddl:"keyword" sql:"RESTRICT"` Cascade *bool `ddl:"keyword" sql:"CASCADE"` // contains filtered or unexported fields }
RevokePrivilegesFromDatabaseRoleOptions is based on https://docs.snowflake.com/en/sql-reference/sql/revoke-privilege#syntax.
type RevokeRole ¶ added in v0.72.0
type RevokeRole struct { // one of User *AccountObjectIdentifier `ddl:"identifier" sql:"USER"` Role *AccountObjectIdentifier `ddl:"identifier" sql:"ROLE"` }
type RevokeRoleOptions ¶ added in v0.72.0
type RevokeRoleOptions struct { Revoke RevokeRole `ddl:"keyword,no_parentheses" sql:"FROM"` // contains filtered or unexported fields }
RevokeRoleOptions based on https://docs.snowflake.com/en/sql-reference/sql/revoke-role
type RevokeRoleRequest ¶ added in v0.72.0
type RevokeRoleRequest struct { Revoke RevokeRole // required // contains filtered or unexported fields }
func NewRevokeRoleRequest ¶ added in v0.72.0
func NewRevokeRoleRequest(name AccountObjectIdentifier, revoke RevokeRole) *RevokeRoleRequest
type Role ¶ added in v0.65.0
type Role struct { CreatedOn time.Time Name string IsDefault bool IsCurrent bool IsInherited bool AssignedToUsers int GrantedToRoles int GrantedRoles int Owner string Comment string }
func (*Role) ID ¶ added in v0.65.0
func (v *Role) ID() AccountObjectIdentifier
func (*Role) ObjectType ¶ added in v0.65.0
func (v *Role) ObjectType() ObjectType
type Roles ¶ added in v0.65.0
type Roles interface { Create(ctx context.Context, req *CreateRoleRequest) error Alter(ctx context.Context, req *AlterRoleRequest) error Drop(ctx context.Context, req *DropRoleRequest) error Show(ctx context.Context, req *ShowRoleRequest) ([]Role, error) ShowByID(ctx context.Context, req *ShowRoleByIdRequest) (*Role, error) Grant(ctx context.Context, req *GrantRoleRequest) error Revoke(ctx context.Context, req *RevokeRoleRequest) error Use(ctx context.Context, req *UseRoleRequest) error UseSecondary(ctx context.Context, req *UseSecondaryRolesRequest) error }
type RolesInClass ¶ added in v0.72.0
type RolesInClass struct {
Class ObjectIdentifier `ddl:"identifier"`
}
type RowAccessPolicyRequest ¶ added in v0.72.0
type RowAccessPolicyRequest struct { Name SchemaObjectIdentifier // required On []string // required }
func NewRowAccessPolicyRequest ¶ added in v0.72.0
func NewRowAccessPolicyRequest( name SchemaObjectIdentifier, on []string, ) *RowAccessPolicyRequest
type ScalingPolicy ¶ added in v0.65.0
type ScalingPolicy string
var ( ScalingPolicyStandard ScalingPolicy = "STANDARD" ScalingPolicyEconomy ScalingPolicy = "ECONOMY" )
type Schema ¶
type Schema struct { CreatedOn time.Time Name string IsDefault bool IsCurrent bool DatabaseName string Owner string Comment *string Options *string RetentionTime string OwnerRoleType string }
func (*Schema) ID ¶
func (v *Schema) ID() DatabaseObjectIdentifier
func (*Schema) ObjectType ¶ added in v0.65.0
func (v *Schema) ObjectType() ObjectType
type SchemaDetails ¶ added in v0.70.0
type SchemaIn ¶ added in v0.70.0
type SchemaIn struct { Account *bool `ddl:"keyword" sql:"ACCOUNT"` Database *bool `ddl:"keyword" sql:"DATABASE"` Name AccountObjectIdentifier `ddl:"identifier"` }
type SchemaObjectIdentifier ¶
type SchemaObjectIdentifier struct {
// contains filtered or unexported fields
}
func NewSchemaObjectIdentifier ¶
func NewSchemaObjectIdentifier(databaseName, schemaName, name string) SchemaObjectIdentifier
func NewSchemaObjectIdentifierFromFullyQualifiedName ¶
func NewSchemaObjectIdentifierFromFullyQualifiedName(fullyQualifiedName string) SchemaObjectIdentifier
func NewSchemaObjectIdentifierWithArguments ¶ added in v0.70.0
func NewSchemaObjectIdentifierWithArguments(databaseName, schemaName, name string, arguments []DataType) SchemaObjectIdentifier
func RandomSchemaObjectIdentifier ¶ added in v0.74.0
func RandomSchemaObjectIdentifier() SchemaObjectIdentifier
func (SchemaObjectIdentifier) Arguments ¶ added in v0.70.0
func (i SchemaObjectIdentifier) Arguments() []DataType
func (SchemaObjectIdentifier) DatabaseName ¶
func (i SchemaObjectIdentifier) DatabaseName() string
func (SchemaObjectIdentifier) FullyQualifiedName ¶
func (i SchemaObjectIdentifier) FullyQualifiedName() string
func (SchemaObjectIdentifier) Name ¶
func (i SchemaObjectIdentifier) Name() string
func (SchemaObjectIdentifier) SchemaIdentifier ¶ added in v0.70.0
func (i SchemaObjectIdentifier) SchemaIdentifier() DatabaseObjectIdentifier
func (SchemaObjectIdentifier) SchemaName ¶
func (i SchemaObjectIdentifier) SchemaName() string
type SchemaObjectPrivilege ¶ added in v0.68.0
type SchemaObjectPrivilege string
const ( SchemaObjectOwnership SchemaObjectPrivilege = "OWNERSHIP" // -- For ALERT // OPERATE [ , ... ] SchemaObjectPrivilegeOperate SchemaObjectPrivilege = "OPERATE" // -- For EVENT TABLE // { SELECT | INSERT } [ , ... ] SchemaObjectPrivilegeSelect SchemaObjectPrivilege = "SELECT" SchemaObjectPrivilegeInsert SchemaObjectPrivilege = "INSERT" // -- For FILE FORMAT, FUNCTION (UDF or external function), PROCEDURE, SECRET, or SEQUENCE // USAGE [ , ... ] SchemaObjectPrivilegeUsage SchemaObjectPrivilege = "USAGE" // -- For ICEBERG TABLE SchemaObjectPrivilegeApplyBudget SchemaObjectPrivilege = "APPLYBUDGET" // -- For PIPE // { MONITOR | OPERATE } [ , ... ] SchemaObjectPrivilegeMonitor SchemaObjectPrivilege = "MONITOR" // -- For { MASKING | PASSWORD | ROW ACCESS | SESSION } POLICY or TAG // APPLY [ , ... ] SchemaObjectPrivilegeApply SchemaObjectPrivilege = "APPLY" // -- For internal STAGE // READ [ , WRITE ] [ , ... ] SchemaObjectPrivilegeRead SchemaObjectPrivilege = "READ" SchemaObjectPrivilegeWrite SchemaObjectPrivilege = "WRITE" // -- For TABLE // { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES } [ , ... ] // SchemaObjectPrivilegeSelect SchemaObjectPrivilege = "SELECT" (duplicate) // SchemaObjectPrivilegeInsert SchemaObjectPrivilege = "INSERT" (duplicate) SchemaObjectPrivilegeUpdate SchemaObjectPrivilege = "UPDATE" SchemaObjectPrivilegeDelete SchemaObjectPrivilege = "DELETE" SchemaObjectPrivilegeTruncate SchemaObjectPrivilege = "TRUNCATE" SchemaObjectPrivilegeReferences SchemaObjectPrivilege = "REFERENCES" )
func (SchemaObjectPrivilege) String ¶ added in v0.68.0
func (p SchemaObjectPrivilege) String() string
type SchemaPrivilege ¶ added in v0.68.0
type SchemaPrivilege string
const ( /* ADD SEARCH OPTIMIZATION | CREATE { ALERT | EXTERNAL TABLE | FILE FORMAT | FUNCTION | MATERIALIZED VIEW | PIPE | PROCEDURE | { MASKING | PASSWORD | ROW ACCESS | SESSION } POLICY | SECRET | SEQUENCE | STAGE | STREAM | TAG | TABLE | TASK | VIEW } | MODIFY | MONITOR | USAGE [ , ... ] */ SchemaPrivilegeAddSearchOptimization SchemaPrivilege = "ADD SEARCH OPTIMIZATION" SchemaPrivilegeApplyBudget SchemaPrivilege = "APPLYBUDGET" SchemaPrivilegeCreateAlert SchemaPrivilege = "CREATE ALERT" SchemaPrivilegeCreateDynamicTable SchemaPrivilege = "CREATE DYNAMIC TABLE" SchemaPrivilegeCreateExternalTable SchemaPrivilege = "CREATE EXTERNAL TABLE" SchemaPrivilegeCreateFileFormat SchemaPrivilege = "CREATE FILE FORMAT" SchemaPrivilegeCreateFunction SchemaPrivilege = "CREATE FUNCTION" SchemaPrivilegeCreateIcebergTable SchemaPrivilege = "CREATE ICEBERG TABLE" SchemaPrivilegeCreateMaterializedView SchemaPrivilege = "CREATE MATERIALIZED VIEW" SchemaPrivilegeCreatePipe SchemaPrivilege = "CREATE PIPE" SchemaPrivilegeCreateProcedure SchemaPrivilege = "CREATE PROCEDURE" SchemaPrivilegeCreateMaskingPolicy SchemaPrivilege = "CREATE MASKING POLICY" SchemaPrivilegeCreatePasswordPolicy SchemaPrivilege = "CREATE PASSWORD POLICY" SchemaPrivilegeCreateRowAccessPolicy SchemaPrivilege = "CREATE ROW ACCESS POLICY" SchemaPrivilegeCreateSessionPolicy SchemaPrivilege = "CREATE SESSION POLICY" SchemaPrivilegeCreateSecret SchemaPrivilege = "CREATE SECRET" SchemaPrivilegeCreateSequence SchemaPrivilege = "CREATE SEQUENCE" SchemaPrivilegeCreateStage SchemaPrivilege = "CREATE STAGE" SchemaPrivilegeCreateStream SchemaPrivilege = "CREATE STREAM" SchemaPrivilegeCreateTag SchemaPrivilege = "CREATE TAG" SchemaPrivilegeCreateTable SchemaPrivilege = "CREATE TABLE" SchemaPrivilegeCreateTask SchemaPrivilege = "CREATE TASK" SchemaPrivilegeCreateView SchemaPrivilege = "CREATE VIEW" SchemaPrivilegeModify SchemaPrivilege = "MODIFY" SchemaPrivilegeMonitor SchemaPrivilege = "MONITOR" SchemaPrivilegeUsage SchemaPrivilege = "USAGE" )
func (SchemaPrivilege) String ¶ added in v0.68.0
func (p SchemaPrivilege) String() string
type SchemaSet ¶ added in v0.70.0
type SchemaSet struct { DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` DefaultDDLCollation *string `ddl:"parameter,single_quotes" sql:"DEFAULT_DDL_COLLATION"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type SchemaUnset ¶ added in v0.70.0
type SchemaUnset struct { DataRetentionTimeInDays *bool `ddl:"keyword" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *bool `ddl:"keyword" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` DefaultDDLCollation *bool `ddl:"keyword" sql:"DEFAULT_DDL_COLLATION"` Comment *bool `ddl:"keyword" sql:"COMMENT"` }
type Schemas ¶ added in v0.70.0
type Schemas interface { Create(ctx context.Context, id DatabaseObjectIdentifier, opts *CreateSchemaOptions) error Alter(ctx context.Context, id DatabaseObjectIdentifier, opts *AlterSchemaOptions) error Drop(ctx context.Context, id DatabaseObjectIdentifier, opts *DropSchemaOptions) error Undrop(ctx context.Context, id DatabaseObjectIdentifier) error Describe(ctx context.Context, id DatabaseObjectIdentifier) ([]SchemaDetails, error) Show(ctx context.Context, opts *ShowSchemaOptions) ([]Schema, error) ShowByID(ctx context.Context, id DatabaseObjectIdentifier) (*Schema, error) Use(ctx context.Context, id DatabaseObjectIdentifier) error }
type SearchOptimization ¶ added in v0.78.0
type SearchOptimization struct { On []string `ddl:"keyword" sql:"ON"` // contains filtered or unexported fields }
type SearchOptimizationRequest ¶ added in v0.78.0
type SearchOptimizationRequest struct {
On []string
}
func NewSearchOptimizationRequest ¶ added in v0.78.0
func NewSearchOptimizationRequest() *SearchOptimizationRequest
func (*SearchOptimizationRequest) WithOn ¶ added in v0.78.0
func (s *SearchOptimizationRequest) WithOn(On []string) *SearchOptimizationRequest
type SecondaryRole ¶ added in v0.70.0
type SecondaryRole struct {
Value string `ddl:"keyword,single_quotes"`
}
type SecondaryRoleOption ¶ added in v0.72.0
type SecondaryRoleOption string
SecondaryRoleOption is based on https://docs.snowflake.com/en/sql-reference/sql/use-secondary-roles.
const ( SecondaryRolesAll SecondaryRoleOption = "ALL" SecondaryRolesNone SecondaryRoleOption = "NONE" )
type SecondaryRoles ¶ added in v0.70.0
type SecondaryRoles struct { Roles []SecondaryRole `ddl:"list,no_parentheses"` // contains filtered or unexported fields }
type SequenceName ¶ added in v0.78.0
type SequenceName string
func (SequenceName) String ¶ added in v0.78.0
func (sn SequenceName) String() string
type SessionParameter ¶ added in v0.65.0
type SessionParameter string
const ( SessionParameterAbortDetachedQuery SessionParameter = "ABORT_DETACHED_QUERY" SessionParameterAutocommit SessionParameter = "AUTOCOMMIT" SessionParameterBinaryInputFormat SessionParameter = "BINARY_INPUT_FORMAT" SessionParameterBinaryOutputFormat SessionParameter = "BINARY_OUTPUT_FORMAT" SessionParameterClientMetadataRequestUseConnectionCtx SessionParameter = "CLIENT_METADATA_REQUEST_USE_CONNECTION_CTX" SessionParameterClientMetadataUseSessionDatabase SessionParameter = "CLIENT_METADATA_USE_SESSION_DATABASE" SessionParameterClientResultColumnCaseInsensitive SessionParameter = "CLIENT_RESULT_COLUMN_CASE_INSENSITIVE" SessionParameterDateInputFormat SessionParameter = "DATE_INPUT_FORMAT" SessionParameterGeographyOutputFormat SessionParameter = "GEOGRAPHY_OUTPUT_FORMAT" SessionParameterDateOutputFormat SessionParameter = "DATE_OUTPUT_FORMAT" SessionParameterErrorOnNondeterministicMerge SessionParameter = "ERROR_ON_NONDETERMINISTIC_MERGE" SessionParameterErrorOnNondeterministicUpdate SessionParameter = "ERROR_ON_NONDETERMINISTIC_UPDATE" SessionParameterJSONIndent SessionParameter = "JSON_INDENT" SessionParameterLockTimeout SessionParameter = "LOCK_TIMEOUT" SessionParameterMultiStatementCount SessionParameter = "MULTI_STATEMENT_COUNT" SessionParameterQueryTag SessionParameter = "QUERY_TAG" SessionParameterQuotedIdentifiersIgnoreCase SessionParameter = "QUOTED_IDENTIFIERS_IGNORE_CASE" SessionParameterRowsPerResultset SessionParameter = "ROWS_PER_RESULTSET" SessionParameterSimulatedDataSharingConsumer SessionParameter = "SIMULATED_DATA_SHARING_CONSUMER" SessionParameterStatementTimeoutInSeconds SessionParameter = "STATEMENT_TIMEOUT_IN_SECONDS" SessionParameterStrictJSONOutput SessionParameter = "STRICT_JSON_OUTPUT" SessionParameterTimeInputFormat SessionParameter = "TIME_INPUT_FORMAT" SessionParameterTimeOutputFormat SessionParameter = "TIME_OUTPUT_FORMAT" SessionParameterTimestampDayIsAlways24h SessionParameter = "TIMESTAMP_DAY_IS_ALWAYS_24H" SessionParameterTimestampInputFormat SessionParameter = "TIMESTAMP_INPUT_FORMAT" SessionParameterTimestampLTZOutputFormat SessionParameter = "TIMESTAMP_LTZ_OUTPUT_FORMAT" SessionParameterTimestampNTZOutputFormat SessionParameter = "TIMESTAMP_NTZ_OUTPUT_FORMAT" SessionParameterTimestampOutputFormat SessionParameter = "TIMESTAMP_OUTPUT_FORMAT" SessionParameterTimestampTypeMapping SessionParameter = "TIMESTAMP_TYPE_MAPPING" SessionParameterTimestampTZOutputFormat SessionParameter = "TIMESTAMP_TZ_OUTPUT_FORMAT" SessionParameterTimezone SessionParameter = "TIMEZONE" SessionParameterTransactionDefaultIsolationLevel SessionParameter = "TRANSACTION_DEFAULT_ISOLATION_LEVEL" SessionParameterTwoDigitCenturyStart SessionParameter = "TWO_DIGIT_CENTURY_START" SessionParameterUnsupportedDDLAction SessionParameter = "UNSUPPORTED_DDL_ACTION" SessionParameterUseCachedResult SessionParameter = "USE_CACHED_RESULT" SessionParameterWeekOfYearPolicy SessionParameter = "WEEK_OF_YEAR_POLICY" SessionParameterWeekStart SessionParameter = "WEEK_START" )
type SessionParameters ¶ added in v0.65.0
type SessionParameters struct { AbortDetachedQuery *bool `ddl:"parameter" sql:"ABORT_DETACHED_QUERY"` Autocommit *bool `ddl:"parameter" sql:"AUTOCOMMIT"` BinaryInputFormat *BinaryInputFormat `ddl:"parameter,single_quotes" sql:"BINARY_INPUT_FORMAT"` BinaryOutputFormat *BinaryOutputFormat `ddl:"parameter,single_quotes" sql:"BINARY_OUTPUT_FORMAT"` ClientMetadataRequestUseConnectionCtx *bool `ddl:"parameter" sql:"CLIENT_METADATA_REQUEST_USE_CONNECTION_CTX"` ClientMetadataUseSessionDatabase *bool `ddl:"parameter" sql:"CLIENT_METADATA_USE_SESSION_DATABASE"` ClientResultColumnCaseInsensitive *bool `ddl:"parameter" sql:"CLIENT_RESULT_COLUMN_CASE_INSENSITIVE"` DateInputFormat *string `ddl:"parameter,single_quotes" sql:"DATE_INPUT_FORMAT"` DateOutputFormat *string `ddl:"parameter,single_quotes" sql:"DATE_OUTPUT_FORMAT"` ErrorOnNondeterministicMerge *bool `ddl:"parameter" sql:"ERROR_ON_NONDETERMINISTIC_MERGE"` ErrorOnNondeterministicUpdate *bool `ddl:"parameter" sql:"ERROR_ON_NONDETERMINISTIC_UPDATE"` GeographyOutputFormat *GeographyOutputFormat `ddl:"parameter,single_quotes" sql:"GEOGRAPHY_OUTPUT_FORMAT"` JSONIndent *int `ddl:"parameter" sql:"JSON_INDENT"` LockTimeout *int `ddl:"parameter" sql:"LOCK_TIMEOUT"` MultiStatementCount *int `ddl:"parameter" sql:"MULTI_STATEMENT_COUNT"` QueryTag *string `ddl:"parameter,single_quotes" sql:"QUERY_TAG"` QuotedIdentifiersIgnoreCase *bool `ddl:"parameter,single_quotes" sql:"QUOTED_IDENTIFIERS_IGNORE_CASE"` RowsPerResultset *int `ddl:"parameter" sql:"ROWS_PER_RESULTSET"` SimulatedDataSharingConsumer *string `ddl:"parameter,single_quotes" sql:"SIMULATED_DATA_SHARING_CONSUMER"` StatementTimeoutInSeconds *int `ddl:"parameter" sql:"STATEMENT_TIMEOUT_IN_SECONDS"` StrictJSONOutput *bool `ddl:"parameter" sql:"STRICT_JSON_OUTPUT"` TimestampDayIsAlways24h *bool `ddl:"parameter" sql:"TIMESTAMP_DAY_IS_ALWAYS_24H"` TimestampInputFormat *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_INPUT_FORMAT"` TimestampLTZOutputFormat *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_LTZ_OUTPUT_FORMAT"` TimestampNTZOutputFormat *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_NTZ_OUTPUT_FORMAT"` TimestampOutputFormat *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_OUTPUT_FORMAT"` TimestampTypeMapping *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_TYPE_MAPPING"` TimestampTZOutputFormat *string `ddl:"parameter,single_quotes" sql:"TIMESTAMP_TZ_OUTPUT_FORMAT"` Timezone *string `ddl:"parameter,single_quotes" sql:"TIMEZONE"` TimeInputFormat *string `ddl:"parameter,single_quotes" sql:"TIME_INPUT_FORMAT"` TimeOutputFormat *string `ddl:"parameter,single_quotes" sql:"TIME_OUTPUT_FORMAT"` TransactionDefaultIsolationLevel *TransactionDefaultIsolationLevel `ddl:"parameter,single_quotes" sql:"TRANSACTION_DEFAULT_ISOLATION_LEVEL"` TwoDigitCenturyStart *int `ddl:"parameter" sql:"TWO_DIGIT_CENTURY_START"` UnsupportedDDLAction *UnsupportedDDLAction `ddl:"parameter,single_quotes" sql:"UNSUPPORTED_DDL_ACTION"` UseCachedResult *bool `ddl:"parameter" sql:"USE_CACHED_RESULT"` WeekOfYearPolicy *int `ddl:"parameter" sql:"WEEK_OF_YEAR_POLICY"` WeekStart *int `ddl:"parameter" sql:"WEEK_START"` }
SessionParameters is based on https://docs.snowflake.com/en/sql-reference/parameters#session-parameters.
func GetSessionParametersFrom ¶ added in v0.75.0
func GetSessionParametersFrom(params map[string]any) (*SessionParameters, error)
type SessionParametersUnset ¶ added in v0.65.0
type SessionParametersUnset struct { AbortDetachedQuery *bool `ddl:"keyword" sql:"ABORT_DETACHED_QUERY"` Autocommit *bool `ddl:"keyword" sql:"AUTOCOMMIT"` BinaryInputFormat *bool `ddl:"keyword" sql:"BINARY_INPUT_FORMAT"` BinaryOutputFormat *bool `ddl:"keyword" sql:"BINARY_OUTPUT_FORMAT"` ClientMetadataRequestUseConnectionCtx *bool `ddl:"keyword" sql:"CLIENT_METADATA_REQUEST_USE_CONNECTION_CTX"` ClientMetadataUseSessionDatabase *bool `ddl:"keyword" sql:"CLIENT_METADATA_USE_SESSION_DATABASE"` ClientResultColumnCaseInsensitive *bool `ddl:"keyword" sql:"CLIENT_RESULT_COLUMN_CASE_INSENSITIVE"` DateInputFormat *bool `ddl:"keyword" sql:"DATE_INPUT_FORMAT"` DateOutputFormat *bool `ddl:"keyword" sql:"DATE_OUTPUT_FORMAT"` ErrorOnNondeterministicMerge *bool `ddl:"keyword" sql:"ERROR_ON_NONDETERMINISTIC_MERGE"` ErrorOnNondeterministicUpdate *bool `ddl:"keyword" sql:"ERROR_ON_NONDETERMINISTIC_UPDATE"` GeographyOutputFormat *bool `ddl:"keyword" sql:"GEOGRAPHY_OUTPUT_FORMAT"` JSONIndent *bool `ddl:"keyword" sql:"JSON_INDENT"` LockTimeout *bool `ddl:"keyword" sql:"LOCK_TIMEOUT"` MultiStatementCount *bool `ddl:"keyword" sql:"MULTI_STATEMENT_COUNT"` QueryTag *bool `ddl:"keyword" sql:"QUERY_TAG"` QuotedIdentifiersIgnoreCase *bool `ddl:"keyword" sql:"QUOTED_IDENTIFIERS_IGNORE_CASE"` RowsPerResultset *bool `ddl:"keyword" sql:"ROWS_PER_RESULTSET"` SimulatedDataSharingConsumer *bool `ddl:"keyword" sql:"SIMULATED_DATA_SHARING_CONSUMER"` StatementTimeoutInSeconds *bool `ddl:"keyword" sql:"STATEMENT_TIMEOUT_IN_SECONDS"` StrictJSONOutput *bool `ddl:"keyword" sql:"STRICT_JSON_OUTPUT"` TimestampDayIsAlways24h *bool `ddl:"keyword" sql:"TIMESTAMP_DAY_IS_ALWAYS_24H"` TimestampInputFormat *bool `ddl:"keyword" sql:"TIMESTAMP_INPUT_FORMAT"` TimestampLTZOutputFormat *bool `ddl:"keyword" sql:"TIMESTAMP_LTZ_OUTPUT_FORMAT"` TimestampNTZOutputFormat *bool `ddl:"keyword" sql:"TIMESTAMP_NTZ_OUTPUT_FORMAT"` TimestampOutputFormat *bool `ddl:"keyword" sql:"TIMESTAMP_OUTPUT_FORMAT"` TimestampTypeMapping *bool `ddl:"keyword" sql:"TIMESTAMP_TYPE_MAPPING"` TimestampTZOutputFormat *bool `ddl:"keyword" sql:"TIMESTAMP_TZ_OUTPUT_FORMAT"` Timezone *bool `ddl:"keyword" sql:"TIMEZONE"` TimeInputFormat *bool `ddl:"keyword" sql:"TIME_INPUT_FORMAT"` TimeOutputFormat *bool `ddl:"keyword" sql:"TIME_OUTPUT_FORMAT"` TransactionDefaultIsolationLevel *bool `ddl:"keyword" sql:"TRANSACTION_DEFAULT_ISOLATION_LEVEL"` TwoDigitCenturyStart *bool `ddl:"keyword" sql:"TWO_DIGIT_CENTURY_START"` UnsupportedDDLAction *bool `ddl:"keyword" sql:"UNSUPPORTED_DDL_ACTION"` UseCachedResult *bool `ddl:"keyword" sql:"USE_CACHED_RESULT"` WeekOfYearPolicy *bool `ddl:"keyword" sql:"WEEK_OF_YEAR_POLICY"` WeekStart *bool `ddl:"keyword" sql:"WEEK_START"` }
func GetSessionParametersUnsetFrom ¶ added in v0.75.0
func GetSessionParametersUnsetFrom(params map[string]any) (*SessionParametersUnset, error)
type SessionPolicies ¶ added in v0.65.0
type SessionPolicies interface { Create(ctx context.Context, request *CreateSessionPolicyRequest) error Alter(ctx context.Context, request *AlterSessionPolicyRequest) error Drop(ctx context.Context, request *DropSessionPolicyRequest) error Show(ctx context.Context, request *ShowSessionPolicyRequest) ([]SessionPolicy, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*SessionPolicy, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*SessionPolicyDescription, error) }
type SessionPolicy ¶ added in v0.65.0
type SessionPolicy struct { CreatedOn string Name string DatabaseName string SchemaName string Kind string Owner string Comment string Options string }
func (*SessionPolicy) ID ¶ added in v0.65.0
func (v *SessionPolicy) ID() SchemaObjectIdentifier
type SessionPolicyDescription ¶ added in v0.72.0
type SessionPolicySet ¶ added in v0.72.0
type SessionPolicySetRequest ¶ added in v0.72.0
type SessionPolicySetRequest struct { SessionIdleTimeoutMins *int SessionUiIdleTimeoutMins *int Comment *string }
func NewSessionPolicySetRequest ¶ added in v0.72.0
func NewSessionPolicySetRequest() *SessionPolicySetRequest
func (*SessionPolicySetRequest) WithComment ¶ added in v0.72.0
func (s *SessionPolicySetRequest) WithComment(Comment *string) *SessionPolicySetRequest
func (*SessionPolicySetRequest) WithSessionIdleTimeoutMins ¶ added in v0.72.0
func (s *SessionPolicySetRequest) WithSessionIdleTimeoutMins(SessionIdleTimeoutMins *int) *SessionPolicySetRequest
func (*SessionPolicySetRequest) WithSessionUiIdleTimeoutMins ¶ added in v0.72.0
func (s *SessionPolicySetRequest) WithSessionUiIdleTimeoutMins(SessionUiIdleTimeoutMins *int) *SessionPolicySetRequest
type SessionPolicyUnset ¶ added in v0.72.0
type SessionPolicyUnsetRequest ¶ added in v0.72.0
type SessionPolicyUnsetRequest struct { SessionIdleTimeoutMins *bool SessionUiIdleTimeoutMins *bool Comment *bool }
func NewSessionPolicyUnsetRequest ¶ added in v0.72.0
func NewSessionPolicyUnsetRequest() *SessionPolicyUnsetRequest
func (*SessionPolicyUnsetRequest) WithComment ¶ added in v0.72.0
func (s *SessionPolicyUnsetRequest) WithComment(Comment *bool) *SessionPolicyUnsetRequest
func (*SessionPolicyUnsetRequest) WithSessionIdleTimeoutMins ¶ added in v0.72.0
func (s *SessionPolicyUnsetRequest) WithSessionIdleTimeoutMins(SessionIdleTimeoutMins *bool) *SessionPolicyUnsetRequest
func (*SessionPolicyUnsetRequest) WithSessionUiIdleTimeoutMins ¶ added in v0.72.0
func (s *SessionPolicyUnsetRequest) WithSessionUiIdleTimeoutMins(SessionUiIdleTimeoutMins *bool) *SessionPolicyUnsetRequest
type SessionSet ¶ added in v0.65.0
type SessionSet struct {
SessionParameters *SessionParameters `ddl:"list"`
}
type SessionUnset ¶ added in v0.65.0
type SessionUnset struct {
SessionParametersUnset *SessionParametersUnset `ddl:"list"`
}
type Sessions ¶
type Sessions interface { // Parameters AlterSession(ctx context.Context, opts *AlterSessionOptions) error ShowParameters(ctx context.Context, opts *ShowParametersOptions) ([]*Parameter, error) // Context UseWarehouse(ctx context.Context, warehouse AccountObjectIdentifier) error UseDatabase(ctx context.Context, database AccountObjectIdentifier) error UseSchema(ctx context.Context, schema DatabaseObjectIdentifier) error UseRole(ctx context.Context, role AccountObjectIdentifier) error UseSecondaryRoles(ctx context.Context, opt SecondaryRoleOption) error }
type SetColumnCommentOptions ¶ added in v0.66.0
type SetColumnCommentOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` Column ObjectIdentifier `ddl:"identifier" sql:"COLUMN"` Value *string `ddl:"parameter,single_quotes,no_equals" sql:"IS"` // contains filtered or unexported fields }
SetColumnCommentOptions is based on https://docs.snowflake.com/en/sql-reference/sql/comment.
type SetCommentOptions ¶ added in v0.66.0
type SetCommentOptions struct { IfExists *bool `ddl:"keyword" sql:"IF EXISTS"` ObjectType ObjectType `ddl:"keyword"` ObjectName ObjectIdentifier `ddl:"identifier"` Value *string `ddl:"parameter,single_quotes,no_equals" sql:"IS"` // contains filtered or unexported fields }
SetCommentOptions is based on https://docs.snowflake.com/en/sql-reference/sql/comment.
type Share ¶ added in v0.65.0
type Share struct {}
func (*Share) ExternalID ¶ added in v0.65.0
func (v *Share) ExternalID() ExternalObjectIdentifier
func (*Share) ID ¶ added in v0.65.0
func (v *Share) ID() AccountObjectIdentifier
func (*Share) ObjectType ¶ added in v0.65.0
func (v *Share) ObjectType() ObjectType
type ShareDetails ¶ added in v0.65.0
type ShareDetails struct {
}type ShareRemove ¶ added in v0.65.0
type ShareRemove struct {
}type ShareUnset ¶ added in v0.65.0
type ShareUnset struct {
}type ShowAccountOptions ¶ added in v0.66.0
type ShowAccountOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` // contains filtered or unexported fields }
ShowAccountOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-organisation-accounts.
type ShowAlertOptions ¶ added in v0.68.0
type ShowAlertOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` // optional Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` StartsWith *string `ddl:"parameter,no_equals,single_quotes" sql:"STARTS WITH"` Limit *int `ddl:"parameter,no_equals" sql:"LIMIT"` // contains filtered or unexported fields }
ShowAlertOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-alerts.
type ShowApplicationRoleOptions ¶ added in v0.76.0
type ShowApplicationRoleOptions struct { ApplicationName AccountObjectIdentifier `ddl:"identifier"` Limit *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowApplicationRoleOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-application-roles.
type ShowApplicationRoleRequest ¶ added in v0.76.0
type ShowApplicationRoleRequest struct { ApplicationName AccountObjectIdentifier Limit *LimitFrom }
func NewShowApplicationRoleRequest ¶ added in v0.76.0
func NewShowApplicationRoleRequest() *ShowApplicationRoleRequest
func (*ShowApplicationRoleRequest) WithApplicationName ¶ added in v0.76.0
func (s *ShowApplicationRoleRequest) WithApplicationName(ApplicationName AccountObjectIdentifier) *ShowApplicationRoleRequest
func (*ShowApplicationRoleRequest) WithLimit ¶ added in v0.76.0
func (s *ShowApplicationRoleRequest) WithLimit(Limit *LimitFrom) *ShowApplicationRoleRequest
type ShowByIDApplicationRoleRequest ¶ added in v0.76.0
type ShowByIDApplicationRoleRequest struct { ApplicationName AccountObjectIdentifier // required // contains filtered or unexported fields }
func NewShowByIDApplicationRoleRequest ¶ added in v0.76.0
func NewShowByIDApplicationRoleRequest( name DatabaseObjectIdentifier, ApplicationName AccountObjectIdentifier, ) *ShowByIDApplicationRoleRequest
type ShowByIdStreamRequest ¶ added in v0.74.0
type ShowByIdStreamRequest struct {
// contains filtered or unexported fields
}
func NewShowByIdStreamRequest ¶ added in v0.74.0
func NewShowByIdStreamRequest( name SchemaObjectIdentifier, ) *ShowByIdStreamRequest
type ShowDatabaseRoleRequest ¶ added in v0.70.0
type ShowDatabaseRoleRequest struct {
// contains filtered or unexported fields
}
func NewShowDatabaseRoleRequest ¶ added in v0.70.0
func NewShowDatabaseRoleRequest( database AccountObjectIdentifier, ) *ShowDatabaseRoleRequest
func (*ShowDatabaseRoleRequest) WithLike ¶ added in v0.70.0
func (s *ShowDatabaseRoleRequest) WithLike(pattern string) *ShowDatabaseRoleRequest
type ShowDatabasesOptions ¶ added in v0.66.0
type ShowDatabasesOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` History *bool `ddl:"keyword" sql:"HISTORY"` Like *Like `ddl:"keyword" sql:"LIKE"` StartsWith *string `ddl:"parameter,single_quotes,no_equals" sql:"STARTS WITH"` LimitFrom *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowDatabasesOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-databases.
type ShowDynamicTableRequest ¶ added in v0.72.0
type ShowDynamicTableRequest struct {
// contains filtered or unexported fields
}
func NewShowDynamicTableRequest ¶ added in v0.72.0
func NewShowDynamicTableRequest() *ShowDynamicTableRequest
func (*ShowDynamicTableRequest) WithIn ¶ added in v0.72.0
func (s *ShowDynamicTableRequest) WithIn(in *In) *ShowDynamicTableRequest
func (*ShowDynamicTableRequest) WithLike ¶ added in v0.72.0
func (s *ShowDynamicTableRequest) WithLike(like *Like) *ShowDynamicTableRequest
func (*ShowDynamicTableRequest) WithLimit ¶ added in v0.72.0
func (s *ShowDynamicTableRequest) WithLimit(limit *LimitFrom) *ShowDynamicTableRequest
func (*ShowDynamicTableRequest) WithStartsWith ¶ added in v0.72.0
func (s *ShowDynamicTableRequest) WithStartsWith(startsWith *string) *ShowDynamicTableRequest
type ShowEventTableOptions ¶ added in v0.78.0
type ShowEventTableOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` StartsWith *string `ddl:"parameter,single_quotes,no_equals" sql:"STARTS WITH"` Limit *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowEventTableOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-event-tables.
type ShowEventTableRequest ¶ added in v0.78.0
type ShowEventTableRequest struct { Terse *bool Like *Like In *In StartsWith *string Limit *LimitFrom }
func NewShowEventTableRequest ¶ added in v0.78.0
func NewShowEventTableRequest() *ShowEventTableRequest
func (*ShowEventTableRequest) WithIn ¶ added in v0.78.0
func (s *ShowEventTableRequest) WithIn(In *In) *ShowEventTableRequest
func (*ShowEventTableRequest) WithLike ¶ added in v0.78.0
func (s *ShowEventTableRequest) WithLike(Like *Like) *ShowEventTableRequest
func (*ShowEventTableRequest) WithLimit ¶ added in v0.78.0
func (s *ShowEventTableRequest) WithLimit(Limit *LimitFrom) *ShowEventTableRequest
func (*ShowEventTableRequest) WithStartsWith ¶ added in v0.78.0
func (s *ShowEventTableRequest) WithStartsWith(StartsWith *string) *ShowEventTableRequest
func (*ShowEventTableRequest) WithTerse ¶ added in v0.78.0
func (s *ShowEventTableRequest) WithTerse(Terse *bool) *ShowEventTableRequest
type ShowExternalTableByIDRequest ¶ added in v0.72.0
type ShowExternalTableByIDRequest struct {
// contains filtered or unexported fields
}
func NewShowExternalTableByIDRequest ¶ added in v0.72.0
func NewShowExternalTableByIDRequest( id SchemaObjectIdentifier, ) *ShowExternalTableByIDRequest
type ShowExternalTableInRequest ¶ added in v0.72.0
type ShowExternalTableInRequest struct {
// contains filtered or unexported fields
}
func NewShowExternalTableInRequest ¶ added in v0.72.0
func NewShowExternalTableInRequest() *ShowExternalTableInRequest
func (*ShowExternalTableInRequest) WithAccount ¶ added in v0.72.0
func (s *ShowExternalTableInRequest) WithAccount(account *bool) *ShowExternalTableInRequest
func (*ShowExternalTableInRequest) WithDatabase ¶ added in v0.72.0
func (s *ShowExternalTableInRequest) WithDatabase(database AccountObjectIdentifier) *ShowExternalTableInRequest
func (*ShowExternalTableInRequest) WithSchema ¶ added in v0.72.0
func (s *ShowExternalTableInRequest) WithSchema(schema DatabaseObjectIdentifier) *ShowExternalTableInRequest
type ShowExternalTableOptions ¶ added in v0.72.0
type ShowExternalTableOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` StartsWith *string `ddl:"parameter,single_quotes,no_equals" sql:"STARTS WITH"` LimitFrom *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowExternalTableOptions based on https://docs.snowflake.com/en/sql-reference/sql/show-external-tables
type ShowExternalTableRequest ¶ added in v0.72.0
type ShowExternalTableRequest struct {
// contains filtered or unexported fields
}
func NewShowExternalTableRequest ¶ added in v0.72.0
func NewShowExternalTableRequest() *ShowExternalTableRequest
func (*ShowExternalTableRequest) WithIn ¶ added in v0.72.0
func (s *ShowExternalTableRequest) WithIn(in *ShowExternalTableInRequest) *ShowExternalTableRequest
func (*ShowExternalTableRequest) WithLike ¶ added in v0.72.0
func (s *ShowExternalTableRequest) WithLike(like *string) *ShowExternalTableRequest
func (*ShowExternalTableRequest) WithLimitFrom ¶ added in v0.72.0
func (s *ShowExternalTableRequest) WithLimitFrom(limitFrom *LimitFromRequest) *ShowExternalTableRequest
func (*ShowExternalTableRequest) WithStartsWith ¶ added in v0.72.0
func (s *ShowExternalTableRequest) WithStartsWith(startsWith *string) *ShowExternalTableRequest
func (*ShowExternalTableRequest) WithTerse ¶ added in v0.72.0
func (s *ShowExternalTableRequest) WithTerse(terse *bool) *ShowExternalTableRequest
type ShowFailoverGroupOptions ¶ added in v0.66.0
type ShowFailoverGroupOptions struct { InAccount AccountIdentifier `ddl:"identifier" sql:"IN ACCOUNT"` // contains filtered or unexported fields }
ShowFailoverGroupOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-failover-groups.
type ShowFileFormatsOptions ¶ added in v0.68.0
type ShowFileFormatsOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` // contains filtered or unexported fields }
ShowFileFormatsOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-file-formats.
type ShowGrantOptions ¶ added in v0.66.0
type ShowGrantOptions struct { Future *bool `ddl:"keyword" sql:"FUTURE"` On *ShowGrantsOn `ddl:"keyword" sql:"ON"` To *ShowGrantsTo `ddl:"keyword" sql:"TO"` Of *ShowGrantsOf `ddl:"keyword" sql:"OF"` In *ShowGrantsIn `ddl:"keyword" sql:"IN"` // contains filtered or unexported fields }
ShowGrantOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-grants.
type ShowGrantsIn ¶ added in v0.68.0
type ShowGrantsIn struct { Schema *DatabaseObjectIdentifier `ddl:"identifier" sql:"SCHEMA"` Database *AccountObjectIdentifier `ddl:"identifier" sql:"DATABASE"` }
type ShowGrantsOf ¶ added in v0.65.0
type ShowGrantsOf struct { Role AccountObjectIdentifier `ddl:"identifier" sql:"ROLE"` }
type ShowGrantsOn ¶ added in v0.65.0
type ShowGrantsTo ¶ added in v0.65.0
type ShowGrantsTo struct { Role AccountObjectIdentifier `ddl:"identifier" sql:"ROLE"` User AccountObjectIdentifier `ddl:"identifier" sql:"USER"` DatabaseRole DatabaseObjectIdentifier `ddl:"identifier" sql:"DATABASE ROLE"` }
type ShowMaskingPolicyOptions ¶ added in v0.66.0
type ShowMaskingPolicyOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` Limit *int `ddl:"parameter,no_equals" sql:"LIMIT"` // contains filtered or unexported fields }
ShowMaskingPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-masking-policies.
type ShowNetworkPolicyOptions ¶ added in v0.72.0
type ShowNetworkPolicyOptions struct {
// contains filtered or unexported fields
}
ShowNetworkPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-network-policies.
type ShowNetworkPolicyRequest ¶ added in v0.72.0
type ShowNetworkPolicyRequest struct{}
func NewShowNetworkPolicyRequest ¶ added in v0.72.0
func NewShowNetworkPolicyRequest() *ShowNetworkPolicyRequest
type ShowParametersOptions ¶ added in v0.65.0
type ShowParametersOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` In *ParametersIn `ddl:"keyword" sql:"IN"` // contains filtered or unexported fields }
ShowParametersOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-parameters.
type ShowPasswordPolicyOptions ¶ added in v0.72.0
type ShowPasswordPolicyOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` Limit *int `ddl:"parameter,no_equals" sql:"LIMIT"` // contains filtered or unexported fields }
ShowPasswordPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-password-policies.
type ShowPipeOptions ¶ added in v0.72.0
type ShowPipeOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` // contains filtered or unexported fields }
ShowPipeOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-pipes.
type ShowProcedureOptions ¶ added in v0.79.0
type ShowProcedureOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` // contains filtered or unexported fields }
ShowProcedureOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-procedures.
type ShowProcedureRequest ¶ added in v0.79.0
func NewShowProcedureRequest ¶ added in v0.79.0
func NewShowProcedureRequest() *ShowProcedureRequest
func (*ShowProcedureRequest) WithIn ¶ added in v0.79.0
func (s *ShowProcedureRequest) WithIn(In *In) *ShowProcedureRequest
func (*ShowProcedureRequest) WithLike ¶ added in v0.79.0
func (s *ShowProcedureRequest) WithLike(Like *Like) *ShowProcedureRequest
type ShowRegionsOptions ¶ added in v0.65.0
type ShowRegionsOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` // contains filtered or unexported fields }
type ShowResourceMonitorOptions ¶ added in v0.66.0
type ShowResourceMonitorOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` // contains filtered or unexported fields }
ShowResourceMonitorOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-resource-monitors.
type ShowRoleByIdRequest ¶ added in v0.72.0
type ShowRoleByIdRequest struct {
// contains filtered or unexported fields
}
func NewShowByIdRoleRequest ¶ added in v0.72.0
func NewShowByIdRoleRequest(id AccountObjectIdentifier) *ShowRoleByIdRequest
type ShowRoleOptions ¶ added in v0.72.0
type ShowRoleOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` InClass *RolesInClass `ddl:"keyword" sql:"IN CLASS"` // contains filtered or unexported fields }
ShowRoleOptions based on https://docs.snowflake.com/en/sql-reference/sql/show-roles
type ShowRoleRequest ¶ added in v0.72.0
type ShowRoleRequest struct { Like *Like InClass *RolesInClass }
func NewShowRoleRequest ¶ added in v0.72.0
func NewShowRoleRequest() *ShowRoleRequest
func (*ShowRoleRequest) WithInClass ¶ added in v0.72.0
func (s *ShowRoleRequest) WithInClass(inClass RolesInClass) *ShowRoleRequest
func (*ShowRoleRequest) WithLike ¶ added in v0.72.0
func (s *ShowRoleRequest) WithLike(like *LikeRequest) *ShowRoleRequest
type ShowSchemaOptions ¶ added in v0.70.0
type ShowSchemaOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` History *bool `ddl:"keyword" sql:"HISTORY"` Like *Like `ddl:"keyword" sql:"LIKE"` In *SchemaIn `ddl:"keyword" sql:"IN"` StartsWith *string `ddl:"parameter,single_quotes,no_equals" sql:"STARTS WITH"` LimitFrom *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowSchemaOptions based on https://docs.snowflake.com/en/sql-reference/sql/show-schemas
type ShowSessionPolicyOptions ¶ added in v0.72.0
type ShowSessionPolicyOptions struct {
// contains filtered or unexported fields
}
ShowSessionPolicyOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-session-policies.
type ShowSessionPolicyRequest ¶ added in v0.72.0
type ShowSessionPolicyRequest struct{}
func NewShowSessionPolicyRequest ¶ added in v0.72.0
func NewShowSessionPolicyRequest() *ShowSessionPolicyRequest
type ShowShareOptions ¶ added in v0.66.0
type ShowShareOptions struct { // contains filtered or unexported fields }
ShowShareOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-shares.
type ShowStageOptions ¶ added in v0.76.0
type ShowStageOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` // contains filtered or unexported fields }
ShowStageOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-stages.
type ShowStageRequest ¶ added in v0.76.0
func NewShowStageRequest ¶ added in v0.76.0
func NewShowStageRequest() *ShowStageRequest
func (*ShowStageRequest) WithIn ¶ added in v0.76.0
func (s *ShowStageRequest) WithIn(In *In) *ShowStageRequest
func (*ShowStageRequest) WithLike ¶ added in v0.76.0
func (s *ShowStageRequest) WithLike(Like *Like) *ShowStageRequest
type ShowStreamOptions ¶ added in v0.74.0
type ShowStreamOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` StartsWith *string `ddl:"parameter,no_equals,single_quotes" sql:"STARTS WITH"` Limit *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowStreamOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-streams.
type ShowStreamRequest ¶ added in v0.74.0
func NewShowStreamRequest ¶ added in v0.74.0
func NewShowStreamRequest() *ShowStreamRequest
func (*ShowStreamRequest) WithIn ¶ added in v0.74.0
func (s *ShowStreamRequest) WithIn(In *In) *ShowStreamRequest
func (*ShowStreamRequest) WithLike ¶ added in v0.74.0
func (s *ShowStreamRequest) WithLike(Like *Like) *ShowStreamRequest
func (*ShowStreamRequest) WithLimit ¶ added in v0.74.0
func (s *ShowStreamRequest) WithLimit(Limit *LimitFrom) *ShowStreamRequest
func (*ShowStreamRequest) WithStartsWith ¶ added in v0.74.0
func (s *ShowStreamRequest) WithStartsWith(StartsWith *string) *ShowStreamRequest
func (*ShowStreamRequest) WithTerse ¶ added in v0.74.0
func (s *ShowStreamRequest) WithTerse(Terse *bool) *ShowStreamRequest
type ShowTableInRequest ¶ added in v0.78.0
type ShowTableInRequest struct { Account *bool Database AccountObjectIdentifier Schema DatabaseObjectIdentifier }
type ShowTableRequest ¶ added in v0.78.0
type ShowTableRequest struct {
// contains filtered or unexported fields
}
func NewShowTableRequest ¶ added in v0.78.0
func NewShowTableRequest() *ShowTableRequest
func (*ShowTableRequest) WithHistory ¶ added in v0.78.0
func (s *ShowTableRequest) WithHistory(history *bool) *ShowTableRequest
func (*ShowTableRequest) WithIn ¶ added in v0.78.0
func (s *ShowTableRequest) WithIn(in *In) *ShowTableRequest
func (*ShowTableRequest) WithLikePattern ¶ added in v0.78.0
func (s *ShowTableRequest) WithLikePattern(likePattern string) *ShowTableRequest
func (*ShowTableRequest) WithLimitFrom ¶ added in v0.78.0
func (s *ShowTableRequest) WithLimitFrom(limitFrom *LimitFrom) *ShowTableRequest
func (*ShowTableRequest) WithStartsWith ¶ added in v0.78.0
func (s *ShowTableRequest) WithStartsWith(startsWith *string) *ShowTableRequest
func (*ShowTableRequest) WithTerse ¶ added in v0.78.0
func (s *ShowTableRequest) WithTerse(terse *bool) *ShowTableRequest
type ShowTagRequest ¶ added in v0.74.0
type ShowTagRequest struct {
// contains filtered or unexported fields
}
func NewShowTagRequest ¶ added in v0.74.0
func NewShowTagRequest() *ShowTagRequest
func (*ShowTagRequest) WithIn ¶ added in v0.74.0
func (s *ShowTagRequest) WithIn(in *In) *ShowTagRequest
func (*ShowTagRequest) WithLike ¶ added in v0.74.0
func (s *ShowTagRequest) WithLike(pattern string) *ShowTagRequest
type ShowTaskOptions ¶ added in v0.73.0
type ShowTaskOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` StartsWith *string `ddl:"parameter,no_equals,single_quotes" sql:"STARTS WITH"` RootOnly *bool `ddl:"keyword" sql:"ROOT ONLY"` Limit *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowTaskOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-tasks.
type ShowTaskRequest ¶ added in v0.73.0
type ShowTaskRequest struct { Terse *bool Like *Like In *In StartsWith *string RootOnly *bool Limit *LimitFrom }
func NewShowTaskRequest ¶ added in v0.73.0
func NewShowTaskRequest() *ShowTaskRequest
func (*ShowTaskRequest) WithIn ¶ added in v0.73.0
func (s *ShowTaskRequest) WithIn(In *In) *ShowTaskRequest
func (*ShowTaskRequest) WithLike ¶ added in v0.73.0
func (s *ShowTaskRequest) WithLike(Like *Like) *ShowTaskRequest
func (*ShowTaskRequest) WithLimit ¶ added in v0.73.0
func (s *ShowTaskRequest) WithLimit(Limit *LimitFrom) *ShowTaskRequest
func (*ShowTaskRequest) WithRootOnly ¶ added in v0.73.0
func (s *ShowTaskRequest) WithRootOnly(RootOnly *bool) *ShowTaskRequest
func (*ShowTaskRequest) WithStartsWith ¶ added in v0.73.0
func (s *ShowTaskRequest) WithStartsWith(StartsWith *string) *ShowTaskRequest
func (*ShowTaskRequest) WithTerse ¶ added in v0.73.0
func (s *ShowTaskRequest) WithTerse(Terse *bool) *ShowTaskRequest
type ShowUserOptions ¶ added in v0.66.0
type ShowUserOptions struct { Terse *bool `ddl:"static" sql:"TERSE"` Like *Like `ddl:"keyword" sql:"LIKE"` StartsWith *string `ddl:"parameter,single_quotes,no_equals" sql:"STARTS WITH"` Limit *int `ddl:"parameter,no_equals" sql:"LIMIT"` From *string `ddl:"parameter,no_equals,single_quotes" sql:"FROM"` // contains filtered or unexported fields }
ShowUserOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-users.
type ShowViewOptions ¶ added in v0.76.0
type ShowViewOptions struct { Terse *bool `ddl:"keyword" sql:"TERSE"` Like *Like `ddl:"keyword" sql:"LIKE"` In *In `ddl:"keyword" sql:"IN"` StartsWith *string `ddl:"parameter,no_equals,single_quotes" sql:"STARTS WITH"` Limit *LimitFrom `ddl:"keyword" sql:"LIMIT"` // contains filtered or unexported fields }
ShowViewOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-views.
type ShowViewRequest ¶ added in v0.76.0
func NewShowViewRequest ¶ added in v0.76.0
func NewShowViewRequest() *ShowViewRequest
func (*ShowViewRequest) WithIn ¶ added in v0.76.0
func (s *ShowViewRequest) WithIn(In *In) *ShowViewRequest
func (*ShowViewRequest) WithLike ¶ added in v0.76.0
func (s *ShowViewRequest) WithLike(Like *Like) *ShowViewRequest
func (*ShowViewRequest) WithLimit ¶ added in v0.76.0
func (s *ShowViewRequest) WithLimit(Limit *LimitFrom) *ShowViewRequest
func (*ShowViewRequest) WithStartsWith ¶ added in v0.76.0
func (s *ShowViewRequest) WithStartsWith(StartsWith *string) *ShowViewRequest
func (*ShowViewRequest) WithTerse ¶ added in v0.76.0
func (s *ShowViewRequest) WithTerse(Terse *bool) *ShowViewRequest
type ShowWarehouseOptions ¶ added in v0.66.0
type ShowWarehouseOptions struct { Like *Like `ddl:"keyword" sql:"LIKE"` // contains filtered or unexported fields }
ShowWarehouseOptions is based on https://docs.snowflake.com/en/sql-reference/sql/show-warehouses.
type Stage ¶ added in v0.70.0
type Stage struct { CreatedOn time.Time Name string DatabaseName string SchemaName string Url string HasCredentials bool HasEncryptionKey bool Owner string Comment string Region *string Type string Cloud *string StorageIntegration *string Endpoint *string OwnerRoleType *string DirectoryEnabled bool }
func (*Stage) ID ¶ added in v0.70.0
func (s *Stage) ID() SchemaObjectIdentifier
func (*Stage) ObjectType ¶ added in v0.70.0
func (s *Stage) ObjectType() ObjectType
type StageCopyColumnMapOption ¶ added in v0.76.0
type StageCopyColumnMapOption string
var ( StageCopyColumnMapCaseSensitive StageCopyColumnMapOption = "CASE_SENSITIVE" StageCopyColumnMapCaseInsensitive StageCopyColumnMapOption = "CASE_INSENSITIVE" StageCopyColumnMapCaseNone StageCopyColumnMapOption = "NONE" )
type StageCopyOnErrorOptions ¶ added in v0.76.0
type StageCopyOnErrorOptionsRequest ¶ added in v0.76.0
func NewStageCopyOnErrorOptionsRequest ¶ added in v0.76.0
func NewStageCopyOnErrorOptionsRequest() *StageCopyOnErrorOptionsRequest
func (*StageCopyOnErrorOptionsRequest) WithAbortStatement ¶ added in v0.76.0
func (s *StageCopyOnErrorOptionsRequest) WithAbortStatement(AbortStatement *bool) *StageCopyOnErrorOptionsRequest
func (*StageCopyOnErrorOptionsRequest) WithContinue ¶ added in v0.76.0
func (s *StageCopyOnErrorOptionsRequest) WithContinue(Continue *bool) *StageCopyOnErrorOptionsRequest
func (*StageCopyOnErrorOptionsRequest) WithSkipFile ¶ added in v0.76.0
func (s *StageCopyOnErrorOptionsRequest) WithSkipFile() *StageCopyOnErrorOptionsRequest
func (*StageCopyOnErrorOptionsRequest) WithSkipFileX ¶ added in v0.78.0
func (s *StageCopyOnErrorOptionsRequest) WithSkipFileX(x int) *StageCopyOnErrorOptionsRequest
func (*StageCopyOnErrorOptionsRequest) WithSkipFileXPercent ¶ added in v0.78.0
func (s *StageCopyOnErrorOptionsRequest) WithSkipFileXPercent(x int) *StageCopyOnErrorOptionsRequest
type StageCopyOptions ¶ added in v0.76.0
type StageCopyOptions struct { OnError *StageCopyOnErrorOptions `ddl:"parameter" sql:"ON_ERROR"` SizeLimit *int `ddl:"parameter" sql:"SIZE_LIMIT"` Purge *bool `ddl:"parameter" sql:"PURGE"` ReturnFailedOnly *bool `ddl:"parameter" sql:"RETURN_FAILED_ONLY"` MatchByColumnName *StageCopyColumnMapOption `ddl:"parameter" sql:"MATCH_BY_COLUMN_NAME"` EnforceLength *bool `ddl:"parameter" sql:"ENFORCE_LENGTH"` Truncatecolumns *bool `ddl:"parameter" sql:"TRUNCATECOLUMNS"` Force *bool `ddl:"parameter" sql:"FORCE"` }
type StageCopyOptionsRequest ¶ added in v0.76.0
type StageCopyOptionsRequest struct { OnError *StageCopyOnErrorOptionsRequest SizeLimit *int Purge *bool ReturnFailedOnly *bool MatchByColumnName *StageCopyColumnMapOption EnforceLength *bool Truncatecolumns *bool Force *bool }
func NewStageCopyOptionsRequest ¶ added in v0.76.0
func NewStageCopyOptionsRequest() *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithEnforceLength ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithEnforceLength(EnforceLength *bool) *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithForce ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithForce(Force *bool) *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithMatchByColumnName ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithMatchByColumnName(MatchByColumnName *StageCopyColumnMapOption) *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithOnError ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithOnError(OnError *StageCopyOnErrorOptionsRequest) *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithPurge ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithPurge(Purge *bool) *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithReturnFailedOnly ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithReturnFailedOnly(ReturnFailedOnly *bool) *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithSizeLimit ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithSizeLimit(SizeLimit *int) *StageCopyOptionsRequest
func (*StageCopyOptionsRequest) WithTruncatecolumns ¶ added in v0.76.0
func (s *StageCopyOptionsRequest) WithTruncatecolumns(Truncatecolumns *bool) *StageCopyOptionsRequest
type StageFileFormat ¶ added in v0.76.0
type StageFileFormat struct { FormatName *string `ddl:"parameter,single_quotes" sql:"FORMAT_NAME"` Type *FileFormatType `ddl:"parameter" sql:"TYPE"` Options *FileFormatTypeOptions `ddl:"list,no_comma"` }
type StageFileFormatRequest ¶ added in v0.76.0
type StageFileFormatRequest struct { FormatName *string Type *FileFormatType Options *FileFormatTypeOptionsRequest }
func NewStageFileFormatRequest ¶ added in v0.76.0
func NewStageFileFormatRequest() *StageFileFormatRequest
func (*StageFileFormatRequest) WithFormatName ¶ added in v0.76.0
func (s *StageFileFormatRequest) WithFormatName(FormatName *string) *StageFileFormatRequest
func (*StageFileFormatRequest) WithOptions ¶ added in v0.76.0
func (s *StageFileFormatRequest) WithOptions(Options *FileFormatTypeOptionsRequest) *StageFileFormatRequest
func (*StageFileFormatRequest) WithType ¶ added in v0.76.0
func (s *StageFileFormatRequest) WithType(Type *FileFormatType) *StageFileFormatRequest
type StageProperty ¶ added in v0.76.0
type Stages ¶ added in v0.76.0
type Stages interface { CreateInternal(ctx context.Context, request *CreateInternalStageRequest) error CreateOnS3(ctx context.Context, request *CreateOnS3StageRequest) error CreateOnGCS(ctx context.Context, request *CreateOnGCSStageRequest) error CreateOnAzure(ctx context.Context, request *CreateOnAzureStageRequest) error CreateOnS3Compatible(ctx context.Context, request *CreateOnS3CompatibleStageRequest) error Alter(ctx context.Context, request *AlterStageRequest) error AlterInternalStage(ctx context.Context, request *AlterInternalStageStageRequest) error AlterExternalS3Stage(ctx context.Context, request *AlterExternalS3StageStageRequest) error AlterExternalGCSStage(ctx context.Context, request *AlterExternalGCSStageStageRequest) error AlterExternalAzureStage(ctx context.Context, request *AlterExternalAzureStageStageRequest) error AlterDirectoryTable(ctx context.Context, request *AlterDirectoryTableStageRequest) error Drop(ctx context.Context, request *DropStageRequest) error Describe(ctx context.Context, id SchemaObjectIdentifier) ([]StageProperty, error) Show(ctx context.Context, request *ShowStageRequest) ([]Stage, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*Stage, error) }
type Stream ¶ added in v0.74.0
type Stream struct { CreatedOn time.Time Name string DatabaseName string SchemaName string TableOn *string Owner *string Comment *string TableName *string SourceType *string BaseTables *string Type *string Stale *string Mode *string StaleAfter *time.Time InvalidReason *string OwnerRoleType *string }
type Streams ¶ added in v0.74.0
type Streams interface { CreateOnTable(ctx context.Context, request *CreateOnTableStreamRequest) error CreateOnExternalTable(ctx context.Context, request *CreateOnExternalTableStreamRequest) error CreateOnDirectoryTable(ctx context.Context, request *CreateOnDirectoryTableStreamRequest) error CreateOnView(ctx context.Context, request *CreateOnViewStreamRequest) error Clone(ctx context.Context, request *CloneStreamRequest) error Alter(ctx context.Context, request *AlterStreamRequest) error Drop(ctx context.Context, request *DropStreamRequest) error Show(ctx context.Context, request *ShowStreamRequest) ([]Stream, error) ShowByID(ctx context.Context, request *ShowByIdStreamRequest) (*Stream, error) Describe(ctx context.Context, request *DescribeStreamRequest) (*Stream, error) }
type StringProperty ¶
type SystemFunctions ¶
type SystemFunctions interface {
GetTag(ctx context.Context, tagID ObjectIdentifier, objectID ObjectIdentifier, objectType ObjectType) (string, error)
}
type Table ¶ added in v0.68.0
type Table struct { CreatedOn string Name string DatabaseName string SchemaName string Kind string Comment string ClusterBy string Rows int Bytes *int Owner string RetentionTime int DroppedOn *string AutomaticClustering bool ChangeTracking bool SearchOptimization bool SearchOptimizationProgress string SearchOptimizationBytes *int IsExternal bool EnableSchemaEvolution bool OwnerRoleType string IsEvent bool Budget *string }
func (*Table) ID ¶ added in v0.68.0
func (v *Table) ID() SchemaObjectIdentifier
func (*Table) ObjectType ¶ added in v0.68.0
func (v *Table) ObjectType() ObjectType
type TableAddRowAccessPolicy ¶ added in v0.78.0
type TableAddRowAccessPolicy struct { RowAccessPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"ROW ACCESS POLICY"` On []string `ddl:"keyword,parentheses" sql:"ON"` // contains filtered or unexported fields }
type TableAddRowAccessPolicyRequest ¶ added in v0.78.0
type TableAddRowAccessPolicyRequest struct { RowAccessPolicy SchemaObjectIdentifier // required On []string // required }
func NewTableAddRowAccessPolicyRequest ¶ added in v0.78.0
func NewTableAddRowAccessPolicyRequest( rowAccessPolicy SchemaObjectIdentifier, on []string, ) *TableAddRowAccessPolicyRequest
type TableAsSelectColumn ¶ added in v0.78.0
type TableAsSelectColumn struct { Name string `ddl:"keyword"` Type *DataType `ddl:"keyword"` MaskingPolicy *TableAsSelectColumnMaskingPolicy `ddl:"keyword"` }
type TableAsSelectColumnMaskingPolicy ¶ added in v0.78.0
type TableAsSelectColumnMaskingPolicy struct { Name SchemaObjectIdentifier `ddl:"identifier"` // contains filtered or unexported fields }
type TableAsSelectColumnRequest ¶ added in v0.78.0
type TableAsSelectColumnRequest struct {
// contains filtered or unexported fields
}
func NewTableAsSelectColumnRequest ¶ added in v0.78.0
func NewTableAsSelectColumnRequest( name string, ) *TableAsSelectColumnRequest
func (*TableAsSelectColumnRequest) WithClusterBy ¶ added in v0.78.0
func (s *TableAsSelectColumnRequest) WithClusterBy(clusterBy []string) *TableAsSelectColumnRequest
func (*TableAsSelectColumnRequest) WithCopyGrants ¶ added in v0.78.0
func (s *TableAsSelectColumnRequest) WithCopyGrants(copyGrants *bool) *TableAsSelectColumnRequest
func (*TableAsSelectColumnRequest) WithMaskingPolicyName ¶ added in v0.78.0
func (s *TableAsSelectColumnRequest) WithMaskingPolicyName(maskingPolicyName *SchemaObjectIdentifier) *TableAsSelectColumnRequest
func (*TableAsSelectColumnRequest) WithOrReplace ¶ added in v0.78.0
func (s *TableAsSelectColumnRequest) WithOrReplace(orReplace *bool) *TableAsSelectColumnRequest
func (*TableAsSelectColumnRequest) WithType_ ¶ added in v0.78.0
func (s *TableAsSelectColumnRequest) WithType_(type_ *DataType) *TableAsSelectColumnRequest
type TableClusteringAction ¶ added in v0.78.0
type TableClusteringAction struct { // one of ClusterBy []string `ddl:"keyword,parentheses" sql:"CLUSTER BY"` Recluster *TableReclusterAction `ddl:"keyword" sql:"RECLUSTER"` ChangeReclusterState *TableReclusterChangeState `ddl:"keyword"` DropClusteringKey *bool `ddl:"keyword" sql:"DROP CLUSTERING KEY"` }
type TableClusteringActionRequest ¶ added in v0.78.0
type TableClusteringActionRequest struct { // One of ClusterBy []string Recluster *TableReclusterActionRequest ChangeReclusterState *ReclusterState DropClusteringKey *bool }
func NewTableClusteringActionRequest ¶ added in v0.78.0
func NewTableClusteringActionRequest() *TableClusteringActionRequest
func (*TableClusteringActionRequest) WithChangeReclusterState ¶ added in v0.78.0
func (s *TableClusteringActionRequest) WithChangeReclusterState(changeReclusterState *ReclusterState) *TableClusteringActionRequest
func (*TableClusteringActionRequest) WithClusterBy ¶ added in v0.78.0
func (s *TableClusteringActionRequest) WithClusterBy(clusterBy []string) *TableClusteringActionRequest
func (*TableClusteringActionRequest) WithDropClusteringKey ¶ added in v0.78.0
func (s *TableClusteringActionRequest) WithDropClusteringKey(dropClusteringKey *bool) *TableClusteringActionRequest
func (*TableClusteringActionRequest) WithRecluster ¶ added in v0.78.0
func (s *TableClusteringActionRequest) WithRecluster(recluster *TableReclusterActionRequest) *TableClusteringActionRequest
type TableColumn ¶ added in v0.78.0
type TableColumn struct { Name string `ddl:"keyword"` Type DataType `ddl:"keyword"` InlineConstraint *ColumnInlineConstraint `ddl:"keyword"` NotNull *bool `ddl:"keyword" sql:"NOT NULL"` Collate *string `ddl:"parameter,no_equals,single_quotes" sql:"COLLATE"` DefaultValue *ColumnDefaultValue `ddl:"keyword"` MaskingPolicy *ColumnMaskingPolicy `ddl:"keyword"` Tags []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` Comment *string `ddl:"parameter,no_equals,single_quotes" sql:"COMMENT"` }
type TableColumnAction ¶ added in v0.78.0
type TableColumnAction struct { // One of Add *TableColumnAddAction `ddl:"keyword" sql:"ADD"` Rename *TableColumnRenameAction `ddl:"keyword"` Alter []TableColumnAlterAction `ddl:"keyword" sql:"ALTER"` SetMaskingPolicy *TableColumnAlterSetMaskingPolicyAction `ddl:"keyword"` UnsetMaskingPolicy *TableColumnAlterUnsetMaskingPolicyAction `ddl:"keyword"` SetTags *TableColumnAlterSetTagsAction `ddl:"keyword"` UnsetTags *TableColumnAlterUnsetTagsAction `ddl:"keyword"` DropColumns *TableColumnAlterDropColumns `ddl:"keyword"` }
type TableColumnActionRequest ¶ added in v0.78.0
type TableColumnActionRequest struct { Add *TableColumnAddActionRequest Rename *TableColumnRenameActionRequest Alter []TableColumnAlterActionRequest SetMaskingPolicy *TableColumnAlterSetMaskingPolicyActionRequest UnsetMaskingPolicy *TableColumnAlterUnsetMaskingPolicyActionRequest SetTags *TableColumnAlterSetTagsActionRequest UnsetTags *TableColumnAlterUnsetTagsActionRequest DropColumnsIfExists *bool DropColumns []string }
func NewTableColumnActionRequest ¶ added in v0.78.0
func NewTableColumnActionRequest() *TableColumnActionRequest
func (*TableColumnActionRequest) WithAdd ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithAdd(add *TableColumnAddActionRequest) *TableColumnActionRequest
func (*TableColumnActionRequest) WithAlter ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithAlter(alter []TableColumnAlterActionRequest) *TableColumnActionRequest
func (*TableColumnActionRequest) WithDropColumns ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithDropColumns(dropColumns []string) *TableColumnActionRequest
func (*TableColumnActionRequest) WithDropColumnsIfExists ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithDropColumnsIfExists() *TableColumnActionRequest
func (*TableColumnActionRequest) WithRename ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithRename(rename *TableColumnRenameActionRequest) *TableColumnActionRequest
func (*TableColumnActionRequest) WithSetMaskingPolicy ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithSetMaskingPolicy(setMaskingPolicy *TableColumnAlterSetMaskingPolicyActionRequest) *TableColumnActionRequest
func (*TableColumnActionRequest) WithSetTags ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithSetTags(setTags *TableColumnAlterSetTagsActionRequest) *TableColumnActionRequest
func (*TableColumnActionRequest) WithUnsetMaskingPolicy ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithUnsetMaskingPolicy(unsetMaskingPolicy *TableColumnAlterUnsetMaskingPolicyActionRequest) *TableColumnActionRequest
func (*TableColumnActionRequest) WithUnsetTags ¶ added in v0.78.0
func (s *TableColumnActionRequest) WithUnsetTags(unsetTags *TableColumnAlterUnsetTagsActionRequest) *TableColumnActionRequest
type TableColumnAddAction ¶ added in v0.78.0
type TableColumnAddAction struct { IfNotExists *bool `ddl:"keyword" sql:"IF NOT EXISTS"` Name string `ddl:"keyword"` Type DataType `ddl:"keyword"` DefaultValue *ColumnDefaultValue `ddl:"keyword"` InlineConstraint *TableColumnAddInlineConstraint `ddl:"keyword"` MaskingPolicy *ColumnMaskingPolicy `ddl:"keyword"` Tags []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` // contains filtered or unexported fields }
type TableColumnAddActionRequest ¶ added in v0.78.0
type TableColumnAddActionRequest struct { IfNotExists *bool Name string // required Type DataType // required DefaultValue *ColumnDefaultValueRequest InlineConstraint *TableColumnAddInlineConstraintRequest MaskingPolicy *ColumnMaskingPolicyRequest With *bool Tags []TagAssociation }
func NewTableColumnAddActionRequest ¶ added in v0.78.0
func NewTableColumnAddActionRequest( name string, dataType DataType, ) *TableColumnAddActionRequest
func (*TableColumnAddActionRequest) WithDefaultValue ¶ added in v0.78.0
func (s *TableColumnAddActionRequest) WithDefaultValue(defaultValue *ColumnDefaultValueRequest) *TableColumnAddActionRequest
func (*TableColumnAddActionRequest) WithIfNotExists ¶ added in v0.78.0
func (s *TableColumnAddActionRequest) WithIfNotExists() *TableColumnAddActionRequest
func (*TableColumnAddActionRequest) WithInlineConstraint ¶ added in v0.78.0
func (s *TableColumnAddActionRequest) WithInlineConstraint(inlineConstraint *TableColumnAddInlineConstraintRequest) *TableColumnAddActionRequest
func (*TableColumnAddActionRequest) WithMaskingPolicy ¶ added in v0.78.0
func (s *TableColumnAddActionRequest) WithMaskingPolicy(maskingPolicy *ColumnMaskingPolicyRequest) *TableColumnAddActionRequest
func (*TableColumnAddActionRequest) WithTags ¶ added in v0.78.0
func (s *TableColumnAddActionRequest) WithTags(tags []TagAssociation) *TableColumnAddActionRequest
func (*TableColumnAddActionRequest) WithWith ¶ added in v0.78.0
func (s *TableColumnAddActionRequest) WithWith(with *bool) *TableColumnAddActionRequest
type TableColumnAddInlineConstraint ¶ added in v0.78.0
type TableColumnAddInlineConstraint struct { NotNull *bool `ddl:"keyword" sql:"NOT NULL"` Name string `ddl:"parameter,no_equals" sql:"CONSTRAINT"` Type ColumnConstraintType `ddl:"keyword"` ForeignKey *ColumnAddForeignKey `ddl:"keyword"` }
type TableColumnAddInlineConstraintRequest ¶ added in v0.78.0
type TableColumnAddInlineConstraintRequest struct { NotNull *bool Name string Type ColumnConstraintType ForeignKey *ColumnAddForeignKey }
func NewTableColumnAddInlineConstraintRequest ¶ added in v0.78.0
func NewTableColumnAddInlineConstraintRequest() *TableColumnAddInlineConstraintRequest
func (*TableColumnAddInlineConstraintRequest) WithForeignKey ¶ added in v0.78.0
func (s *TableColumnAddInlineConstraintRequest) WithForeignKey(foreignKey *ColumnAddForeignKey) *TableColumnAddInlineConstraintRequest
func (*TableColumnAddInlineConstraintRequest) WithName ¶ added in v0.78.0
func (s *TableColumnAddInlineConstraintRequest) WithName(name string) *TableColumnAddInlineConstraintRequest
func (*TableColumnAddInlineConstraintRequest) WithNotNull ¶ added in v0.78.0
func (s *TableColumnAddInlineConstraintRequest) WithNotNull(notNull *bool) *TableColumnAddInlineConstraintRequest
func (*TableColumnAddInlineConstraintRequest) WithType ¶ added in v0.78.0
func (s *TableColumnAddInlineConstraintRequest) WithType(constraintType ColumnConstraintType) *TableColumnAddInlineConstraintRequest
type TableColumnAlterAction ¶ added in v0.78.0
type TableColumnAlterAction struct { Name string `ddl:"keyword"` // One of DropDefault *bool `ddl:"keyword" sql:"DROP DEFAULT"` SetDefault *SequenceName `ddl:"parameter,no_equals" sql:"SET DEFAULT"` NotNullConstraint *TableColumnNotNullConstraint Type *DataType `ddl:"parameter,no_equals" sql:"SET DATA TYPE"` Comment *string `ddl:"parameter,no_equals,single_quotes" sql:"COMMENT"` UnsetComment *bool `ddl:"keyword" sql:"UNSET COMMENT"` // contains filtered or unexported fields }
type TableColumnAlterActionRequest ¶ added in v0.78.0
type TableColumnAlterActionRequest struct { Column bool // required Name string // required // One of DropDefault *bool SetDefault *SequenceName NotNullConstraint *TableColumnNotNullConstraintRequest Type *DataType Comment *string UnsetComment *bool }
func NewTableColumnAlterActionRequest ¶ added in v0.78.0
func NewTableColumnAlterActionRequest( column bool, name string, ) *TableColumnAlterActionRequest
func (*TableColumnAlterActionRequest) WithComment ¶ added in v0.78.0
func (s *TableColumnAlterActionRequest) WithComment(comment *string) *TableColumnAlterActionRequest
func (*TableColumnAlterActionRequest) WithDropDefault ¶ added in v0.78.0
func (s *TableColumnAlterActionRequest) WithDropDefault(dropDefault *bool) *TableColumnAlterActionRequest
func (*TableColumnAlterActionRequest) WithNotNullConstraint ¶ added in v0.78.0
func (s *TableColumnAlterActionRequest) WithNotNullConstraint(notNullConstraint *TableColumnNotNullConstraintRequest) *TableColumnAlterActionRequest
func (*TableColumnAlterActionRequest) WithSetDefault ¶ added in v0.78.0
func (s *TableColumnAlterActionRequest) WithSetDefault(setDefault *SequenceName) *TableColumnAlterActionRequest
func (*TableColumnAlterActionRequest) WithType ¶ added in v0.78.0
func (s *TableColumnAlterActionRequest) WithType(dataType *DataType) *TableColumnAlterActionRequest
func (*TableColumnAlterActionRequest) WithUnsetComment ¶ added in v0.78.0
func (s *TableColumnAlterActionRequest) WithUnsetComment(unsetComment *bool) *TableColumnAlterActionRequest
type TableColumnAlterDropColumns ¶ added in v0.78.0
type TableColumnAlterSequenceName ¶ added in v0.78.0
type TableColumnAlterSequenceName interface {
String() string
}
type TableColumnAlterSetMaskingPolicyAction ¶ added in v0.78.0
type TableColumnAlterSetMaskingPolicyAction struct { ColumnName string `ddl:"keyword"` MaskingPolicyName SchemaObjectIdentifier `ddl:"identifier"` Using []string `ddl:"keyword,parentheses" sql:"USING"` Force *bool `ddl:"keyword" sql:"FORCE"` // contains filtered or unexported fields }
type TableColumnAlterSetMaskingPolicyActionRequest ¶ added in v0.78.0
type TableColumnAlterSetMaskingPolicyActionRequest struct { ColumnName string // required MaskingPolicyName SchemaObjectIdentifier // required Using []string // required Force *bool }
func NewTableColumnAlterSetMaskingPolicyActionRequest ¶ added in v0.78.0
func NewTableColumnAlterSetMaskingPolicyActionRequest( columnName string, maskingPolicyName SchemaObjectIdentifier, using []string, ) *TableColumnAlterSetMaskingPolicyActionRequest
func (*TableColumnAlterSetMaskingPolicyActionRequest) WithForce ¶ added in v0.78.0
func (s *TableColumnAlterSetMaskingPolicyActionRequest) WithForce(force *bool) *TableColumnAlterSetMaskingPolicyActionRequest
type TableColumnAlterSetTagsAction ¶ added in v0.78.0
type TableColumnAlterSetTagsAction struct { ColumnName string `ddl:"keyword"` Tags []TagAssociation `ddl:"keyword" sql:"TAG"` // contains filtered or unexported fields }
type TableColumnAlterSetTagsActionRequest ¶ added in v0.78.0
type TableColumnAlterSetTagsActionRequest struct { ColumnName string // required Tags []TagAssociation // required }
func NewTableColumnAlterSetTagsActionRequest ¶ added in v0.78.0
func NewTableColumnAlterSetTagsActionRequest( columnName string, tags []TagAssociation, ) *TableColumnAlterSetTagsActionRequest
type TableColumnAlterUnsetMaskingPolicyAction ¶ added in v0.78.0
type TableColumnAlterUnsetMaskingPolicyAction struct { ColumnName string `ddl:"keyword"` // contains filtered or unexported fields }
type TableColumnAlterUnsetMaskingPolicyActionRequest ¶ added in v0.78.0
type TableColumnAlterUnsetMaskingPolicyActionRequest struct {
ColumnName string // required
}
func NewTableColumnAlterUnsetMaskingPolicyActionRequest ¶ added in v0.78.0
func NewTableColumnAlterUnsetMaskingPolicyActionRequest( columnName string, ) *TableColumnAlterUnsetMaskingPolicyActionRequest
type TableColumnAlterUnsetTagsAction ¶ added in v0.78.0
type TableColumnAlterUnsetTagsAction struct { ColumnName string `ddl:"keyword"` Tags []ObjectIdentifier `ddl:"keyword" sql:"TAG"` // contains filtered or unexported fields }
type TableColumnAlterUnsetTagsActionRequest ¶ added in v0.78.0
type TableColumnAlterUnsetTagsActionRequest struct { ColumnName string // required Tags []ObjectIdentifier // required }
func NewTableColumnAlterUnsetTagsActionRequest ¶ added in v0.78.0
func NewTableColumnAlterUnsetTagsActionRequest( columnName string, tags []ObjectIdentifier, ) *TableColumnAlterUnsetTagsActionRequest
type TableColumnDetails ¶ added in v0.78.0
type TableColumnIdentifier ¶
type TableColumnIdentifier struct {
// contains filtered or unexported fields
}
func NewTableColumnIdentifier ¶
func NewTableColumnIdentifier(databaseName, schemaName, tableName, columnName string) TableColumnIdentifier
func NewTableColumnIdentifierFromFullyQualifiedName ¶
func NewTableColumnIdentifierFromFullyQualifiedName(fullyQualifiedName string) TableColumnIdentifier
func (TableColumnIdentifier) DatabaseName ¶
func (i TableColumnIdentifier) DatabaseName() string
func (TableColumnIdentifier) FullyQualifiedName ¶
func (i TableColumnIdentifier) FullyQualifiedName() string
func (TableColumnIdentifier) Name ¶
func (i TableColumnIdentifier) Name() string
func (TableColumnIdentifier) SchemaName ¶
func (i TableColumnIdentifier) SchemaName() string
func (TableColumnIdentifier) TableName ¶
func (i TableColumnIdentifier) TableName() string
type TableColumnNotNullConstraint ¶ added in v0.78.0
type TableColumnNotNullConstraintRequest ¶ added in v0.78.0
func NewTableColumnNotNullConstraintRequest ¶ added in v0.78.0
func NewTableColumnNotNullConstraintRequest() *TableColumnNotNullConstraintRequest
func (*TableColumnNotNullConstraintRequest) WithDrop ¶ added in v0.78.0
func (s *TableColumnNotNullConstraintRequest) WithDrop(drop *bool) *TableColumnNotNullConstraintRequest
func (*TableColumnNotNullConstraintRequest) WithSet ¶ added in v0.78.0
func (s *TableColumnNotNullConstraintRequest) WithSet(set *bool) *TableColumnNotNullConstraintRequest
type TableColumnRenameAction ¶ added in v0.78.0
type TableColumnRenameActionRequest ¶ added in v0.78.0
type TableColumnRenameActionRequest struct { OldName string // required NewName string // required }
func NewTableColumnRenameActionRequest ¶ added in v0.78.0
func NewTableColumnRenameActionRequest( oldName string, newName string, ) *TableColumnRenameActionRequest
type TableColumnRequest ¶ added in v0.78.0
type TableColumnRequest struct {
// contains filtered or unexported fields
}
func NewTableColumnRequest ¶ added in v0.78.0
func NewTableColumnRequest( name string, type_ DataType, ) *TableColumnRequest
func (*TableColumnRequest) WithCollate ¶ added in v0.78.0
func (s *TableColumnRequest) WithCollate(collate *string) *TableColumnRequest
func (*TableColumnRequest) WithComment ¶ added in v0.78.0
func (s *TableColumnRequest) WithComment(comment *string) *TableColumnRequest
func (*TableColumnRequest) WithDefaultValue ¶ added in v0.78.0
func (s *TableColumnRequest) WithDefaultValue(defaultValue *ColumnDefaultValueRequest) *TableColumnRequest
func (*TableColumnRequest) WithInlineConstraint ¶ added in v0.78.0
func (s *TableColumnRequest) WithInlineConstraint(inlineConstraint *ColumnInlineConstraintRequest) *TableColumnRequest
func (*TableColumnRequest) WithMaskingPolicy ¶ added in v0.78.0
func (s *TableColumnRequest) WithMaskingPolicy(maskingPolicy *ColumnMaskingPolicyRequest) *TableColumnRequest
func (*TableColumnRequest) WithNotNull ¶ added in v0.78.0
func (s *TableColumnRequest) WithNotNull(notNull *bool) *TableColumnRequest
func (*TableColumnRequest) WithTags ¶ added in v0.78.0
func (s *TableColumnRequest) WithTags(tags []TagAssociation) *TableColumnRequest
type TableColumnSignature ¶
type TableConstraintAction ¶ added in v0.78.0
type TableConstraintAction struct { Add *OutOfLineConstraint `ddl:"keyword" sql:"ADD"` Rename *TableConstraintRenameAction `ddl:"keyword" sql:"RENAME CONSTRAINT"` Alter *TableConstraintAlterAction `ddl:"keyword" sql:"ALTER"` Drop *TableConstraintDropAction `ddl:"keyword" sql:"DROP"` }
type TableConstraintActionRequest ¶ added in v0.78.0
type TableConstraintActionRequest struct { Add *OutOfLineConstraintRequest Rename *TableConstraintRenameActionRequest Alter *TableConstraintAlterActionRequest Drop *TableConstraintDropActionRequest }
func NewTableConstraintActionRequest ¶ added in v0.78.0
func NewTableConstraintActionRequest() *TableConstraintActionRequest
func (*TableConstraintActionRequest) WithAdd ¶ added in v0.78.0
func (s *TableConstraintActionRequest) WithAdd(add *OutOfLineConstraintRequest) *TableConstraintActionRequest
func (*TableConstraintActionRequest) WithAlter ¶ added in v0.78.0
func (s *TableConstraintActionRequest) WithAlter(alter *TableConstraintAlterActionRequest) *TableConstraintActionRequest
func (*TableConstraintActionRequest) WithDrop ¶ added in v0.78.0
func (s *TableConstraintActionRequest) WithDrop(drop *TableConstraintDropActionRequest) *TableConstraintActionRequest
func (*TableConstraintActionRequest) WithRename ¶ added in v0.78.0
func (s *TableConstraintActionRequest) WithRename(rename *TableConstraintRenameActionRequest) *TableConstraintActionRequest
type TableConstraintAlterAction ¶ added in v0.78.0
type TableConstraintAlterAction struct { // One of ConstraintName *string `ddl:"parameter,no_equals" sql:"CONSTRAINT"` PrimaryKey *bool `ddl:"keyword" sql:"PRIMARY KEY"` Unique *bool `ddl:"keyword" sql:"UNIQUE"` ForeignKey *bool `ddl:"keyword" sql:"FOREIGN KEY"` Columns []string `ddl:"keyword,parentheses"` // Optional Enforced *bool `ddl:"keyword" sql:"ENFORCED"` NotEnforced *bool `ddl:"keyword" sql:"NOT ENFORCED"` Validate *bool `ddl:"keyword" sql:"VALIDATE"` NoValidate *bool `ddl:"keyword" sql:"NOVALIDATE"` Rely *bool `ddl:"keyword" sql:"RELY"` NoRely *bool `ddl:"keyword" sql:"NORELY"` }
type TableConstraintAlterActionRequest ¶ added in v0.78.0
type TableConstraintAlterActionRequest struct { // One of ConstraintName *string PrimaryKey *bool Unique *bool ForeignKey *bool Columns []string // required // Optional Enforced *bool NotEnforced *bool Validate *bool NoValidate *bool Rely *bool NoRely *bool }
func NewTableConstraintAlterActionRequest ¶ added in v0.78.0
func NewTableConstraintAlterActionRequest(columns []string) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithConstraintName ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithConstraintName(constraintName *string) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithEnforced ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithEnforced(enforced *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithForeignKey ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithForeignKey(foreignKey *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithNoRely ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithNoRely(noRely *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithNoValidate ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithNoValidate(noValidate *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithNotEnforced ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithNotEnforced(notEnforced *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithPrimaryKey ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithPrimaryKey(primaryKey *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithRely ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithRely(rely *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithUnique ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithUnique(unique *bool) *TableConstraintAlterActionRequest
func (*TableConstraintAlterActionRequest) WithValidate ¶ added in v0.78.0
func (s *TableConstraintAlterActionRequest) WithValidate(validate *bool) *TableConstraintAlterActionRequest
type TableConstraintDropAction ¶ added in v0.78.0
type TableConstraintDropAction struct { // One of ConstraintName *string `ddl:"parameter,no_equals" sql:"CONSTRAINT"` PrimaryKey *bool `ddl:"keyword" sql:"PRIMARY KEY"` Unique *bool `ddl:"keyword" sql:"UNIQUE"` ForeignKey *bool `ddl:"keyword" sql:"FOREIGN KEY"` Columns []string `ddl:"keyword,parentheses"` // Optional Cascade *bool `ddl:"keyword" sql:"CASCADE"` Restrict *bool `ddl:"keyword" sql:"RESTRICT"` }
type TableConstraintDropActionRequest ¶ added in v0.78.0
type TableConstraintDropActionRequest struct { // One of ConstraintName *string PrimaryKey *bool Unique *bool ForeignKey *bool Columns []string // required // Optional Cascade *bool Restrict *bool }
func NewTableConstraintDropActionRequest ¶ added in v0.78.0
func NewTableConstraintDropActionRequest(columns []string) *TableConstraintDropActionRequest
func (*TableConstraintDropActionRequest) WithCascade ¶ added in v0.78.0
func (s *TableConstraintDropActionRequest) WithCascade(cascade *bool) *TableConstraintDropActionRequest
func (*TableConstraintDropActionRequest) WithConstraintName ¶ added in v0.78.0
func (s *TableConstraintDropActionRequest) WithConstraintName(constraintName *string) *TableConstraintDropActionRequest
func (*TableConstraintDropActionRequest) WithForeignKey ¶ added in v0.78.0
func (s *TableConstraintDropActionRequest) WithForeignKey(foreignKey *bool) *TableConstraintDropActionRequest
func (*TableConstraintDropActionRequest) WithPrimaryKey ¶ added in v0.78.0
func (s *TableConstraintDropActionRequest) WithPrimaryKey(primaryKey *bool) *TableConstraintDropActionRequest
func (*TableConstraintDropActionRequest) WithRestrict ¶ added in v0.78.0
func (s *TableConstraintDropActionRequest) WithRestrict(restrict *bool) *TableConstraintDropActionRequest
func (*TableConstraintDropActionRequest) WithUnique ¶ added in v0.78.0
func (s *TableConstraintDropActionRequest) WithUnique(unique *bool) *TableConstraintDropActionRequest
type TableConstraintRenameAction ¶ added in v0.78.0
type TableConstraintRenameActionRequest ¶ added in v0.78.0
func NewTableConstraintRenameActionRequest ¶ added in v0.78.0
func NewTableConstraintRenameActionRequest() *TableConstraintRenameActionRequest
func (*TableConstraintRenameActionRequest) WithNewName ¶ added in v0.78.0
func (s *TableConstraintRenameActionRequest) WithNewName(newName string) *TableConstraintRenameActionRequest
func (*TableConstraintRenameActionRequest) WithOldName ¶ added in v0.78.0
func (s *TableConstraintRenameActionRequest) WithOldName(oldName string) *TableConstraintRenameActionRequest
type TableDropAndAddRowAccessPolicy ¶ added in v0.78.0
type TableDropAndAddRowAccessPolicy struct { Drop TableDropRowAccessPolicy `ddl:"keyword"` Add TableAddRowAccessPolicy `ddl:"keyword"` }
type TableDropAndAddRowAccessPolicyRequest ¶ added in v0.78.0
type TableDropAndAddRowAccessPolicyRequest struct { Drop TableDropRowAccessPolicyRequest // required Add TableAddRowAccessPolicyRequest // required }
func NewTableDropAndAddRowAccessPolicyRequest ¶ added in v0.78.0
func NewTableDropAndAddRowAccessPolicyRequest( drop TableDropRowAccessPolicyRequest, add TableAddRowAccessPolicyRequest, ) *TableDropAndAddRowAccessPolicyRequest
type TableDropRowAccessPolicy ¶ added in v0.78.0
type TableDropRowAccessPolicy struct { RowAccessPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"ROW ACCESS POLICY"` // contains filtered or unexported fields }
type TableDropRowAccessPolicyRequest ¶ added in v0.78.0
type TableDropRowAccessPolicyRequest struct {
RowAccessPolicy SchemaObjectIdentifier // required
}
func NewTableDropRowAccessPolicyRequest ¶ added in v0.78.0
func NewTableDropRowAccessPolicyRequest( rowAccessPolicy SchemaObjectIdentifier, ) *TableDropRowAccessPolicyRequest
type TableExternalTableAction ¶ added in v0.78.0
type TableExternalTableAction struct { // One of Add *TableExternalTableColumnAddAction `ddl:"keyword"` Rename *TableExternalTableColumnRenameAction `ddl:"keyword"` Drop *TableExternalTableColumnDropAction `ddl:"keyword"` }
type TableExternalTableActionRequest ¶ added in v0.78.0
type TableExternalTableActionRequest struct { // One of Add *TableExternalTableColumnAddActionRequest Rename *TableExternalTableColumnRenameActionRequest Drop *TableExternalTableColumnDropActionRequest }
func NewTableExternalTableActionRequest ¶ added in v0.78.0
func NewTableExternalTableActionRequest() *TableExternalTableActionRequest
func (*TableExternalTableActionRequest) WithAdd ¶ added in v0.78.0
func (s *TableExternalTableActionRequest) WithAdd(add *TableExternalTableColumnAddActionRequest) *TableExternalTableActionRequest
func (*TableExternalTableActionRequest) WithDrop ¶ added in v0.78.0
func (s *TableExternalTableActionRequest) WithDrop(drop *TableExternalTableColumnDropActionRequest) *TableExternalTableActionRequest
func (*TableExternalTableActionRequest) WithRename ¶ added in v0.78.0
func (s *TableExternalTableActionRequest) WithRename(rename *TableExternalTableColumnRenameActionRequest) *TableExternalTableActionRequest
type TableExternalTableColumnAddAction ¶ added in v0.78.0
type TableExternalTableColumnAddActionRequest ¶ added in v0.78.0
type TableExternalTableColumnAddActionRequest struct { IfNotExists *bool Name string Type DataType Expression string }
func NewTableExternalTableColumnAddActionRequest ¶ added in v0.78.0
func NewTableExternalTableColumnAddActionRequest() *TableExternalTableColumnAddActionRequest
func (*TableExternalTableColumnAddActionRequest) WithExpression ¶ added in v0.78.0
func (s *TableExternalTableColumnAddActionRequest) WithExpression(expression string) *TableExternalTableColumnAddActionRequest
func (*TableExternalTableColumnAddActionRequest) WithIfNotExists ¶ added in v0.78.0
func (s *TableExternalTableColumnAddActionRequest) WithIfNotExists() *TableExternalTableColumnAddActionRequest
func (*TableExternalTableColumnAddActionRequest) WithName ¶ added in v0.78.0
func (s *TableExternalTableColumnAddActionRequest) WithName(name string) *TableExternalTableColumnAddActionRequest
func (*TableExternalTableColumnAddActionRequest) WithType ¶ added in v0.78.0
func (s *TableExternalTableColumnAddActionRequest) WithType(dataType DataType) *TableExternalTableColumnAddActionRequest
type TableExternalTableColumnDropAction ¶ added in v0.78.0
type TableExternalTableColumnDropActionRequest ¶ added in v0.78.0
type TableExternalTableColumnDropActionRequest struct { Columns []string // required IfExists *bool }
func NewTableExternalTableColumnDropActionRequest ¶ added in v0.78.0
func NewTableExternalTableColumnDropActionRequest(columns []string) *TableExternalTableColumnDropActionRequest
func (*TableExternalTableColumnDropActionRequest) WithIfExists ¶ added in v0.78.0
func (s *TableExternalTableColumnDropActionRequest) WithIfExists() *TableExternalTableColumnDropActionRequest
type TableExternalTableColumnRenameAction ¶ added in v0.78.0
type TableExternalTableColumnRenameActionRequest ¶ added in v0.78.0
func NewTableExternalTableColumnRenameActionRequest ¶ added in v0.78.0
func NewTableExternalTableColumnRenameActionRequest() *TableExternalTableColumnRenameActionRequest
func (*TableExternalTableColumnRenameActionRequest) WithNewName ¶ added in v0.78.0
func (s *TableExternalTableColumnRenameActionRequest) WithNewName(newName string) *TableExternalTableColumnRenameActionRequest
func (*TableExternalTableColumnRenameActionRequest) WithOldName ¶ added in v0.78.0
func (s *TableExternalTableColumnRenameActionRequest) WithOldName(oldName string) *TableExternalTableColumnRenameActionRequest
type TableReclusterAction ¶ added in v0.78.0
type TableReclusterActionRequest ¶ added in v0.78.0
func NewTableReclusterActionRequest ¶ added in v0.78.0
func NewTableReclusterActionRequest() *TableReclusterActionRequest
func (*TableReclusterActionRequest) WithCondition ¶ added in v0.78.0
func (s *TableReclusterActionRequest) WithCondition(condition *string) *TableReclusterActionRequest
func (*TableReclusterActionRequest) WithMaxSize ¶ added in v0.78.0
func (s *TableReclusterActionRequest) WithMaxSize(maxSize *int) *TableReclusterActionRequest
type TableReclusterChangeState ¶ added in v0.78.0
type TableReclusterChangeState struct { State *ReclusterState `ddl:"keyword"` // contains filtered or unexported fields }
type TableReclusterChangeStateRequest ¶ added in v0.78.0
type TableReclusterChangeStateRequest struct {
State ReclusterState
}
func NewTableReclusterChangeStateRequest ¶ added in v0.78.0
func NewTableReclusterChangeStateRequest() *TableReclusterChangeStateRequest
func (*TableReclusterChangeStateRequest) WithState ¶ added in v0.78.0
func (s *TableReclusterChangeStateRequest) WithState(state ReclusterState) *TableReclusterChangeStateRequest
type TableRowAccessPolicy ¶ added in v0.78.0
type TableRowAccessPolicy struct { Name SchemaObjectIdentifier `ddl:"identifier"` On []string `ddl:"keyword,parentheses" sql:"ON"` // contains filtered or unexported fields }
type TableScope ¶ added in v0.78.0
type TableScope string
const ( GlobalTableScope TableScope = "GLOBAL" LocalTableScope TableScope = "LOCAL" )
type TableSearchOptimizationAction ¶ added in v0.78.0
type TableSearchOptimizationAction struct { // One of Add *AddSearchOptimization `ddl:"keyword"` Drop *DropSearchOptimization `ddl:"keyword"` }
type TableSearchOptimizationActionRequest ¶ added in v0.78.0
type TableSearchOptimizationActionRequest struct { // One of AddSearchOptimizationOn []string DropSearchOptimizationOn []string }
func NewTableSearchOptimizationActionRequest ¶ added in v0.78.0
func NewTableSearchOptimizationActionRequest() *TableSearchOptimizationActionRequest
func (*TableSearchOptimizationActionRequest) WithAddSearchOptimizationOn ¶ added in v0.78.0
func (s *TableSearchOptimizationActionRequest) WithAddSearchOptimizationOn(addSearchOptimizationOn []string) *TableSearchOptimizationActionRequest
func (*TableSearchOptimizationActionRequest) WithDropSearchOptimizationOn ¶ added in v0.78.0
func (s *TableSearchOptimizationActionRequest) WithDropSearchOptimizationOn(dropSearchOptimizationOn []string) *TableSearchOptimizationActionRequest
type TableSet ¶ added in v0.78.0
type TableSet struct { // Optional EnableSchemaEvolution *bool `ddl:"parameter" sql:"ENABLE_SCHEMA_EVOLUTION"` StageFileFormat *StageFileFormat `ddl:"list,parentheses" sql:"STAGE_FILE_FORMAT ="` StageCopyOptions *StageCopyOptions `ddl:"list,parentheses" sql:"STAGE_COPY_OPTIONS ="` DataRetentionTimeInDays *int `ddl:"parameter" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *int `ddl:"parameter" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` ChangeTracking *bool `ddl:"parameter" sql:"CHANGE_TRACKING"` DefaultDDLCollation *string `ddl:"parameter,single_quotes" sql:"DEFAULT_DDL_COLLATION"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type TableSetRequest ¶ added in v0.78.0
type TableSetRequest struct { EnableSchemaEvolution *bool StageFileFormat *StageFileFormatRequest StageCopyOptions *StageCopyOptionsRequest DataRetentionTimeInDays *int MaxDataExtensionTimeInDays *int ChangeTracking *bool DefaultDDLCollation *string Comment *string }
func NewTableSetRequest ¶ added in v0.78.0
func NewTableSetRequest() *TableSetRequest
func (*TableSetRequest) WithChangeTracking ¶ added in v0.78.0
func (s *TableSetRequest) WithChangeTracking(changeTracking *bool) *TableSetRequest
func (*TableSetRequest) WithComment ¶ added in v0.78.0
func (s *TableSetRequest) WithComment(comment *string) *TableSetRequest
func (*TableSetRequest) WithDataRetentionTimeInDays ¶ added in v0.78.0
func (s *TableSetRequest) WithDataRetentionTimeInDays(dataRetentionTimeInDays *int) *TableSetRequest
func (*TableSetRequest) WithDefaultDDLCollation ¶ added in v0.78.0
func (s *TableSetRequest) WithDefaultDDLCollation(defaultDDLCollation *string) *TableSetRequest
func (*TableSetRequest) WithEnableSchemaEvolution ¶ added in v0.78.0
func (s *TableSetRequest) WithEnableSchemaEvolution(enableSchemaEvolution *bool) *TableSetRequest
func (*TableSetRequest) WithMaxDataExtensionTimeInDays ¶ added in v0.78.0
func (s *TableSetRequest) WithMaxDataExtensionTimeInDays(maxDataExtensionTimeInDays *int) *TableSetRequest
func (*TableSetRequest) WithStageCopyOptions ¶ added in v0.78.0
func (s *TableSetRequest) WithStageCopyOptions(stageCopyOptions StageCopyOptionsRequest) *TableSetRequest
func (*TableSetRequest) WithStageFileFormat ¶ added in v0.78.0
func (s *TableSetRequest) WithStageFileFormat(stageFileFormat StageFileFormatRequest) *TableSetRequest
type TableStageDetails ¶ added in v0.78.0
type TableUnset ¶ added in v0.78.0
type TableUnset struct { DataRetentionTimeInDays *bool `ddl:"keyword" sql:"DATA_RETENTION_TIME_IN_DAYS"` MaxDataExtensionTimeInDays *bool `ddl:"keyword" sql:"MAX_DATA_EXTENSION_TIME_IN_DAYS"` ChangeTracking *bool `ddl:"keyword" sql:"CHANGE_TRACKING"` DefaultDDLCollation *bool `ddl:"keyword" sql:"DEFAULT_DDL_COLLATION"` EnableSchemaEvolution *bool `ddl:"keyword" sql:"ENABLE_SCHEMA_EVOLUTION"` Comment *bool `ddl:"keyword" sql:"COMMENT"` }
type TableUnsetRequest ¶ added in v0.78.0
type TableUnsetRequest struct { DataRetentionTimeInDays bool MaxDataExtensionTimeInDays bool ChangeTracking bool DefaultDDLCollation bool EnableSchemaEvolution bool Comment bool }
func NewTableUnsetRequest ¶ added in v0.78.0
func NewTableUnsetRequest() *TableUnsetRequest
func (*TableUnsetRequest) WithChangeTracking ¶ added in v0.78.0
func (s *TableUnsetRequest) WithChangeTracking(changeTracking bool) *TableUnsetRequest
func (*TableUnsetRequest) WithComment ¶ added in v0.78.0
func (s *TableUnsetRequest) WithComment(comment bool) *TableUnsetRequest
func (*TableUnsetRequest) WithDataRetentionTimeInDays ¶ added in v0.78.0
func (s *TableUnsetRequest) WithDataRetentionTimeInDays(dataRetentionTimeInDays bool) *TableUnsetRequest
func (*TableUnsetRequest) WithDefaultDDLCollation ¶ added in v0.78.0
func (s *TableUnsetRequest) WithDefaultDDLCollation(defaultDDLCollation bool) *TableUnsetRequest
func (*TableUnsetRequest) WithEnableSchemaEvolution ¶ added in v0.78.0
func (s *TableUnsetRequest) WithEnableSchemaEvolution(enableSchemaEvolution bool) *TableUnsetRequest
func (*TableUnsetRequest) WithMaxDataExtensionTimeInDays ¶ added in v0.78.0
func (s *TableUnsetRequest) WithMaxDataExtensionTimeInDays(maxDataExtensionTimeInDays bool) *TableUnsetRequest
type TableUnsetTags ¶ added in v0.78.0
type TableUnsetTags struct {
Tag []ObjectIdentifier `ddl:"keyword"`
}
type Tables ¶ added in v0.78.0
type Tables interface { Create(ctx context.Context, req *CreateTableRequest) error CreateAsSelect(ctx context.Context, req *CreateTableAsSelectRequest) error CreateUsingTemplate(ctx context.Context, req *CreateTableUsingTemplateRequest) error CreateLike(ctx context.Context, req *CreateTableLikeRequest) error CreateClone(ctx context.Context, req *CreateTableCloneRequest) error Alter(ctx context.Context, req *AlterTableRequest) error Drop(ctx context.Context, req *DropTableRequest) error Show(ctx context.Context, req *ShowTableRequest) ([]Table, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*Table, error) DescribeColumns(ctx context.Context, req *DescribeTableColumnsRequest) ([]TableColumnDetails, error) DescribeStage(ctx context.Context, req *DescribeTableStageRequest) ([]TableStageDetails, error) }
type Tag ¶
type Tag struct { CreatedOn time.Time Name string DatabaseName string SchemaName string Owner string Comment string AllowedValues []string OwnerRole string }
func (*Tag) ID ¶
func (v *Tag) ID() SchemaObjectIdentifier
type TagAdd ¶ added in v0.74.0
type TagAdd struct {
AllowedValues *AllowedValues `ddl:"keyword" sql:"ALLOWED_VALUES"`
}
type TagAssociation ¶
type TagAssociation struct { Name ObjectIdentifier `ddl:"identifier"` Value string `ddl:"parameter,single_quotes"` }
type TagAssociationRequest ¶ added in v0.72.0
type TagAssociationRequest struct { Name ObjectIdentifier // required Value string // required }
func NewTagAssociationRequest ¶ added in v0.72.0
func NewTagAssociationRequest( name ObjectIdentifier, value string, ) *TagAssociationRequest
type TagDrop ¶ added in v0.74.0
type TagDrop struct {
AllowedValues *AllowedValues `ddl:"keyword" sql:"ALLOWED_VALUES"`
}
type TagMaskingPolicy ¶ added in v0.74.0
type TagMaskingPolicy struct {
Name SchemaObjectIdentifier `ddl:"identifier" sql:"MASKING POLICY"`
}
type TagRename ¶ added in v0.74.0
type TagRename struct {
Name SchemaObjectIdentifier `ddl:"identifier"`
}
type TagSet ¶ added in v0.74.0
type TagSet struct { MaskingPolicies *TagSetMaskingPolicies `ddl:"keyword"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type TagSetMaskingPolicies ¶ added in v0.74.0
type TagSetMaskingPolicies struct { MaskingPolicies []TagMaskingPolicy `ddl:"list,comma"` Force *bool `ddl:"keyword" sql:"FORCE"` }
type TagSetRequest ¶ added in v0.74.0
type TagSetRequest struct {
// contains filtered or unexported fields
}
func NewTagSetRequest ¶ added in v0.74.0
func NewTagSetRequest() *TagSetRequest
func (*TagSetRequest) WithComment ¶ added in v0.74.0
func (s *TagSetRequest) WithComment(comment string) *TagSetRequest
func (*TagSetRequest) WithForce ¶ added in v0.74.0
func (s *TagSetRequest) WithForce(force bool) *TagSetRequest
func (*TagSetRequest) WithMaskingPolicies ¶ added in v0.74.0
func (s *TagSetRequest) WithMaskingPolicies(maskingPolicies []SchemaObjectIdentifier) *TagSetRequest
type TagUnset ¶ added in v0.74.0
type TagUnset struct { MaskingPolicies *TagUnsetMaskingPolicies `ddl:"keyword"` AllowedValues *bool `ddl:"keyword" sql:"ALLOWED_VALUES"` Comment *bool `ddl:"keyword" sql:"COMMENT"` }
type TagUnsetMaskingPolicies ¶ added in v0.74.0
type TagUnsetMaskingPolicies struct {
MaskingPolicies []TagMaskingPolicy `ddl:"list,comma,no_quotes"`
}
type TagUnsetRequest ¶ added in v0.74.0
type TagUnsetRequest struct {
// contains filtered or unexported fields
}
func NewTagUnsetRequest ¶ added in v0.74.0
func NewTagUnsetRequest() *TagUnsetRequest
func (*TagUnsetRequest) WithAllowedValues ¶ added in v0.74.0
func (s *TagUnsetRequest) WithAllowedValues(allowedValues bool) *TagUnsetRequest
func (*TagUnsetRequest) WithComment ¶ added in v0.74.0
func (s *TagUnsetRequest) WithComment(comment bool) *TagUnsetRequest
func (*TagUnsetRequest) WithMaskingPolicies ¶ added in v0.74.0
func (s *TagUnsetRequest) WithMaskingPolicies(maskingPolicies []SchemaObjectIdentifier) *TagUnsetRequest
type Tags ¶ added in v0.74.0
type Tags interface { Create(ctx context.Context, request *CreateTagRequest) error Alter(ctx context.Context, request *AlterTagRequest) error Show(ctx context.Context, opts *ShowTagRequest) ([]Tag, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*Tag, error) Drop(ctx context.Context, request *DropTagRequest) error Undrop(ctx context.Context, request *UndropTagRequest) error }
type Task ¶ added in v0.73.0
type Task struct { CreatedOn string Name string Id string DatabaseName string SchemaName string Owner string Comment string Warehouse string Schedule string Predecessors []SchemaObjectIdentifier State TaskState Definition string Condition string AllowOverlappingExecution bool ErrorIntegration string LastCommittedOn string LastSuspendedOn string OwnerRoleType string Config string Budget string }
func GetRootTasks ¶ added in v0.75.0
GetRootTasks is a way to get all root tasks for the given tasks. Snowflake does not have (yet) a method to do it without traversing the task graph manually. Task DAG should have a single root but this is checked when the root task is being resumed; that's why we return here multiple roots. Cycles should not be possible in a task DAG, but it is checked when the root task is being resumed; that's why this method has to be cycle-proof.
func (*Task) ID ¶ added in v0.73.0
func (v *Task) ID() SchemaObjectIdentifier
type TaskSet ¶ added in v0.73.0
type TaskSet struct { Warehouse *AccountObjectIdentifier `ddl:"identifier,equals" sql:"WAREHOUSE"` UserTaskManagedInitialWarehouseSize *WarehouseSize `ddl:"parameter,single_quotes" sql:"USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE"` Schedule *string `ddl:"parameter,single_quotes" sql:"SCHEDULE"` Config *string `ddl:"parameter,no_quotes" sql:"CONFIG"` AllowOverlappingExecution *bool `ddl:"parameter" sql:"ALLOW_OVERLAPPING_EXECUTION"` UserTaskTimeoutMs *int `ddl:"parameter" sql:"USER_TASK_TIMEOUT_MS"` SuspendTaskAfterNumFailures *int `ddl:"parameter" sql:"SUSPEND_TASK_AFTER_NUM_FAILURES"` ErrorIntegration *string `ddl:"parameter,no_quotes" sql:"ERROR_INTEGRATION"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` SessionParameters *SessionParameters `ddl:"list,no_parentheses"` }
type TaskSetRequest ¶ added in v0.73.0
type TaskSetRequest struct { Warehouse *AccountObjectIdentifier UserTaskManagedInitialWarehouseSize *WarehouseSize Schedule *string Config *string AllowOverlappingExecution *bool UserTaskTimeoutMs *int SuspendTaskAfterNumFailures *int ErrorIntegration *string Comment *string SessionParameters *SessionParameters }
func NewTaskSetRequest ¶ added in v0.73.0
func NewTaskSetRequest() *TaskSetRequest
func (*TaskSetRequest) WithAllowOverlappingExecution ¶ added in v0.73.0
func (s *TaskSetRequest) WithAllowOverlappingExecution(AllowOverlappingExecution *bool) *TaskSetRequest
func (*TaskSetRequest) WithComment ¶ added in v0.73.0
func (s *TaskSetRequest) WithComment(Comment *string) *TaskSetRequest
func (*TaskSetRequest) WithConfig ¶ added in v0.73.0
func (s *TaskSetRequest) WithConfig(Config *string) *TaskSetRequest
func (*TaskSetRequest) WithErrorIntegration ¶ added in v0.75.0
func (s *TaskSetRequest) WithErrorIntegration(ErrorIntegration *string) *TaskSetRequest
func (*TaskSetRequest) WithSchedule ¶ added in v0.73.0
func (s *TaskSetRequest) WithSchedule(Schedule *string) *TaskSetRequest
func (*TaskSetRequest) WithSessionParameters ¶ added in v0.73.0
func (s *TaskSetRequest) WithSessionParameters(SessionParameters *SessionParameters) *TaskSetRequest
func (*TaskSetRequest) WithSuspendTaskAfterNumFailures ¶ added in v0.73.0
func (s *TaskSetRequest) WithSuspendTaskAfterNumFailures(SuspendTaskAfterNumFailures *int) *TaskSetRequest
func (*TaskSetRequest) WithUserTaskManagedInitialWarehouseSize ¶ added in v0.75.0
func (s *TaskSetRequest) WithUserTaskManagedInitialWarehouseSize(UserTaskManagedInitialWarehouseSize *WarehouseSize) *TaskSetRequest
func (*TaskSetRequest) WithUserTaskTimeoutMs ¶ added in v0.73.0
func (s *TaskSetRequest) WithUserTaskTimeoutMs(UserTaskTimeoutMs *int) *TaskSetRequest
func (*TaskSetRequest) WithWarehouse ¶ added in v0.73.0
func (s *TaskSetRequest) WithWarehouse(Warehouse *AccountObjectIdentifier) *TaskSetRequest
type TaskUnset ¶ added in v0.73.0
type TaskUnset struct { Warehouse *bool `ddl:"keyword" sql:"WAREHOUSE"` Schedule *bool `ddl:"keyword" sql:"SCHEDULE"` Config *bool `ddl:"keyword" sql:"CONFIG"` AllowOverlappingExecution *bool `ddl:"keyword" sql:"ALLOW_OVERLAPPING_EXECUTION"` UserTaskTimeoutMs *bool `ddl:"keyword" sql:"USER_TASK_TIMEOUT_MS"` SuspendTaskAfterNumFailures *bool `ddl:"keyword" sql:"SUSPEND_TASK_AFTER_NUM_FAILURES"` ErrorIntegration *bool `ddl:"keyword" sql:"ERROR_INTEGRATION"` Comment *bool `ddl:"keyword" sql:"COMMENT"` SessionParametersUnset *SessionParametersUnset `ddl:"list,no_parentheses"` }
type TaskUnsetRequest ¶ added in v0.73.0
type TaskUnsetRequest struct { Warehouse *bool Schedule *bool Config *bool AllowOverlappingExecution *bool UserTaskTimeoutMs *bool SuspendTaskAfterNumFailures *bool ErrorIntegration *bool Comment *bool SessionParametersUnset *SessionParametersUnset }
func NewTaskUnsetRequest ¶ added in v0.73.0
func NewTaskUnsetRequest() *TaskUnsetRequest
func (*TaskUnsetRequest) WithAllowOverlappingExecution ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithAllowOverlappingExecution(AllowOverlappingExecution *bool) *TaskUnsetRequest
func (*TaskUnsetRequest) WithComment ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithComment(Comment *bool) *TaskUnsetRequest
func (*TaskUnsetRequest) WithConfig ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithConfig(Config *bool) *TaskUnsetRequest
func (*TaskUnsetRequest) WithErrorIntegration ¶ added in v0.75.0
func (s *TaskUnsetRequest) WithErrorIntegration(ErrorIntegration *bool) *TaskUnsetRequest
func (*TaskUnsetRequest) WithSchedule ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithSchedule(Schedule *bool) *TaskUnsetRequest
func (*TaskUnsetRequest) WithSessionParametersUnset ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithSessionParametersUnset(SessionParametersUnset *SessionParametersUnset) *TaskUnsetRequest
func (*TaskUnsetRequest) WithSuspendTaskAfterNumFailures ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithSuspendTaskAfterNumFailures(SuspendTaskAfterNumFailures *bool) *TaskUnsetRequest
func (*TaskUnsetRequest) WithUserTaskTimeoutMs ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithUserTaskTimeoutMs(UserTaskTimeoutMs *bool) *TaskUnsetRequest
func (*TaskUnsetRequest) WithWarehouse ¶ added in v0.73.0
func (s *TaskUnsetRequest) WithWarehouse(Warehouse *bool) *TaskUnsetRequest
type Tasks ¶ added in v0.73.0
type Tasks interface { Create(ctx context.Context, request *CreateTaskRequest) error Clone(ctx context.Context, request *CloneTaskRequest) error Alter(ctx context.Context, request *AlterTaskRequest) error Drop(ctx context.Context, request *DropTaskRequest) error Show(ctx context.Context, request *ShowTaskRequest) ([]Task, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*Task, error) Describe(ctx context.Context, id SchemaObjectIdentifier) (*Task, error) Execute(ctx context.Context, request *ExecuteTaskRequest) error }
type TimeFormat ¶ added in v0.71.0
type TimeFormat string
const ( TimeFormatISO TimeFormat = "TimeFormatISO" TimeFormatRFC TimeFormat = "TimeFormatRFC" TimeFormatAny TimeFormat = "TimeFormatAny" )
type TimeStampFormat ¶ added in v0.71.0
type TimeStampFormat string
const ( TimeStampFormatISO TimeStampFormat = "TimeStampFormatISO" TimeStampFormatRFC TimeStampFormat = "TimeStampFormatRFC" TimeStampFormatOther TimeStampFormat = "TimeStampFormatOther" TimeStampFormatAny TimeStampFormat = "TimeStampFormatAny" )
type TimeTravel ¶ added in v0.66.0
type TimeTravelRequest ¶ added in v0.78.0
func NewTimeTravelRequest ¶ added in v0.78.0
func NewTimeTravelRequest() *TimeTravelRequest
func (*TimeTravelRequest) WithOffset ¶ added in v0.78.0
func (s *TimeTravelRequest) WithOffset(offset *int) *TimeTravelRequest
func (*TimeTravelRequest) WithStatement ¶ added in v0.78.0
func (s *TimeTravelRequest) WithStatement(statement *string) *TimeTravelRequest
func (*TimeTravelRequest) WithTimestamp ¶ added in v0.78.0
func (s *TimeTravelRequest) WithTimestamp(timestamp *time.Time) *TimeTravelRequest
type TraceLevel ¶ added in v0.65.0
type TraceLevel string
const ( TraceLevelAlways TraceLevel = "ALWAYS" TraceLevelOnEvent TraceLevel = "ON_EVENT" TraceLevelOff TraceLevel = "OFF" )
type TransactionDefaultIsolationLevel ¶ added in v0.65.0
type TransactionDefaultIsolationLevel string
const (
TransactionDefaultIsolationLevelReadCommitted TransactionDefaultIsolationLevel = "READ COMMITTED"
)
type TriggerAction ¶ added in v0.69.0
type TriggerAction string
const ( TriggerActionSuspend TriggerAction = "SUSPEND" TriggerActionSuspendImmediate TriggerAction = "SUSPEND_IMMEDIATE" TriggerActionNotify TriggerAction = "NOTIFY" )
type TriggerDefinition ¶ added in v0.69.0
type TriggerDefinition struct { Threshold int `ddl:"parameter,no_equals" sql:"ON"` TriggerAction TriggerAction `ddl:"parameter,no_equals" sql:"PERCENT DO"` }
type UndropTagRequest ¶ added in v0.74.0
type UndropTagRequest struct {
// contains filtered or unexported fields
}
func NewUndropTagRequest ¶ added in v0.74.0
func NewUndropTagRequest(name SchemaObjectIdentifier) *UndropTagRequest
type UnsupportedDDLAction ¶ added in v0.65.0
type UnsupportedDDLAction string
const ( UnsupportedDDLActionIgnore UnsupportedDDLAction = "IGNORE" UnsupportedDDLActionFail UnsupportedDDLAction = "FAIL" )
type UseRoleRequest ¶ added in v0.72.0
type UseRoleRequest struct {
// contains filtered or unexported fields
}
func NewUseRoleRequest ¶ added in v0.72.0
func NewUseRoleRequest(id AccountObjectIdentifier) *UseRoleRequest
type UseSecondaryRolesRequest ¶ added in v0.72.0
type UseSecondaryRolesRequest struct {
// contains filtered or unexported fields
}
func NewUseSecondaryRolesRequest ¶ added in v0.72.0
func NewUseSecondaryRolesRequest(option SecondaryRoleOption) *UseSecondaryRolesRequest
type User ¶ added in v0.65.0
type User struct { Name string CreatedOn time.Time LoginName string DisplayName string FirstName string LastName string Email string MinsToUnlock string DaysToExpiry string Comment string Disabled bool MustChangePassword bool SnowflakeLock bool DefaultWarehouse string DefaultNamespace string DefaultRole string DefaultSecondaryRoles string ExtAuthnDuo bool ExtAuthnUid string MinsToBypassMfa string Owner string LastSuccessLogin time.Time ExpiresAtTime time.Time LockedUntilTime time.Time HasPassword bool HasRsaPublicKey bool }
func (*User) ID ¶ added in v0.65.0
func (v *User) ID() AccountObjectIdentifier
func (*User) ObjectType ¶ added in v0.65.0
func (v *User) ObjectType() ObjectType
type UserDetails ¶ added in v0.65.0
type UserDetails struct { Name *StringProperty Comment *StringProperty DisplayName *StringProperty LoginName *StringProperty FirstName *StringProperty MiddleName *StringProperty LastName *StringProperty Email *StringProperty Password *StringProperty MustChangePassword *BoolProperty Disabled *BoolProperty SnowflakeLock *BoolProperty SnowflakeSupport *BoolProperty DaysToExpiry *IntProperty MinsToUnlock *IntProperty DefaultWarehouse *StringProperty DefaultNamespace *StringProperty DefaultRole *StringProperty DefaultSecondaryRoles *StringProperty ExtAuthnDuo *BoolProperty ExtAuthnUid *StringProperty MinsToBypassMfa *IntProperty MinsToBypassNetworkPolicy *IntProperty RsaPublicKey *StringProperty RsaPublicKeyFp *StringProperty RsaPublicKey2 *StringProperty RsaPublicKey2Fp *StringProperty PasswordLastSetTime *StringProperty CustomLandingPageUrl *StringProperty CustomLandingPageUrlFlushNextUiLoad *BoolProperty }
UserDetails contains details about a user.
type UserObjectParameters ¶ added in v0.70.0
type UserObjectParametersUnset ¶ added in v0.70.0
type UserObjectProperties ¶ added in v0.70.0
type UserObjectProperties struct { Password *string `ddl:"parameter,single_quotes" sql:"PASSWORD"` LoginName *string `ddl:"parameter,single_quotes" sql:"LOGIN_NAME"` DisplayName *string `ddl:"parameter,single_quotes" sql:"DISPLAY_NAME"` FirstName *string `ddl:"parameter,single_quotes" sql:"FIRST_NAME"` MiddleName *string `ddl:"parameter,single_quotes" sql:"MIDDLE_NAME"` LastName *string `ddl:"parameter,single_quotes" sql:"LAST_NAME"` Email *string `ddl:"parameter,single_quotes" sql:"EMAIL"` MustChangePassword *bool `ddl:"parameter,no_quotes" sql:"MUST_CHANGE_PASSWORD"` Disable *bool `ddl:"parameter,no_quotes" sql:"DISABLED"` DaysToExpiry *int `ddl:"parameter,single_quotes" sql:"DAYS_TO_EXPIRY"` MinsToUnlock *int `ddl:"parameter,single_quotes" sql:"MINS_TO_UNLOCK"` DefaultWarehosue *string `ddl:"parameter,single_quotes" sql:"DEFAULT_WAREHOUSE"` DefaultNamespace *string `ddl:"parameter,single_quotes" sql:"DEFAULT_NAMESPACE"` DefaultRole *string `ddl:"parameter,no_quotes" sql:"DEFAULT_ROLE"` DefaultSeconaryRoles *SecondaryRoles `ddl:"keyword" sql:"DEFAULT_SECONDARY_ROLES"` MinsToBypassMFA *int `ddl:"parameter,single_quotes" sql:"MINS_TO_BYPASS_MFA"` RSAPublicKey *string `ddl:"parameter,single_quotes" sql:"RSA_PUBLIC_KEY"` RSAPublicKey2 *string `ddl:"parameter,single_quotes" sql:"RSA_PUBLIC_KEY_2"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` }
type UserObjectPropertiesUnset ¶ added in v0.70.0
type UserObjectPropertiesUnset struct { Password *bool `ddl:"keyword" sql:"PASSWORD"` LoginName *bool `ddl:"keyword" sql:"LOGIN_NAME"` DisplayName *bool `ddl:"keyword" sql:"DISPLAY_NAME"` FirstName *bool `ddl:"keyword" sql:"FIRST_NAME"` MiddleName *bool `ddl:"keyword" sql:"MIDDLE_NAME"` LastName *bool `ddl:"keyword" sql:"LAST_NAME"` Email *bool `ddl:"keyword" sql:"EMAIL"` MustChangePassword *bool `ddl:"keyword" sql:"MUST_CHANGE_PASSWORD"` Disable *bool `ddl:"keyword" sql:"DISABLED"` DaysToExpiry *bool `ddl:"keyword" sql:"DAYS_TO_EXPIRY"` MinsToUnlock *bool `ddl:"keyword" sql:"MINS_TO_UNLOCK"` DefaultWarehosue *bool `ddl:"keyword" sql:"DEFAULT_WAREHOUSE"` DefaultNamespace *bool `ddl:"keyword" sql:"DEFAULT_NAMESPACE"` DefaultRole *bool `ddl:"keyword" sql:"DEFAULT_ROLE"` DefaultSeconaryRoles *bool `ddl:"keyword" sql:"DEFAULT_SECONDARY_ROLES"` MinsToBypassMFA *bool `ddl:"keyword" sql:"MINS_TO_BYPASS_MFA"` RSAPublicKey *bool `ddl:"keyword" sql:"RSA_PUBLIC_KEY"` RSAPublicKey2 *bool `ddl:"keyword" sql:"RSA_PUBLIC_KEY_2"` Comment *bool `ddl:"keyword" sql:"COMMENT"` }
type UserParameter ¶ added in v0.65.0
type UserParameter string
const ( // User Parameters UserParameterEnableUnredactedQuerySyntaxError UserParameter = "ENABLE_UNREDACTED_QUERY_SYNTAX_ERROR" // Session Parameters (inherited) UserParameterAbortDetachedQuery UserParameter = "ABORT_DETACHED_QUERY" UserParameterAutocommit UserParameter = "AUTOCOMMIT" UserParameterBinaryInputFormat UserParameter = "BINARY_INPUT_FORMAT" UserParameterBinaryOutputFormat UserParameter = "BINARY_OUTPUT_FORMAT" UserParameterClientMetadataRequestUseConnectionCtx UserParameter = "CLIENT_METADATA_REQUEST_USE_CONNECTION_CTX" UserParameterClientMetadataUseSessionDatabase UserParameter = "CLIENT_METADATA_USE_SESSION_DATABASE" UserParameterClientResultColumnCaseInsensitive UserParameter = "CLIENT_RESULT_COLUMN_CASE_INSENSITIVE" UserParameterDateInputFormat UserParameter = "DATE_INPUT_FORMAT" UserParameterDateOutputFormat UserParameter = "DATE_OUTPUT_FORMAT" UserParameterErrorOnNondeterministicMerge UserParameter = "ERROR_ON_NONDETERMINISTIC_MERGE" UserParameterErrorOnNondeterministicUpdate UserParameter = "ERROR_ON_NONDETERMINISTIC_UPDATE" UserParameterGeographyOutputFormat UserParameter = "GEOGRAPHY_OUTPUT_FORMAT" UserParameterJsonIndent UserParameter = "JSON_INDENT" UserParameterLockTimeout UserParameter = "LOCK_TIMEOUT" UserParameterMultiStatementCount UserParameter = "MULTI_STATEMENT_COUNT" UserParameterQueryTag UserParameter = "QUERY_TAG" UserParameterQuotedIdentifiersIgnoreCase UserParameter = "QUOTED_IDENTIFIERS_IGNORE_CASE" UserParameterRowsPerResultset UserParameter = "ROWS_PER_RESULTSET" UserParameterSimulatedDataSharingConsumer UserParameter = "SIMULATED_DATA_SHARING_CONSUMER" UserParameterStatementTimeoutInSeconds UserParameter = "STATEMENT_TIMEOUT_IN_SECONDS" UserParameterStrictJsonOutput UserParameter = "STRICT_JSON_OUTPUT" UserParameterTimeInputFormat UserParameter = "TIME_INPUT_FORMAT" UserParameterTimeOutputFormat UserParameter = "TIME_OUTPUT_FORMAT" UserParameterTimestampDayIsAlways24h UserParameter = "TIMESTAMP_DAY_IS_ALWAYS_24H" UserParameterTimestampInputFormat UserParameter = "TIMESTAMP_INPUT_FORMAT" UserParameterTimestampLtzOutputFormat UserParameter = "TIMESTAMP_LTZ_OUTPUT_FORMAT" UserParameterTimestampNtzOutputFormat UserParameter = "TIMESTAMP_NTZ_OUTPUT_FORMAT" UserParameterTimestampOutputFormat UserParameter = "TIMESTAMP_OUTPUT_FORMAT" UserParameterTimestampTypeMapping UserParameter = "TIMESTAMP_TYPE_MAPPING" UserParameterTimestampTzOutputFormat UserParameter = "TIMESTAMP_TZ_OUTPUT_FORMAT" UserParameterTimezone UserParameter = "TIMEZONE" UserParameterTransactionDefaultIsolationLevel UserParameter = "TRANSACTION_DEFAULT_ISOLATION_LEVEL" UserParameterTwoDigitCenturyStart UserParameter = "TWO_DIGIT_CENTURY_START" UserParameterUnsupportedDdlAction UserParameter = "UNSUPPORTED_DDL_ACTION" UserParameterUseCachedResult UserParameter = "USE_CACHED_RESULT" UserParameterWeekOfYearPolicy UserParameter = "WEEK_OF_YEAR_POLICY" UserParameterWeekStart UserParameter = "WEEK_START" )
type UserParameters ¶ added in v0.65.0
type UserParameters struct {
EnableUnredactedQuerySyntaxError *bool `ddl:"parameter" sql:"ENABLE_UNREDACTED_QUERY_SYNTAX_ERROR"`
}
type UserParametersUnset ¶ added in v0.65.0
type UserParametersUnset struct {
EnableUnredactedQuerySyntaxError *bool `ddl:"keyword" sql:"ENABLE_UNREDACTED_QUERY_SYNTAX_ERROR"`
}
type UserSet ¶ added in v0.70.0
type UserSet struct { PasswordPolicy *string `ddl:"parameter" sql:"PASSWORD POLICY"` SessionPolicy *string `ddl:"parameter" sql:"SESSION POLICY"` ObjectProperties *UserObjectProperties `ddl:"keyword"` ObjectParameters *UserObjectParameters `ddl:"keyword"` SessionParameters *SessionParameters `ddl:"keyword"` }
type UserTag ¶ added in v0.70.0
type UserTag struct { Name ObjectIdentifier `ddl:"keyword"` Value string `ddl:"parameter,single_quotes"` }
type UserUnset ¶ added in v0.70.0
type UserUnset struct { PasswordPolicy *bool `ddl:"keyword" sql:"PASSWORD POLICY"` SessionPolicy *bool `ddl:"keyword" sql:"SESSION POLICY"` ObjectProperties *UserObjectPropertiesUnset `ddl:"list"` ObjectParameters *UserObjectParametersUnset `ddl:"list"` SessionParameters *SessionParametersUnset `ddl:"list"` }
type Users ¶ added in v0.65.0
type Users interface { Create(ctx context.Context, id AccountObjectIdentifier, opts *CreateUserOptions) error Alter(ctx context.Context, id AccountObjectIdentifier, opts *AlterUserOptions) error Drop(ctx context.Context, id AccountObjectIdentifier) error Describe(ctx context.Context, id AccountObjectIdentifier) (*UserDetails, error) Show(ctx context.Context, opts *ShowUserOptions) ([]User, error) ShowByID(ctx context.Context, id AccountObjectIdentifier) (*User, error) }
type View ¶ added in v0.76.0
type View struct { CreatedOn string Name string Kind string Reserved string DatabaseName string SchemaName string Owner string Comment string Text string IsSecure bool IsMaterialized bool OwnerRoleType string ChangeTracking string }
func (*View) ID ¶ added in v0.76.0
func (v *View) ID() SchemaObjectIdentifier
type ViewAddRowAccessPolicy ¶ added in v0.76.0
type ViewAddRowAccessPolicy struct { RowAccessPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"ROW ACCESS POLICY"` On []string `ddl:"keyword,parentheses" sql:"ON"` // contains filtered or unexported fields }
type ViewAddRowAccessPolicyRequest ¶ added in v0.76.0
type ViewAddRowAccessPolicyRequest struct { RowAccessPolicy SchemaObjectIdentifier // required On []string // required }
func NewViewAddRowAccessPolicyRequest ¶ added in v0.76.0
func NewViewAddRowAccessPolicyRequest( RowAccessPolicy SchemaObjectIdentifier, On []string, ) *ViewAddRowAccessPolicyRequest
type ViewColumn ¶ added in v0.76.0
type ViewColumnMaskingPolicy ¶ added in v0.76.0
type ViewColumnMaskingPolicy struct { Name string `ddl:"keyword"` MaskingPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"MASKING POLICY"` Using []string `ddl:"keyword,parentheses" sql:"USING"` Tag []TagAssociation `ddl:"keyword,parentheses" sql:"TAG"` }
type ViewColumnMaskingPolicyRequest ¶ added in v0.76.0
type ViewColumnMaskingPolicyRequest struct { Name string // required MaskingPolicy SchemaObjectIdentifier // required Using []string Tag []TagAssociation }
func NewViewColumnMaskingPolicyRequest ¶ added in v0.76.0
func NewViewColumnMaskingPolicyRequest( Name string, MaskingPolicy SchemaObjectIdentifier, ) *ViewColumnMaskingPolicyRequest
func (*ViewColumnMaskingPolicyRequest) WithTag ¶ added in v0.76.0
func (s *ViewColumnMaskingPolicyRequest) WithTag(Tag []TagAssociation) *ViewColumnMaskingPolicyRequest
func (*ViewColumnMaskingPolicyRequest) WithUsing ¶ added in v0.76.0
func (s *ViewColumnMaskingPolicyRequest) WithUsing(Using []string) *ViewColumnMaskingPolicyRequest
type ViewColumnRequest ¶ added in v0.76.0
func NewViewColumnRequest ¶ added in v0.76.0
func NewViewColumnRequest( Name string, ) *ViewColumnRequest
func (*ViewColumnRequest) WithComment ¶ added in v0.76.0
func (s *ViewColumnRequest) WithComment(Comment *string) *ViewColumnRequest
type ViewDetails ¶ added in v0.76.0
type ViewDetails struct { Name string Type DataType Kind string IsNullable bool Default *string IsPrimary bool IsUnique bool Check *bool Expression *string Comment *string PolicyName *string }
ViewDetails is a copy of ExternalTableColumnDetails.
type ViewDropAndAddRowAccessPolicy ¶ added in v0.76.0
type ViewDropAndAddRowAccessPolicy struct { Drop ViewDropRowAccessPolicy `ddl:"keyword"` Add ViewAddRowAccessPolicy `ddl:"keyword"` }
type ViewDropAndAddRowAccessPolicyRequest ¶ added in v0.76.0
type ViewDropAndAddRowAccessPolicyRequest struct { Drop ViewDropRowAccessPolicyRequest // required Add ViewAddRowAccessPolicyRequest // required }
func NewViewDropAndAddRowAccessPolicyRequest ¶ added in v0.76.0
func NewViewDropAndAddRowAccessPolicyRequest( Drop ViewDropRowAccessPolicyRequest, Add ViewAddRowAccessPolicyRequest, ) *ViewDropAndAddRowAccessPolicyRequest
type ViewDropRowAccessPolicy ¶ added in v0.76.0
type ViewDropRowAccessPolicy struct { RowAccessPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"ROW ACCESS POLICY"` // contains filtered or unexported fields }
type ViewDropRowAccessPolicyRequest ¶ added in v0.76.0
type ViewDropRowAccessPolicyRequest struct {
RowAccessPolicy SchemaObjectIdentifier // required
}
func NewViewDropRowAccessPolicyRequest ¶ added in v0.76.0
func NewViewDropRowAccessPolicyRequest( RowAccessPolicy SchemaObjectIdentifier, ) *ViewDropRowAccessPolicyRequest
type ViewRowAccessPolicy ¶ added in v0.76.0
type ViewRowAccessPolicy struct { RowAccessPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"ROW ACCESS POLICY"` On []string `ddl:"keyword,parentheses" sql:"ON"` }
type ViewRowAccessPolicyRequest ¶ added in v0.76.0
type ViewRowAccessPolicyRequest struct { RowAccessPolicy SchemaObjectIdentifier // required On []string // required }
func NewViewRowAccessPolicyRequest ¶ added in v0.76.0
func NewViewRowAccessPolicyRequest( RowAccessPolicy SchemaObjectIdentifier, On []string, ) *ViewRowAccessPolicyRequest
type ViewSetColumnMaskingPolicy ¶ added in v0.76.0
type ViewSetColumnMaskingPolicy struct { Name string `ddl:"keyword"` MaskingPolicy SchemaObjectIdentifier `ddl:"identifier" sql:"MASKING POLICY"` Using []string `ddl:"keyword,parentheses" sql:"USING"` Force *bool `ddl:"keyword" sql:"FORCE"` // contains filtered or unexported fields }
type ViewSetColumnMaskingPolicyRequest ¶ added in v0.76.0
type ViewSetColumnMaskingPolicyRequest struct { Name string // required MaskingPolicy SchemaObjectIdentifier // required Using []string Force *bool }
func NewViewSetColumnMaskingPolicyRequest ¶ added in v0.76.0
func NewViewSetColumnMaskingPolicyRequest( Name string, MaskingPolicy SchemaObjectIdentifier, ) *ViewSetColumnMaskingPolicyRequest
func (*ViewSetColumnMaskingPolicyRequest) WithForce ¶ added in v0.76.0
func (s *ViewSetColumnMaskingPolicyRequest) WithForce(Force *bool) *ViewSetColumnMaskingPolicyRequest
func (*ViewSetColumnMaskingPolicyRequest) WithUsing ¶ added in v0.76.0
func (s *ViewSetColumnMaskingPolicyRequest) WithUsing(Using []string) *ViewSetColumnMaskingPolicyRequest
type ViewSetColumnTags ¶ added in v0.76.0
type ViewSetColumnTags struct { Name string `ddl:"keyword"` SetTags []TagAssociation `ddl:"keyword" sql:"SET TAG"` // contains filtered or unexported fields }
type ViewSetColumnTagsRequest ¶ added in v0.76.0
type ViewSetColumnTagsRequest struct { Name string // required SetTags []TagAssociation // required }
func NewViewSetColumnTagsRequest ¶ added in v0.76.0
func NewViewSetColumnTagsRequest( Name string, SetTags []TagAssociation, ) *ViewSetColumnTagsRequest
type ViewUnsetColumnMaskingPolicy ¶ added in v0.76.0
type ViewUnsetColumnMaskingPolicy struct { Name string `ddl:"keyword"` // contains filtered or unexported fields }
type ViewUnsetColumnMaskingPolicyRequest ¶ added in v0.76.0
type ViewUnsetColumnMaskingPolicyRequest struct {
Name string // required
}
func NewViewUnsetColumnMaskingPolicyRequest ¶ added in v0.76.0
func NewViewUnsetColumnMaskingPolicyRequest( Name string, ) *ViewUnsetColumnMaskingPolicyRequest
type ViewUnsetColumnTags ¶ added in v0.76.0
type ViewUnsetColumnTags struct { Name string `ddl:"keyword"` UnsetTags []ObjectIdentifier `ddl:"keyword" sql:"UNSET TAG"` // contains filtered or unexported fields }
type ViewUnsetColumnTagsRequest ¶ added in v0.76.0
type ViewUnsetColumnTagsRequest struct { Name string // required UnsetTags []ObjectIdentifier // required }
func NewViewUnsetColumnTagsRequest ¶ added in v0.76.0
func NewViewUnsetColumnTagsRequest( Name string, UnsetTags []ObjectIdentifier, ) *ViewUnsetColumnTagsRequest
type Views ¶ added in v0.76.0
type Views interface { Create(ctx context.Context, request *CreateViewRequest) error Alter(ctx context.Context, request *AlterViewRequest) error Drop(ctx context.Context, request *DropViewRequest) error Show(ctx context.Context, request *ShowViewRequest) ([]View, error) ShowByID(ctx context.Context, id SchemaObjectIdentifier) (*View, error) Describe(ctx context.Context, id SchemaObjectIdentifier) ([]ViewDetails, error) }
type Warehouse ¶
type Warehouse struct { Name string State WarehouseState Type WarehouseType Size WarehouseSize MinClusterCount int MaxClusterCount int StartedClusters int Running int Queued int IsDefault bool IsCurrent bool AutoSuspend int AutoResume bool Available float64 Provisioning float64 Quiescing float64 Other float64 CreatedOn time.Time ResumedOn time.Time UpdatedOn time.Time Owner string Comment string EnableQueryAcceleration bool QueryAccelerationMaxScaleFactor int ResourceMonitor string ScalingPolicy ScalingPolicy }
func (*Warehouse) ID ¶
func (v *Warehouse) ID() AccountObjectIdentifier
func (*Warehouse) ObjectType ¶ added in v0.65.0
func (v *Warehouse) ObjectType() ObjectType
type WarehouseDetails ¶
type WarehouseSet ¶ added in v0.65.0
type WarehouseSet struct { // Object properties WarehouseType *WarehouseType `ddl:"parameter,single_quotes" sql:"WAREHOUSE_TYPE"` WarehouseSize *WarehouseSize `ddl:"parameter,single_quotes" sql:"WAREHOUSE_SIZE"` WaitForCompletion *bool `ddl:"parameter" sql:"WAIT_FOR_COMPLETION"` MaxClusterCount *int `ddl:"parameter" sql:"MAX_CLUSTER_COUNT"` MinClusterCount *int `ddl:"parameter" sql:"MIN_CLUSTER_COUNT"` ScalingPolicy *ScalingPolicy `ddl:"parameter,single_quotes" sql:"SCALING_POLICY"` AutoSuspend *int `ddl:"parameter" sql:"AUTO_SUSPEND"` AutoResume *bool `ddl:"parameter" sql:"AUTO_RESUME"` ResourceMonitor AccountObjectIdentifier `ddl:"identifier,equals" sql:"RESOURCE_MONITOR"` Comment *string `ddl:"parameter,single_quotes" sql:"COMMENT"` EnableQueryAcceleration *bool `ddl:"parameter" sql:"ENABLE_QUERY_ACCELERATION"` QueryAccelerationMaxScaleFactor *int `ddl:"parameter" sql:"QUERY_ACCELERATION_MAX_SCALE_FACTOR"` // Object params MaxConcurrencyLevel *int `ddl:"parameter" sql:"MAX_CONCURRENCY_LEVEL"` StatementQueuedTimeoutInSeconds *int `ddl:"parameter" sql:"STATEMENT_QUEUED_TIMEOUT_IN_SECONDS"` StatementTimeoutInSeconds *int `ddl:"parameter" sql:"STATEMENT_TIMEOUT_IN_SECONDS"` }
type WarehouseSize ¶ added in v0.65.0
type WarehouseSize string
var ( WarehouseSizeXSmall WarehouseSize = "XSMALL" WarehouseSizeSmall WarehouseSize = "SMALL" WarehouseSizeMedium WarehouseSize = "MEDIUM" WarehouseSizeLarge WarehouseSize = "LARGE" WarehouseSizeXLarge WarehouseSize = "XLARGE" WarehouseSizeXXLarge WarehouseSize = "XXLARGE" WarehouseSizeXXXLarge WarehouseSize = "XXXLARGE" WarehouseSizeX4Large WarehouseSize = "X4LARGE" WarehouseSizeX5Large WarehouseSize = "X5LARGE" WarehouseSizeX6Large WarehouseSize = "X6LARGE" )
func ToWarehouseSize ¶ added in v0.66.2
func ToWarehouseSize(s string) (WarehouseSize, error)
type WarehouseState ¶ added in v0.65.0
type WarehouseState string
const ( WarehouseStateSuspended WarehouseState = "SUSPENDED" WarehouseStateSuspending WarehouseState = "SUSPENDING" WarehouseStateStarted WarehouseState = "STARTED" WarehouseStateResizing WarehouseState = "RESIZING" WarehouseStateResuming WarehouseState = "RESUMING" )
type WarehouseType ¶ added in v0.65.0
type WarehouseType string
var ( WarehouseTypeStandard WarehouseType = "STANDARD" WarehouseTypeSnowparkOptimized WarehouseType = "SNOWPARK-OPTIMIZED" )
type WarehouseUnset ¶ added in v0.65.0
type WarehouseUnset struct { // Object properties WarehouseType *bool `ddl:"keyword" sql:"WAREHOUSE_TYPE"` WaitForCompletion *bool `ddl:"keyword" sql:"WAIT_FOR_COMPLETION"` MaxClusterCount *bool `ddl:"keyword" sql:"MAX_CLUSTER_COUNT"` MinClusterCount *bool `ddl:"keyword" sql:"MIN_CLUSTER_COUNT"` ScalingPolicy *bool `ddl:"keyword" sql:"SCALING_POLICY"` AutoSuspend *bool `ddl:"keyword" sql:"AUTO_SUSPEND"` AutoResume *bool `ddl:"keyword" sql:"AUTO_RESUME"` ResourceMonitor *bool `ddl:"keyword" sql:"RESOURCE_MONITOR"` Comment *bool `ddl:"keyword" sql:"COMMENT"` EnableQueryAcceleration *bool `ddl:"keyword" sql:"ENABLE_QUERY_ACCELERATION"` QueryAccelerationMaxScaleFactor *bool `ddl:"keyword" sql:"QUERY_ACCELERATION_MAX_SCALE_FACTOR"` // Object params MaxConcurrencyLevel *bool `ddl:"keyword" sql:"MAX_CONCURRENCY_LEVEL"` StatementQueuedTimeoutInSeconds *bool `ddl:"keyword" sql:"STATEMENT_QUEUED_TIMEOUT_IN_SECONDS"` StatementTimeoutInSeconds *bool `ddl:"keyword" sql:"STATEMENT_TIMEOUT_IN_SECONDS"` }
type Warehouses ¶
type Warehouses interface { Create(ctx context.Context, id AccountObjectIdentifier, opts *CreateWarehouseOptions) error Alter(ctx context.Context, id AccountObjectIdentifier, opts *AlterWarehouseOptions) error Drop(ctx context.Context, id AccountObjectIdentifier, opts *DropWarehouseOptions) error Show(ctx context.Context, opts *ShowWarehouseOptions) ([]Warehouse, error) ShowByID(ctx context.Context, id AccountObjectIdentifier) (*Warehouse, error) Describe(ctx context.Context, id AccountObjectIdentifier) (*WarehouseDetails, error) }
type XMLCompression ¶ added in v0.68.0
type XMLCompression string
var ( XMLCompressionAuto XMLCompression = "AUTO" XMLCompressionGzip XMLCompression = "GZIP" XMLCompressionBz2 XMLCompression = "BZ2" XMLCompressionBrotli XMLCompression = "BROTLI" XMLCompressionZstd XMLCompression = "ZSTD" XMLCompressionDeflate XMLCompression = "DEFLATE" XMLCompressionRawDeflate XMLCompression = "RAW_DEFLATE" XMLCompressionNone XMLCompression = "NONE" )
Source Files ¶
- accounts.go
- alerts.go
- application_roles_def.go
- application_roles_dto_builders_gen.go
- application_roles_dto_gen.go
- application_roles_gen.go
- application_roles_impl_gen.go
- application_roles_validations_gen.go
- client.go
- client_extensions_unsafe.go
- comments.go
- common_table_types.go
- common_types.go
- config.go
- context_functions.go
- conversion_functions.go
- data_types.go
- database_role.go
- database_role_dto.go
- database_role_dto_builders.go
- database_role_impl.go
- database_role_validations.go
- databases.go
- dynamic_table.go
- dynamic_table_dto.go
- dynamic_table_dto_builders.go
- dynamic_table_impl.go
- dynamic_table_validations.go
- errors.go
- event_tables_def.go
- event_tables_dto_builders_gen.go
- event_tables_dto_gen.go
- event_tables_gen.go
- event_tables_impl_gen.go
- event_tables_validations_gen.go
- external_tables.go
- external_tables_dto.go
- external_tables_dto_builders_gen.go
- external_tables_impl.go
- external_tables_validations.go
- failover_groups.go
- file_format.go
- grants.go
- grants_impl.go
- grants_validations.go
- helpers_proposal.go
- identifier_helpers.go
- integration_test_imports.go
- masking_policy.go
- network_policies_def.go
- network_policies_dto_builders_gen.go
- network_policies_dto_gen.go
- network_policies_gen.go
- network_policies_impl_gen.go
- network_policies_validations_gen.go
- object_types.go
- parameters.go
- parameters_impl.go
- password_policy.go
- pipes.go
- pipes_impl.go
- pipes_validations.go
- privileges.go
- procedures_def.go
- procedures_dto_builders_gen.go
- procedures_dto_gen.go
- procedures_gen.go
- procedures_impl_gen.go
- procedures_validations_gen.go
- random.go
- replication_functions.go
- replication_groups.go
- resource_monitors.go
- roles.go
- roles_dto.go
- roles_impl.go
- roles_validations.go
- schemas.go
- session_policies_def.go
- session_policies_dto_builders_gen.go
- session_policies_dto_gen.go
- session_policies_gen.go
- session_policies_impl_gen.go
- session_policies_validations_gen.go
- sessions.go
- shares.go
- sql_builder.go
- stages_def.go
- stages_dto_builders_gen.go
- stages_dto_gen.go
- stages_gen.go
- stages_impl_gen.go
- stages_validations_gen.go
- streams_def.go
- streams_dto_builders_gen.go
- streams_dto_gen.go
- streams_gen.go
- streams_impl_gen.go
- streams_validations_gen.go
- sweepers.go
- system_functions.go
- tables.go
- tables_dto.go
- tables_dto_generated.go
- tables_impl.go
- tables_validations.go
- tags.go
- tags_dto.go
- tags_dto_builders.go
- tags_impl.go
- tags_validations.go
- tasks_def.go
- tasks_dto_builders_gen.go
- tasks_dto_gen.go
- tasks_gen.go
- tasks_impl_gen.go
- tasks_validations_gen.go
- type_helpers.go
- users.go
- validation.go
- validations.go
- views_def.go
- views_dto_builders_gen.go
- views_dto_gen.go
- views_gen.go
- views_impl_gen.go
- views_validations_gen.go
- warehouses.go