projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote-tracking branch 'origin/master' into 14484-collection-record-update
[arvados.git]
/
sdk
/
go
/
arvados
/
postgresql.go
1
// Copyright (C) The Arvados Authors. All rights reserved.
2
//
3
// SPDX-License-Identifier: Apache-2.0
4
5
package arvados
6
7
import "strings"
8
9
func (c PostgreSQLConnection) String() string {
10
s := ""
11
for k, v := range c {
12
s += strings.ToLower(k)
13
s += "='"
14
s += strings.Replace(
15
strings.Replace(v, `\`, `\\`, -1),
16
`'`, `\'`, -1)
17
s += "' "
18
}
19
return s
20
}