Skip to content

Commit

Permalink
Remove unsafe execute leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jmichalak committed Dec 12, 2024
1 parent df7cdb5 commit f7ff538
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 210 deletions.
6 changes: 0 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,5 @@ provider "snowflake" {
```

<!-- Section of deprecated resources -->
## Currently deprecated resources

- [snowflake_unsafe_execute](./docs/resources/unsafe_execute) - use [snowflake_execute](./docs/resources/execute) instead

<!-- Section of deprecated data sources -->
## Currently deprecated data sources

- [snowflake_roles](./docs/data-sources/roles) - use [snowflake_account_roles](./docs/data-sources/account_roles) instead
147 changes: 0 additions & 147 deletions docs/resources/unsafe_execute.md

This file was deleted.

3 changes: 1 addition & 2 deletions examples/additional/deprecated_datasources.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- Section of deprecated data sources -->
## Currently deprecated data sources

- [snowflake_roles](./docs/data-sources/roles) - use [snowflake_account_roles](./docs/data-sources/account_roles) instead

3 changes: 1 addition & 2 deletions examples/additional/deprecated_resources.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- Section of deprecated resources -->
## Currently deprecated resources

- [snowflake_unsafe_execute](./docs/resources/unsafe_execute) - use [snowflake_execute](./docs/resources/execute) instead

2 changes: 1 addition & 1 deletion pkg/resources/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Execute() *schema.Resource {

Description: "Resource allowing execution of ANY SQL statement.",

CustomizeDiff: TrackingCustomDiffWrapper(resources.UnsafeExecute, customdiff.All(
CustomizeDiff: TrackingCustomDiffWrapper(resources.Execute, customdiff.All(
customdiff.ForceNewIfChange("execute", func(ctx context.Context, oldValue, newValue, meta any) bool {
return oldValue != ""
}),
Expand Down
12 changes: 0 additions & 12 deletions pkg/resources/unsafe_execute.go

This file was deleted.

40 changes: 0 additions & 40 deletions templates/resources/unsafe_execute.md.tmpl

This file was deleted.

0 comments on commit f7ff538

Please sign in to comment.