Quote utility function added

This commit is contained in:
ycc 2021-10-28 15:31:36 +02:00
parent d914b7d905
commit 712a5f9ca5

4
pg.go
View File

@ -338,3 +338,7 @@ func (ar *AssRow) GetFloat(column string) float64 {
val, _ := strconv.ParseFloat(str, 64) val, _ := strconv.ParseFloat(str, 64)
return val return val
} }
func Quote(str string) string {
return pq.QuoteLiteral(str)
}