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

Function fetchState

cf/src/connection.js:802–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

800 }
801
802 function fetchState() {
803 const query = new Query([`
804 show transaction_read_only;
805 select pg_catalog.pg_is_in_recovery()
806 `], [], execute, null, { simple: true })
807 query.resolve = ([[a], [b]]) => {
808 backendParameters.default_transaction_read_only = a.transaction_read_only
809 backendParameters.in_hot_standby = b.pg_is_in_recovery ? 'on' : 'off'
810 }
811 query.execute()
812 }
813
814 function ErrorResponse(x) {
815 if (query) {

Callers 1

ReadyForQueryFunction · 0.70

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected