prisma
Version:
Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.
3 lines (2 loc) • 12.7 kB
JavaScript
var m=()=>{};m.prototype=m;let r;function N(e){r=e}let s=0,h=null;function T(){return(h===null||h.byteLength===0)&&(h=new Uint8Array(r.memory.buffer)),h}const j=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let q=new j("utf-8");const k=typeof q.encodeInto=="function"?function(e,t){return q.encodeInto(e,t)}:function(e,t){const n=q.encode(e);return t.set(n),{read:e.length,written:n.length}};function f(e,t,n){if(n===void 0){const u=q.encode(e),a=t(u.length,1)>>>0;return T().subarray(a,a+u.length).set(u),s=u.length,a}let o=e.length,_=t(o,1)>>>0;const i=T();let c=0;for(;c<o;c++){const u=e.charCodeAt(c);if(u>127)break;i[_+c]=u}if(c!==o){c!==0&&(e=e.slice(c)),_=n(_,o,o=c+e.length*3,1)>>>0;const u=T().subarray(_+c,_+o),a=k(e,u);c+=a.written,_=n(_,o,c,1)>>>0}return s=c,_}let p=null;function l(){return(p===null||p.buffer.detached===!0||p.buffer.detached===void 0&&p.buffer!==r.memory.buffer)&&(p=new DataView(r.memory.buffer)),p}function x(e){const t=r.__externref_table_alloc();return r.__wbindgen_export_4.set(t,e),t}function g(e,t){try{return e.apply(this,t)}catch(n){const o=x(n);r.__wbindgen_exn_store(o)}}const D=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let A=new D("utf-8",{ignoreBOM:!0,fatal:!0});A.decode();function w(e,t){return e=e>>>0,A.decode(T().subarray(e,e+t))}function b(e){return e==null}const I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{r.__wbindgen_export_5.get(e.dtor)(e.a,e.b)});function R(e,t,n,o){const _={a:e,b:t,cnt:1,dtor:n},i=(...c)=>{_.cnt++;const u=_.a;_.a=0;try{return o(u,_.b,...c)}finally{--_.cnt===0?(r.__wbindgen_export_5.get(_.dtor)(u,_.b),I.unregister(_)):_.a=u}};return i.original=_,I.register(i,_,_),i}function S(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const _=e.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){const _=e.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(e)){const _=e.length;let i="[";_>0&&(i+=S(e[0]));for(let c=1;c<_;c++)i+=", "+S(e[c]);return i+="]",i}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let o;if(n&&n.length>1)o=n[1];else return toString.call(e);if(o=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
${e.stack}`:o}function E(e){const t=r.__wbindgen_export_4.get(e);return r.__externref_table_dealloc(e),t}function $(){return r.getBuildTimeInfo()}function C(e){var t=b(e)?0:f(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=s;const o=r.debug_panic(t,n);if(o[1])throw E(o[0])}function B(e,t,n){r.closure589_externref_shim(e,t,n)}function U(e,t,n,o){r.closure129_externref_shim(e,t,n,o)}const O=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_queryengine_free(e>>>0,1));class V{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_queryengine_free(t,0)}constructor(t,n,o){const _=r.queryengine_new(t,n,o);if(_[2])throw E(_[1]);return this.__wbg_ptr=_[0]>>>0,O.register(this,this.__wbg_ptr,this),this}connect(t,n){const o=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=s,i=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=s;return r.queryengine_connect(this.__wbg_ptr,o,_,i,c)}disconnect(t,n){const o=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=s,i=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=s;return r.queryengine_disconnect(this.__wbg_ptr,o,_,i,c)}query(t,n,o,_){const i=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=s,u=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=s;var d=b(o)?0:f(o,r.__wbindgen_malloc,r.__wbindgen_realloc),y=s;const F=f(_,r.__wbindgen_malloc,r.__wbindgen_realloc),M=s;return r.queryengine_query(this.__wbg_ptr,i,c,u,a,d,y,F,M)}startTransaction(t,n,o){const _=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s,c=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),u=s,a=f(o,r.__wbindgen_malloc,r.__wbindgen_realloc),d=s;return r.queryengine_startTransaction(this.__wbg_ptr,_,i,c,u,a,d)}commitTransaction(t,n,o){const _=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s,c=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),u=s,a=f(o,r.__wbindgen_malloc,r.__wbindgen_realloc),d=s;return r.queryengine_commitTransaction(this.__wbg_ptr,_,i,c,u,a,d)}rollbackTransaction(t,n,o){const _=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s,c=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),u=s,a=f(o,r.__wbindgen_malloc,r.__wbindgen_realloc),d=s;return r.queryengine_rollbackTransaction(this.__wbg_ptr,_,i,c,u,a,d)}metrics(t){const n=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=s;return r.queryengine_metrics(this.__wbg_ptr,n,o)}trace(t){const n=f(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=s;return r.queryengine_trace(this.__wbg_ptr,n,o)}}function z(e,t){const n=String(t),o=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),_=s;l().setInt32(e+4*1,_,!0),l().setInt32(e+4*0,o,!0)}function W(e){return e.buffer}function P(){return g(function(e,t){return e.call(t)},arguments)}function G(){return g(function(e,t,n){return e.call(t,n)},arguments)}function Q(e){return e.crypto}function H(e){return e.done}function J(e){return Object.entries(e)}function K(e,t,n){const o=e.exec(w(t,n));return b(o)?0:x(o)}function X(){return g(function(e,t){e.getRandomValues(t)},arguments)}function Y(e){return e.getTime()}function Z(){return g(function(e,t){return Reflect.get(e,t)},arguments)}function ee(e,t){return e[t>>>0]}function te(){return g(function(e,t){return e[t]},arguments)}function ne(e,t){return e[t]}function re(){return g(function(e,t){return Reflect.has(e,t)},arguments)}function oe(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t}function _e(e){let t;try{t=e instanceof Map}catch{t=!1}return t}function ce(e){let t;try{t=e instanceof Promise}catch{t=!1}return t}function ie(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t}function ue(e){return Array.isArray(e)}function se(e){return Number.isSafeInteger(e)}function fe(){return Symbol.iterator}function ae(e){return Object.keys(e)}function be(e){return e.length}function ge(e){return e.length}function le(e){return e.msCrypto}function de(){return new Date}function we(e,t){try{var n={a:e,b:t},o=(i,c)=>{const u=n.a;n.a=0;try{return U(u,n.b,i,c)}finally{n.a=u}};return new Promise(o)}finally{n.a=n.b=0}}function pe(){return new Object}function xe(){return new Map}function ye(e,t,n,o){return new RegExp(w(e,t),w(n,o))}function me(){return new Array}function he(e){return new Uint8Array(e)}function Te(e,t){return new m(w(e,t))}function qe(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)}function Se(e){return new Uint8Array(e>>>0)}function Ae(e){return e.next}function Ie(){return g(function(e){return e.next()},arguments)}function Ee(e){return e.node}function Oe(e){return e.now()}function Fe(){return Date.now()}function Me(){return g(function(){return Date.now()},arguments)}function je(e){return e.process}function ke(e,t){return e.push(t)}function De(e){return e.queueMicrotask}function Re(e){queueMicrotask(e)}function Be(){return g(function(e,t){e.randomFillSync(t)},arguments)}function Ue(){return g(function(){return module.require},arguments)}function Le(e){return Promise.resolve(e)}function ve(e,t){return setTimeout(e,t>>>0)}function Ne(e,t,n){e[t>>>0]=n}function $e(e,t,n){e[t]=n}function Ce(e,t,n){e.set(t,n>>>0)}function Ve(e,t,n){return e.set(t,n)}function ze(){return g(function(e,t,n){return Reflect.set(e,t,n)},arguments)}function We(){const e=typeof global>"u"?null:global;return b(e)?0:x(e)}function Pe(){const e=typeof globalThis>"u"?null:globalThis;return b(e)?0:x(e)}function Ge(){const e=typeof self>"u"?null:self;return b(e)?0:x(e)}function Qe(){const e=typeof window>"u"?null:window;return b(e)?0:x(e)}function He(e,t,n){return e.subarray(t>>>0,n>>>0)}function Je(e,t){return e.then(t)}function Ke(e,t,n){return e.then(t,n)}function Xe(e){return e.valueOf()}function Ye(e){return e.value}function Ze(e){return e.versions}function et(e){return+e}function tt(e){return e}function nt(e){return BigInt.asUintN(64,e)}function rt(e,t){const n=t,o=typeof n=="bigint"?n:void 0;l().setBigInt64(e+8*1,b(o)?BigInt(0):o,!0),l().setInt32(e+4*0,!b(o),!0)}function ot(e){const t=e;return typeof t=="boolean"?t?1:0:2}function _t(e){const t=e.original;return t.cnt--==1?(t.a=0,!0):!1}function ct(e,t,n){return R(e,t,590,B)}function it(e,t){const n=S(t),o=f(n,r.__wbindgen_malloc,r.__wbindgen_realloc),_=s;l().setInt32(e+4*1,_,!0),l().setInt32(e+4*0,o,!0)}function ut(e,t){return new Error(w(e,t))}function st(e,t){return e in t}function ft(){const e=r.__wbindgen_export_4,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}function at(e){return typeof e=="bigint"}function bt(e){return typeof e=="function"}function gt(e){const t=e;return typeof t=="object"&&t!==null}function lt(e){return typeof e=="string"}function dt(e){return e===void 0}function wt(e,t){return e===t}function pt(e,t){return e==t}function xt(){return r.memory}function yt(e,t){const n=t,o=typeof n=="number"?n:void 0;l().setFloat64(e+8*1,b(o)?0:o,!0),l().setInt32(e+4*0,!b(o),!0)}function mt(e){return e}function ht(e,t){const n=t,o=typeof n=="string"?n:void 0;var _=b(o)?0:f(o,r.__wbindgen_malloc,r.__wbindgen_realloc),i=s;l().setInt32(e+4*1,i,!0),l().setInt32(e+4*0,_,!0)}function Tt(e,t){return w(e,t)}function qt(e,t){throw new Error(w(e,t))}export{V as QueryEngine,z as __wbg_String_8f0eb39a4a4c2f66,W as __wbg_buffer_609cc3eee51ed158,P as __wbg_call_672a4d21634d4a24,G as __wbg_call_7cccdd69e0791ae2,Q as __wbg_crypto_805be4ce92f1e370,H as __wbg_done_769e5ede4b31c67b,J as __wbg_entries_3265d4158b33e5dc,K as __wbg_exec_3e2d2d0644c927df,X as __wbg_getRandomValues_f6a868620c8bab49,Y as __wbg_getTime_46267b1c24877e30,Z as __wbg_get_67b2ba62fc30de12,ee as __wbg_get_b9b93047fe3cf45b,te as __wbg_get_ece95cf6585650d9,ne as __wbg_getwithrefkey_1dc361bd10053bfe,re as __wbg_has_a5ea9117f258a0ec,oe as __wbg_instanceof_ArrayBuffer_e14585432e3737fc,_e as __wbg_instanceof_Map_f3469ce2244d2430,ce as __wbg_instanceof_Promise_935168b8f4b49db3,ie as __wbg_instanceof_Uint8Array_17156bcf118086a9,ue as __wbg_isArray_a1eab7e0d067391b,se as __wbg_isSafeInteger_343e2beeeece1bb0,fe as __wbg_iterator_9a24c88df860dc65,ae as __wbg_keys_5c77a08ddc2fb8a6,be as __wbg_length_a446193dc22c12f8,ge as __wbg_length_e2d2a49132c1b256,le as __wbg_msCrypto_2ac4d17c4748234a,de as __wbg_new0_f788a2397c7ca929,we as __wbg_new_23a2665fac83c611,pe as __wbg_new_405e22f390576ce2,xe as __wbg_new_5e0be73521bc8c17,ye as __wbg_new_63847613cde5d4bc,me as __wbg_new_78feb108b6472713,he as __wbg_new_a12002a7f91c75be,Te as __wbg_newnoargs_105ed471475aaf50,qe as __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a,Se as __wbg_newwithlength_a381634e90c276d4,Ae as __wbg_next_25feadfc0913fea9,Ie as __wbg_next_6574e1a8a62d1055,Ee as __wbg_node_ecc8306b9857f33d,Oe as __wbg_now_7fd00a794a07d388,Fe as __wbg_now_807e54c39636c349,Me as __wbg_now_b3f7572f6ef3d3a9,je as __wbg_process_5cff2739921be718,ke as __wbg_push_737cfc8c1432c2c6,De as __wbg_queueMicrotask_5a8a9131f3f0b37b,Re as __wbg_queueMicrotask_6d79674585219521,Be as __wbg_randomFillSync_d3c85af7e31cf1f8,Ue as __wbg_require_0c566c6f2eef6c79,Le as __wbg_resolve_4851785c9c5f573d,ve as __wbg_setTimeout_5d6a1d4fc51ea450,Ne as __wbg_set_37837023f3d740e8,$e as __wbg_set_3f1d0b984ed272ed,Ce as __wbg_set_65595bdd868b3009,Ve as __wbg_set_8fc6bf8a5b1071d1,ze as __wbg_set_bb8cecf6a62b9f46,N as __wbg_set_wasm,We as __wbg_static_accessor_GLOBAL_88a902d13a557d07,Pe as __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0,Ge as __wbg_static_accessor_SELF_37c5d418e4bf5819,Qe as __wbg_static_accessor_WINDOW_5de37043a91a9c40,He as __wbg_subarray_aa9065fa9dc5df96,Je as __wbg_then_44b73946d2fb3e7d,Ke as __wbg_then_48b406749878a531,Xe as __wbg_valueOf_7392193dd78c6b97,Ye as __wbg_value_cd1ffa7b1ab794f1,Ze as __wbg_versions_a8e5a362e1f16442,et as __wbindgen_as_number,tt as __wbindgen_bigint_from_i64,nt as __wbindgen_bigint_from_u64,rt as __wbindgen_bigint_get_as_i64,ot as __wbindgen_boolean_get,_t as __wbindgen_cb_drop,ct as __wbindgen_closure_wrapper7800,it as __wbindgen_debug_string,ut as __wbindgen_error_new,st as __wbindgen_in,ft as __wbindgen_init_externref_table,at as __wbindgen_is_bigint,bt as __wbindgen_is_function,gt as __wbindgen_is_object,lt as __wbindgen_is_string,dt as __wbindgen_is_undefined,wt as __wbindgen_jsval_eq,pt as __wbindgen_jsval_loose_eq,xt as __wbindgen_memory,yt as __wbindgen_number_get,mt as __wbindgen_number_new,ht as __wbindgen_string_get,Tt as __wbindgen_string_new,qt as __wbindgen_throw,C as debug_panic,$ as getBuildTimeInfo};