From fcade747532328a30217fac249a698ccffb0d86c Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Fri, 10 Jul 2020 14:01:40 -0400 Subject: [PATCH] export query.Placeholders --- extras/query/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/query/query.go b/extras/query/query.go index 4e39737..936d8e4 100644 --- a/extras/query/query.go +++ b/extras/query/query.go @@ -87,11 +87,11 @@ func InterpolateParams(query string, args ...interface{}) (string, error) { // Qs is a shortcut for one group of positional placeholders func Qs(count int) string { - return placeholders(false, count, 1, 1) + return Placeholders(false, count, 1, 1) } // placeholders creates indexed or positional placeholders, in groups, with different starts -func placeholders(indexPlaceholders bool, count int, start int, group int) string { +func Placeholders(indexPlaceholders bool, count int, start int, group int) string { buf := bytes.Buffer{} if start == 0 || group == 0 {