UNPKG

lambdaorm

Version:
1 lines 8.03 kB
'use strict';const a19z=a19y;(function(s,y){const r=a19y,g=s();while(!![]){try{const x=parseInt(r(0x1d1))/0x1*(-parseInt(r(0x215))/0x2)+-parseInt(r(0x1ec))/0x3+parseInt(r(0x202))/0x4+-parseInt(r(0x1cc))/0x5*(-parseInt(r(0x21a))/0x6)+parseInt(r(0x218))/0x7*(parseInt(r(0x200))/0x8)+parseInt(r(0x208))/0x9+-parseInt(r(0x1f3))/0xa*(parseInt(r(0x1f4))/0xb);if(x===y)break;else g['push'](g['shift']());}catch(m){g['push'](g['shift']());}}}(a19s,0x86388));var __awaiter=this&&this[a19z(0x1eb)]||function(s,y,P,g){function x(m){return m instanceof P?m:new P(function(w){w(m);});}return new(P||(P=Promise))(function(m,w){const p=a19y;function t(c){const d=a19y;try{a(g[d(0x1ce)](c));}catch(k){w(k);}}function v(c){const i=a19y;try{a(g[i(0x1e2)](c));}catch(k){w(k);}}function a(c){const o=a19y;c[o(0x1e5)]?m(c['value']):x(c[o(0x201)])[o(0x1d6)](t,v);}a((g=g[p(0x1cd)](s,y||[]))[p(0x1ce)]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a19z(0x203)]=void 0x0;function a19y(s,y){const O=a19s();return a19y=function(D,g){D=D-0x1cb;let M=O[D];return M;},a19y(s,y);}function a19s(){const sg=['15QeYISe','apply','next','dropEntity','addProperty','73okMIWf','alterProperty','foreignKeys','isDateTime','lambdaorm-base','then','query','createFk','name','time','any','writeTime','maxChunkSizeOnBulkInsert','writeDateTime','parameters','objects','uniqueKeys','throw','addPk','writeDate','done','pool','isDate','executeDDL','val','Connection','__awaiter','1742109SULexQ','updateMany','dropFk','date','select','tables','format','160YlrHwn','802648GspTJd','Primitive','createSequence','type','maxChunkSizeOnSelect','createEntity','dateFormat','typ3s','helper','bulkDelete','arrayToRows','push','1096IjpgAg','value','2990000RgkTdm','ConnectionAdapter','config','cnx','dateTime','indexes','5602707CLsaDt','isDateTimeFormat','dropUk','views','truncateEntity','inTransaction','end','dropPk','dropProperty','transformParameter','bulkUpdate','isDateFormat','isTime','13758SDbLnF','maxChunkSizeIdsOnSelect','sequences','32949YRvQmU','dataToParameters','1570488VeoJCD','addUk'];a19s=function(){return sg;};return a19s();}const typ3s_1=require(a19z(0x1fb)),lambdaorm_base_1=require(a19z(0x1d5));class ConnectionAdapter{constructor(s,y,g,x){const f=a19z;this['id']=s,this[f(0x205)]=y,this[f(0x1e6)]=g,this[f(0x1fc)]=x,this[f(0x20d)]=![],this[f(0x1f8)]=0x2710,this[f(0x216)]=0x1b58,this[f(0x1dd)]=0x186a0;}get['config'](){const q=a19z;return this[q(0x1e6)][q(0x204)];}[a19z(0x20e)](){return __awaiter(this,void 0x0,void 0x0,function*(){const j=a19y;yield this[j(0x205)][j(0x20e)]();});}[a19z(0x1fe)](s,y,g,x){const b=a19z,m=[];for(const w of x){const t=[];for(const v of g[b(0x1df)]){let a=w[v[b(0x1d9)]];if(a)switch(v[b(0x1f7)]){case typ3s_1[b(0x1f5)]['dateTime']:a=this['writeDateTime'](a,s,y);break;case typ3s_1[b(0x1f5)]['date']:a=this['writeDate'](a,s,y);break;case typ3s_1[b(0x1f5)][b(0x1da)]:a=this[b(0x1dc)](a,s,y);break;case typ3s_1[b(0x1f5)]['any']:if(this[b(0x1fc)][b(0x1e9)][b(0x1d4)](a)||this[b(0x1fc)][b(0x1e9)][b(0x209)](a)){a=this[b(0x1de)](a,s,y);break;}else{if(this['helper'][b(0x1e9)][b(0x1e7)](a)||this['helper'][b(0x1e9)]['isDateFormat'](a)){a=this[b(0x1e4)](a,s,y);break;}else{if(this[b(0x1fc)][b(0x1e9)][b(0x214)](a)||this['helper']['val']['isTimeFormat'](a)){a=this[b(0x1dc)](a,s,y);break;}}}}t[b(0x1ff)](a===undefined?null:a);}m[b(0x1ff)](t);}return m;}[a19z(0x219)](s,y,g,x){const l=a19z,m=[];for(const w of g[l(0x1df)]){let t=x['get'](w[l(0x1d9)]);if(t)switch(w[l(0x1f7)]){case typ3s_1[l(0x1f5)][l(0x206)]:t=this['writeDateTime'](t,s,y);break;case typ3s_1['Primitive'][l(0x1ef)]:t=this[l(0x1e4)](t,s,y);break;case typ3s_1[l(0x1f5)]['time']:t=this[l(0x1dc)](t,s,y);break;case typ3s_1[l(0x1f5)][l(0x1db)]:if(this[l(0x1fc)][l(0x1e9)]['isDateTime'](t)||this[l(0x1fc)]['val'][l(0x209)](t)){t=this[l(0x1de)](t,s,y);break;}else{if(this['helper']['val'][l(0x1e7)](t)||this[l(0x1fc)]['val'][l(0x213)](t)){t=this[l(0x1e4)](t,s,y);break;}else{if(this[l(0x1fc)][l(0x1e9)][l(0x214)](t)||this[l(0x1fc)]['val']['isTimeFormat'](t)){t=this[l(0x1dc)](t,s,y);break;}}}}else t=null;m['push']({'name':this[l(0x1fc)][l(0x1d7)][l(0x211)](w[l(0x1d9)]),'type':w[l(0x1f7)],'value':t});}return m;}[a19z(0x1de)](s,y,g){const u=a19z;var x;const m=((x=y[u(0x1f2)])===null||x===void 0x0?void 0x0:x[u(0x206)])||g[u(0x1f2)]['dateTime'];return m?this[u(0x1fc)][u(0x1d7)][u(0x1fa)](s,m):s;}[a19z(0x1e4)](s,y,g){const e=a19z;var x;const m=((x=y[e(0x1f2)])===null||x===void 0x0?void 0x0:x['date'])||g['format'][e(0x1ef)];return m?this['helper'][e(0x1d7)][e(0x1fa)](s,m):s;}[a19z(0x1dc)](s,y,g){const n=a19z;var x;const m=((x=y['format'])===null||x===void 0x0?void 0x0:x[n(0x1da)])||g[n(0x1f2)][n(0x1da)];return m?this[n(0x1fc)]['query'][n(0x1fa)](s,m):s;}[a19z(0x1fd)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){throw new lambdaorm_base_1['MethodNotImplemented']('Connection','deleteMany');});}[a19z(0x212)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){const h=a19y;throw new lambdaorm_base_1['MethodNotImplemented'](h(0x1ea),h(0x1ed));});}[a19z(0x20c)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s0=a19y;return this[s0(0x1e8)](y);});}[a19z(0x1f9)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s1=a19y;return this[s1(0x1e8)](y);});}[a19z(0x1f6)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['executeDDL'](y);});}[a19z(0x1d8)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s2=a19y;return this[s2(0x1e8)](y);});}['createIndex'](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['executeDDL'](y);});}[a19z(0x1d2)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s3=a19y;return this[s3(0x1e8)](y);});}[a19z(0x1d0)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s4=a19y;return this[s4(0x1e8)](y);});}[a19z(0x1e3)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s5=a19y;return this[s5(0x1e8)](y);});}[a19z(0x1cb)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['executeDDL'](y);});}['addFk'](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['executeDDL'](y);});}['dropSequence'](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['executeDDL'](y);});}[a19z(0x1cf)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s6=a19y;return this[s6(0x1e8)](y);});}[a19z(0x210)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s7=a19y;return this[s7(0x1e8)](y);});}[a19z(0x20f)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['executeDDL'](y);});}[a19z(0x20a)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){return this['executeDDL'](y);});}[a19z(0x1ee)](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s8=a19y;return this[s8(0x1e8)](y);});}['dropIndex'](s,y){return __awaiter(this,void 0x0,void 0x0,function*(){const s9=a19y;return this[s9(0x1e8)](y);});}[a19z(0x1e0)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){return this['select'](s,y,g,x);});}[a19z(0x1f1)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){return this['select'](s,y,g,x);});}[a19z(0x20b)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){const ss=a19y;return this[ss(0x1f0)](s,y,g,x);});}['partitions'](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){return this['select'](s,y,g,x);});}[a19z(0x217)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){const sy=a19y;return this[sy(0x1f0)](s,y,g,x);});}[a19z(0x1d3)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){const sO=a19y;return this[sO(0x1f0)](s,y,g,x);});}['primaryKeys'](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){const sD=a19y;return this[sD(0x1f0)](s,y,g,x);});}[a19z(0x1e1)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){return this['select'](s,y,g,x);});}[a19z(0x207)](s,y,g,x){return __awaiter(this,void 0x0,void 0x0,function*(){return this['select'](s,y,g,x);});}}exports[a19z(0x203)]=ConnectionAdapter;