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

Function tryNext

cjs/src/connection.js:790–798  ·  view source on GitHub ↗
(x, xs)

Source from the content-addressed store, hash-verified

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

Callers 1

ReadyForQueryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected