sqlite3-tab
Advanced tools
+1
-1
| { | ||
| "name": "sqlite3-tab", | ||
| "version": "2.0.0", | ||
| "version": "2.0.1", | ||
| "description": "interface de alto nivel para consultas sqlite3", | ||
@@ -5,0 +5,0 @@ "main": "sqlite3-tab.js", |
+59
-91
@@ -1,5 +0,5 @@ | ||
| const sqlite3=require("sqlite3").verbose() | ||
| const sqlite3Tabla=require("./lib/sqlite3Tabla") | ||
| const {SQLITE3_DB,connect}= sqlite3Tabla | ||
| const model=require("tabla-model") | ||
| const sqlite3 = require("sqlite3").verbose() | ||
| const sqlite3Tabla = require("./lib/sqlite3Tabla") | ||
| const { SQLITE3_DB, connect } = sqlite3Tabla | ||
| const model = require("tabla-model") | ||
| //console.log(sqlite3) | ||
@@ -10,4 +10,3 @@ /** | ||
| */ | ||
| class sqlite3Tab extends connect | ||
| { | ||
| class sqlite3Tab extends connect { | ||
| /** | ||
@@ -17,21 +16,17 @@ * @param {object} param - configuracion para sqlite3 o objeto Database de sqlite3 | ||
| */ | ||
| constructor(params) | ||
| { | ||
| if(params instanceof sqlite3.Database) | ||
| { | ||
| super({},SQLITE3_DB) | ||
| this.connection=params | ||
| }else { | ||
| super(params,SQLITE3_DB) | ||
| this.connection=new sqlite3.Database(params) | ||
| constructor(params) { | ||
| if (params instanceof sqlite3.Database) { | ||
| super({}, SQLITE3_DB) | ||
| this.connection = params | ||
| } else { | ||
| super(params, SQLITE3_DB) | ||
| this.connection = new sqlite3.Database(params) | ||
| } | ||
| this._escapeChar="`" | ||
| this._escapeChar = "`" | ||
| this._information_schema = "select sqlite_master.* from sqlite_master where name=" | ||
| } | ||
| serialize(call) | ||
| { | ||
| serialize(call) { | ||
| return this.connection.serialize(call) | ||
| } | ||
| parallelize(call) | ||
| { | ||
| parallelize(call) { | ||
| return this.connectionparallelize(call) | ||
@@ -46,18 +41,15 @@ } | ||
| */ | ||
| tabla(tabla,callback,verify=false) | ||
| { | ||
| if(typeof callback ==="boolean") | ||
| verify=callback | ||
| console.log('DEBUG: this._caheTablas is:', this._caheTablas); | ||
| if(typeof this._caheTablas[tabla]!=="undefined") | ||
| { | ||
| typeof callback==="function"?callback(this._caheTablas[tabla]):null | ||
| tabla(tabla, callback, verify = false) { | ||
| if (typeof callback === "boolean") | ||
| verify = callback | ||
| if (typeof this._caheTablas[tabla] !== "undefined") { | ||
| typeof callback === "function" ? callback(this._caheTablas[tabla]) : null | ||
| return this._caheTablas[tabla] | ||
| } | ||
| return this._caheTablas[tabla] = new sqlite3Tabla({ | ||
| tabla:tabla, | ||
| connection:this, | ||
| callback:t=>typeof callback==="function"?callback(t):null, | ||
| config:this.helpersConf() | ||
| },typeof callback==="function" && verify) | ||
| return this._caheTablas[tabla] = new sqlite3Tabla({ | ||
| tabla: tabla, | ||
| connection: this, | ||
| callback: t => typeof callback === "function" ? callback(t) : null, | ||
| config: this.helpersConf() | ||
| }, typeof callback === "function" && verify) | ||
@@ -69,4 +61,3 @@ } | ||
| */ | ||
| connect() | ||
| { | ||
| connect() { | ||
| //this.connection.connect(callback) | ||
@@ -79,13 +70,8 @@ } | ||
| */ | ||
| query(query,...params) | ||
| { | ||
| return new Promise((resolver,reject)=> | ||
| { | ||
| query(query, ...params) { | ||
| return new Promise((resolver, reject) => { | ||
| if(/^[\s]*select/i.test(query)) | ||
| { | ||
| this.connection.all(query,...params,(error,result)=> | ||
| { | ||
| if(error) | ||
| { | ||
| if (/^[\s]*select/i.test(query)) { | ||
| this.connection.all(query, ...params, (error, result) => { | ||
| if (error) { | ||
| return reject(error) | ||
@@ -95,7 +81,5 @@ } | ||
| }) | ||
| }else{ | ||
| this.connection.run(query,...params,(error,result)=> | ||
| { | ||
| if(error) | ||
| { | ||
| } else { | ||
| this.connection.run(query, ...params, (error, result) => { | ||
| if (error) { | ||
| return reject(error) | ||
@@ -114,10 +98,6 @@ } | ||
| */ | ||
| get(query,param={}) | ||
| { | ||
| return new Promise((resolver,reject)=> | ||
| { | ||
| this.connection.get(query,param,(error,result)=> | ||
| { | ||
| if(error) | ||
| { | ||
| get(query, param = {}) { | ||
| return new Promise((resolver, reject) => { | ||
| this.connection.get(query, param, (error, result) => { | ||
| if (error) { | ||
| return reject(error) | ||
@@ -134,19 +114,14 @@ } | ||
| */ | ||
| each(query,param={},callback) | ||
| { | ||
| return new Promise((resolver,reject)=> | ||
| { | ||
| if(typeof param==="function") | ||
| { | ||
| callback=param | ||
| param={} | ||
| each(query, param = {}, callback) { | ||
| return new Promise((resolver, reject) => { | ||
| if (typeof param === "function") { | ||
| callback = param | ||
| param = {} | ||
| } | ||
| this.connection.each(query,param,(error,result)=> | ||
| { | ||
| if(error) | ||
| { | ||
| this.connection.each(query, param, (error, result) => { | ||
| if (error) { | ||
| return reject(error) | ||
| } | ||
| callback(result) | ||
| },resolver) | ||
| }, resolver) | ||
| }) | ||
@@ -159,4 +134,3 @@ } | ||
| */ | ||
| end() | ||
| { | ||
| end() { | ||
| this.connection.close() | ||
@@ -167,4 +141,3 @@ } | ||
| */ | ||
| close() | ||
| { | ||
| close() { | ||
| this.connection.close() | ||
@@ -178,19 +151,14 @@ } | ||
| */ | ||
| _keysInTable(table) | ||
| { | ||
| return new Promise((res,rej)=> | ||
| { | ||
| _keysInTable(table) { | ||
| return new Promise((res, rej) => { | ||
| this.query(`${this._information_schema}'${table}'`) | ||
| .then(result=>{ | ||
| this.inModel(table,result.length==0) | ||
| .then(res).catch(e=> | ||
| { | ||
| if(e===undefined) | ||
| { | ||
| if(result.length==0) | ||
| .then(result => { | ||
| this.inModel(table, result.length == 0) | ||
| .then(res).catch(e => { | ||
| if (e === undefined) { | ||
| if (result.length == 0) | ||
| rej("la tabla no existe") | ||
| else | ||
| res((new model(result[0].sql,this._escapeChar)).getData()) | ||
| }else | ||
| { | ||
| res((new model(result[0].sql, this._escapeChar)).getData()) | ||
| } else { | ||
| rej(e) | ||
@@ -206,2 +174,2 @@ } | ||
| module.exports=sqlite3Tab | ||
| module.exports = sqlite3Tab |
| (node:8432) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities. | ||
| (Use `node --trace-deprecation ...` to show where the warning was created) | ||
| ÔûÂ Test de la clase sqlite3-tab :tabla | ||
| Ô£û obtencion del objeto dbtabla (2.0764ms) | ||
| Ô£û obtencion del objeto dbtabla async (0.8769ms) | ||
| Ô£û dbTabla:insert (0.4015ms) | ||
| Ô£û dbTabla:select (8.6738ms) | ||
| Ô£û dbTabla:update (1.8362ms) | ||
| Ô£û dbTabla:delete (1.7842ms) | ||
| Ô£û load model test3 (2.2726ms) | ||
| Ô£û load model test4 (0.7059ms) | ||
| Ô£û silumacion de AUTO_INCREMENT usando modelos (3.3276ms) | ||
| Ô£û Test de la clase sqlite3-tab :tabla (23.8058ms) | ||
| Ôä╣ tests 9 | ||
| Ôä╣ suites 1 | ||
| Ôä╣ pass 0 | ||
| Ôä╣ fail 9 | ||
| Ôä╣ cancelled 0 | ||
| Ôä╣ skipped 0 | ||
| Ôä╣ todo 0 | ||
| Ôä╣ duration_ms 225.6019 | ||
| Ô£û failing tests: | ||
| test at test\dbTabla.js:24:5 | ||
| Ô£û obtencion del objeto dbtabla (2.0764ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test1') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:27:26) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Test.start (node:internal/test_runner/test:1015:17) | ||
| at node:internal/test_runner/test:1531:71 | ||
| at node:internal/per_context/primordials:466:82 | ||
| at new Promise (<anonymous>) | ||
| at new SafePromise (node:internal/per_context/primordials:435:3) | ||
| at node:internal/per_context/primordials:466:9 | ||
| test at test\dbTabla.js:31:5 | ||
| Ô£û obtencion del objeto dbtabla async (0.8769ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test1') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:39:20 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:35:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| at Test.postRun (node:internal/test_runner/test:1247:19) | ||
| at Test.run (node:internal/test_runner/test:1175:12) | ||
| at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | ||
| test at test\dbTabla.js:48:5 | ||
| Ô£û dbTabla:insert (0.4015ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test1') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:52:26) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| at Test.postRun (node:internal/test_runner/test:1247:19) | ||
| at Test.run (node:internal/test_runner/test:1175:12) | ||
| at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | ||
| at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7) | ||
| test at test\dbTabla.js:60:5 | ||
| Ô£û dbTabla:select (8.6738ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test1') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:64:34 | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:18:35 | ||
| test at test\dbTabla.js:78:5 | ||
| Ô£û dbTabla:update (1.8362ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test1') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:82:34 | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:18:35 | ||
| test at test\dbTabla.js:94:5 | ||
| Ô£û dbTabla:delete (1.7842ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test1') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:98:34 | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:18:35 | ||
| test at test\dbTabla.js:106:5 | ||
| Ô£û load model test3 (2.2726ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test3') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:113:25 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:108:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| at Test.postRun (node:internal/test_runner/test:1247:19) | ||
| at Test.run (node:internal/test_runner/test:1175:12) | ||
| at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7) | ||
| test at test\dbTabla.js:128:5 | ||
| Ô£û load model test4 (0.7059ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test4') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:135:25 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:130:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| at Test.postRun (node:internal/test_runner/test:1247:19) | ||
| at Test.run (node:internal/test_runner/test:1175:12) | ||
| at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7) | ||
| test at test\dbTabla.js:149:5 | ||
| Ô£û silumacion de AUTO_INCREMENT usando modelos (3.3276ms) | ||
| TypeError: Cannot read properties of undefined (reading 'test4') | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:49:35) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:155:30 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:151:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| at Test.postRun (node:internal/test_runner/test:1247:19) | ||
| at Test.run (node:internal/test_runner/test:1175:12) | ||
| at async Suite.processPendingSubtests (node:internal/test_runner/test:787:7) |
-14
| (node:7844) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities. | ||
| (Use `node --trace-deprecation ...` to show where the warning was created) | ||
| ÔûÂ Test de la clase sqlite3-tab | ||
| Ô£ö verificacion de metodos (2.3736ms) | ||
| Ô£ö metodo query (4.2767ms) | ||
| Ô£ö Test de la clase sqlite3-tab (7.769ms) | ||
| Ôä╣ tests 2 | ||
| Ôä╣ suites 1 | ||
| Ôä╣ pass 2 | ||
| Ôä╣ fail 0 | ||
| Ôä╣ cancelled 0 | ||
| Ôä╣ skipped 0 | ||
| Ôä╣ todo 0 | ||
| Ôä╣ duration_ms 206.5416 |
| C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:93 | ||
| } | ||
| ^ | ||
| SyntaxError: Identifier '#insert' has already been declared | ||
| at wrapSafe (node:internal/modules/cjs/loader:1743:18) | ||
| at Module._compile (node:internal/modules/cjs/loader:1786:20) | ||
| at Object..js (node:internal/modules/cjs/loader:1943:10) | ||
| at Module.load (node:internal/modules/cjs/loader:1533:32) | ||
| at Module._load (node:internal/modules/cjs/loader:1335:12) | ||
| at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) | ||
| at Module.require (node:internal/modules/cjs/loader:1556:12) | ||
| at require (node:internal/modules/helpers:152:16) | ||
| at Object.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:2:20) | ||
| at Module._compile (node:internal/modules/cjs/loader:1812:14) | ||
| Node.js v24.14.0 | ||
| [31mÔ£û test\sqlite3Tab.js [90m(257.3436ms)[39m[39m | ||
| [34mÔä╣ tests 1[39m | ||
| [34mÔä╣ suites 0[39m | ||
| [34mÔä╣ pass 0[39m | ||
| [34mÔä╣ fail 1[39m | ||
| [34mÔä╣ cancelled 0[39m | ||
| [34mÔä╣ skipped 0[39m | ||
| [34mÔä╣ todo 0[39m | ||
| [34mÔä╣ duration_ms 269.5554[39m | ||
| [31mÔ£û failing tests:[39m | ||
| test at test\sqlite3Tab.js:1:1 | ||
| [31mÔ£û test\sqlite3Tab.js [90m(257.3436ms)[39m[39m | ||
| 'test failed' |
-132
| (node:12360) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities. | ||
| (Use `node --trace-deprecation ...` to show where the warning was created) | ||
| DEBUG: this._caheTablas is: {} | ||
| DEBUG: this._caheTablas is: {} | ||
| DEBUG: this._caheTablas is: {} | ||
| ÔûÂ Test de la clase sqlite3-tab :tabla | ||
| Ô£ö obtencion del objeto dbtabla (2.5525ms) | ||
| Ô£û obtencion del objeto dbtabla async (0.9541ms) | ||
| Ô£û dbTabla:insert (0.7161ms) | ||
| DEBUG: this._caheTablas is: {} | ||
| Ô£û dbTabla:select (8.0682ms) | ||
| DEBUG: this._caheTablas is: {} | ||
| Ô£û dbTabla:update (2.2288ms) | ||
| DEBUG: this._caheTablas is: {} | ||
| DEBUG: this._caheTablas is: {} | ||
| DEBUG: this._caheTablas is: {} | ||
| DEBUG: this._caheTablas is: {} | ||
| Ô£û dbTabla:delete (2.044ms) | ||
| Ô£û load model test3 (2.4251ms) | ||
| Ô£û load model test4 (0.703ms) | ||
| Ô£û silumacion de AUTO_INCREMENT usando modelos (2.8793ms) | ||
| Ô£û Test de la clase sqlite3-tab :tabla (24.3952ms) | ||
| Ôä╣ tests 9 | ||
| Ôä╣ suites 1 | ||
| Ôä╣ pass 1 | ||
| Ôä╣ fail 8 | ||
| Ôä╣ cancelled 0 | ||
| Ôä╣ skipped 0 | ||
| Ôä╣ todo 0 | ||
| Ôä╣ duration_ms 356.9476 | ||
| Ô£û failing tests: | ||
| test at test\dbTabla.js:31:5 | ||
| Ô£û obtencion del objeto dbtabla async (0.9541ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at new dbTabla (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:31:18) | ||
| at new sqlite3Tabla (C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:9:1) | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:54:43) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:39:20 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:35:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| test at test\dbTabla.js:48:5 | ||
| Ô£û dbTabla:insert (0.7161ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:46:18 | ||
| at new Promise (<anonymous>) | ||
| at sqlite3Tabla.insert (C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:44:16) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:53:22) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| at Test.postRun (node:internal/test_runner/test:1247:19) | ||
| at Test.run (node:internal/test_runner/test:1175:12) | ||
| test at test\dbTabla.js:60:5 | ||
| Ô£û dbTabla:select (8.0682ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:161:18 | ||
| at new Promise (<anonymous>) | ||
| at sqlite3Tabla.select (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:159:16) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:65:23 | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:18:35 | ||
| test at test\dbTabla.js:78:5 | ||
| Ô£û dbTabla:update (2.2288ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:114:18 | ||
| at new Promise (<anonymous>) | ||
| at sqlite3Tabla.update (C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:112:16) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:83:36 | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:18:35 | ||
| test at test\dbTabla.js:94:5 | ||
| Ô£û dbTabla:delete (2.044ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:387:18 | ||
| at new Promise (<anonymous>) | ||
| at sqlite3Tabla.delete (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:385:16) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:99:29 | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:18:35 | ||
| test at test\dbTabla.js:106:5 | ||
| Ô£û load model test3 (2.4251ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at new dbTabla (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:31:18) | ||
| at new sqlite3Tabla (C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:9:1) | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:54:43) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:113:25 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:108:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| test at test\dbTabla.js:128:5 | ||
| Ô£û load model test4 (0.703ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at new dbTabla (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:31:18) | ||
| at new sqlite3Tabla (C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:9:1) | ||
| at sqlite3Tab.tabla (C:\programacion\dbtabla\sqlite3-tab\sqlite3-tab.js:54:43) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:135:25 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:130:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) | ||
| test at test\dbTabla.js:149:5 | ||
| Ô£û silumacion de AUTO_INCREMENT usando modelos (2.8793ms) | ||
| TypeError: this._connection.__keysInTable is not a function | ||
| at sqlite3Tabla._verifyKeys (C:\programacion\dbtabla\sqlite3-tab\node_modules\dbtabla\lib\dbTabla.js:57:30) | ||
| at C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:46:18 | ||
| at new Promise (<anonymous>) | ||
| at sqlite3Tabla.insert (C:\programacion\dbtabla\sqlite3-tab\lib\sqlite3Tabla.js:44:16) | ||
| at C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:156:25 | ||
| at new Promise (<anonymous>) | ||
| at TestContext.<anonymous> (C:\programacion\dbtabla\sqlite3-tab\test\dbTabla.js:151:17) | ||
| at Test.runInAsyncScope (node:async_hooks:228:14) | ||
| at Test.run (node:internal/test_runner/test:1118:25) | ||
| at Suite.processPendingSubtests (node:internal/test_runner/test:787:18) |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
6532733
-0.26%12
-25%374
-7.88%