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

Function isDigits

packages/sql/pg/src/PgConnection.ts:1669–1676  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1667}
1668
1669const isDigits = (value: string): boolean => {
1670 if (value.length === 0) return false
1671 for (let index = 0; index < value.length; index++) {
1672 const code = value.charCodeAt(index)
1673 if (code < 48 || code > 57) return false
1674 }
1675 return true
1676}
1677
1678/**
1679 * Tracks one query cycle while the connection routes backend messages to it.

Callers 1

parseCommandTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected