REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.77 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/pg/lib/index.js
Text
Base64
'use strict' const Client = require('./client') const defaults = require('./defaults') const Connection = require('./connection') const Result = require('./result') const utils = require('./utils') const Pool = require('pg-pool') const TypeOverrides = require('./type-overrides') const { DatabaseError } = require('pg-protocol') const { escapeIdentifier, escapeLiteral } = require('./utils') const poolFactory = (Client) => { return class BoundPool extends Pool { constructor(options) { super(options, Client) } } } const PG = function (clientConstructor) { this.defaults = defaults this.Client = clientConstructor this.Query = this.Client.Query this.Pool = poolFactory(this.Client) this._pools = [] this.Connection = Connection this.types = require('pg-types') this.DatabaseError = DatabaseError this.TypeOverrides = TypeOverrides this.escapeIdentifier = escapeIdentifier this.escapeLiteral = escapeLiteral this.Result = Result this.utils = utils } let clientConstructor = Client let forceNative = false try { forceNative = !!process.env.NODE_PG_FORCE_NATIVE } catch { // ignore, e.g., Deno without --allow-env } if (forceNative) { clientConstructor = require('./native') } module.exports = new PG(clientConstructor) // lazy require native module...the native module may not have installed Object.defineProperty(module.exports, 'native', { configurable: true, enumerable: false, get() { let native = null try { native = new PG(require('./native')) } catch (err) { if (err.code !== 'MODULE_NOT_FOUND') { throw err } } // overwrite module.exports.native so that getter is never called again Object.defineProperty(module.exports, 'native', { value: native, }) return native }, })
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
crypto
DIR
-
drwxr-xr-x
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
native
DIR
-
drwxr-xr-x
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
client.js
20.90 KB
lrw-r--r--
2026-02-03 15:06:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
connection-parameters.js
5.16 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
connection.js
5.03 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
defaults.js
2.45 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
1.77 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
query.js
7.14 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
result.js
2.75 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
stream.js
2.08 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
type-overrides.js
770 B
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.js
5.51 KB
lrw-r--r--
2026-02-03 15:06:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).