Erster Docker-Stand
This commit is contained in:
10
_node_modules/@prisma/studio-core/dist/chunk-6MJRFEB4.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-6MJRFEB4.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{e}from"./chunk-GGFIWHFO.js";e();function u(r){return{parameters:[r],sql:"kill ?"}}export{u as a};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vZGF0YS9teXNxbC1jb3JlL3V0aWxpdHkudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB0eXBlIHsgUXVlcnkgfSBmcm9tIFwiLi4vcXVlcnlcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGdldENhbmNlbFF1ZXJ5KHRocmVhZElkOiB1bmtub3duKTogUXVlcnk8dW5rbm93bj4ge1xuICByZXR1cm4ge1xuICAgIHBhcmFtZXRlcnM6IFt0aHJlYWRJZF0sXG4gICAgc3FsOiBcImtpbGwgP1wiLFxuICB9O1xufVxuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7bUNBQUFBLElBRU8sU0FBU0MsRUFBZUMsRUFBbUMsQ0FDaEUsTUFBTyxDQUNMLFdBQVksQ0FBQ0EsQ0FBUSxFQUNyQixJQUFLLFFBQ1AsQ0FDRiIsCiAgIm5hbWVzIjogWyJpbml0X2RlZmluZV9BQ0NFTEVSQVRFX1NDSEVNQV9CWV9QUk9WSURFUiIsICJnZXRDYW5jZWxRdWVyeSIsICJ0aHJlYWRJZCJdCn0K
|
||||
10
_node_modules/@prisma/studio-core/dist/chunk-GGFIWHFO.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-GGFIWHFO.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var p=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var l=(a,b)=>()=>(a&&(b=a(a=0)),b);var q=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),r=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},m=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var s=(a,b,c)=>(c=a!=null?g(j(a)):{},m(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));var v,o=l(()=>{v={mysql:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJteXNxbCIKICAgIHVybCAgICAgID0gZW52KCJEQVRBQkFTRV9VUkwiKQp9CiAgICAKZ2VuZXJhdG9yIGNsaWVudCB7CiAgICBwcm92aWRlciA9ICJwcmlzbWEtY2xpZW50LWpzIgp9",hash:"8157ef0f68a62b93385f659d0df3eb630f54b49387d67be1e69cc376bc2e0901"},postgres:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJwb3N0Z3JlcyIKICAgIHVybCAgICAgID0gZW52KCJEQVRBQkFTRV9VUkwiKQp9CiAgICAKZ2VuZXJhdG9yIGNsaWVudCB7CiAgICBwcm92aWRlciA9ICJwcmlzbWEtY2xpZW50LWpzIgp9",hash:"54195896aeafa3318ca33f5a8bb44c6b4d89c368cb15288f3bd5ace35a3f9227"},postgresql:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJwb3N0Z3Jlc3FsIgogICAgdXJsICAgICAgPSBlbnYoIkRBVEFCQVNFX1VSTCIpCn0KICAgIApnZW5lcmF0b3IgY2xpZW50IHsKICAgIHByb3ZpZGVyID0gInByaXNtYS1jbGllbnQtanMiCn0=",hash:"d2898eb0d71a62767c6497d5c37718cf28c13e6144b1c97f6849ff0f76e958fb"}}});export{p as a,q as b,r as c,s as d,o as e,v as f};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiPGRlZmluZTpBQ0NFTEVSQVRFX1NDSEVNQV9CWV9QUk9WSURFUj4iXSwKICAic291cmNlc0NvbnRlbnQiOiBbIiJdLAogICJtYXBwaW5ncyI6ICI7Ozs7Ozs7OzIxQkFBQSxJQUFBQSxFQUFBQyxFQUFBQyxFQUFBLEtBQUFGLEVBQUEsQ0FBQyxNQUFRLENBQUMsUUFBVSx1TEFBdUwsS0FBTyxrRUFBa0UsRUFBRSxTQUFXLENBQUMsUUFBVSwyTEFBMkwsS0FBTyxrRUFBa0UsRUFBRSxXQUFhLENBQUMsUUFBVSwrTEFBK0wsS0FBTyxrRUFBa0UsQ0FBQyIsCiAgIm5hbWVzIjogWyJkZWZpbmVfQUNDRUxFUkFURV9TQ0hFTUFfQllfUFJPVklERVJfZGVmYXVsdCIsICJpbml0X2RlZmluZV9BQ0NFTEVSQVRFX1NDSEVNQV9CWV9QUk9WSURFUiIsICJfX2VzbU1pbiJdCn0K
|
||||
10
_node_modules/@prisma/studio-core/dist/chunk-IZYNQMBI.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-IZYNQMBI.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10
_node_modules/@prisma/studio-core/dist/chunk-QUSM4YZA.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-QUSM4YZA.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{y as n}from"./chunk-UHDZB3FI.js";import{e}from"./chunk-GGFIWHFO.js";e();function p(){return n("select pg_backend_pid() as pid")}function c(r){return{parameters:[r],sql:"select pg_cancel_backend($1);"}}export{p as a,c as b};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vZGF0YS9wb3N0Z3Jlcy1jb3JlL3V0aWxpdHkudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB7IGFzUXVlcnksIHR5cGUgUXVlcnkgfSBmcm9tIFwiLi4vcXVlcnlcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGdldFBJRFF1ZXJ5KCk6IFF1ZXJ5PHsgcGlkOiB1bmtub3duIH0+IHtcbiAgcmV0dXJuIGFzUXVlcnkoXCJzZWxlY3QgcGdfYmFja2VuZF9waWQoKSBhcyBwaWRcIik7XG59XG5cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZW1wdHktb2JqZWN0LXR5cGVcbmV4cG9ydCBmdW5jdGlvbiBnZXRDYW5jZWxRdWVyeShwaWQ6IHt9KTogUXVlcnk8dW5rbm93bj4ge1xuICByZXR1cm4ge1xuICAgIHBhcmFtZXRlcnM6IFtwaWRdLFxuICAgIHNxbDogXCJzZWxlY3QgcGdfY2FuY2VsX2JhY2tlbmQoJDEpO1wiLFxuICB9O1xufVxuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7MkVBQUFBLElBRU8sU0FBU0MsR0FBdUMsQ0FDckQsT0FBT0MsRUFBUSxnQ0FBZ0MsQ0FDakQsQ0FHTyxTQUFTQyxFQUFlQyxFQUF5QixDQUN0RCxNQUFPLENBQ0wsV0FBWSxDQUFDQSxDQUFHLEVBQ2hCLElBQUssK0JBQ1AsQ0FDRiIsCiAgIm5hbWVzIjogWyJpbml0X2RlZmluZV9BQ0NFTEVSQVRFX1NDSEVNQV9CWV9QUk9WSURFUiIsICJnZXRQSURRdWVyeSIsICJhc1F1ZXJ5IiwgImdldENhbmNlbFF1ZXJ5IiwgInBpZCJdCn0K
|
||||
10
_node_modules/@prisma/studio-core/dist/chunk-UHDZB3FI.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-UHDZB3FI.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10
_node_modules/@prisma/studio-core/dist/chunk-V6YDTHJJ.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-V6YDTHJJ.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10
_node_modules/@prisma/studio-core/dist/chunk-WEUE32ZL.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-WEUE32ZL.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{i as l,j as u,k as f,l as m,m as t,n as p,o as i}from"./chunk-UHDZB3FI.js";import{e as a}from"./chunk-GGFIWHFO.js";a();function I(o,r){let n=[];for(let{selection:e}of o.selections??[])if(t.is(e)&&m.is(e.column))n.push(s(e.column.column.name),c(r,e.column.column.name));else if(m.is(e))n.push(s(e.column.name),c(r,e.column.name));else if(u.is(e)&&l.is(e.alias))n.push(s(e.alias.name),c(r,e.alias.name));else throw new Error("can't extract column names from the select query node");return n}function s(o){return new i(p.createImmediate(o))}function c(o,r){return new i(t.create(m.create(r),f.create(o)))}export{I as a};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vbm9kZV9tb2R1bGVzLy5wbnBtL2t5c2VseUAwLjI4Ljgvbm9kZV9tb2R1bGVzL2t5c2VseS9kaXN0L2VzbS91dGlsL2pzb24tb2JqZWN0LWFyZ3MuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8vLyA8cmVmZXJlbmNlIHR5cGVzPVwiLi9qc29uLW9iamVjdC1hcmdzLmQudHNcIiAvPlxuaW1wb3J0IHsgRXhwcmVzc2lvbldyYXBwZXIgfSBmcm9tICcuLi9leHByZXNzaW9uL2V4cHJlc3Npb24td3JhcHBlci5qcyc7XG5pbXBvcnQgeyBBbGlhc05vZGUgfSBmcm9tICcuLi9vcGVyYXRpb24tbm9kZS9hbGlhcy1ub2RlLmpzJztcbmltcG9ydCB7IENvbHVtbk5vZGUgfSBmcm9tICcuLi9vcGVyYXRpb24tbm9kZS9jb2x1bW4tbm9kZS5qcyc7XG5pbXBvcnQgeyBJZGVudGlmaWVyTm9kZSB9IGZyb20gJy4uL29wZXJhdGlvbi1ub2RlL2lkZW50aWZpZXItbm9kZS5qcyc7XG5pbXBvcnQgeyBSZWZlcmVuY2VOb2RlIH0gZnJvbSAnLi4vb3BlcmF0aW9uLW5vZGUvcmVmZXJlbmNlLW5vZGUuanMnO1xuaW1wb3J0IHsgVGFibGVOb2RlIH0gZnJvbSAnLi4vb3BlcmF0aW9uLW5vZGUvdGFibGUtbm9kZS5qcyc7XG5pbXBvcnQgeyBWYWx1ZU5vZGUgfSBmcm9tICcuLi9vcGVyYXRpb24tbm9kZS92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T04sRUFBT1MsRUFBSyxDQUN4QixPQUFPLElBQUlDLEVBQWtCUCxFQUFjLE9BQU9DLEVBQVcsT0FBT0ssQ0FBRyxFQUFHRyxFQUFVLE9BQU9aLENBQUssQ0FBQyxDQUFDLENBQ3RHIiwKICAibmFtZXMiOiBbImluaXRfZGVmaW5lX0FDQ0VMRVJBVEVfU0NIRU1BX0JZX1BST1ZJREVSIiwgImdldEpzb25PYmplY3RBcmdzIiwgIm5vZGUiLCAidGFibGUiLCAiYXJncyIsICJzIiwgIlJlZmVyZW5jZU5vZGUiLCAiQ29sdW1uTm9kZSIsICJjb2xOYW1lIiwgImNvbFJlZiIsICJBbGlhc05vZGUiLCAiSWRlbnRpZmllck5vZGUiLCAiY29sIiwgIkV4cHJlc3Npb25XcmFwcGVyIiwgIlZhbHVlTm9kZSIsICJUYWJsZU5vZGUiXQp9Cg==
|
||||
10
_node_modules/@prisma/studio-core/dist/chunk-YHRFAAQN.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-YHRFAAQN.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{e as r}from"./chunk-GGFIWHFO.js";r();var e=class extends Error{constructor(){super("This operation was aborted"),this.name="AbortError"}};function u(){return[new e]}export{e as a,u as b};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vZGF0YS9leGVjdXRvci50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHR5cGUgeyBRdWVyeSwgUXVlcnlSZXN1bHQgfSBmcm9tIFwiLi9xdWVyeVwiO1xuaW1wb3J0IHR5cGUgeyBFaXRoZXIgfSBmcm9tIFwi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FDcEMsYUFBYyxDQUNaLE1BQU0sNEJBQTRCLEVBQ2xDLEtBQUssS0FBTyxZQUNkLENBQ0YsRUFFTyxTQUFTQyxHQUErQixDQUM3QyxNQUFPLENBQUMsSUFBSUQsQ0FBWSxDQUMxQiIsCiAgIm5hbWVzIjogWyJpbml0X2RlZmluZV9BQ0NFTEVSQVRFX1NDSEVNQV9CWV9QUk9WSURFUiIsICJBYm9ydEVycm9yIiwgImdldEFib3J0UmVzdWx0Il0KfQo=
|
||||
10
_node_modules/@prisma/studio-core/dist/chunk-ZDKFUEBN.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/chunk-ZDKFUEBN.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
_node_modules/@prisma/studio-core/dist/data/accelerate/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/accelerate/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
54
_node_modules/@prisma/studio-core/dist/data/accelerate/index.d.cts
generated
vendored
Normal file
54
_node_modules/@prisma/studio-core/dist/data/accelerate/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import { G as Executor, Q as Query, E as ExecuteOptions, a as Either, b as QueryResult } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
declare function deserializeRawResult(response: RawResponse, valueDeserializerFn?: (value: unknown, type: QueryIntrospectionBuiltinType, column: string) => unknown): DeserializedResponse;
|
||||
type DeserializedResponse = Array<Record<string, unknown>>;
|
||||
interface RawResponse {
|
||||
columns: string[];
|
||||
types: QueryIntrospectionBuiltinType[];
|
||||
rows: unknown[][];
|
||||
}
|
||||
type QueryIntrospectionBuiltinType = "int" | "bigint" | "float" | "double" | "string" | "enum" | "bytes" | "bool" | "char" | "decimal" | "json" | "xml" | "uuid" | "datetime" | "date" | "time" | "int-array" | "bigint-array" | "float-array" | "double-array" | "string-array" | "char-array" | "bytes-array" | "bool-array" | "decimal-array" | "json-array" | "xml-array" | "uuid-array" | "datetime-array" | "date-array" | "time-array" | "null" | "unknown";
|
||||
|
||||
declare const SUPPORTED_ACCELERATE_PROVIDERS: readonly ["mysql", "postgres", "postgresql"];
|
||||
type SupportedAccelerateProvider = (typeof SUPPORTED_ACCELERATE_PROVIDERS)[number];
|
||||
interface AccelerateHttpClientParams {
|
||||
/**
|
||||
* Accelerate API key.
|
||||
*/
|
||||
apiKey: string;
|
||||
/**
|
||||
* Optional fetch implementation.
|
||||
*/
|
||||
fetch?: typeof globalThis.fetch;
|
||||
/**
|
||||
* Optional host.
|
||||
*
|
||||
* Defaults to `accelerate.prisma-data.net`.
|
||||
*/
|
||||
host?: string;
|
||||
/**
|
||||
* Database provider.
|
||||
*/
|
||||
provider: SupportedAccelerateProvider | "postgresql";
|
||||
/**
|
||||
* Prisma Engine Hash (eg. 173f8d54f8d52e692c7e27e72a88314ec7aeff60)
|
||||
*/
|
||||
engineHash: string;
|
||||
/**
|
||||
* Prisma Client Version (eg. 6.5.0).
|
||||
*/
|
||||
clientVersion: string;
|
||||
/**
|
||||
* Function used to deserialize the results of queries.
|
||||
*
|
||||
* By default, the results are passed to `deserializeRawResult`.
|
||||
*/
|
||||
resultDeserializerFn?: (this: void, response: RawResponse) => unknown[];
|
||||
}
|
||||
interface AccelerateHttpClient extends Executor {
|
||||
execute<T>(this: void, query: Query<T>, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Query<T>>>>;
|
||||
}
|
||||
declare function createAccelerateHttpClient(props: AccelerateHttpClientParams): AccelerateHttpClient;
|
||||
|
||||
export { type AccelerateHttpClient, type AccelerateHttpClientParams, type DeserializedResponse, type QueryIntrospectionBuiltinType, type RawResponse, type SupportedAccelerateProvider, createAccelerateHttpClient, deserializeRawResult };
|
||||
54
_node_modules/@prisma/studio-core/dist/data/accelerate/index.d.ts
generated
vendored
Normal file
54
_node_modules/@prisma/studio-core/dist/data/accelerate/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import { G as Executor, Q as Query, E as ExecuteOptions, a as Either, b as QueryResult } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
declare function deserializeRawResult(response: RawResponse, valueDeserializerFn?: (value: unknown, type: QueryIntrospectionBuiltinType, column: string) => unknown): DeserializedResponse;
|
||||
type DeserializedResponse = Array<Record<string, unknown>>;
|
||||
interface RawResponse {
|
||||
columns: string[];
|
||||
types: QueryIntrospectionBuiltinType[];
|
||||
rows: unknown[][];
|
||||
}
|
||||
type QueryIntrospectionBuiltinType = "int" | "bigint" | "float" | "double" | "string" | "enum" | "bytes" | "bool" | "char" | "decimal" | "json" | "xml" | "uuid" | "datetime" | "date" | "time" | "int-array" | "bigint-array" | "float-array" | "double-array" | "string-array" | "char-array" | "bytes-array" | "bool-array" | "decimal-array" | "json-array" | "xml-array" | "uuid-array" | "datetime-array" | "date-array" | "time-array" | "null" | "unknown";
|
||||
|
||||
declare const SUPPORTED_ACCELERATE_PROVIDERS: readonly ["mysql", "postgres", "postgresql"];
|
||||
type SupportedAccelerateProvider = (typeof SUPPORTED_ACCELERATE_PROVIDERS)[number];
|
||||
interface AccelerateHttpClientParams {
|
||||
/**
|
||||
* Accelerate API key.
|
||||
*/
|
||||
apiKey: string;
|
||||
/**
|
||||
* Optional fetch implementation.
|
||||
*/
|
||||
fetch?: typeof globalThis.fetch;
|
||||
/**
|
||||
* Optional host.
|
||||
*
|
||||
* Defaults to `accelerate.prisma-data.net`.
|
||||
*/
|
||||
host?: string;
|
||||
/**
|
||||
* Database provider.
|
||||
*/
|
||||
provider: SupportedAccelerateProvider | "postgresql";
|
||||
/**
|
||||
* Prisma Engine Hash (eg. 173f8d54f8d52e692c7e27e72a88314ec7aeff60)
|
||||
*/
|
||||
engineHash: string;
|
||||
/**
|
||||
* Prisma Client Version (eg. 6.5.0).
|
||||
*/
|
||||
clientVersion: string;
|
||||
/**
|
||||
* Function used to deserialize the results of queries.
|
||||
*
|
||||
* By default, the results are passed to `deserializeRawResult`.
|
||||
*/
|
||||
resultDeserializerFn?: (this: void, response: RawResponse) => unknown[];
|
||||
}
|
||||
interface AccelerateHttpClient extends Executor {
|
||||
execute<T>(this: void, query: Query<T>, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Query<T>>>>;
|
||||
}
|
||||
declare function createAccelerateHttpClient(props: AccelerateHttpClientParams): AccelerateHttpClient;
|
||||
|
||||
export { type AccelerateHttpClient, type AccelerateHttpClientParams, type DeserializedResponse, type QueryIntrospectionBuiltinType, type RawResponse, type SupportedAccelerateProvider, createAccelerateHttpClient, deserializeRawResult };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/accelerate/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/accelerate/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{a as t,b as p}from"../../chunk-ZDKFUEBN.js";import{e}from"../../chunk-GGFIWHFO.js";e();export{p as createAccelerateHttpClient,t as deserializeRawResult};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vZGF0YS9hY2NlbGVyYXRlL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJleHBvcnQge1xuICB0eXBlIERlc2VyaWFsaXplZFJlc3BvbnNlLFxuICBkZXNlcmlhbGl6ZVJhd1Jlc3VsdCxcbiAgdHlwZSBRdWVyeUludHJvc3BlY3Rpb25CdWlsdGluVHlwZSxcbiAgdHlwZSBSYXdSZXNwb25zZSxcbn0gZnJvbSBcIi4vZGVzZXJpYWxpemVyXCI7XG5leHBvcnQge1xuICB0eXBlIEFjY2VsZXJhdGVIdHRwQ2xpZW50LFxuICB0eXBlIEFjY2VsZXJhdGVIdHRwQ2xpZW50UGFyYW1zLFxuICBjcmVhdGVBY2NlbGVyYXRlSHR0cENsaWVudCxcbiAgdHlwZSBTdXBwb3J0ZWRBY2NlbGVyYXRlUHJvdmlkZXIsXG59IGZyb20gXCIuL2h0dHAtY2xpZW50XCI7XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7OzswRkFBQUEiLAogICJuYW1lcyI6IFsiaW5pdF9kZWZpbmVfQUNDRUxFUkFURV9TQ0hFTUFfQllfUFJPVklERVIiXQp9Cg==
|
||||
2
_node_modules/@prisma/studio-core/dist/data/bff/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/bff/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
73
_node_modules/@prisma/studio-core/dist/data/bff/index.d.cts
generated
vendored
Normal file
73
_node_modules/@prisma/studio-core/dist/data/bff/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
import { S as SequenceExecutor, Q as Query, E as ExecuteOptions, a as Either, b as QueryResult } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
interface StudioBFFClientProps {
|
||||
/**
|
||||
* Allows passing custom headers to the BFF.
|
||||
*
|
||||
* e.g. authorization token.
|
||||
*/
|
||||
customHeaders?: Record<string, string>;
|
||||
/**
|
||||
* Allows passing custom payload to the BFF via `body.customPayload`.
|
||||
*
|
||||
* e.g. tenant id.
|
||||
*/
|
||||
customPayload?: Record<string, unknown>;
|
||||
/**
|
||||
* Allows overriding the fetch function implementation.
|
||||
*
|
||||
* e.g. for testing, or older Node.js versions.
|
||||
*/
|
||||
fetch?: typeof globalThis.fetch;
|
||||
/**
|
||||
* Function used to deserialize the results of queries.
|
||||
*
|
||||
* By default, the results are returned as is without any additional processing.
|
||||
*/
|
||||
resultDeserializerFn?(this: void, results: unknown): unknown[];
|
||||
/**
|
||||
* BFF endpoint URL.
|
||||
*
|
||||
* e.g. `https://api.example.com/studio`
|
||||
*/
|
||||
url: string | URL;
|
||||
}
|
||||
interface StudioBFFClient extends SequenceExecutor {
|
||||
/**
|
||||
* Requests BFF to query the database.
|
||||
*
|
||||
* The query is sent as `body.query`.
|
||||
*/
|
||||
execute<T>(this: void, query: Query<T>, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Query<T>>>>;
|
||||
/**
|
||||
* Requests BFF to execute a sequence of queries.
|
||||
*
|
||||
* The sequence is sent as `body.sequence`.
|
||||
*/
|
||||
executeSequence<T, S>(this: void, sequence: readonly [Query<T>, Query<S>], options?: ExecuteOptions): Promise<[[Error]] | [[null, QueryResult<Query<T>>], Either<Error, QueryResult<Query<S>>>]>;
|
||||
}
|
||||
type StudioBFFRequest = StudioBFFQueryRequest | StudioBFFSequenceRequest;
|
||||
interface StudioBFFQueryRequest {
|
||||
customPayload?: Record<string, unknown>;
|
||||
procedure: "query";
|
||||
query: Query<unknown>;
|
||||
}
|
||||
interface StudioBFFSequenceRequest {
|
||||
customPayload?: Record<string, unknown>;
|
||||
procedure: "sequence";
|
||||
sequence: readonly [Query<unknown>, Query<unknown>];
|
||||
}
|
||||
/**
|
||||
* Creates a Studio BFF client. BFF stands for "Backend For Frontend" btw.
|
||||
*/
|
||||
declare function createStudioBFFClient(props: StudioBFFClientProps): StudioBFFClient;
|
||||
interface SerializedError {
|
||||
message: string;
|
||||
name: string;
|
||||
errors?: SerializedError[];
|
||||
}
|
||||
declare function serializeError(error: unknown): SerializedError;
|
||||
declare function deserializeError(error: SerializedError): Error;
|
||||
|
||||
export { type SerializedError, type StudioBFFClient, type StudioBFFClientProps, type StudioBFFQueryRequest, type StudioBFFRequest, type StudioBFFSequenceRequest, createStudioBFFClient, deserializeError, serializeError };
|
||||
73
_node_modules/@prisma/studio-core/dist/data/bff/index.d.ts
generated
vendored
Normal file
73
_node_modules/@prisma/studio-core/dist/data/bff/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
import { S as SequenceExecutor, Q as Query, E as ExecuteOptions, a as Either, b as QueryResult } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
interface StudioBFFClientProps {
|
||||
/**
|
||||
* Allows passing custom headers to the BFF.
|
||||
*
|
||||
* e.g. authorization token.
|
||||
*/
|
||||
customHeaders?: Record<string, string>;
|
||||
/**
|
||||
* Allows passing custom payload to the BFF via `body.customPayload`.
|
||||
*
|
||||
* e.g. tenant id.
|
||||
*/
|
||||
customPayload?: Record<string, unknown>;
|
||||
/**
|
||||
* Allows overriding the fetch function implementation.
|
||||
*
|
||||
* e.g. for testing, or older Node.js versions.
|
||||
*/
|
||||
fetch?: typeof globalThis.fetch;
|
||||
/**
|
||||
* Function used to deserialize the results of queries.
|
||||
*
|
||||
* By default, the results are returned as is without any additional processing.
|
||||
*/
|
||||
resultDeserializerFn?(this: void, results: unknown): unknown[];
|
||||
/**
|
||||
* BFF endpoint URL.
|
||||
*
|
||||
* e.g. `https://api.example.com/studio`
|
||||
*/
|
||||
url: string | URL;
|
||||
}
|
||||
interface StudioBFFClient extends SequenceExecutor {
|
||||
/**
|
||||
* Requests BFF to query the database.
|
||||
*
|
||||
* The query is sent as `body.query`.
|
||||
*/
|
||||
execute<T>(this: void, query: Query<T>, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Query<T>>>>;
|
||||
/**
|
||||
* Requests BFF to execute a sequence of queries.
|
||||
*
|
||||
* The sequence is sent as `body.sequence`.
|
||||
*/
|
||||
executeSequence<T, S>(this: void, sequence: readonly [Query<T>, Query<S>], options?: ExecuteOptions): Promise<[[Error]] | [[null, QueryResult<Query<T>>], Either<Error, QueryResult<Query<S>>>]>;
|
||||
}
|
||||
type StudioBFFRequest = StudioBFFQueryRequest | StudioBFFSequenceRequest;
|
||||
interface StudioBFFQueryRequest {
|
||||
customPayload?: Record<string, unknown>;
|
||||
procedure: "query";
|
||||
query: Query<unknown>;
|
||||
}
|
||||
interface StudioBFFSequenceRequest {
|
||||
customPayload?: Record<string, unknown>;
|
||||
procedure: "sequence";
|
||||
sequence: readonly [Query<unknown>, Query<unknown>];
|
||||
}
|
||||
/**
|
||||
* Creates a Studio BFF client. BFF stands for "Backend For Frontend" btw.
|
||||
*/
|
||||
declare function createStudioBFFClient(props: StudioBFFClientProps): StudioBFFClient;
|
||||
interface SerializedError {
|
||||
message: string;
|
||||
name: string;
|
||||
errors?: SerializedError[];
|
||||
}
|
||||
declare function serializeError(error: unknown): SerializedError;
|
||||
declare function deserializeError(error: SerializedError): Error;
|
||||
|
||||
export { type SerializedError, type StudioBFFClient, type StudioBFFClientProps, type StudioBFFQueryRequest, type StudioBFFRequest, type StudioBFFSequenceRequest, createStudioBFFClient, deserializeError, serializeError };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/bff/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/bff/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
_node_modules/@prisma/studio-core/dist/data/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
12
_node_modules/@prisma/studio-core/dist/data/index.d.cts
generated
vendored
Normal file
12
_node_modules/@prisma/studio-core/dist/data/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export { H as AbortError, d as Adapter, e as AdapterBaseOptions, y as AdapterDeleteDetails, j as AdapterDeleteOptions, z as AdapterDeleteResult, s as AdapterError, u as AdapterInsertDetails, h as AdapterInsertOptions, v as AdapterInsertResult, f as AdapterIntrospectOptions, k as AdapterIntrospectResult, n as AdapterQueryDetails, g as AdapterQueryOptions, t as AdapterQueryResult, A as AdapterRequirements, w as AdapterUpdateDetails, i as AdapterUpdateOptions, x as AdapterUpdateResult, J as BigIntString, C as Column, o as ColumnFilter, D as DataType, m as DataTypeGroup, a as Either, E as ExecuteOptions, G as Executor, p as FilterGroup, F as FilterOperator, N as NumericString, Q as Query, b as QueryResult, l as Schema, S as SequenceExecutor, r as SortDirection, q as SortOrderItem, T as Table, c as applyInferredRowFilters, B as createAdapterError, I as getAbortResult } from '../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
declare function getDate0(format: string): string;
|
||||
declare const DEFAULT_STRING = "";
|
||||
declare const DEFAULT_NUMERIC = 0;
|
||||
declare const DEFAULT_BOOLEAN = false;
|
||||
declare const DEFAULT_ARRAY_DISPLAY = "[]";
|
||||
declare const DEFAULT_JSON = "{}";
|
||||
declare const DEFAULT_ARRAY_VALUE = "{}";
|
||||
|
||||
export { DEFAULT_ARRAY_DISPLAY, DEFAULT_ARRAY_VALUE, DEFAULT_BOOLEAN, DEFAULT_JSON, DEFAULT_NUMERIC, DEFAULT_STRING, getDate0 };
|
||||
12
_node_modules/@prisma/studio-core/dist/data/index.d.ts
generated
vendored
Normal file
12
_node_modules/@prisma/studio-core/dist/data/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export { H as AbortError, d as Adapter, e as AdapterBaseOptions, y as AdapterDeleteDetails, j as AdapterDeleteOptions, z as AdapterDeleteResult, s as AdapterError, u as AdapterInsertDetails, h as AdapterInsertOptions, v as AdapterInsertResult, f as AdapterIntrospectOptions, k as AdapterIntrospectResult, n as AdapterQueryDetails, g as AdapterQueryOptions, t as AdapterQueryResult, A as AdapterRequirements, w as AdapterUpdateDetails, i as AdapterUpdateOptions, x as AdapterUpdateResult, J as BigIntString, C as Column, o as ColumnFilter, D as DataType, m as DataTypeGroup, a as Either, E as ExecuteOptions, G as Executor, p as FilterGroup, F as FilterOperator, N as NumericString, Q as Query, b as QueryResult, l as Schema, S as SequenceExecutor, r as SortDirection, q as SortOrderItem, T as Table, c as applyInferredRowFilters, B as createAdapterError, I as getAbortResult } from '../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
declare function getDate0(format: string): string;
|
||||
declare const DEFAULT_STRING = "";
|
||||
declare const DEFAULT_NUMERIC = 0;
|
||||
declare const DEFAULT_BOOLEAN = false;
|
||||
declare const DEFAULT_ARRAY_DISPLAY = "[]";
|
||||
declare const DEFAULT_JSON = "{}";
|
||||
declare const DEFAULT_ARRAY_VALUE = "{}";
|
||||
|
||||
export { DEFAULT_ARRAY_DISPLAY, DEFAULT_ARRAY_VALUE, DEFAULT_BOOLEAN, DEFAULT_JSON, DEFAULT_NUMERIC, DEFAULT_STRING, getDate0 };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{A as r,b as t,c as p,d as o,e as y,f,g as x,h as m}from"../chunk-UHDZB3FI.js";import{e}from"../chunk-GGFIWHFO.js";e();export{f as DEFAULT_ARRAY_DISPLAY,m as DEFAULT_ARRAY_VALUE,y as DEFAULT_BOOLEAN,x as DEFAULT_JSON,o as DEFAULT_NUMERIC,p as DEFAULT_STRING,r as applyInferredRowFilters,t as getDate0};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vZGF0YS9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiZXhwb3J0IHR5cGUgKiBmcm9tIFwiLi9hZGFwdGVyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZWZhdWx0c1wiO1xuZXhwb3J0IHR5cGUgKiBmcm9tIFwiLi9leGVjdXRvclwiO1xuZXhwb3J0IHsgYXBwbHlJbmZlcnJlZFJvd0ZpbHRlcnMsIHR5cGUgUXVlcnksIHR5cGUgUXVlcnlSZXN1bHQgfSBmcm9tIFwiLi9xdWVyeVwiO1xuZXhwb3J0IHR5cGUgKiBmcm9tIFwiLi90eXBlLXV0aWxzXCI7XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozt5SEFBQUEiLAogICJuYW1lcyI6IFsiaW5pdF9kZWZpbmVfQUNDRUxFUkFURV9TQ0hFTUFfQllfUFJPVklERVIiXQp9Cg==
|
||||
3
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.cjs
generated
vendored
Normal file
3
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
262
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.d.cts
generated
vendored
Normal file
262
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,262 @@
|
||||
import { A as AdapterRequirements, S as SequenceExecutor, d as Adapter, T as Table, F as FilterOperator, Q as Query, y as AdapterDeleteDetails, K as BuilderRequirements, w as AdapterUpdateDetails, n as AdapterQueryDetails } from '../../executor-CFej-Wsy.cjs';
|
||||
import { OkPacketParams } from 'mysql2';
|
||||
import * as kysely from 'kysely';
|
||||
|
||||
type MySQLAdapterRequirements = Omit<AdapterRequirements, "executor"> & {
|
||||
executor: SequenceExecutor;
|
||||
};
|
||||
declare function createMySQLAdapter(requirements: MySQLAdapterRequirements): Adapter;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockIntrospect(): {
|
||||
schemas: { [K in "studio"]: {
|
||||
name: K;
|
||||
tables: { [T in "animals" | "composite_pk" | "users"]: Table; };
|
||||
}; };
|
||||
timezone: "UTC";
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
};
|
||||
|
||||
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
affectedRows?: number | undefined;
|
||||
insertId?: number | undefined;
|
||||
serverStatus?: number | undefined;
|
||||
warningCount?: number | undefined;
|
||||
message?: string | undefined;
|
||||
}>;
|
||||
declare function getInsertQuery(details: {
|
||||
rows: Record<string, unknown>[];
|
||||
table: Table;
|
||||
}, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<OkPacketParams>;
|
||||
declare function getInsertRefetchQuery(details: {
|
||||
criteria: Record<string, unknown>[];
|
||||
table: Table;
|
||||
}, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_inserted_at__: string | number;
|
||||
}>;
|
||||
declare function getUpdateRefetchQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_updated_at__: string | number;
|
||||
}>;
|
||||
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_count__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockSelectQuery(): [{
|
||||
readonly id: 1;
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly role: "admin";
|
||||
readonly name: "Alice";
|
||||
readonly name_role: "Alice_admin";
|
||||
readonly __ps_count__: "2";
|
||||
}, {
|
||||
readonly id: 2;
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly role: "member";
|
||||
readonly name: "Bob";
|
||||
readonly name_role: "Bob_member";
|
||||
readonly __ps_count__: "2";
|
||||
}];
|
||||
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
affectedRows?: number | undefined;
|
||||
insertId?: number | undefined;
|
||||
serverStatus?: number | undefined;
|
||||
warningCount?: number | undefined;
|
||||
message?: string | undefined;
|
||||
}>;
|
||||
|
||||
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
name: string;
|
||||
schema: string;
|
||||
type: "BASE TABLE" | "VIEW";
|
||||
columns: Omit<{
|
||||
TABLE_NAME: string;
|
||||
default: string | null;
|
||||
name: string;
|
||||
datatype: string;
|
||||
position: number;
|
||||
fk_table: string | null;
|
||||
fk_column: string | null;
|
||||
pk: number | null;
|
||||
autoincrement: kysely.SqlBool;
|
||||
computed: kysely.SqlBool;
|
||||
nullable: kysely.SqlBool;
|
||||
}, "TABLE_NAME">[];
|
||||
}>;
|
||||
declare function mockTablesQuery(): [{
|
||||
readonly columns: [{
|
||||
readonly autoincrement: 1;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "int";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 1;
|
||||
readonly position: 1;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "binary(16)";
|
||||
readonly default: "uuid_to_bin(uuid())";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "uuid";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 2;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "varchar(255)";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 3;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 1;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id_name";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 4;
|
||||
}];
|
||||
readonly name: "animals";
|
||||
readonly schema: "studio";
|
||||
readonly type: "BASE TABLE";
|
||||
}, {
|
||||
readonly columns: [{
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "char(36)";
|
||||
readonly default: "uuid()";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 1;
|
||||
readonly position: 1;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 2;
|
||||
readonly position: 2;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: "CURRENT_TIMESTAMP";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 3;
|
||||
}];
|
||||
readonly name: "composite_pk";
|
||||
readonly schema: "studio";
|
||||
readonly type: "BASE TABLE";
|
||||
}, {
|
||||
readonly columns: [{
|
||||
readonly autoincrement: 1;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "int";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 1;
|
||||
readonly position: 1;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: "current_timestamp";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 2;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "deleted_at";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 3;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "role";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 4;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 5;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 1;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name_role";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 6;
|
||||
}];
|
||||
readonly name: "users";
|
||||
readonly schema: "studio";
|
||||
readonly type: "BASE TABLE";
|
||||
}];
|
||||
declare function getTimezoneQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
timezone: string;
|
||||
}>;
|
||||
declare function mockTimezoneQuery(): [{
|
||||
readonly timezone: "UTC";
|
||||
}];
|
||||
|
||||
declare function getCancelQuery(threadId: unknown): Query<unknown>;
|
||||
|
||||
export { type MySQLAdapterRequirements, createMySQLAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getInsertRefetchQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, getUpdateRefetchQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
|
||||
262
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.d.ts
generated
vendored
Normal file
262
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,262 @@
|
||||
import { A as AdapterRequirements, S as SequenceExecutor, d as Adapter, T as Table, F as FilterOperator, Q as Query, y as AdapterDeleteDetails, K as BuilderRequirements, w as AdapterUpdateDetails, n as AdapterQueryDetails } from '../../executor-CFej-Wsy.js';
|
||||
import { OkPacketParams } from 'mysql2';
|
||||
import * as kysely from 'kysely';
|
||||
|
||||
type MySQLAdapterRequirements = Omit<AdapterRequirements, "executor"> & {
|
||||
executor: SequenceExecutor;
|
||||
};
|
||||
declare function createMySQLAdapter(requirements: MySQLAdapterRequirements): Adapter;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockIntrospect(): {
|
||||
schemas: { [K in "studio"]: {
|
||||
name: K;
|
||||
tables: { [T in "animals" | "composite_pk" | "users"]: Table; };
|
||||
}; };
|
||||
timezone: "UTC";
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
};
|
||||
|
||||
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
affectedRows?: number | undefined;
|
||||
insertId?: number | undefined;
|
||||
serverStatus?: number | undefined;
|
||||
warningCount?: number | undefined;
|
||||
message?: string | undefined;
|
||||
}>;
|
||||
declare function getInsertQuery(details: {
|
||||
rows: Record<string, unknown>[];
|
||||
table: Table;
|
||||
}, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<OkPacketParams>;
|
||||
declare function getInsertRefetchQuery(details: {
|
||||
criteria: Record<string, unknown>[];
|
||||
table: Table;
|
||||
}, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_inserted_at__: string | number;
|
||||
}>;
|
||||
declare function getUpdateRefetchQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_updated_at__: string | number;
|
||||
}>;
|
||||
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_count__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockSelectQuery(): [{
|
||||
readonly id: 1;
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly role: "admin";
|
||||
readonly name: "Alice";
|
||||
readonly name_role: "Alice_admin";
|
||||
readonly __ps_count__: "2";
|
||||
}, {
|
||||
readonly id: 2;
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly role: "member";
|
||||
readonly name: "Bob";
|
||||
readonly name_role: "Bob_member";
|
||||
readonly __ps_count__: "2";
|
||||
}];
|
||||
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
affectedRows?: number | undefined;
|
||||
insertId?: number | undefined;
|
||||
serverStatus?: number | undefined;
|
||||
warningCount?: number | undefined;
|
||||
message?: string | undefined;
|
||||
}>;
|
||||
|
||||
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
name: string;
|
||||
schema: string;
|
||||
type: "BASE TABLE" | "VIEW";
|
||||
columns: Omit<{
|
||||
TABLE_NAME: string;
|
||||
default: string | null;
|
||||
name: string;
|
||||
datatype: string;
|
||||
position: number;
|
||||
fk_table: string | null;
|
||||
fk_column: string | null;
|
||||
pk: number | null;
|
||||
autoincrement: kysely.SqlBool;
|
||||
computed: kysely.SqlBool;
|
||||
nullable: kysely.SqlBool;
|
||||
}, "TABLE_NAME">[];
|
||||
}>;
|
||||
declare function mockTablesQuery(): [{
|
||||
readonly columns: [{
|
||||
readonly autoincrement: 1;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "int";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 1;
|
||||
readonly position: 1;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "binary(16)";
|
||||
readonly default: "uuid_to_bin(uuid())";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "uuid";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 2;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "varchar(255)";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 3;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 1;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id_name";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 4;
|
||||
}];
|
||||
readonly name: "animals";
|
||||
readonly schema: "studio";
|
||||
readonly type: "BASE TABLE";
|
||||
}, {
|
||||
readonly columns: [{
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "char(36)";
|
||||
readonly default: "uuid()";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 1;
|
||||
readonly position: 1;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 2;
|
||||
readonly position: 2;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: "CURRENT_TIMESTAMP";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 3;
|
||||
}];
|
||||
readonly name: "composite_pk";
|
||||
readonly schema: "studio";
|
||||
readonly type: "BASE TABLE";
|
||||
}, {
|
||||
readonly columns: [{
|
||||
readonly autoincrement: 1;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "int";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: 0;
|
||||
readonly pk: 1;
|
||||
readonly position: 1;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: "current_timestamp";
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 2;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "deleted_at";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 3;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "role";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 4;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 0;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 5;
|
||||
}, {
|
||||
readonly autoincrement: 0;
|
||||
readonly computed: 1;
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name_role";
|
||||
readonly nullable: 1;
|
||||
readonly pk: null;
|
||||
readonly position: 6;
|
||||
}];
|
||||
readonly name: "users";
|
||||
readonly schema: "studio";
|
||||
readonly type: "BASE TABLE";
|
||||
}];
|
||||
declare function getTimezoneQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
timezone: string;
|
||||
}>;
|
||||
declare function mockTimezoneQuery(): [{
|
||||
readonly timezone: "UTC";
|
||||
}];
|
||||
|
||||
declare function getCancelQuery(threadId: unknown): Query<unknown>;
|
||||
|
||||
export { type MySQLAdapterRequirements, createMySQLAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getInsertRefetchQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, getUpdateRefetchQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
|
||||
11
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.js
generated
vendored
Normal file
11
_node_modules/@prisma/studio-core/dist/data/mysql-core/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
_node_modules/@prisma/studio-core/dist/data/mysql2/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/mysql2/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
_node_modules/@prisma/studio-core/dist/data/mysql2/index.d.cts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/mysql2/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Pool } from 'mysql2/promise';
|
||||
import { S as SequenceExecutor } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
declare function createMySQL2Executor(pool: Pool): SequenceExecutor;
|
||||
|
||||
export { createMySQL2Executor };
|
||||
7
_node_modules/@prisma/studio-core/dist/data/mysql2/index.d.ts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/mysql2/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Pool } from 'mysql2/promise';
|
||||
import { S as SequenceExecutor } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
declare function createMySQL2Executor(pool: Pool): SequenceExecutor;
|
||||
|
||||
export { createMySQL2Executor };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/mysql2/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/mysql2/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";var u=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var S=(t,e)=>{for(var o in e)u(t,o,{get:e[o],enumerable:!0})},x=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of v(e))!y.call(t,r)&&r!==o&&u(t,r,{get:()=>e[r],enumerable:!(s=m(e,r))||s.enumerable});return t};var d=t=>x(u({},"__esModule",{value:!0}),t);var w={};S(w,{createNodeSQLiteExecutor:()=>h});module.exports=d(w);function h(t){return{execute:e=>{let{parameters:o,sql:s,transformations:r}=e,f=t.prepare(s);try{let n=f.all(...o);if(!r||Object.keys(r).length===0)return Promise.resolve([null,n]);for(let i of n)for(let a in r){let l=r[a],c=i[a];if(l==="json-parse"){if(typeof c=="string")try{i[a]=JSON.parse(c)}catch(p){console.error(`Failed to JSON.parse column "${a}" with value: ${c}`,p)}continue}}return Promise.resolve([null,n])}catch(n){return Promise.resolve([n])}}}}
|
||||
//# sourceMappingURL=data:application/json;base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bl07XG4gICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHJvd1tjb2x1bW5dO1xuXG4gICAgICAgICAgICBpZiAodHJhbnNmb3JtYXRpb24gPT09IFwianNvbi1wYXJzZVwiKSB7XG4gICAgICAgICAgICAgIGlmICh0eXBlb2YgdmFsdWUgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgcm93W2NvbHVtbl0gPSBKU09OLnBhcnNlKHZhbHVlKSBhcyBuZXZlcjtcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcihgRmFpbGVkIHRvIEpTT04ucGFyc2UgY29sdW1uIFwiJHtjb2x1bW59XCIgd2l0aCB2YWx1ZTogJHt2YWx1ZX1gLCBlcnJvcik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRyYW5zZm9ybWF0aW9uIHNhdGlzZmllcyB1bmRlZmluZWQ7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShbbnVsbCwgcm93c10pIGFzIG5ldmVyO1xuICAgICAgfSBjYXRjaCAoZXJyb3I6IHVua25vd24pIHtcbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShbZXJyb3IgYXMgRXJyb3JdKTtcbiAgICAgIH1cbiAgICB9LFxuICB9O1xufVxuIl0sCiAgIm1hcHBpbmdzIjogInlhQUFBLElBQUFBLEVBQUEsR0FBQUMsRUFBQUQsRUFBQSw4QkFBQUUsSUFBQSxlQUFBQyxFQUFBSCxHQUlPLFNBQVNJLEVBQXlCQyxFQUFrQyxDQUN6RSxNQUFPLENBQ0wsUUFBVUMsR0FBVSxDQUNsQixHQUFNLENBQUUsV0FBQUMsRUFBW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50IiwgInJvd3MiLCAicm93IiwgImNvbHVtbiIsICJ0cmFuc2Zvcm1hdGlvbiIsICJ2YWx1ZSIsICJlcnJvciJdCn0K
|
||||
7
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.d.cts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { G as Executor } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
declare function createNodeSQLiteExecutor(database: DatabaseSync): Executor;
|
||||
|
||||
export { createNodeSQLiteExecutor };
|
||||
7
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.d.ts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { G as Executor } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
declare function createNodeSQLiteExecutor(database: DatabaseSync): Executor;
|
||||
|
||||
export { createNodeSQLiteExecutor };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/node-sqlite/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{e as a}from"../../chunk-GGFIWHFO.js";a();function v(c){return{execute:u=>{let{parameters:i,sql:l,transformations:r}=u,f=c.prepare(l);try{let e=f.all(...i);if(!r||Object.keys(r).length===0)return Promise.resolve([null,e]);for(let n of e)for(let t in r){let s=r[t],o=n[t];if(s==="json-parse"){if(typeof o=="string")try{n[t]=JSON.parse(o)}catch(p){console.error(`Failed to JSON.parse column "${t}" with value: ${o}`,p)}continue}}return Promise.resolve([null,e])}catch(e){return Promise.resolve([e])}}}}export{v as createNodeSQLiteExecutor};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vZGF0YS9ub2RlLXNxbGl0ZS9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHR5cGUgeyBEYXRhYmFzZVN5bmMsIFNRTElucHV0VmFsdWUgfSBmcm9tIFwibm9kZTpzcWxpdGVcIjtcblxuaW1wb3J0IHR5cGUgeyBFeGVjdXRvciB9IGZyb20gXCIuLi9leGVjdXRvclwiO1xuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlTm9kZVNRTGl0ZUV4ZWN1dG9yKGRhdGFiYXNlOiBEYXRhYmFzZVN5bmMpOiBFeGVjdXRvciB7XG4gIHJldHVybiB7XG4gICAgZXhlY3V0ZTogKHF1ZXJ5KSA9PiB7XG4gICAgICBjb25zdCB7IHBhcmFtZXRlcnMsIHNxbCwgdHJhbnNmb3JtYXRpb25zIH0gPSBxdWVyeTtcblxuICAgICAgY29uc3Qgc3RhdGVtZW50ID0gZGF0YWJhc2UucHJlcGFyZShzcWwpO1xuXG4gICAgICB0cnkge1xuICAgICAgICBjb25zdCByb3dzID0gc3RhdGVtZW50LmFsbCguLi4ocGFyYW1ldGVycyBhcyBTUUxJbnB1dFZhbHVlW10pKTtcblxuICAgICAgICBpZiAoIXRyYW5zZm9ybWF0aW9ucyB8fCBPYmplY3Qua2V5cyh0cmFuc2Zvcm1hdGlvbnMpLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoW251bGwsIHJvd3NdKSBhcyBuZXZlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIGZvciAoY29uc3Qgcm93IG9mIHJvd3MpIHtcbiAgICAgICAgICBmb3IgKGNvbnN0IGNvbHVtbiBpbiB0cmFuc2Zvcm1hdGlvbnMpIHtcbiAgICAgICAgICAgIGNvbnN0IHRyYW5zZm9ybWF0aW9uID0gdHJhbnNmb3JtYXRpb25zW2NvbHVtbl07XG4gICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHJvd1tjb2x1bW5dO1xuXG4gICAgICAgICAgICBpZiAodHJhbnNmb3JtYXRpb24gPT09IFwianNvbi1wYXJzZVwiKSB7XG4gICAgICAgICAgICAgIGlmICh0eXBlb2YgdmFsdWUgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgcm93W2NvbHVtbl0gPSBKU09OLnBhcnNlKHZhbHVlKSBhcyBuZXZlcjtcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcihgRmFpbGVkIHRvIEpTT04ucGFyc2UgY29sdW1uIFwiJHtjb2x1bW59XCIgd2l0aCB2YWx1ZTogJHt2YWx1ZX1gLCBlcnJvcik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRyYW5zZm9ybWF0aW9uIHNhdGlzZmllcyB1bmRlZmluZWQ7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShbbnVsbCwgcm93c10pIGFzIG5ldmVyO1xuICAgICAgfSBjYXRjaCAoZXJyb3I6IHVua25vd24pIHtcbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShbZXJyb3IgYXMgRXJyb3JdKTtcbiAgICAgIH1cbiAgICB9LFxuICB9O1xufVxuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7NENBQUFBLElBSU8sU0FBU0Ms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AicGFyYW1ldGVycyIsICJzcWwiLCAidHJhbnNmb3JtYXRpb25zIiwgInN0YXRlbWVudCIsICJyb3dzIiwgInJvdyIsICJjb2x1bW4iLCAidHJhbnNmb3JtYXRpb24iLCAidmFsdWUiLCAiZXJyb3IiXQp9Cg==
|
||||
2
_node_modules/@prisma/studio-core/dist/data/pglite/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/pglite/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
25
_node_modules/@prisma/studio-core/dist/data/pglite/index.d.cts
generated
vendored
Normal file
25
_node_modules/@prisma/studio-core/dist/data/pglite/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { PGlite } from '@electric-sql/pglite';
|
||||
import { Q as Query, G as Executor, d as Adapter } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
interface PGLiteExecutorOptions {
|
||||
/**
|
||||
* Delay in milliseconds to add before executing the query.
|
||||
* This can be a static number or a function that takes the query as an argument and returns a number.
|
||||
*
|
||||
* This is useful for simulating network latency or for debugging purposes.
|
||||
*/
|
||||
addDelay?: number | ((query: Query<unknown>) => number);
|
||||
/**
|
||||
* Whether to log the query and its parameters.
|
||||
*
|
||||
* Defaults to `false`.
|
||||
*/
|
||||
logging?: boolean | ((query: Query<unknown>) => boolean);
|
||||
}
|
||||
declare function createPGLiteExecutor(pglite: PGlite, options?: PGLiteExecutorOptions): Executor;
|
||||
interface PGLiteAdapterOptions extends PGLiteExecutorOptions {
|
||||
}
|
||||
declare function createPGLiteAdapter(pglite: PGlite, options?: PGLiteAdapterOptions): Adapter;
|
||||
|
||||
export { type PGLiteAdapterOptions, type PGLiteExecutorOptions, createPGLiteAdapter, createPGLiteExecutor };
|
||||
25
_node_modules/@prisma/studio-core/dist/data/pglite/index.d.ts
generated
vendored
Normal file
25
_node_modules/@prisma/studio-core/dist/data/pglite/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { PGlite } from '@electric-sql/pglite';
|
||||
import { Q as Query, G as Executor, d as Adapter } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
interface PGLiteExecutorOptions {
|
||||
/**
|
||||
* Delay in milliseconds to add before executing the query.
|
||||
* This can be a static number or a function that takes the query as an argument and returns a number.
|
||||
*
|
||||
* This is useful for simulating network latency or for debugging purposes.
|
||||
*/
|
||||
addDelay?: number | ((query: Query<unknown>) => number);
|
||||
/**
|
||||
* Whether to log the query and its parameters.
|
||||
*
|
||||
* Defaults to `false`.
|
||||
*/
|
||||
logging?: boolean | ((query: Query<unknown>) => boolean);
|
||||
}
|
||||
declare function createPGLiteExecutor(pglite: PGlite, options?: PGLiteExecutorOptions): Executor;
|
||||
interface PGLiteAdapterOptions extends PGLiteExecutorOptions {
|
||||
}
|
||||
declare function createPGLiteAdapter(pglite: PGlite, options?: PGLiteAdapterOptions): Adapter;
|
||||
|
||||
export { type PGLiteAdapterOptions, type PGLiteExecutorOptions, createPGLiteAdapter, createPGLiteExecutor };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/pglite/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/pglite/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
267
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.d.cts
generated
vendored
Normal file
267
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,267 @@
|
||||
import { A as AdapterRequirements, d as Adapter, T as Table, F as FilterOperator, Q as Query, u as AdapterInsertDetails, K as BuilderRequirements, n as AdapterQueryDetails, w as AdapterUpdateDetails, y as AdapterDeleteDetails } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
type PostgresAdapterRequirements = AdapterRequirements;
|
||||
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockIntrospect(): {
|
||||
schemas: { [K in "zoo" | "public"]: {
|
||||
name: K;
|
||||
tables: { [T in "animals" | "users" | "composite_pk"]: Table; };
|
||||
}; };
|
||||
timezone: "UTC";
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
};
|
||||
|
||||
/**
|
||||
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
||||
*/
|
||||
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
} & {
|
||||
__ps_inserted_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Returns a query that selects all columns from a table, along with an unbound row count as `__ps_count__`.
|
||||
*/
|
||||
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_count__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockSelectQuery(): [{
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 1;
|
||||
readonly name: "John Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "admin";
|
||||
readonly name_role: "Jonn Doe - admin";
|
||||
}, {
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 2;
|
||||
readonly name: "Jane Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "poweruser";
|
||||
readonly name_role: "Jane Doe - poweruser";
|
||||
}];
|
||||
/**
|
||||
* Returns a query that updates a given row in a table with given changes.
|
||||
*/
|
||||
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_updated_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Returns a query that deletes a given set of rows.
|
||||
*/
|
||||
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_deleted_at__: `${bigint}`;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Returns a query that returns metadata for all user-defined tables and views in the database.
|
||||
*/
|
||||
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
schema: string;
|
||||
name: string;
|
||||
columns: {
|
||||
name: string;
|
||||
fk_column: string | null;
|
||||
fk_table: string | null;
|
||||
fk_schema: string | null;
|
||||
datatype_schema: string;
|
||||
datatype: string;
|
||||
autoinc: boolean;
|
||||
computed: boolean;
|
||||
default: string | null;
|
||||
nullable: boolean;
|
||||
options: string[];
|
||||
pk: number | null;
|
||||
}[];
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockTablesQuery(): [{
|
||||
readonly schema: "zoo";
|
||||
readonly name: "animals";
|
||||
readonly columns: [{
|
||||
readonly autoinc: true;
|
||||
readonly computed: false;
|
||||
readonly datatype: "int4";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "nextval('zoo.animals_id_seq'::regclass)";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: 1;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "text";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}];
|
||||
}, {
|
||||
readonly schema: "public";
|
||||
readonly name: "users";
|
||||
readonly columns: [{
|
||||
readonly autoinc: true;
|
||||
readonly computed: false;
|
||||
readonly datatype: "int4";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "nextval('users_id_seq'::regclass)";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: 1;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "timestamp";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "CURRENT_TIMESTAMP";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "timestamp";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "deleted_at";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "varchar";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "role";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "varchar";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: true;
|
||||
readonly datatype: "text";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name_role";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}];
|
||||
}, {
|
||||
readonly schema: "public";
|
||||
readonly name: "composite_pk";
|
||||
readonly columns: [{
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "uuid";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "gen_random_uuid()";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: 1;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "text";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: 2;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "timestamp";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "now()";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}];
|
||||
}];
|
||||
/**
|
||||
* Returns a query that returns the current timezone setting of the PostgreSQL database.
|
||||
*/
|
||||
declare function getTimezoneQuery(): Query<{
|
||||
timezone: string;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockTimezoneQuery(): [{
|
||||
readonly timezone: "UTC";
|
||||
}];
|
||||
|
||||
declare function getPIDQuery(): Query<{
|
||||
pid: unknown;
|
||||
}>;
|
||||
declare function getCancelQuery(pid: {}): Query<unknown>;
|
||||
|
||||
export { type PostgresAdapterRequirements, createPostgresAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getPIDQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
|
||||
267
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.d.ts
generated
vendored
Normal file
267
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,267 @@
|
||||
import { A as AdapterRequirements, d as Adapter, T as Table, F as FilterOperator, Q as Query, u as AdapterInsertDetails, K as BuilderRequirements, n as AdapterQueryDetails, w as AdapterUpdateDetails, y as AdapterDeleteDetails } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
type PostgresAdapterRequirements = AdapterRequirements;
|
||||
declare function createPostgresAdapter(requirements: PostgresAdapterRequirements): Adapter;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockIntrospect(): {
|
||||
schemas: { [K in "zoo" | "public"]: {
|
||||
name: K;
|
||||
tables: { [T in "animals" | "users" | "composite_pk"]: Table; };
|
||||
}; };
|
||||
timezone: "UTC";
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
};
|
||||
|
||||
/**
|
||||
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
||||
*/
|
||||
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
} & {
|
||||
__ps_inserted_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Returns a query that selects all columns from a table, along with an unbound row count as `__ps_count__`.
|
||||
*/
|
||||
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_count__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockSelectQuery(): [{
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 1;
|
||||
readonly name: "John Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "admin";
|
||||
readonly name_role: "Jonn Doe - admin";
|
||||
}, {
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 2;
|
||||
readonly name: "Jane Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "poweruser";
|
||||
readonly name_role: "Jane Doe - poweruser";
|
||||
}];
|
||||
/**
|
||||
* Returns a query that updates a given row in a table with given changes.
|
||||
*/
|
||||
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_updated_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Returns a query that deletes a given set of rows.
|
||||
*/
|
||||
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_deleted_at__: `${bigint}`;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* Returns a query that returns metadata for all user-defined tables and views in the database.
|
||||
*/
|
||||
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
schema: string;
|
||||
name: string;
|
||||
columns: {
|
||||
name: string;
|
||||
fk_column: string | null;
|
||||
fk_table: string | null;
|
||||
fk_schema: string | null;
|
||||
datatype_schema: string;
|
||||
datatype: string;
|
||||
autoinc: boolean;
|
||||
computed: boolean;
|
||||
default: string | null;
|
||||
nullable: boolean;
|
||||
options: string[];
|
||||
pk: number | null;
|
||||
}[];
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockTablesQuery(): [{
|
||||
readonly schema: "zoo";
|
||||
readonly name: "animals";
|
||||
readonly columns: [{
|
||||
readonly autoinc: true;
|
||||
readonly computed: false;
|
||||
readonly datatype: "int4";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "nextval('zoo.animals_id_seq'::regclass)";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: 1;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "text";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}];
|
||||
}, {
|
||||
readonly schema: "public";
|
||||
readonly name: "users";
|
||||
readonly columns: [{
|
||||
readonly autoinc: true;
|
||||
readonly computed: false;
|
||||
readonly datatype: "int4";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "nextval('users_id_seq'::regclass)";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: 1;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "timestamp";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "CURRENT_TIMESTAMP";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "timestamp";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "deleted_at";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "varchar";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "role";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "varchar";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: true;
|
||||
readonly datatype: "text";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name_role";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}];
|
||||
}, {
|
||||
readonly schema: "public";
|
||||
readonly name: "composite_pk";
|
||||
readonly columns: [{
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "uuid";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "gen_random_uuid()";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "id";
|
||||
readonly nullable: false;
|
||||
readonly options: [];
|
||||
readonly pk: 1;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "text";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: null;
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "name";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: 2;
|
||||
}, {
|
||||
readonly autoinc: false;
|
||||
readonly computed: false;
|
||||
readonly datatype: "timestamp";
|
||||
readonly datatype_schema: "pg_catalog";
|
||||
readonly default: "now()";
|
||||
readonly fk_column: null;
|
||||
readonly fk_schema: null;
|
||||
readonly fk_table: null;
|
||||
readonly name: "created_at";
|
||||
readonly nullable: true;
|
||||
readonly options: [];
|
||||
readonly pk: null;
|
||||
}];
|
||||
}];
|
||||
/**
|
||||
* Returns a query that returns the current timezone setting of the PostgreSQL database.
|
||||
*/
|
||||
declare function getTimezoneQuery(): Query<{
|
||||
timezone: string;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockTimezoneQuery(): [{
|
||||
readonly timezone: "UTC";
|
||||
}];
|
||||
|
||||
declare function getPIDQuery(): Query<{
|
||||
pid: unknown;
|
||||
}>;
|
||||
declare function getCancelQuery(pid: {}): Query<unknown>;
|
||||
|
||||
export { type PostgresAdapterRequirements, createPostgresAdapter, getCancelQuery, getDeleteQuery, getInsertQuery, getPIDQuery, getSelectQuery, getTablesQuery, getTimezoneQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery, mockTimezoneQuery };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/postgres-core/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{a,b,c,d,e,f,g,h,i,j,k}from"../../chunk-IZYNQMBI.js";import{a as l,b as m}from"../../chunk-QUSM4YZA.js";import"../../chunk-V6YDTHJJ.js";import"../../chunk-UHDZB3FI.js";import"../../chunk-GGFIWHFO.js";export{j as createPostgresAdapter,m as getCancelQuery,e as getDeleteQuery,a as getInsertQuery,l as getPIDQuery,b as getSelectQuery,f as getTablesQuery,h as getTimezoneQuery,d as getUpdateQuery,k as mockIntrospect,c as mockSelectQuery,g as mockTablesQuery,i as mockTimezoneQuery};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
|
||||
2
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.d.cts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Sql } from 'postgres';
|
||||
import { G as Executor } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
declare function createPostgresJSExecutor(postgresjs: Sql): Executor;
|
||||
|
||||
export { createPostgresJSExecutor };
|
||||
7
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.d.ts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Sql } from 'postgres';
|
||||
import { G as Executor } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
declare function createPostgresJSExecutor(postgresjs: Sql): Executor;
|
||||
|
||||
export { createPostgresJSExecutor };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/postgresjs/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
_node_modules/@prisma/studio-core/dist/data/ppg/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/ppg/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
24
_node_modules/@prisma/studio-core/dist/data/ppg/index.d.cts
generated
vendored
Normal file
24
_node_modules/@prisma/studio-core/dist/data/ppg/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { RawResponse, AccelerateHttpClient } from '../accelerate/index.cjs';
|
||||
export { DeserializedResponse, QueryIntrospectionBuiltinType, deserializeRawResult } from '../accelerate/index.cjs';
|
||||
import '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
interface PrismaPostgresHttpClientParams {
|
||||
/**
|
||||
* Prisma Postgres URL.
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* Optional fetch implementation.
|
||||
*/
|
||||
fetch?: typeof globalThis.fetch;
|
||||
/**
|
||||
* Function used to deserialize the results of queries.
|
||||
*
|
||||
* By default, the results are passed to `deserializeRawResult`.
|
||||
*/
|
||||
resultDeserializerFn?: (this: void, response: RawResponse) => unknown[];
|
||||
}
|
||||
declare function createPrismaPostgresHttpClient(props: PrismaPostgresHttpClientParams): AccelerateHttpClient;
|
||||
|
||||
export { type PrismaPostgresHttpClientParams, RawResponse, createPrismaPostgresHttpClient };
|
||||
24
_node_modules/@prisma/studio-core/dist/data/ppg/index.d.ts
generated
vendored
Normal file
24
_node_modules/@prisma/studio-core/dist/data/ppg/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { RawResponse, AccelerateHttpClient } from '../accelerate/index.js';
|
||||
export { DeserializedResponse, QueryIntrospectionBuiltinType, deserializeRawResult } from '../accelerate/index.js';
|
||||
import '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
interface PrismaPostgresHttpClientParams {
|
||||
/**
|
||||
* Prisma Postgres URL.
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* Optional fetch implementation.
|
||||
*/
|
||||
fetch?: typeof globalThis.fetch;
|
||||
/**
|
||||
* Function used to deserialize the results of queries.
|
||||
*
|
||||
* By default, the results are passed to `deserializeRawResult`.
|
||||
*/
|
||||
resultDeserializerFn?: (this: void, response: RawResponse) => unknown[];
|
||||
}
|
||||
declare function createPrismaPostgresHttpClient(props: PrismaPostgresHttpClientParams): AccelerateHttpClient;
|
||||
|
||||
export { type PrismaPostgresHttpClientParams, RawResponse, createPrismaPostgresHttpClient };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/ppg/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/ppg/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{a as p,b as t}from"../../chunk-ZDKFUEBN.js";import{e}from"../../chunk-GGFIWHFO.js";e();function P(s){let{url:r,fetch:i,resultDeserializerFn:n}=s,{host:a,searchParams:o}=new URL(r);return t({apiKey:o.get("api_key")??"<missing_api_key>",clientVersion:"6.14.0",engineHash:"717184b7b35ea05dfa71a3236b7af656013e1e49",fetch:i,host:a,provider:"postgres",resultDeserializerFn:n})}export{P as createPrismaPostgresHttpClient,p as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file
2
_node_modules/@prisma/studio-core/dist/data/sqlite-core/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
201
_node_modules/@prisma/studio-core/dist/data/sqlite-core/index.d.cts
generated
vendored
Normal file
201
_node_modules/@prisma/studio-core/dist/data/sqlite-core/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
import { A as AdapterRequirements, d as Adapter, T as Table, F as FilterOperator, Q as Query, n as AdapterQueryDetails, K as BuilderRequirements, y as AdapterDeleteDetails, u as AdapterInsertDetails, w as AdapterUpdateDetails } from '../../executor-CFej-Wsy.cjs';
|
||||
import * as kysely from 'kysely';
|
||||
|
||||
type SQLIteAdapterRequirements = AdapterRequirements;
|
||||
declare function createSQLiteAdapter(requirements: SQLIteAdapterRequirements): Adapter;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockIntrospect(): {
|
||||
schemas: {
|
||||
main: {
|
||||
name: "main";
|
||||
tables: { [T in "animals" | "users" | "composite_pk"]: Table; };
|
||||
};
|
||||
};
|
||||
timezone: string;
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a query that selects all columns from a table with an unbound row count as `__ps_count__`.
|
||||
*/
|
||||
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_count__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockSelectQuery(): [{
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 1;
|
||||
readonly name: "John Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "admin";
|
||||
readonly name_role: "Jonn Doe - admin";
|
||||
}, {
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 2;
|
||||
readonly name: "Jane Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "poweruser";
|
||||
readonly name_role: "Jane Doe - poweruser";
|
||||
}];
|
||||
/**
|
||||
* Returns a query that deletes a given set of rows.
|
||||
*/
|
||||
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_deleted_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
||||
*/
|
||||
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
} & {
|
||||
__ps_inserted_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Returns a query that updates a given row in a table with given changes.
|
||||
*/
|
||||
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_updated_at__: `${bigint}`;
|
||||
}>;
|
||||
|
||||
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
name: string;
|
||||
sql: string;
|
||||
columns: {
|
||||
name: string;
|
||||
pk: number;
|
||||
default: string | null;
|
||||
datatype: string;
|
||||
fk_table: string | null;
|
||||
fk_column: string | null;
|
||||
computed: kysely.SqlBool;
|
||||
nullable: kysely.SqlBool;
|
||||
}[];
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockTablesQuery(): [{
|
||||
readonly name: "animals";
|
||||
readonly sql: "CREATE TABLE animals (id INTEGER PRIMARY KEY, name TEXT);";
|
||||
readonly columns: [{
|
||||
readonly name: "id";
|
||||
readonly datatype: "INTEGER";
|
||||
readonly default: null;
|
||||
readonly pk: 1;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name";
|
||||
readonly datatype: "TEXT";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}];
|
||||
}, {
|
||||
readonly name: "users";
|
||||
readonly sql: "CREATE TABLE users (id UUID PRIMARY KEY, created_at TIMESTAMP, deleted_at TIMESTAMP, role varchar, name varchar, name_role text);";
|
||||
readonly columns: [{
|
||||
readonly name: "id";
|
||||
readonly datatype: "INTEGER";
|
||||
readonly default: null;
|
||||
readonly pk: 1;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "created_at";
|
||||
readonly datatype: "TIMESTAMP";
|
||||
readonly default: "1970-01-01 00:00:00.000";
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "deleted_at";
|
||||
readonly datatype: "TIMESTAMP";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "role";
|
||||
readonly datatype: "varchar";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name";
|
||||
readonly datatype: "varchar";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name_role";
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 1;
|
||||
readonly nullable: 0;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}];
|
||||
}, {
|
||||
readonly name: "composite_pk";
|
||||
readonly sql: "CREATE TABLE composite_pk (id UUID, name TEXT, created_at timestamp, PRIMARY KEY (id, name));";
|
||||
readonly columns: [{
|
||||
readonly name: "id";
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly pk: 1;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name";
|
||||
readonly datatype: "TEXT";
|
||||
readonly default: null;
|
||||
readonly pk: 2;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "created_at";
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: "1970-01-01 00:00:00.000";
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}];
|
||||
}];
|
||||
|
||||
export { type SQLIteAdapterRequirements, createSQLiteAdapter, getDeleteQuery, getInsertQuery, getSelectQuery, getTablesQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery };
|
||||
201
_node_modules/@prisma/studio-core/dist/data/sqlite-core/index.d.ts
generated
vendored
Normal file
201
_node_modules/@prisma/studio-core/dist/data/sqlite-core/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
import { A as AdapterRequirements, d as Adapter, T as Table, F as FilterOperator, Q as Query, n as AdapterQueryDetails, K as BuilderRequirements, y as AdapterDeleteDetails, u as AdapterInsertDetails, w as AdapterUpdateDetails } from '../../executor-CFej-Wsy.js';
|
||||
import * as kysely from 'kysely';
|
||||
|
||||
type SQLIteAdapterRequirements = AdapterRequirements;
|
||||
declare function createSQLiteAdapter(requirements: SQLIteAdapterRequirements): Adapter;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockIntrospect(): {
|
||||
schemas: {
|
||||
main: {
|
||||
name: "main";
|
||||
tables: { [T in "animals" | "users" | "composite_pk"]: Table; };
|
||||
};
|
||||
};
|
||||
timezone: string;
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a query that selects all columns from a table with an unbound row count as `__ps_count__`.
|
||||
*/
|
||||
declare function getSelectQuery(details: AdapterQueryDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_count__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockSelectQuery(): [{
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 1;
|
||||
readonly name: "John Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "admin";
|
||||
readonly name_role: "Jonn Doe - admin";
|
||||
}, {
|
||||
readonly created_at: Date;
|
||||
readonly deleted_at: null;
|
||||
readonly id: 2;
|
||||
readonly name: "Jane Doe";
|
||||
readonly __ps_count__: "2";
|
||||
readonly role: "poweruser";
|
||||
readonly name_role: "Jane Doe - poweruser";
|
||||
}];
|
||||
/**
|
||||
* Returns a query that deletes a given set of rows.
|
||||
*/
|
||||
declare function getDeleteQuery(details: AdapterDeleteDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_deleted_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Inserts one or more rows into a table and returns the inserted rows along with their `ctid`.
|
||||
*/
|
||||
declare function getInsertQuery(details: AdapterInsertDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
} & {
|
||||
__ps_inserted_at__: `${bigint}`;
|
||||
}>;
|
||||
/**
|
||||
* Returns a query that updates a given row in a table with given changes.
|
||||
*/
|
||||
declare function getUpdateQuery(details: AdapterUpdateDetails, requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
[x: string]: unknown;
|
||||
__ps_updated_at__: `${bigint}`;
|
||||
}>;
|
||||
|
||||
declare function getTablesQuery(requirements?: Omit<BuilderRequirements, "Adapter" | "QueryCompiler">): Query<{
|
||||
name: string;
|
||||
sql: string;
|
||||
columns: {
|
||||
name: string;
|
||||
pk: number;
|
||||
default: string | null;
|
||||
datatype: string;
|
||||
fk_table: string | null;
|
||||
fk_column: string | null;
|
||||
computed: kysely.SqlBool;
|
||||
nullable: kysely.SqlBool;
|
||||
}[];
|
||||
}>;
|
||||
/**
|
||||
* For testing purposes.
|
||||
*/
|
||||
declare function mockTablesQuery(): [{
|
||||
readonly name: "animals";
|
||||
readonly sql: "CREATE TABLE animals (id INTEGER PRIMARY KEY, name TEXT);";
|
||||
readonly columns: [{
|
||||
readonly name: "id";
|
||||
readonly datatype: "INTEGER";
|
||||
readonly default: null;
|
||||
readonly pk: 1;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name";
|
||||
readonly datatype: "TEXT";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}];
|
||||
}, {
|
||||
readonly name: "users";
|
||||
readonly sql: "CREATE TABLE users (id UUID PRIMARY KEY, created_at TIMESTAMP, deleted_at TIMESTAMP, role varchar, name varchar, name_role text);";
|
||||
readonly columns: [{
|
||||
readonly name: "id";
|
||||
readonly datatype: "INTEGER";
|
||||
readonly default: null;
|
||||
readonly pk: 1;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "created_at";
|
||||
readonly datatype: "TIMESTAMP";
|
||||
readonly default: "1970-01-01 00:00:00.000";
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "deleted_at";
|
||||
readonly datatype: "TIMESTAMP";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "role";
|
||||
readonly datatype: "varchar";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name";
|
||||
readonly datatype: "varchar";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name_role";
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly pk: 0;
|
||||
readonly computed: 1;
|
||||
readonly nullable: 0;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}];
|
||||
}, {
|
||||
readonly name: "composite_pk";
|
||||
readonly sql: "CREATE TABLE composite_pk (id UUID, name TEXT, created_at timestamp, PRIMARY KEY (id, name));";
|
||||
readonly columns: [{
|
||||
readonly name: "id";
|
||||
readonly datatype: "text";
|
||||
readonly default: null;
|
||||
readonly pk: 1;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "name";
|
||||
readonly datatype: "TEXT";
|
||||
readonly default: null;
|
||||
readonly pk: 2;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}, {
|
||||
readonly name: "created_at";
|
||||
readonly datatype: "timestamp";
|
||||
readonly default: "1970-01-01 00:00:00.000";
|
||||
readonly pk: 0;
|
||||
readonly computed: 0;
|
||||
readonly nullable: 1;
|
||||
readonly fk_table: null;
|
||||
readonly fk_column: null;
|
||||
}];
|
||||
}];
|
||||
|
||||
export { type SQLIteAdapterRequirements, createSQLiteAdapter, getDeleteQuery, getInsertQuery, getSelectQuery, getTablesQuery, getUpdateQuery, mockIntrospect, mockSelectQuery, mockTablesQuery };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/sqlite-core/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/sqlite-core/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
_node_modules/@prisma/studio-core/dist/data/sqljs/index.cjs
generated
vendored
Normal file
2
_node_modules/@prisma/studio-core/dist/data/sqljs/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var w=(t,e)=>{for(var o in e)l(t,o,{get:e[o],enumerable:!0})},x=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of v(e))!h.call(t,r)&&r!==o&&l(t,r,{get:()=>e[r],enumerable:!(n=m(e,r))||n.enumerable});return t};var y=t=>x(l({},"__esModule",{value:!0}),t);var b={};w(b,{createSQLJSExecutor:()=>S});module.exports=y(b);function S(t){return{execute:e=>{let{parameters:o,sql:n,transformations:r}=e,u=t.prepare(n);u.bind(o);let a=[];try{for(;u.step();){let s=u.getAsObject();a.push(s)}if(!r||Object.keys(r).length===0)return Promise.resolve([null,a]);for(let s of a)for(let c in r){let f=r[c],i=s[c];if(f==="json-parse"){if(typeof i=="string")try{s[c]=JSON.parse(i)}catch(p){console.error(`Failed to JSON.parse column "${c}" with value: ${i}`,p)}continue}}return Promise.resolve([null,a])}catch(s){return Promise.resolve([s])}}}}
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vZGF0YS9zcWxqcy9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHR5cGUgeyBEYXRhYmFzZSwgU3FsVmFsdWUgfSBmcm9tIFwic3FsLmpzXCI7XG5cbmltcG9ydCB0eXBlIHsgRXhlY3V0b3IgfSBmcm9tIFwiLi4vZXhlY3V0b3JcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVNRTEpTRXhlY3V0b3IoZGF0YWJhc2U6IERhdGFiYXNlKTogRXhlY3V0b3Ige1xuICByZXR1cm4ge1xuICAgIGV4ZWN1dGU6IChxdWVyeSkgPT4ge1xuICAgICAgY29uc3QgeyBwYXJhbWV0ZXJzLCBzcWwsIHRyYW5zZm9ybWF0aW9ucyB9ID0gcXVlcnk7XG5cbiAgICAgIGNvbnN0IHN0YXRlbWVudCA9IGRhdGFiYXNlLnByZXBhcmUoc3FsKTtcbiAgICAgIHN0YXRlbWVudC5iaW5kKHBhcmFtZXRlcnMgYXMgU3FsVmFsdWVbXSk7XG5cbiAgICAgIGNvbnN0IHJvd3MgPSBbXTtcblxuICAgICAgdHJ5IHtcbiAgICAgICAgd2hpbGUgKHN0YXRlbWVudC5zdGVwKCkpIHtcbiAgICAgICAgICBjb25zdCByb3cgPSBzdGF0ZW1lbnQuZ2V0QXNPYmplY3QoKTtcblxuICAgICAgICAgIHJvd3MucHVzaChyb3cpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCF0cmFuc2Zvcm1hdGlvbnMgfHwgT2JqZWN0LmtleXModHJhbnNmb3JtYXRpb25zKS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKFtudWxsLCByb3dzXSkgYXMgbmV2ZXI7XG4gICAgICAgIH1cblxuICAgICAgICBmb3IgKGNvbnN0IHJvdyBvZiByb3dzKSB7XG4gICAgICAgICAgZm9yIChjb25zdCBjb2x1bW4gaW4gdHJhbnNmb3JtYXRpb25zKSB7XG4gICAgICAgICAgICBjb25zdCB0cmFuc2Zvcm1hdGlvbiA9IHRyYW5zZm9ybWF0aW9uc1tjb2x1bW5dO1xuICAgICAgICAgICAgY29uc3QgdmFsdWUgPSByb3dbY29sdW1uXTtcblxuICAgICAgICAgICAgaWYgKHRyYW5zZm9ybWF0aW9uID09PSBcImpzb24tcGFyc2VcIikge1xuICAgICAgICAgICAgICBpZiAodHlwZW9mIHZhbHVlID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgIHJvd1tjb2x1bW5dID0gSlNPTi5wYXJzZSh2YWx1ZSkgYXMgbmV2ZXI7XG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoYEZhaWxlZCB0byBKU09OLnBhcnNlIGNvbHVtbiBcIiR7Y29sdW1ufVwiIHdpdGggdmFsdWU6ICR7dmFsdWV9YCwgZXJyb3IpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0cmFuc2Zvcm1hdGlvbiBzYXRpc2ZpZXMgdW5kZWZpbmVkO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoW251bGwsIHJvd3NdKSBhcyBuZXZlcjtcbiAgICAgIH0gY2F0Y2ggKGVycm9yOiB1bmtub3duKSB7XG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoW2Vycm9yIGFzIEVycm9yXSk7XG4gICAgICB9XG4gICAgfSxcbiAgfTt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MsT0FBU0ssRUFBZ0IsQ0FDdkIsT0FBTyxRQUFRLFFBQVEsQ0FBQ0EsQ0FBYyxDQUFDLENBQ3pDLENBQ0YsQ0FDRixDQUNGIiwKICAibmFtZXMiOiBbInNxbGpzX2V4cG9ydHMiLCAiX19leHBvcnQiLCAiY3JlYXRlU1FMSlNFeGVjdXRvciIsICJfX3RvQ29tbW9uSlMiLCAiY3JlYXRlU1FMSlNFeGVjdXRvciIsICJkYXRhYmFzZSIsICJxdWVyeSIsICJwYXJhbWV0ZXJzIiwgInNxbCIsICJ0cmFuc2Zvcm1hdGlvbnMiLCAic3RhdGVtZW50IiwgInJvd3MiLCAicm93IiwgImNvbHVtbiIsICJ0cmFuc2Zvcm1hdGlvbiIsICJ2YWx1ZSIsICJlcnJvciJdCn0K
|
||||
7
_node_modules/@prisma/studio-core/dist/data/sqljs/index.d.cts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/sqljs/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Database } from 'sql.js';
|
||||
import { G as Executor } from '../../executor-CFej-Wsy.cjs';
|
||||
import 'kysely';
|
||||
|
||||
declare function createSQLJSExecutor(database: Database): Executor;
|
||||
|
||||
export { createSQLJSExecutor };
|
||||
7
_node_modules/@prisma/studio-core/dist/data/sqljs/index.d.ts
generated
vendored
Normal file
7
_node_modules/@prisma/studio-core/dist/data/sqljs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Database } from 'sql.js';
|
||||
import { G as Executor } from '../../executor-CFej-Wsy.js';
|
||||
import 'kysely';
|
||||
|
||||
declare function createSQLJSExecutor(database: Database): Executor;
|
||||
|
||||
export { createSQLJSExecutor };
|
||||
10
_node_modules/@prisma/studio-core/dist/data/sqljs/index.js
generated
vendored
Normal file
10
_node_modules/@prisma/studio-core/dist/data/sqljs/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as ___react___ from 'react';
|
||||
import * as ___react_dom___ from 'react-dom';
|
||||
|
||||
function require(mod) {
|
||||
if (mod === 'react') return ___react___;
|
||||
if (mod === 'react-dom') return ___react_dom___;
|
||||
throw new Error(`Unknown module ${mod}`);
|
||||
}
|
||||
import{e as c}from"../../chunk-GGFIWHFO.js";c();function v(u){return{execute:i=>{let{parameters:l,sql:f,transformations:r}=i,s=u.prepare(f);s.bind(l);let t=[];try{for(;s.step();){let e=s.getAsObject();t.push(e)}if(!r||Object.keys(r).length===0)return Promise.resolve([null,t]);for(let e of t)for(let o in r){let a=r[o],n=e[o];if(a==="json-parse"){if(typeof n=="string")try{e[o]=JSON.parse(n)}catch(p){console.error(`Failed to JSON.parse column "${o}" with value: ${n}`,p)}continue}}return Promise.resolve([null,t])}catch(e){return Promise.resolve([e])}}}}export{v as createSQLJSExecutor};
|
||||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vZGF0YS9zcWxqcy9pbmRleC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHR5cGUgeyBEYXRhYmFzZSwgU3FsVmFsdWUgfSBmcm9tIFwic3FsLmpzXCI7XG5cbmltcG9ydCB0eXBlIHsgRXhlY3V0b3IgfSBmcm9tIFwiLi4vZXhlY3V0b3JcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVNRTEpTRXhlY3V0b3IoZGF0YWJhc2U6IERhdGFiYXNlKTogRXhlY3V0b3Ige1xuICByZXR1cm4ge1xuICAgIGV4ZWN1dGU6IChxdWVyeSkgPT4ge1xuICAgICAgY29uc3QgeyBwYXJhbWV0ZXJzLCBzcWwsIHRyYW5zZm9ybWF0aW9ucyB9ID0gcXVlcnk7XG5cbiAgICAgIGNvbnN0IHN0YXRlbWVudCA9IGRhdGFiYXNlLnByZXBhcmUoc3FsKTtcbiAgICAgIHN0YXRlbWVudC5iaW5kKHBhcmFtZXRlcnMgYXMgU3FsVmFsdWVbXSk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0FBTSxFQUV4QixHQUFJQyxJQUFtQixhQUFjLENBQ25DLEdBQUksT0FBT0MsR0FBVSxTQUNuQixHQUFJLENBQ0ZILEVBQUlDLENBQU0sRUFBSSxLQUFLLE1BQU1FLENBQUssQ0FDaEMsT0FBU0MsRUFBTyxDQUNkLFFBQVEsTUFBTSxnQ0FBZ0NILENBQU0saUJBQWlCRSxDQUFLLEdBQUlDLENBQUssQ0FDckYsQ0FHRixRQUNGLENBR0YsQ0FHRixPQUFPLFFBQVEsUUFBUSxDQUFDLEtBQU1MLENBQUksQ0FBQyxDQUNyQyxPQUFTSyxFQUFnQixDQUN2QixPQUFPLFFBQVEsUUFBUSxDQUFDQSxDQUFjLENBQUMsQ0FDekMsQ0FDRixDQUNGLENBQ0YiLAogICJuYW1lcyI6IFsiaW5pdF9kZWZpbmVfQUNDRUxFUkFURV9TQ0hFTUFfQllfUFJPVklERVIiLCAiY3JlYXRlU1FMSlNFeGVjdXRvciIsICJkYXRhYmFzZSIsICJxdWVyeSIsICJwYXJhbWV0ZXJzIiwgInNxbCIsICJ0cmFuc2Zvcm1hdGlvbnMiLCAic3RhdGVtZW50IiwgInJvd3MiLCAicm93IiwgImNvbHVtbiIsICJ0cmFuc2Zvcm1hdGlvbiIsICJ2YWx1ZSIsICJlcnJvciJdCn0K
|
||||
308
_node_modules/@prisma/studio-core/dist/executor-CFej-Wsy.d.cts
generated
vendored
Normal file
308
_node_modules/@prisma/studio-core/dist/executor-CFej-Wsy.d.cts
generated
vendored
Normal file
@@ -0,0 +1,308 @@
|
||||
import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
|
||||
|
||||
type Either<E, R> = [E] | [null, R];
|
||||
type NumericString = `${number}`;
|
||||
type BigIntString = `${bigint}`;
|
||||
|
||||
interface AdapterRequirements {
|
||||
executor: Executor;
|
||||
noParameters?: boolean;
|
||||
}
|
||||
interface Adapter {
|
||||
/**
|
||||
* The schema studio will choose by default.
|
||||
*
|
||||
* e.g. `public` for PostgreSQL
|
||||
*/
|
||||
readonly defaultSchema?: string;
|
||||
/**
|
||||
* Introspects the database and returns structured information about the schemas, tables, etc.
|
||||
*
|
||||
* @param options - Options for the introspection request.
|
||||
*/
|
||||
introspect(options: AdapterIntrospectOptions): Promise<Either<AdapterError, AdapterIntrospectResult>>;
|
||||
/**
|
||||
* Executes a structured query against the database.
|
||||
*/
|
||||
query(details: AdapterQueryDetails, options: AdapterQueryOptions): Promise<Either<AdapterError, AdapterQueryResult>>;
|
||||
/**
|
||||
* Inserts a single row into the database.
|
||||
*/
|
||||
insert(details: AdapterInsertDetails, options: AdapterInsertOptions): Promise<Either<AdapterError, AdapterInsertResult>>;
|
||||
/**
|
||||
* Updates a given row in the database with given changes.
|
||||
*/
|
||||
update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<AdapterError, AdapterUpdateResult>>;
|
||||
/**
|
||||
* Deletes given rows from the database.
|
||||
*/
|
||||
delete(details: AdapterDeleteDetails, options: AdapterDeleteOptions): Promise<Either<AdapterError, AdapterDeleteResult>>;
|
||||
}
|
||||
interface AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterIntrospectOptions extends AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterQueryOptions extends AdapterBaseOptions {
|
||||
abortSignal: AbortSignal;
|
||||
}
|
||||
interface AdapterInsertOptions extends AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterUpdateOptions extends AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterDeleteOptions extends AdapterBaseOptions {
|
||||
}
|
||||
type SchemaName = string;
|
||||
interface AdapterIntrospectResult {
|
||||
schemas: Record<SchemaName, Schema>;
|
||||
timezone: string;
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
}
|
||||
type TableName = string;
|
||||
interface Schema {
|
||||
name: string;
|
||||
tables: Record<TableName, Table>;
|
||||
}
|
||||
type ColumnName = string;
|
||||
interface Table {
|
||||
columns: Record<ColumnName, Column>;
|
||||
name: TableName;
|
||||
schema: SchemaName;
|
||||
}
|
||||
interface Column {
|
||||
datatype: DataType;
|
||||
defaultValue: "CURRENT_DATE" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "datetime('now')" | "gen_random_uuid()" | "json_array()" | `nextval(${string})` | `now()` | "uuid_to_bin(uuid())" | "uuid()" | (string & {}) | null;
|
||||
fkColumn: ColumnName | null;
|
||||
fkSchema: SchemaName | null;
|
||||
fkTable: TableName | null;
|
||||
isAutoincrement: boolean;
|
||||
isComputed: boolean;
|
||||
isRequired: boolean;
|
||||
name: ColumnName;
|
||||
nullable: boolean;
|
||||
pkPosition: number | null;
|
||||
schema: SchemaName;
|
||||
table: TableName;
|
||||
}
|
||||
interface DataType {
|
||||
/**
|
||||
* The database-specific affinity/type.
|
||||
*
|
||||
* e.g. in SQLite, datatypes can be anything. They are reduced to affinity via string matching rules.
|
||||
*
|
||||
* {@link https://sqlite.org/datatype3.html#determination_of_column_affinity}
|
||||
*/
|
||||
affinity?: string;
|
||||
/**
|
||||
* The database-specific format for the datatype.
|
||||
*/
|
||||
format?: string;
|
||||
/**
|
||||
* A simplification/normalization for UI usage.
|
||||
*
|
||||
* e.g. varchar and char are strings.
|
||||
*/
|
||||
group: DataTypeGroup;
|
||||
/**
|
||||
* Is this a native array type?
|
||||
*/
|
||||
isArray: boolean;
|
||||
/**
|
||||
* Is a native database datatype or a user-defined datatype?
|
||||
*
|
||||
* e.g. PostgreSQL enums are user-defined datatypes, but `int4` is a native datatype.
|
||||
*/
|
||||
isNative: boolean;
|
||||
/**
|
||||
* Will be displayed as-is.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Enum values for enum types.
|
||||
*/
|
||||
options: string[];
|
||||
/**
|
||||
* The schema the datatype belongs to.
|
||||
*/
|
||||
schema: string;
|
||||
}
|
||||
type DataTypeGroup = "string" | "datetime" | "boolean" | "enum" | "time" | "raw" | "numeric" | "json";
|
||||
interface AdapterQueryDetails {
|
||||
/**
|
||||
* Zero-based index of the page to fetch.
|
||||
*/
|
||||
pageIndex: number;
|
||||
/**
|
||||
* Maximum number of rows to fetch from the database.
|
||||
*/
|
||||
pageSize: number;
|
||||
/**
|
||||
* Sort order for the query.
|
||||
*/
|
||||
sortOrder: SortOrderItem[];
|
||||
/**
|
||||
* The table to select from.
|
||||
*/
|
||||
table: Table;
|
||||
/**
|
||||
* The filter to be applied.
|
||||
*/
|
||||
filter?: FilterGroup;
|
||||
}
|
||||
type FilterOperator = "=" | "!=" | ">" | ">=" | "<" | "<=" | "is" | "is not" | "like" | "not like" | "ilike" | "not ilike";
|
||||
interface ColumnFilter {
|
||||
kind: "ColumnFilter";
|
||||
column: string;
|
||||
operator: FilterOperator;
|
||||
value: unknown;
|
||||
after: "and" | "or";
|
||||
id: string;
|
||||
}
|
||||
interface FilterGroup {
|
||||
kind: "FilterGroup";
|
||||
filters: (ColumnFilter | FilterGroup)[];
|
||||
after: "and" | "or";
|
||||
id: string;
|
||||
}
|
||||
interface SortOrderItem {
|
||||
/**
|
||||
* The column to sort by.
|
||||
*/
|
||||
column: ColumnName;
|
||||
/**
|
||||
* The direction to sort the column by.
|
||||
*/
|
||||
direction: SortDirection;
|
||||
}
|
||||
type SortDirection = "asc" | "desc";
|
||||
declare class AdapterError extends Error {
|
||||
query?: Query<unknown>;
|
||||
}
|
||||
interface AdapterQueryResult {
|
||||
/**
|
||||
* The total number of rows the query would return if not limited.
|
||||
*
|
||||
* If the database does not support counting rows, this should be set to `Infinity`.
|
||||
*/
|
||||
filteredRowCount: number | bigint | NumericString | BigIntString;
|
||||
/**
|
||||
* The rows returned by the query.
|
||||
*/
|
||||
rows: Record<ColumnName, unknown>[];
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query;
|
||||
}
|
||||
interface AdapterInsertDetails {
|
||||
/**
|
||||
* The table to insert into.
|
||||
*/
|
||||
table: Table;
|
||||
/**
|
||||
* The values to insert into the table.
|
||||
* - The keys should match the column names in the table.
|
||||
* - The values should be the values to insert into the table.
|
||||
*/
|
||||
rows: Record<string, unknown>[];
|
||||
}
|
||||
interface AdapterInsertResult {
|
||||
/**
|
||||
* The freshly inserted row data.
|
||||
*/
|
||||
rows: Record<string, unknown>[];
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query<unknown>;
|
||||
}
|
||||
interface AdapterUpdateDetails {
|
||||
/**
|
||||
* Changes to apply to the row.
|
||||
*/
|
||||
changes: Record<ColumnName, unknown>;
|
||||
/**
|
||||
* The row to update.
|
||||
*/
|
||||
row: Record<ColumnName, unknown>;
|
||||
/**
|
||||
* The table to update in.
|
||||
*/
|
||||
table: Table;
|
||||
}
|
||||
interface AdapterUpdateResult {
|
||||
/**
|
||||
* The updated row data.
|
||||
*/
|
||||
row: Record<ColumnName, unknown> & {
|
||||
/**
|
||||
* When the changes were applied in database time.
|
||||
*/
|
||||
__ps_updated_at__: string | number | Date;
|
||||
};
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query<unknown>;
|
||||
}
|
||||
interface AdapterDeleteDetails {
|
||||
/**
|
||||
* The rows to delete.
|
||||
*/
|
||||
rows: Record<ColumnName, unknown>[];
|
||||
/**
|
||||
* The table to delete from.
|
||||
*/
|
||||
table: Table;
|
||||
}
|
||||
interface AdapterDeleteResult {
|
||||
rows: Record<ColumnName, unknown>[];
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query<unknown>;
|
||||
}
|
||||
declare function createAdapterError(args: {
|
||||
error: Error;
|
||||
query?: Query<unknown>;
|
||||
}): [AdapterError];
|
||||
|
||||
interface BuilderRequirements {
|
||||
Adapter: {
|
||||
new (): DialectAdapter;
|
||||
};
|
||||
noParameters?: boolean;
|
||||
QueryCompiler: {
|
||||
new (): QueryCompiler;
|
||||
};
|
||||
}
|
||||
declare const queryType: unique symbol;
|
||||
interface Query<T = Record<string, unknown>> {
|
||||
[queryType]?: T;
|
||||
parameters: readonly unknown[];
|
||||
sql: string;
|
||||
transformations?: Partial<Record<keyof T, "json-parse">>;
|
||||
}
|
||||
type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
|
||||
/**
|
||||
* Applies a filter to the given rows based on the primary key columns of the table.
|
||||
*
|
||||
* @example db.selectFrom("users").$call(applyInferredRowFilters(rows, columns)).selectAll()
|
||||
*/
|
||||
declare function applyInferredRowFilters(rows: Record<string, unknown>[], columns: Table["columns"]): <QB extends WhereInterface<any, any>>(qb: QB) => QB;
|
||||
|
||||
interface Executor {
|
||||
execute<T>(query: Query<T>, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Query<T>>>>;
|
||||
}
|
||||
interface SequenceExecutor extends Executor {
|
||||
executeSequence<T, S>(sequence: readonly [Query<T>, Query<S>], options?: ExecuteOptions): Promise<[[Error]] | [[null, QueryResult<Query<T>>], Either<Error, QueryResult<Query<S>>>]>;
|
||||
}
|
||||
interface ExecuteOptions {
|
||||
abortSignal?: AbortSignal;
|
||||
}
|
||||
declare class AbortError extends Error {
|
||||
constructor();
|
||||
}
|
||||
declare function getAbortResult(): [AbortError];
|
||||
|
||||
export { type AdapterRequirements as A, createAdapterError as B, type Column as C, type DataType as D, type ExecuteOptions as E, type FilterOperator as F, type Executor as G, AbortError as H, getAbortResult as I, type BigIntString as J, type BuilderRequirements as K, type NumericString as N, type Query as Q, type SequenceExecutor as S, type Table as T, type Either as a, type QueryResult as b, applyInferredRowFilters as c, type Adapter as d, type AdapterBaseOptions as e, type AdapterIntrospectOptions as f, type AdapterQueryOptions as g, type AdapterInsertOptions as h, type AdapterUpdateOptions as i, type AdapterDeleteOptions as j, type AdapterIntrospectResult as k, type Schema as l, type DataTypeGroup as m, type AdapterQueryDetails as n, type ColumnFilter as o, type FilterGroup as p, type SortOrderItem as q, type SortDirection as r, AdapterError as s, type AdapterQueryResult as t, type AdapterInsertDetails as u, type AdapterInsertResult as v, type AdapterUpdateDetails as w, type AdapterUpdateResult as x, type AdapterDeleteDetails as y, type AdapterDeleteResult as z };
|
||||
308
_node_modules/@prisma/studio-core/dist/executor-CFej-Wsy.d.ts
generated
vendored
Normal file
308
_node_modules/@prisma/studio-core/dist/executor-CFej-Wsy.d.ts
generated
vendored
Normal file
@@ -0,0 +1,308 @@
|
||||
import { WhereInterface, DialectAdapter, QueryCompiler } from 'kysely';
|
||||
|
||||
type Either<E, R> = [E] | [null, R];
|
||||
type NumericString = `${number}`;
|
||||
type BigIntString = `${bigint}`;
|
||||
|
||||
interface AdapterRequirements {
|
||||
executor: Executor;
|
||||
noParameters?: boolean;
|
||||
}
|
||||
interface Adapter {
|
||||
/**
|
||||
* The schema studio will choose by default.
|
||||
*
|
||||
* e.g. `public` for PostgreSQL
|
||||
*/
|
||||
readonly defaultSchema?: string;
|
||||
/**
|
||||
* Introspects the database and returns structured information about the schemas, tables, etc.
|
||||
*
|
||||
* @param options - Options for the introspection request.
|
||||
*/
|
||||
introspect(options: AdapterIntrospectOptions): Promise<Either<AdapterError, AdapterIntrospectResult>>;
|
||||
/**
|
||||
* Executes a structured query against the database.
|
||||
*/
|
||||
query(details: AdapterQueryDetails, options: AdapterQueryOptions): Promise<Either<AdapterError, AdapterQueryResult>>;
|
||||
/**
|
||||
* Inserts a single row into the database.
|
||||
*/
|
||||
insert(details: AdapterInsertDetails, options: AdapterInsertOptions): Promise<Either<AdapterError, AdapterInsertResult>>;
|
||||
/**
|
||||
* Updates a given row in the database with given changes.
|
||||
*/
|
||||
update(details: AdapterUpdateDetails, options: AdapterUpdateOptions): Promise<Either<AdapterError, AdapterUpdateResult>>;
|
||||
/**
|
||||
* Deletes given rows from the database.
|
||||
*/
|
||||
delete(details: AdapterDeleteDetails, options: AdapterDeleteOptions): Promise<Either<AdapterError, AdapterDeleteResult>>;
|
||||
}
|
||||
interface AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterIntrospectOptions extends AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterQueryOptions extends AdapterBaseOptions {
|
||||
abortSignal: AbortSignal;
|
||||
}
|
||||
interface AdapterInsertOptions extends AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterUpdateOptions extends AdapterBaseOptions {
|
||||
}
|
||||
interface AdapterDeleteOptions extends AdapterBaseOptions {
|
||||
}
|
||||
type SchemaName = string;
|
||||
interface AdapterIntrospectResult {
|
||||
schemas: Record<SchemaName, Schema>;
|
||||
timezone: string;
|
||||
filterOperators: FilterOperator[];
|
||||
query: Query;
|
||||
}
|
||||
type TableName = string;
|
||||
interface Schema {
|
||||
name: string;
|
||||
tables: Record<TableName, Table>;
|
||||
}
|
||||
type ColumnName = string;
|
||||
interface Table {
|
||||
columns: Record<ColumnName, Column>;
|
||||
name: TableName;
|
||||
schema: SchemaName;
|
||||
}
|
||||
interface Column {
|
||||
datatype: DataType;
|
||||
defaultValue: "CURRENT_DATE" | "CURRENT_TIME" | "CURRENT_TIMESTAMP" | "datetime('now')" | "gen_random_uuid()" | "json_array()" | `nextval(${string})` | `now()` | "uuid_to_bin(uuid())" | "uuid()" | (string & {}) | null;
|
||||
fkColumn: ColumnName | null;
|
||||
fkSchema: SchemaName | null;
|
||||
fkTable: TableName | null;
|
||||
isAutoincrement: boolean;
|
||||
isComputed: boolean;
|
||||
isRequired: boolean;
|
||||
name: ColumnName;
|
||||
nullable: boolean;
|
||||
pkPosition: number | null;
|
||||
schema: SchemaName;
|
||||
table: TableName;
|
||||
}
|
||||
interface DataType {
|
||||
/**
|
||||
* The database-specific affinity/type.
|
||||
*
|
||||
* e.g. in SQLite, datatypes can be anything. They are reduced to affinity via string matching rules.
|
||||
*
|
||||
* {@link https://sqlite.org/datatype3.html#determination_of_column_affinity}
|
||||
*/
|
||||
affinity?: string;
|
||||
/**
|
||||
* The database-specific format for the datatype.
|
||||
*/
|
||||
format?: string;
|
||||
/**
|
||||
* A simplification/normalization for UI usage.
|
||||
*
|
||||
* e.g. varchar and char are strings.
|
||||
*/
|
||||
group: DataTypeGroup;
|
||||
/**
|
||||
* Is this a native array type?
|
||||
*/
|
||||
isArray: boolean;
|
||||
/**
|
||||
* Is a native database datatype or a user-defined datatype?
|
||||
*
|
||||
* e.g. PostgreSQL enums are user-defined datatypes, but `int4` is a native datatype.
|
||||
*/
|
||||
isNative: boolean;
|
||||
/**
|
||||
* Will be displayed as-is.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Enum values for enum types.
|
||||
*/
|
||||
options: string[];
|
||||
/**
|
||||
* The schema the datatype belongs to.
|
||||
*/
|
||||
schema: string;
|
||||
}
|
||||
type DataTypeGroup = "string" | "datetime" | "boolean" | "enum" | "time" | "raw" | "numeric" | "json";
|
||||
interface AdapterQueryDetails {
|
||||
/**
|
||||
* Zero-based index of the page to fetch.
|
||||
*/
|
||||
pageIndex: number;
|
||||
/**
|
||||
* Maximum number of rows to fetch from the database.
|
||||
*/
|
||||
pageSize: number;
|
||||
/**
|
||||
* Sort order for the query.
|
||||
*/
|
||||
sortOrder: SortOrderItem[];
|
||||
/**
|
||||
* The table to select from.
|
||||
*/
|
||||
table: Table;
|
||||
/**
|
||||
* The filter to be applied.
|
||||
*/
|
||||
filter?: FilterGroup;
|
||||
}
|
||||
type FilterOperator = "=" | "!=" | ">" | ">=" | "<" | "<=" | "is" | "is not" | "like" | "not like" | "ilike" | "not ilike";
|
||||
interface ColumnFilter {
|
||||
kind: "ColumnFilter";
|
||||
column: string;
|
||||
operator: FilterOperator;
|
||||
value: unknown;
|
||||
after: "and" | "or";
|
||||
id: string;
|
||||
}
|
||||
interface FilterGroup {
|
||||
kind: "FilterGroup";
|
||||
filters: (ColumnFilter | FilterGroup)[];
|
||||
after: "and" | "or";
|
||||
id: string;
|
||||
}
|
||||
interface SortOrderItem {
|
||||
/**
|
||||
* The column to sort by.
|
||||
*/
|
||||
column: ColumnName;
|
||||
/**
|
||||
* The direction to sort the column by.
|
||||
*/
|
||||
direction: SortDirection;
|
||||
}
|
||||
type SortDirection = "asc" | "desc";
|
||||
declare class AdapterError extends Error {
|
||||
query?: Query<unknown>;
|
||||
}
|
||||
interface AdapterQueryResult {
|
||||
/**
|
||||
* The total number of rows the query would return if not limited.
|
||||
*
|
||||
* If the database does not support counting rows, this should be set to `Infinity`.
|
||||
*/
|
||||
filteredRowCount: number | bigint | NumericString | BigIntString;
|
||||
/**
|
||||
* The rows returned by the query.
|
||||
*/
|
||||
rows: Record<ColumnName, unknown>[];
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query;
|
||||
}
|
||||
interface AdapterInsertDetails {
|
||||
/**
|
||||
* The table to insert into.
|
||||
*/
|
||||
table: Table;
|
||||
/**
|
||||
* The values to insert into the table.
|
||||
* - The keys should match the column names in the table.
|
||||
* - The values should be the values to insert into the table.
|
||||
*/
|
||||
rows: Record<string, unknown>[];
|
||||
}
|
||||
interface AdapterInsertResult {
|
||||
/**
|
||||
* The freshly inserted row data.
|
||||
*/
|
||||
rows: Record<string, unknown>[];
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query<unknown>;
|
||||
}
|
||||
interface AdapterUpdateDetails {
|
||||
/**
|
||||
* Changes to apply to the row.
|
||||
*/
|
||||
changes: Record<ColumnName, unknown>;
|
||||
/**
|
||||
* The row to update.
|
||||
*/
|
||||
row: Record<ColumnName, unknown>;
|
||||
/**
|
||||
* The table to update in.
|
||||
*/
|
||||
table: Table;
|
||||
}
|
||||
interface AdapterUpdateResult {
|
||||
/**
|
||||
* The updated row data.
|
||||
*/
|
||||
row: Record<ColumnName, unknown> & {
|
||||
/**
|
||||
* When the changes were applied in database time.
|
||||
*/
|
||||
__ps_updated_at__: string | number | Date;
|
||||
};
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query<unknown>;
|
||||
}
|
||||
interface AdapterDeleteDetails {
|
||||
/**
|
||||
* The rows to delete.
|
||||
*/
|
||||
rows: Record<ColumnName, unknown>[];
|
||||
/**
|
||||
* The table to delete from.
|
||||
*/
|
||||
table: Table;
|
||||
}
|
||||
interface AdapterDeleteResult {
|
||||
rows: Record<ColumnName, unknown>[];
|
||||
/**
|
||||
* The executed query string.
|
||||
*/
|
||||
query: Query<unknown>;
|
||||
}
|
||||
declare function createAdapterError(args: {
|
||||
error: Error;
|
||||
query?: Query<unknown>;
|
||||
}): [AdapterError];
|
||||
|
||||
interface BuilderRequirements {
|
||||
Adapter: {
|
||||
new (): DialectAdapter;
|
||||
};
|
||||
noParameters?: boolean;
|
||||
QueryCompiler: {
|
||||
new (): QueryCompiler;
|
||||
};
|
||||
}
|
||||
declare const queryType: unique symbol;
|
||||
interface Query<T = Record<string, unknown>> {
|
||||
[queryType]?: T;
|
||||
parameters: readonly unknown[];
|
||||
sql: string;
|
||||
transformations?: Partial<Record<keyof T, "json-parse">>;
|
||||
}
|
||||
type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
|
||||
/**
|
||||
* Applies a filter to the given rows based on the primary key columns of the table.
|
||||
*
|
||||
* @example db.selectFrom("users").$call(applyInferredRowFilters(rows, columns)).selectAll()
|
||||
*/
|
||||
declare function applyInferredRowFilters(rows: Record<string, unknown>[], columns: Table["columns"]): <QB extends WhereInterface<any, any>>(qb: QB) => QB;
|
||||
|
||||
interface Executor {
|
||||
execute<T>(query: Query<T>, options?: ExecuteOptions): Promise<Either<Error, QueryResult<Query<T>>>>;
|
||||
}
|
||||
interface SequenceExecutor extends Executor {
|
||||
executeSequence<T, S>(sequence: readonly [Query<T>, Query<S>], options?: ExecuteOptions): Promise<[[Error]] | [[null, QueryResult<Query<T>>], Either<Error, QueryResult<Query<S>>>]>;
|
||||
}
|
||||
interface ExecuteOptions {
|
||||
abortSignal?: AbortSignal;
|
||||
}
|
||||
declare class AbortError extends Error {
|
||||
constructor();
|
||||
}
|
||||
declare function getAbortResult(): [AbortError];
|
||||
|
||||
export { type AdapterRequirements as A, createAdapterError as B, type Column as C, type DataType as D, type ExecuteOptions as E, type FilterOperator as F, type Executor as G, AbortError as H, getAbortResult as I, type BigIntString as J, type BuilderRequirements as K, type NumericString as N, type Query as Q, type SequenceExecutor as S, type Table as T, type Either as a, type QueryResult as b, applyInferredRowFilters as c, type Adapter as d, type AdapterBaseOptions as e, type AdapterIntrospectOptions as f, type AdapterQueryOptions as g, type AdapterInsertOptions as h, type AdapterUpdateOptions as i, type AdapterDeleteOptions as j, type AdapterIntrospectResult as k, type Schema as l, type DataTypeGroup as m, type AdapterQueryDetails as n, type ColumnFilter as o, type FilterGroup as p, type SortOrderItem as q, type SortDirection as r, AdapterError as s, type AdapterQueryResult as t, type AdapterInsertDetails as u, type AdapterInsertResult as v, type AdapterUpdateDetails as w, type AdapterUpdateResult as x, type AdapterDeleteDetails as y, type AdapterDeleteResult as z };
|
||||
1
_node_modules/@prisma/studio-core/dist/metafile-cjs.json
generated
vendored
Normal file
1
_node_modules/@prisma/studio-core/dist/metafile-cjs.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
_node_modules/@prisma/studio-core/dist/metafile-esm.json
generated
vendored
Normal file
1
_node_modules/@prisma/studio-core/dist/metafile-esm.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
451
_node_modules/@prisma/studio-core/dist/ui/index.cjs
generated
vendored
Normal file
451
_node_modules/@prisma/studio-core/dist/ui/index.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3127
_node_modules/@prisma/studio-core/dist/ui/index.css
generated
vendored
Normal file
3127
_node_modules/@prisma/studio-core/dist/ui/index.css
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
101
_node_modules/@prisma/studio-core/dist/ui/index.d.cts
generated
vendored
Normal file
101
_node_modules/@prisma/studio-core/dist/ui/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
import * as react_jsx_runtime from 'react/jsx-runtime';
|
||||
import { d as Adapter, Q as Query, s as AdapterError } from '../executor-CFej-Wsy.cjs';
|
||||
import { UseQueryStateOptions, UseQueryStateReturn, Options, Parser, UseQueryStatesOptions, UseQueryStatesReturn } from 'nuqs';
|
||||
export * from 'nuqs';
|
||||
import 'kysely';
|
||||
|
||||
/**
|
||||
* Theme variables type - matches shadcn format
|
||||
*/
|
||||
type ThemeVariables = Record<string, string>;
|
||||
/**
|
||||
* Custom theme configuration with light and dark variants
|
||||
*/
|
||||
interface CustomTheme {
|
||||
light: ThemeVariables;
|
||||
dark: ThemeVariables;
|
||||
}
|
||||
/**
|
||||
* Parse CSS variables from shadcn format CSS string
|
||||
* Handles both :root and .dark selectors
|
||||
*/
|
||||
declare function parseThemeFromCSS(cssString: string): CustomTheme | null;
|
||||
|
||||
type StudioLaunchedEventBase = {
|
||||
name: "studio_launched";
|
||||
payload: {
|
||||
embeddingType?: string;
|
||||
vendorId?: string;
|
||||
tableCount: number;
|
||||
};
|
||||
};
|
||||
type StudioOperationErrorEventBase = {
|
||||
name: "studio_operation_error";
|
||||
payload: {
|
||||
operation: string;
|
||||
query: Query<unknown> | undefined;
|
||||
error: AdapterError;
|
||||
};
|
||||
};
|
||||
type StudioOperationSuccessEventBase = {
|
||||
name: "studio_operation_success";
|
||||
payload: {
|
||||
operation: string;
|
||||
query: Query<unknown>;
|
||||
error: undefined;
|
||||
};
|
||||
};
|
||||
type StudioOperationEventBase = StudioOperationSuccessEventBase | StudioOperationErrorEventBase;
|
||||
type StudioEventBase = StudioLaunchedEventBase | StudioOperationEventBase;
|
||||
type StudioEvent = StudioEventBase & {
|
||||
eventId: string;
|
||||
timestamp: string;
|
||||
};
|
||||
interface StudioProps {
|
||||
adapter: Adapter;
|
||||
onEvent?: (error: StudioEvent) => void;
|
||||
/**
|
||||
* Custom theme configuration or CSS string from shadcn
|
||||
* Supports both parsed theme object and raw CSS string
|
||||
*/
|
||||
theme?: CustomTheme | string;
|
||||
}
|
||||
/**
|
||||
* Main Studio component that provides database visualization and management
|
||||
*/
|
||||
declare function Studio(props: StudioProps): react_jsx_runtime.JSX.Element;
|
||||
|
||||
type StateKey = "pageIndex" | "pageSize" | "table" | "sort" | "schema" | "test" | "filter" | "view";
|
||||
type Exact<A, W> = (A extends unknown ? W extends A ? {
|
||||
[K in keyof A]: Exact<A[K], W[K]>;
|
||||
} : W : never) | (A extends string | number | bigint | boolean | [] ? A : never);
|
||||
declare function keyMap<const Map extends Partial<Record<StateKey, any>>>(keyMap: Exact<Map, Partial<Record<StateKey, any>>>): BrandedKeyMap<Map>;
|
||||
declare function urlKeys<const Map extends Partial<Record<StateKey, string>>>(urlKeys: Exact<Map, Partial<Record<StateKey, string>>>): BrandedKeyMap<Map>;
|
||||
declare const _BRAND_SYMBOL: unique symbol;
|
||||
type BrandedKeyMap<Map> = Map & {
|
||||
[K in typeof _BRAND_SYMBOL]: never;
|
||||
};
|
||||
/**
|
||||
* @see {@link useQueryStateOriginal}
|
||||
*/
|
||||
declare function useQueryState<T>(key: StateKey, options: UseQueryStateOptions<T> & {
|
||||
defaultValue: T;
|
||||
}): UseQueryStateReturn<NonNullable<ReturnType<typeof options.parse>>, typeof options.defaultValue>;
|
||||
declare function useQueryState<T>(key: StateKey, options: UseQueryStateOptions<T>): UseQueryStateReturn<NonNullable<ReturnType<typeof options.parse>>, undefined>;
|
||||
declare function useQueryState(key: StateKey, options: Options & {
|
||||
defaultValue: string;
|
||||
}): UseQueryStateReturn<string, typeof options.defaultValue>;
|
||||
declare function useQueryState(key: StateKey, options: Pick<UseQueryStateOptions<string>, keyof Options>): UseQueryStateReturn<string, undefined>;
|
||||
declare function useQueryState(key: StateKey): UseQueryStateReturn<string, undefined>;
|
||||
type UseQueryStatesKeysMap<Map extends Partial<Record<StateKey, any>> = Partial<Record<StateKey, any>>> = {
|
||||
[Key in keyof Map]: KeyMapValue<Map[Key]>;
|
||||
};
|
||||
type KeyMapValue<Type> = Parser<Type> & Options & {
|
||||
defaultValue?: Type;
|
||||
};
|
||||
/**
|
||||
* @see {@link useQueryStatesOriginal}
|
||||
*/
|
||||
declare function useQueryStates<KeyMap extends UseQueryStatesKeysMap>(keyMap: BrandedKeyMap<KeyMap>, options?: Partial<UseQueryStatesOptions<KeyMap>>): UseQueryStatesReturn<KeyMap>;
|
||||
|
||||
export { type CustomTheme, type StateKey, Studio, type StudioProps, type ThemeVariables, keyMap, parseThemeFromCSS, urlKeys, useQueryState, useQueryStates };
|
||||
101
_node_modules/@prisma/studio-core/dist/ui/index.d.ts
generated
vendored
Normal file
101
_node_modules/@prisma/studio-core/dist/ui/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
import * as react_jsx_runtime from 'react/jsx-runtime';
|
||||
import { d as Adapter, Q as Query, s as AdapterError } from '../executor-CFej-Wsy.js';
|
||||
import { UseQueryStateOptions, UseQueryStateReturn, Options, Parser, UseQueryStatesOptions, UseQueryStatesReturn } from 'nuqs';
|
||||
export * from 'nuqs';
|
||||
import 'kysely';
|
||||
|
||||
/**
|
||||
* Theme variables type - matches shadcn format
|
||||
*/
|
||||
type ThemeVariables = Record<string, string>;
|
||||
/**
|
||||
* Custom theme configuration with light and dark variants
|
||||
*/
|
||||
interface CustomTheme {
|
||||
light: ThemeVariables;
|
||||
dark: ThemeVariables;
|
||||
}
|
||||
/**
|
||||
* Parse CSS variables from shadcn format CSS string
|
||||
* Handles both :root and .dark selectors
|
||||
*/
|
||||
declare function parseThemeFromCSS(cssString: string): CustomTheme | null;
|
||||
|
||||
type StudioLaunchedEventBase = {
|
||||
name: "studio_launched";
|
||||
payload: {
|
||||
embeddingType?: string;
|
||||
vendorId?: string;
|
||||
tableCount: number;
|
||||
};
|
||||
};
|
||||
type StudioOperationErrorEventBase = {
|
||||
name: "studio_operation_error";
|
||||
payload: {
|
||||
operation: string;
|
||||
query: Query<unknown> | undefined;
|
||||
error: AdapterError;
|
||||
};
|
||||
};
|
||||
type StudioOperationSuccessEventBase = {
|
||||
name: "studio_operation_success";
|
||||
payload: {
|
||||
operation: string;
|
||||
query: Query<unknown>;
|
||||
error: undefined;
|
||||
};
|
||||
};
|
||||
type StudioOperationEventBase = StudioOperationSuccessEventBase | StudioOperationErrorEventBase;
|
||||
type StudioEventBase = StudioLaunchedEventBase | StudioOperationEventBase;
|
||||
type StudioEvent = StudioEventBase & {
|
||||
eventId: string;
|
||||
timestamp: string;
|
||||
};
|
||||
interface StudioProps {
|
||||
adapter: Adapter;
|
||||
onEvent?: (error: StudioEvent) => void;
|
||||
/**
|
||||
* Custom theme configuration or CSS string from shadcn
|
||||
* Supports both parsed theme object and raw CSS string
|
||||
*/
|
||||
theme?: CustomTheme | string;
|
||||
}
|
||||
/**
|
||||
* Main Studio component that provides database visualization and management
|
||||
*/
|
||||
declare function Studio(props: StudioProps): react_jsx_runtime.JSX.Element;
|
||||
|
||||
type StateKey = "pageIndex" | "pageSize" | "table" | "sort" | "schema" | "test" | "filter" | "view";
|
||||
type Exact<A, W> = (A extends unknown ? W extends A ? {
|
||||
[K in keyof A]: Exact<A[K], W[K]>;
|
||||
} : W : never) | (A extends string | number | bigint | boolean | [] ? A : never);
|
||||
declare function keyMap<const Map extends Partial<Record<StateKey, any>>>(keyMap: Exact<Map, Partial<Record<StateKey, any>>>): BrandedKeyMap<Map>;
|
||||
declare function urlKeys<const Map extends Partial<Record<StateKey, string>>>(urlKeys: Exact<Map, Partial<Record<StateKey, string>>>): BrandedKeyMap<Map>;
|
||||
declare const _BRAND_SYMBOL: unique symbol;
|
||||
type BrandedKeyMap<Map> = Map & {
|
||||
[K in typeof _BRAND_SYMBOL]: never;
|
||||
};
|
||||
/**
|
||||
* @see {@link useQueryStateOriginal}
|
||||
*/
|
||||
declare function useQueryState<T>(key: StateKey, options: UseQueryStateOptions<T> & {
|
||||
defaultValue: T;
|
||||
}): UseQueryStateReturn<NonNullable<ReturnType<typeof options.parse>>, typeof options.defaultValue>;
|
||||
declare function useQueryState<T>(key: StateKey, options: UseQueryStateOptions<T>): UseQueryStateReturn<NonNullable<ReturnType<typeof options.parse>>, undefined>;
|
||||
declare function useQueryState(key: StateKey, options: Options & {
|
||||
defaultValue: string;
|
||||
}): UseQueryStateReturn<string, typeof options.defaultValue>;
|
||||
declare function useQueryState(key: StateKey, options: Pick<UseQueryStateOptions<string>, keyof Options>): UseQueryStateReturn<string, undefined>;
|
||||
declare function useQueryState(key: StateKey): UseQueryStateReturn<string, undefined>;
|
||||
type UseQueryStatesKeysMap<Map extends Partial<Record<StateKey, any>> = Partial<Record<StateKey, any>>> = {
|
||||
[Key in keyof Map]: KeyMapValue<Map[Key]>;
|
||||
};
|
||||
type KeyMapValue<Type> = Parser<Type> & Options & {
|
||||
defaultValue?: Type;
|
||||
};
|
||||
/**
|
||||
* @see {@link useQueryStatesOriginal}
|
||||
*/
|
||||
declare function useQueryStates<KeyMap extends UseQueryStatesKeysMap>(keyMap: BrandedKeyMap<KeyMap>, options?: Partial<UseQueryStatesOptions<KeyMap>>): UseQueryStatesReturn<KeyMap>;
|
||||
|
||||
export { type CustomTheme, type StateKey, Studio, type StudioProps, type ThemeVariables, keyMap, parseThemeFromCSS, urlKeys, useQueryState, useQueryStates };
|
||||
459
_node_modules/@prisma/studio-core/dist/ui/index.js
generated
vendored
Normal file
459
_node_modules/@prisma/studio-core/dist/ui/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user