MCPcopy Create free account
hub / github.com/bytebase/bytebase / escapeSQLBytes

Function escapeSQLBytes

backend/component/export/sql.go:136–142  ·  view source on GitHub ↗
(_ storepb.Engine, v []byte)

Source from the content-addressed store, hash-verified

134}
135
136func escapeSQLBytes(_ storepb.Engine, v []byte) []byte {
137 // Use hex encoding for all engines (SQL standard)
138 result := make([]byte, 2+hex.EncodedLen(len(v)))
139 copy(result, "0x")
140 hex.Encode(result[2:], v)
141 return result
142}

Callers 1

convertValueToBytesInSQLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected