Files
doneit-web/.angular/cache/14.2.12/babel-webpack/1615efe98e0a29e61c14aa6e734e1790.json
T
Eudes Inácio 53b71ea16f its working
2023-06-30 09:54:21 +01:00

1 line
4.6 KiB
JSON

{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { methods } from '../methods/methods.js';\nimport { argsAttributes } from '../Operators/args-attributes.js';\nexport class SqlObject {\n constructor(TableSchema, Methods) {\n this.TableSchema = TableSchema;\n this.Methods = Methods;\n this.limit = 0;\n this.rows = [];\n this.params = [];\n const arg = this.Methods[0].arguments;\n const methodName = this.Methods[0].methodName;\n this.argsAttributes = new argsAttributes(arg, TableSchema);\n this.firstMethod = new methods[methodName](this.argsAttributes, this.TableSchema);\n }\n runFirstMethod(row, resolve, limit) {\n var _this = this;\n return _asyncToGenerator(function* () {\n _this.firstMethod.cursor(row, resolve, limit);\n })();\n }\n doneRunFirstMethod() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n _this2.rows = _this2.firstMethod.rows;\n })();\n }\n run() {\n var _this3 = this;\n return _asyncToGenerator(function* () {\n for (let i = 1; i < _this3.Methods.length; i++) {\n const method = _this3.Methods[i];\n const methodName = method.methodName;\n if (methods[methodName]) {\n const methodToExecute = new methods[methodName](_this3.argsAttributes, _this3.TableSchema);\n _this3.rows = yield methodToExecute.run(_this3.rows);\n }\n }\n })();\n }\n}","map":{"version":3,"names":["methods","argsAttributes","SqlObject","constructor","TableSchema","Methods","limit","rows","params","arg","arguments","methodName","firstMethod","runFirstMethod","row","resolve","_this","_asyncToGenerator","cursor","doneRunFirstMethod","_this2","run","_this3","i","length","method","methodToExecute"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/beast-orm/dist/src/sql/sqlObject/sqlObject.js"],"sourcesContent":["import { methods } from '../methods/methods.js';\r\nimport { argsAttributes } from '../Operators/args-attributes.js';\r\nexport class SqlObject {\r\n constructor(TableSchema, Methods) {\r\n this.TableSchema = TableSchema;\r\n this.Methods = Methods;\r\n this.limit = 0;\r\n this.rows = [];\r\n this.params = [];\r\n const arg = this.Methods[0].arguments;\r\n const methodName = this.Methods[0].methodName;\r\n this.argsAttributes = new argsAttributes(arg, TableSchema);\r\n this.firstMethod = new methods[methodName](this.argsAttributes, this.TableSchema);\r\n }\r\n async runFirstMethod(row, resolve, limit) {\r\n this.firstMethod.cursor(row, resolve, limit);\r\n }\r\n async doneRunFirstMethod() {\r\n this.rows = this.firstMethod.rows;\r\n }\r\n async run() {\r\n for (let i = 1; i < this.Methods.length; i++) {\r\n const method = this.Methods[i];\r\n const methodName = method.methodName;\r\n if (methods[methodName]) {\r\n const methodToExecute = new methods[methodName](this.argsAttributes, this.TableSchema);\r\n this.rows = await methodToExecute.run(this.rows);\r\n }\r\n }\r\n }\r\n}\r\n"],"mappings":";AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAC/C,SAASC,cAAc,QAAQ,iCAAiC;AAChE,OAAO,MAAMC,SAAS,CAAC;EACnBC,WAAWA,CAACC,WAAW,EAAEC,OAAO,EAAE;IAC9B,IAAI,CAACD,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,KAAK,GAAG,CAAC;IACd,IAAI,CAACC,IAAI,GAAG,EAAE;IACd,IAAI,CAACC,MAAM,GAAG,EAAE;IAChB,MAAMC,GAAG,GAAG,IAAI,CAACJ,OAAO,CAAC,CAAC,CAAC,CAACK,SAAS;IACrC,MAAMC,UAAU,GAAG,IAAI,CAACN,OAAO,CAAC,CAAC,CAAC,CAACM,UAAU;IAC7C,IAAI,CAACV,cAAc,GAAG,IAAIA,cAAc,CAACQ,GAAG,EAAEL,WAAW,CAAC;IAC1D,IAAI,CAACQ,WAAW,GAAG,IAAIZ,OAAO,CAACW,UAAU,CAAC,CAAC,IAAI,CAACV,cAAc,EAAE,IAAI,CAACG,WAAW,C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