projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '20284-username-conflict-fix' refs #20284
[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
if v == "" {
13
continue
14
}
15
s += strings.ToLower(k)
16
s += "='"
17
s += strings.Replace(
18
strings.Replace(v, `\`, `\\`, -1),
19
`'`, `\'`, -1)
20
s += "' "
21
}
22
return s
23
}