UNPKG

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) • 10.6 kB
"use strict";var T=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var O=(e,t)=>{for(var n in t)T(e,n,{get:t[n],enumerable:!0})},q=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of j(t))!D.call(e,r)&&r!==n&&T(e,r,{get:()=>t[r],enumerable:!(o=F(t,r))||o.enumerable});return e};var M=e=>q(T({},"__esModule",{value:!0}),e);var Pe={};O(Pe,{QueryCompiler:()=>R,__wbg_String_8f0eb39a4a4c2f66:()=>k,__wbg_buffer_609cc3eee51ed158:()=>C,__wbg_call_672a4d21634d4a24:()=>$,__wbg_call_7cccdd69e0791ae2:()=>V,__wbg_crypto_805be4ce92f1e370:()=>W,__wbg_entries_3265d4158b33e5dc:()=>z,__wbg_getRandomValues_f6a868620c8bab49:()=>G,__wbg_getTime_46267b1c24877e30:()=>P,__wbg_get_b9b93047fe3cf45b:()=>Q,__wbg_getwithrefkey_1dc361bd10053bfe:()=>H,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:()=>J,__wbg_instanceof_Uint8Array_17156bcf118086a9:()=>Y,__wbg_isSafeInteger_343e2beeeece1bb0:()=>K,__wbg_keys_5c77a08ddc2fb8a6:()=>X,__wbg_length_a446193dc22c12f8:()=>Z,__wbg_length_e2d2a49132c1b256:()=>v,__wbg_msCrypto_2ac4d17c4748234a:()=>ee,__wbg_new0_f788a2397c7ca929:()=>te,__wbg_new_405e22f390576ce2:()=>ne,__wbg_new_5e0be73521bc8c17:()=>re,__wbg_new_78feb108b6472713:()=>oe,__wbg_new_a12002a7f91c75be:()=>_e,__wbg_newnoargs_105ed471475aaf50:()=>ce,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:()=>ie,__wbg_newwithlength_a381634e90c276d4:()=>ue,__wbg_node_ecc8306b9857f33d:()=>se,__wbg_now_807e54c39636c349:()=>fe,__wbg_now_b3f7572f6ef3d3a9:()=>be,__wbg_process_5cff2739921be718:()=>ae,__wbg_randomFillSync_d3c85af7e31cf1f8:()=>de,__wbg_require_0c566c6f2eef6c79:()=>ge,__wbg_set_37837023f3d740e8:()=>le,__wbg_set_3f1d0b984ed272ed:()=>we,__wbg_set_65595bdd868b3009:()=>pe,__wbg_set_8fc6bf8a5b1071d1:()=>xe,__wbg_set_wasm:()=>U,__wbg_setmessage_82ae475bb413aa5c:()=>ye,__wbg_static_accessor_GLOBAL_88a902d13a557d07:()=>me,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:()=>he,__wbg_static_accessor_SELF_37c5d418e4bf5819:()=>Se,__wbg_static_accessor_WINDOW_5de37043a91a9c40:()=>Te,__wbg_subarray_aa9065fa9dc5df96:()=>Ae,__wbg_versions_a8e5a362e1f16442:()=>Ie,__wbindgen_as_number:()=>Ee,__wbindgen_bigint_from_i64:()=>Fe,__wbindgen_bigint_from_u64:()=>je,__wbindgen_boolean_get:()=>De,__wbindgen_debug_string:()=>Oe,__wbindgen_error_new:()=>qe,__wbindgen_in:()=>Me,__wbindgen_init_externref_table:()=>Ue,__wbindgen_is_function:()=>Be,__wbindgen_is_object:()=>Le,__wbindgen_is_string:()=>Ne,__wbindgen_is_undefined:()=>Re,__wbindgen_jsval_loose_eq:()=>ke,__wbindgen_memory:()=>Ce,__wbindgen_number_get:()=>$e,__wbindgen_number_new:()=>Ve,__wbindgen_string_get:()=>We,__wbindgen_string_new:()=>ze,__wbindgen_throw:()=>Ge});module.exports=M(Pe);var y=()=>{};y.prototype=y;let _;function U(e){_=e}let f=0,m=null;function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(_.memory.buffer)),m}const B=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let S=new B("utf-8");const L=typeof S.encodeInto=="function"?function(e,t){return S.encodeInto(e,t)}:function(e,t){const n=S.encode(e);return t.set(n),{read:e.length,written:n.length}};function l(e,t,n){if(n===void 0){const i=S.encode(e),g=t(i.length,1)>>>0;return h().subarray(g,g+i.length).set(i),f=i.length,g}let o=e.length,r=t(o,1)>>>0;const u=h();let c=0;for(;c<o;c++){const i=e.charCodeAt(c);if(i>127)break;u[r+c]=i}if(c!==o){c!==0&&(e=e.slice(c)),r=n(r,o,o=c+e.length*3,1)>>>0;const i=h().subarray(r+c,r+o),g=L(e,i);c+=g.written,r=n(r,o,c,1)>>>0}return f=c,r}let a=null;function s(){return(a===null||a.buffer.detached===!0||a.buffer.detached===void 0&&a.buffer!==_.memory.buffer)&&(a=new DataView(_.memory.buffer)),a}function w(e){const t=_.__externref_table_alloc();return _.__wbindgen_export_4.set(t,e),t}function d(e,t){try{return e.apply(this,t)}catch(n){const o=w(n);_.__wbindgen_exn_store(o)}}const N=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let I=new N("utf-8",{ignoreBOM:!0,fatal:!0});I.decode();function p(e,t){return e=e>>>0,I.decode(h().subarray(e,e+t))}function b(e){return e==null}function A(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const r=e.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){const r=e.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(e)){const r=e.length;let u="[";r>0&&(u+=A(e[0]));for(let c=1;c<r;c++)u+=", "+A(e[c]);return u+="]",u}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 x(e){const t=_.__wbindgen_export_4.get(e);return _.__externref_table_dealloc(e),t}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_querycompiler_free(e>>>0,1));class R{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_querycompiler_free(t,0)}constructor(t){const n=_.querycompiler_new(t);if(n[2])throw x(n[1]);return this.__wbg_ptr=n[0]>>>0,E.register(this,this.__wbg_ptr,this),this}compile(t){const n=l(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=f,r=_.querycompiler_compile(this.__wbg_ptr,n,o);if(r[2])throw x(r[1]);return x(r[0])}compileBatch(t){const n=l(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=f,r=_.querycompiler_compileBatch(this.__wbg_ptr,n,o);if(r[2])throw x(r[1]);return x(r[0])}}function k(e,t){const n=String(t),o=l(n,_.__wbindgen_malloc,_.__wbindgen_realloc),r=f;s().setInt32(e+4*1,r,!0),s().setInt32(e+4*0,o,!0)}function C(e){return e.buffer}function $(){return d(function(e,t){return e.call(t)},arguments)}function V(){return d(function(e,t,n){return e.call(t,n)},arguments)}function W(e){return e.crypto}function z(e){return Object.entries(e)}function G(){return d(function(e,t){e.getRandomValues(t)},arguments)}function P(e){return e.getTime()}function Q(e,t){return e[t>>>0]}function H(e,t){return e[t]}function J(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t}function Y(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t}function K(e){return Number.isSafeInteger(e)}function X(e){return Object.keys(e)}function Z(e){return e.length}function v(e){return e.length}function ee(e){return e.msCrypto}function te(){return new Date}function ne(){return new Object}function re(){return new Map}function oe(){return new Array}function _e(e){return new Uint8Array(e)}function ce(e,t){return new y(p(e,t))}function ie(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)}function ue(e){return new Uint8Array(e>>>0)}function se(e){return e.node}function fe(){return Date.now()}function be(){return d(function(){return Date.now()},arguments)}function ae(e){return e.process}function de(){return d(function(e,t){e.randomFillSync(t)},arguments)}function ge(){return d(function(){return module.require},arguments)}function le(e,t,n){e[t>>>0]=n}function we(e,t,n){e[t]=n}function pe(e,t,n){e.set(t,n>>>0)}function xe(e,t,n){return e.set(t,n)}function ye(e,t){global.PRISMA_WASM_PANIC_REGISTRY.set_message(p(e,t))}function me(){const e=typeof global>"u"?null:global;return b(e)?0:w(e)}function he(){const e=typeof globalThis>"u"?null:globalThis;return b(e)?0:w(e)}function Se(){const e=typeof self>"u"?null:self;return b(e)?0:w(e)}function Te(){const e=typeof window>"u"?null:window;return b(e)?0:w(e)}function Ae(e,t,n){return e.subarray(t>>>0,n>>>0)}function Ie(e){return e.versions}function Ee(e){return+e}function Fe(e){return e}function je(e){return BigInt.asUintN(64,e)}function De(e){const t=e;return typeof t=="boolean"?t?1:0:2}function Oe(e,t){const n=A(t),o=l(n,_.__wbindgen_malloc,_.__wbindgen_realloc),r=f;s().setInt32(e+4*1,r,!0),s().setInt32(e+4*0,o,!0)}function qe(e,t){return new Error(p(e,t))}function Me(e,t){return e in t}function Ue(){const e=_.__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 Be(e){return typeof e=="function"}function Le(e){const t=e;return typeof t=="object"&&t!==null}function Ne(e){return typeof e=="string"}function Re(e){return e===void 0}function ke(e,t){return e==t}function Ce(){return _.memory}function $e(e,t){const n=t,o=typeof n=="number"?n:void 0;s().setFloat64(e+8*1,b(o)?0:o,!0),s().setInt32(e+4*0,!b(o),!0)}function Ve(e){return e}function We(e,t){const n=t,o=typeof n=="string"?n:void 0;var r=b(o)?0:l(o,_.__wbindgen_malloc,_.__wbindgen_realloc),u=f;s().setInt32(e+4*1,u,!0),s().setInt32(e+4*0,r,!0)}function ze(e,t){return p(e,t)}function Ge(e,t){throw new Error(p(e,t))}0&&(module.exports={QueryCompiler,__wbg_String_8f0eb39a4a4c2f66,__wbg_buffer_609cc3eee51ed158,__wbg_call_672a4d21634d4a24,__wbg_call_7cccdd69e0791ae2,__wbg_crypto_805be4ce92f1e370,__wbg_entries_3265d4158b33e5dc,__wbg_getRandomValues_f6a868620c8bab49,__wbg_getTime_46267b1c24877e30,__wbg_get_b9b93047fe3cf45b,__wbg_getwithrefkey_1dc361bd10053bfe,__wbg_instanceof_ArrayBuffer_e14585432e3737fc,__wbg_instanceof_Uint8Array_17156bcf118086a9,__wbg_isSafeInteger_343e2beeeece1bb0,__wbg_keys_5c77a08ddc2fb8a6,__wbg_length_a446193dc22c12f8,__wbg_length_e2d2a49132c1b256,__wbg_msCrypto_2ac4d17c4748234a,__wbg_new0_f788a2397c7ca929,__wbg_new_405e22f390576ce2,__wbg_new_5e0be73521bc8c17,__wbg_new_78feb108b6472713,__wbg_new_a12002a7f91c75be,__wbg_newnoargs_105ed471475aaf50,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a,__wbg_newwithlength_a381634e90c276d4,__wbg_node_ecc8306b9857f33d,__wbg_now_807e54c39636c349,__wbg_now_b3f7572f6ef3d3a9,__wbg_process_5cff2739921be718,__wbg_randomFillSync_d3c85af7e31cf1f8,__wbg_require_0c566c6f2eef6c79,__wbg_set_37837023f3d740e8,__wbg_set_3f1d0b984ed272ed,__wbg_set_65595bdd868b3009,__wbg_set_8fc6bf8a5b1071d1,__wbg_set_wasm,__wbg_setmessage_82ae475bb413aa5c,__wbg_static_accessor_GLOBAL_88a902d13a557d07,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0,__wbg_static_accessor_SELF_37c5d418e4bf5819,__wbg_static_accessor_WINDOW_5de37043a91a9c40,__wbg_subarray_aa9065fa9dc5df96,__wbg_versions_a8e5a362e1f16442,__wbindgen_as_number,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_boolean_get,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_init_externref_table,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw});