MCPcopy Index your code
hub / github.com/outerbase/studio / convertDatabaseValueToString

Function convertDatabaseValueToString

src/drivers/sqlite/sql-helper.ts:106–125  ·  view source on GitHub ↗
(value: DatabaseValue)

Source from the content-addressed store, hash-verified

104}
105
106export function convertDatabaseValueToString(value: DatabaseValue) {
107 if (value === null) return "NULL";
108
109 if (typeof value === "string") return value;
110
111 if (typeof value === "bigint" || typeof value === "number") {
112 return value.toString();
113 }
114
115 if (value instanceof ArrayBuffer || value instanceof Uint8Array) {
116 return btoa(
117 new Uint8Array(value).reduce(
118 (data, byte) => data + String.fromCharCode(byte),
119 ""
120 )
121 );
122 }
123
124 return "";
125}

Callers 1

SnippetRowFunction · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…