Skip to content

Commit 0bc5be0

Browse files
committed
Add m2m filters
1 parent cdff350 commit 0bc5be0

File tree

11 files changed

+335
-2
lines changed

11 files changed

+335
-2
lines changed

attributes/a_bool_filters.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type BoolNullFilter struct {
1515

1616
func (f BoolNullFilter) GetWhere(
1717
c schema.Context,
18+
modelTable string,
1819
idColumn string,
1920
nextArg int,
2021
) (
@@ -40,6 +41,7 @@ type BoolExactFilter struct {
4041

4142
func (f BoolExactFilter) GetWhere(
4243
c schema.Context,
44+
modelTable string,
4345
idColumn string,
4446
nextArg int,
4547
) (

attributes/a_date_filters.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type DateNullFilter struct {
1616

1717
func (f DateNullFilter) GetWhere(
1818
c schema.Context,
19+
modelTable string,
1920
idColumn string,
2021
nextArg int,
2122
) (
@@ -41,6 +42,7 @@ type DateExactFilter struct {
4142

4243
func (f DateExactFilter) GetWhere(
4344
c schema.Context,
45+
modelTable string,
4446
idColumn string,
4547
nextArg int,
4648
) (
@@ -63,6 +65,7 @@ type DateAfterFilter struct {
6365

6466
func (f DateAfterFilter) GetWhere(
6567
c schema.Context,
68+
modelTable string,
6669
idColumn string,
6770
nextArg int,
6871
) (

attributes/a_datetime_filters.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type DatetimeNullFilter struct {
1717

1818
func (f DatetimeNullFilter) GetWhere(
1919
c schema.Context,
20+
modelTable string,
2021
idColumn string,
2122
nextArg int,
2223
) (
@@ -42,6 +43,7 @@ type DatetimeExactFilter struct {
4243

4344
func (f DatetimeExactFilter) GetWhere(
4445
c schema.Context,
46+
modelTable string,
4547
idColumn string,
4648
nextArg int,
4749
) (
@@ -64,6 +66,7 @@ type DatetimeAfterFilter struct {
6466

6567
func (f DatetimeAfterFilter) GetWhere(
6668
c schema.Context,
69+
modelTable string,
6770
idColumn string,
6871
nextArg int,
6972
) (

attributes/a_integer_filters.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type IntegerNullFilter struct {
1616

1717
func (f IntegerNullFilter) GetWhere(
1818
c schema.Context,
19+
modelTable string,
1920
idColumn string,
2021
nextArg int,
2122
) (
@@ -41,6 +42,7 @@ type IntegerExactFilter struct {
4142

4243
func (f IntegerExactFilter) GetWhere(
4344
c schema.Context,
45+
modelTable string,
4446
idColumn string,
4547
nextArg int,
4648
) (
@@ -63,6 +65,7 @@ type IntegerLesserFilter struct {
6365

6466
func (f IntegerLesserFilter) GetWhere(
6567
c schema.Context,
68+
modelTable string,
6669
idColumn string,
6770
nextArg int,
6871
) (

attributes/a_text_filters.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type TextNullFilter struct {
1616

1717
func (f TextNullFilter) GetWhere(
1818
c schema.Context,
19+
modelTable string,
1920
idColumn string,
2021
nextArg int,
2122
) (
@@ -41,6 +42,7 @@ type TextExactFilter struct {
4142

4243
func (f TextExactFilter) GetWhere(
4344
c schema.Context,
45+
modelTable string,
4446
idColumn string,
4547
nextArg int,
4648
) (
@@ -62,6 +64,7 @@ type TextContainsFilter struct {
6264

6365
func (f TextContainsFilter) GetWhere(
6466
c schema.Context,
67+
modelTable string,
6568
idColumn string,
6669
nextArg int,
6770
) (
@@ -96,6 +99,7 @@ type TextLengthExactFilter struct {
9699

97100
func (f TextLengthExactFilter) GetWhere(
98101
c schema.Context,
102+
modelTable string,
99103
idColumn string,
100104
nextArg int,
101105
) (
@@ -118,6 +122,7 @@ type TextLengthLesserFilter struct {
118122

119123
func (f TextLengthLesserFilter) GetWhere(
120124
c schema.Context,
125+
modelTable string,
121126
idColumn string,
122127
nextArg int,
123128
) (
@@ -143,6 +148,7 @@ type TextLengthGreaterFilter struct {
143148

144149
func (f TextLengthGreaterFilter) GetWhere(
145150
c schema.Context,
151+
modelTable string,
146152
idColumn string,
147153
nextArg int,
148154
) (

relationships/r_foreignkey_filters.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type ForeignKeyNullFilter struct {
1515

1616
func (f ForeignKeyNullFilter) GetWhere(
1717
c schema.Context,
18+
modelTable string,
1819
idColumn string,
1920
nextArg int,
2021
) (
@@ -40,6 +41,7 @@ type ForeignKeyExactFilter struct {
4041

4142
func (f ForeignKeyExactFilter) GetWhere(
4243
c schema.Context,
44+
modelTable string,
4345
idColumn string,
4446
nextArg int,
4547
) (

relationships/r_foreignkey_reverse_filters.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type ForeignKeyReverseContainsFilter struct {
1919

2020
func (f ForeignKeyReverseContainsFilter) GetWhere(
2121
c schema.Context,
22+
modelTable string,
2223
idColumn string,
2324
nextArg int,
2425
) (
@@ -83,6 +84,7 @@ type ForeignKeyReverseCountFilter struct {
8384
}
8485
func (f ForeignKeyReverseCountFilter) GetWhere(
8586
c schema.Context,
87+
modelTable string,
8688
idColumn string,
8789
nextArg int,
8890
) (

relationships/r_genericforeignkey_filters.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type GenericForeignKeyNullFilter struct {
2323

2424
func (f GenericForeignKeyNullFilter) GetWhere(
2525
c schema.Context,
26+
modelTable string,
2627
idColumn string,
2728
nextArg int,
2829
) (
@@ -48,6 +49,7 @@ type GenericForeignKeyTypeFilter struct {
4849

4950
func (f GenericForeignKeyTypeFilter) GetWhere(
5051
c schema.Context,
52+
modelTable string,
5153
idColumn string,
5254
nextArg int,
5355
) (
@@ -85,6 +87,7 @@ type GenericForeignKeyIDFilter struct {
8587

8688
func (f GenericForeignKeyIDFilter) GetWhere(
8789
c schema.Context,
90+
modelTable string,
8891
idColumn string,
8992
nextArg int,
9093
) (
@@ -123,6 +126,7 @@ type GenericForeignKeyExactFilter struct {
123126

124127
func (f GenericForeignKeyExactFilter) GetWhere(
125128
c schema.Context,
129+
modelTable string,
126130
idColumn string,
127131
nextArg int,
128132
) (

0 commit comments

Comments
 (0)