From 712a5f9ca5ae8329f91736c0a21ed7b9f10687d1 Mon Sep 17 00:00:00 2001 From: ycc Date: Thu, 28 Oct 2021 15:31:36 +0200 Subject: [PATCH] Quote utility function added --- pg.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pg.go b/pg.go index 061b305..8070969 100755 --- a/pg.go +++ b/pg.go @@ -338,3 +338,7 @@ func (ar *AssRow) GetFloat(column string) float64 { val, _ := strconv.ParseFloat(str, 64) return val } + +func Quote(str string) string { + return pq.QuoteLiteral(str) +}