Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuoteAndEscapeRecordValue ¶
QuoteAndEscapeValue wraps escaped double quotes around single composite record values, and escapes specific special runes within the value. Composite record arrays line format looks like: {"(\"val1\",\"val2\")""} Escape code mostly copied from https://github.com/lib/pq/blob/master/encode.go#L160-L196
Types ¶
type DBInstrumentTimer ¶
type DBInstrumentTimer interface {
End() error
}
func StartDBTimer ¶
func StartDBTimer(ctx context.Context, collection, operation, query string) DBInstrumentTimer
StartDBTimer starts a special DB timer and returns something that must be End()-ed
Click to show internal directories.
Click to hide internal directories.