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

Function getStatementSize

frontend/src/utils/sheet.ts:4–6  ·  view source on GitHub ↗
(statement: string)

Source from the content-addressed store, hash-verified

2export const MAX_UPLOAD_FILE_SIZE_MB = 100;
3
4export const getStatementSize = (statement: string): bigint => {
5 return BigInt(new TextEncoder().encode(statement).length);
6};
7
8export const readFileAsArrayBuffer = (
9 file: File

Callers 5

loadFunction · 0.90
loadFunction · 0.90
loadFunction · 0.90
useWorksheetAndTabFunction · 0.90
snapshotOfSheetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected