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

Function bytesToHex

frontend/src/utils/v1/sql.ts:262–265  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

260};
261
262const bytesToHex = (bytes: Uint8Array): string =>
263 Array.from(bytes)
264 .map((b) => b.toString(16).toUpperCase().padStart(2, "0"))
265 .join("");
266
267// rowValueToSQLLiteral renders a RowValue as an engine-aware SQL literal,
268// suitable for inlining into an INSERT statement. It is type-aware: numbers

Callers 1

rowValueToSQLLiteralFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected