remove unwanted method args

This commit is contained in:
2025-08-03 22:21:24 +05:30
parent d07c25fe01
commit ee6cb445ab

6
pgm.go
View File

@@ -45,17 +45,17 @@ func (f Field) Count() Field {
}
// StringEscape will return a empty string for null value
func (f Field) StringEscape(arg ...any) Field {
func (f Field) StringEscape() Field {
return Field("COALESCE(" + f.String() + ", '')")
}
// NumberEscape will return a zero string for null value
func (f Field) NumberEscape(arg ...any) Field {
func (f Field) NumberEscape() Field {
return Field("COALESCE(" + f.String() + ", 0)")
}
// BooleanEscape will return a false for null value
func (f Field) BooleanEscape(arg ...any) Field {
func (f Field) BooleanEscape() Field {
return Field("COALESCE(" + f.String() + ", FALSE)")
}