MCPcopy Create free account
hub / github.com/Effect-TS/effect / requireInt64

Function requireInt64

packages/sql/pg/src/PgTypes.ts:1087–1091  ·  view source on GitHub ↗
(value: unknown, name: string)

Source from the content-addressed store, hash-verified

1085)
1086
1087const requireInt64 = (value: unknown, name: string): bigint => {
1088 const big = requireBigInt(value, name)
1089 if (big < INT64_MIN || big > INT64_MAX) fail(`${name} out of range: ${big}`)
1090 return big
1091}
1092
1093const MAX_TIME_MICROS = BigInt(MAX_TIME_MICROS_NUMBER)
1094

Callers 2

intervalValueFunction · 0.85
PgTypes.tsFile · 0.85

Calls 2

requireBigIntFunction · 0.85
failFunction · 0.70

Tested by

no test coverage detected