MCPcopy Create free account
hub / github.com/denodrivers/postgres / push

Method push

utils/deferred.ts:36–43  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

34 }
35
36 push(value: T): void {
37 if (this.#queue.length > 0) {
38 const d = this.#queue.shift()!;
39 d.resolve(value);
40 } else {
41 this.#elements.push(value);
42 }
43 }
44
45 get size(): number {
46 return this.#size;

Callers 15

#initializeMethod · 0.45
assertRequiredOptionsFunction · 0.45
parseOptionsArgumentFunction · 0.45
#simpleQueryMethod · 0.45
#preparedQueryMethod · 0.45
queryMethod · 0.45
parseRowDataMessageFunction · 0.45
popMethod · 0.45
popMethod · 0.45
pushMethod · 0.45
recordMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected