diff --git a/format_utility.go b/format_utility.go index 2046db9..99a4126 100644 --- a/format_utility.go +++ b/format_utility.go @@ -30,6 +30,13 @@ func EqualQuotes(stmt string) string { return stmt } +func EqualString(stmt string) string { + if stmt != "" { + stmt = fmt.Sprintf(" = %s", stmt) + } + return stmt +} + // LikeQuotes encapsulates given string in SQL 'like' statement and returns result. // Example: "hello" -> " LIKE UPPER('%hello%')" func LikeQuotes(stmt string) string {