MCPcopy
hub / github.com/dropbox/godropbox / Uint64EncodeSql

Function Uint64EncodeSql

database/sqltypes/sqltypes.go:555–558  ·  view source on GitHub ↗

Helper function for converting a uint64 to a string suitable for SQL.

(b encoding2.BinaryWriter, num uint64)

Source from the content-addressed store, hash-verified

553
554// Helper function for converting a uint64 to a string suitable for SQL.
555func Uint64EncodeSql(b encoding2.BinaryWriter, num uint64) {
556 numVal, _ := BuildValue(num)
557 numVal.EncodeSql(b)
558}
559
560// SqlEncodeMap specifies how to escape binary data with '\'.
561// Complies to http://dev.mysql.com/doc/refman/5.1/en/string-syntax.html

Callers

nothing calls this directly

Calls 2

BuildValueFunction · 0.85
EncodeSqlMethod · 0.80

Tested by

no test coverage detected