MCPcopy Create free account
hub / github.com/porsager/postgres / tryNext

Function tryNext

deno/src/connection.js:793–801  ·  view source on GitHub ↗
(x, xs)

Source from the content-addressed store, hash-verified

791 }
792
793 function tryNext(x, xs) {
794 return (
795 (x === 'read-write' && xs.default_transaction_read_only === 'on') ||
796 (x === 'read-only' && xs.default_transaction_read_only === 'off') ||
797 (x === 'primary' && xs.in_hot_standby === 'on') ||
798 (x === 'standby' && xs.in_hot_standby === 'off') ||
799 (x === 'prefer-standby' && xs.in_hot_standby === 'off' && options.host[retries])
800 )
801 }
802
803 function fetchState() {
804 const query = new Query([`

Callers 1

ReadyForQueryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected