MCPcopy Create free account
hub / github.com/abaplint/transpiler / openCursor

Method openCursor

packages/database-pg/src/index.ts:229–240  ·  view source on GitHub ↗
(options: DB.SelectDatabaseOptions)

Source from the content-addressed store, hash-verified

227 subrc = 4;
228 }
229
230 return {subrc, dbcnt};
231 }
232
233 public async insert(options: DB.InsertDatabaseOptions): Promise<{ subrc: number; dbcnt: number; }> {
234 this.checkFatal();
235 if (this.lazy === true && this.pool === undefined) {
236 await this.connect();
237 }
238
239 const sql = `INSERT INTO ${options.table} (${options.columns.map(c => "\"" + c + "\"").join(",")}) VALUES (${options.values.join(",")})`;
240
241 let subrc = 0;
242 let dbcnt = 0;
243 try {

Callers

nothing calls this directly

Calls 2

connectMethod · 0.95
connectMethod · 0.65

Tested by

no test coverage detected