diff --git a/internal/modifiers/contract.go b/internal/modifiers/contract.go index 69356e6..dda135e 100644 --- a/internal/modifiers/contract.go +++ b/internal/modifiers/contract.go @@ -11,7 +11,6 @@ type AttrModifier struct { // and queries respectively. SkipOnInsert bool SkipOnUpdate bool - SkipOnQuery bool // Implement these functions if you want to override the default Scan/Value behavior // for the target attribute. diff --git a/internal/modifiers/global_modifiers.go b/internal/modifiers/global_modifiers.go index 3fb7722..6f99799 100644 --- a/internal/modifiers/global_modifiers.go +++ b/internal/modifiers/global_modifiers.go @@ -23,7 +23,6 @@ func init() { // to test the feature of skipping updates, inserts and queries. modifiers.Store("skipUpdates", skipUpdatesModifier) modifiers.Store("skipInserts", skipInsertsModifier) - modifiers.Store("skipQueries", skipQueriesModifier) } // RegisterAttrModifier allow users to add custom modifiers on startup diff --git a/internal/modifiers/skip_modifiers.go b/internal/modifiers/skip_modifiers.go index 150b027..e7e1135 100644 --- a/internal/modifiers/skip_modifiers.go +++ b/internal/modifiers/skip_modifiers.go @@ -7,7 +7,3 @@ var skipInsertsModifier = AttrModifier{ var skipUpdatesModifier = AttrModifier{ SkipOnUpdate: true, } - -var skipQueriesModifier = AttrModifier{ - SkipOnQuery: true, -} diff --git a/test_adapters.go b/test_adapters.go index beadd82..ccb6ea8 100644 --- a/test_adapters.go +++ b/test_adapters.go @@ -2986,7 +2986,6 @@ func ModifiersTest( tt.AssertEqual(t, taggedUser.Name, "Marta Ribeiro") }) }) - }) }