├── binaries
└── pkg
│ ├── .gitignore
│ └── package.json
├── .github
├── prisma-version.txt
├── slack
│ └── .gitignore
└── CODEOWNERS
├── packagers
├── pnpm
│ ├── prepare.sh
│ ├── README.md
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── prisma
│ │ └── schema.prisma
├── pnpm-workspaces-custom-output
│ ├── prepare.sh
│ ├── README.md
│ ├── workspace
│ │ ├── pnpm-workspace.yaml
│ │ ├── sub-project-1
│ │ │ └── tsconfig.json
│ │ └── sub-project-2
│ │ │ └── tsconfig.json
│ ├── run.sh
│ └── test.sh
├── pnpm-workspaces-default-output
│ ├── prepare.sh
│ ├── README.md
│ ├── workspace
│ │ ├── pnpm-workspace.yaml
│ │ ├── sub-project-1
│ │ │ ├── tsconfig.json
│ │ │ └── prisma
│ │ │ │ └── schema.prisma
│ │ └── sub-project-2
│ │ │ ├── tsconfig.json
│ │ │ └── prisma
│ │ │ └── schema.prisma
│ └── run.sh
├── npm
│ ├── README.md
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── prisma
│ │ └── schema.prisma
├── yarn3-workspaces-pnp
│ ├── packages
│ │ ├── sub-project-1
│ │ │ ├── .gitignore
│ │ │ ├── test.sh
│ │ │ ├── upgrade.sh
│ │ │ └── tsconfig.json
│ │ └── sub-project-2
│ │ │ ├── test.sh
│ │ │ ├── tsconfig.json
│ │ │ └── package.json
│ ├── .gitignore
│ ├── test.sh
│ ├── README.md
│ └── package.json
├── yarn
│ ├── README.md
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── prisma
│ │ └── schema.prisma
├── yarn-workspaces
│ ├── run.sh
│ ├── test.sh
│ ├── prisma-project
│ │ ├── test.sh
│ │ ├── tsconfig.json
│ │ ├── prisma
│ │ │ └── schema.prisma
│ │ └── package.json
│ ├── README.md
│ └── package.json
├── yarn3-without-pnp
│ ├── README.md
│ ├── test.sh
│ ├── .gitignore
│ ├── tsconfig.json
│ └── prisma
│ │ └── schema.prisma
└── npm-global
│ ├── README.md
│ ├── prepare.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── prisma
│ └── schema.prisma
├── dataproxy
├── deno
│ ├── .gitignore
│ ├── test.sh
│ ├── README.md
│ ├── run.sh
│ ├── package.json
│ └── prepare.sh
├── nodejs-mysql-itx
│ ├── src
│ │ └── index.ts
│ ├── test.sh
│ ├── prepare.sh
│ ├── test
│ │ └── utils.ts
│ ├── run.sh
│ ├── jest.config.js
│ └── README.md
├── nodejs-mongodb-itx
│ ├── src
│ │ └── index.ts
│ ├── test.sh
│ ├── prepare.sh
│ ├── test
│ │ └── utils.ts
│ ├── run.sh
│ ├── jest.config.js
│ └── README.md
├── nodejs-postgresql-itx
│ ├── src
│ │ └── index.ts
│ ├── test.sh
│ ├── prepare.sh
│ ├── test
│ │ └── utils.ts
│ ├── run.sh
│ ├── jest.config.js
│ └── README.md
├── nodejs-cockroachdb-itx
│ ├── src
│ │ └── index.ts
│ ├── test.sh
│ ├── prepare.sh
│ ├── test
│ │ └── utils.ts
│ ├── run.sh
│ ├── jest.config.js
│ └── README.md
├── nodejs
│ ├── test.sh
│ ├── prepare.sh
│ ├── run.sh
│ ├── jest.config.js
│ └── README.md
├── vercel-edge-functions
│ ├── next.config.js
│ ├── .gitignore
│ ├── finally.sh
│ ├── public
│ │ └── favicon.ico
│ ├── jest.config.js
│ ├── test.sh
│ ├── next-env.d.ts
│ ├── pages
│ │ └── api
│ │ │ └── index.ts
│ ├── README.md
│ └── prepare.sh
├── nodejs-tracing
│ ├── test.sh
│ ├── prepare.sh
│ ├── run.sh
│ ├── jest.config.js
│ └── README.md
├── cloudflare-workers-module
│ ├── .gitignore
│ ├── finally.sh
│ ├── jest.config.js
│ ├── run.sh
│ └── test.sh
├── cloudflare-workers-service
│ ├── .gitignore
│ ├── finally.sh
│ ├── jest.config.js
│ ├── run.sh
│ └── test.sh
├── nodejs-mongodb-logs
│ ├── test.sh
│ ├── prepare.sh
│ ├── run.sh
│ ├── jest.config.ts
│ └── README.md
├── nodejs-postgresql-logs
│ ├── test.sh
│ ├── prepare.sh
│ ├── run.sh
│ ├── jest.config.js
│ └── README.md
└── vercel-cli-serverless-functions
│ ├── .gitignore
│ ├── finally.sh
│ ├── jest.config.js
│ ├── test.sh
│ └── README.md
├── community-generators
├── prisma-nestjs-graphql
│ ├── tsconfig.json
│ ├── test.sh
│ ├── .gitignore
│ ├── run.sh
│ └── README.md
├── prisma-dbml-generator
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ ├── README.md
│ ├── schema.prisma
│ └── index.test.js
├── typegraphql-prisma
│ ├── .gitignore
│ ├── run.sh
│ ├── tsconfig.json
│ └── README.md
└── prisma-json-schema-generator
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ ├── README.md
│ └── schema.prisma
├── databases
├── docker-pgbouncer
│ ├── .gitignore
│ ├── test.sh
│ └── run.sh
├── gcp-mysql-ssl
│ ├── .gitignore
│ ├── test.sh
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ └── prisma
│ │ └── schema.prisma
├── heroku-pgbouncer
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ └── README.md
├── gcp-postgresql-ssl
│ ├── .gitignore
│ ├── test.sh
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ └── prisma
│ │ └── schema.prisma
├── digitalocean-pgbouncer
│ ├── .gitignore
│ ├── test.sh
│ └── run.sh
├── heroku-pgbouncer-buildpack
│ ├── .gitignore
│ ├── Procfile
│ ├── finally.sh
│ ├── tsconfig.json
│ └── test.sh
├── supabase
│ ├── test.sh
│ ├── run.sh
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── package.json
├── cockroach-cloud
│ ├── test.sh
│ ├── run.sh
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ └── prisma
│ │ └── schema.prisma
├── mongodb-atlas
│ ├── test.sh
│ ├── run.sh
│ ├── README.md
│ └── tsconfig.json
├── planetscale
│ ├── test.sh
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ ├── run.sh
│ ├── README.md
│ └── prisma
│ │ └── schema.prisma
├── supabase-pool
│ ├── test.sh
│ └── run.sh
├── mongodb-digitalocean
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── README.md
├── sqlserver-aws-rds
│ ├── test.sh
│ ├── run.sh
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ ├── README.md
│ └── prisma
│ │ └── schema.prisma
├── sqlserver-azure-sql
│ ├── test.sh
│ ├── run.sh
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ ├── README.md
│ └── prisma
│ │ └── schema.prisma
├── mongodb-atlas-serverless
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── README.md
├── mongodb-atlas-sharded
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── README.md
└── mongodb-azure-cosmosdb
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── README.md
├── utils
├── crypto
│ └── envVars.ts
└── prisma_version.sh
├── bundlers
├── webpack
│ ├── .gitignore
│ ├── test.sh
│ ├── webpack.config.js
│ ├── README.md
│ ├── run.sh
│ └── prisma
│ │ └── schema.prisma
├── parcel
│ ├── .gitignore
│ ├── test.sh
│ ├── README.md
│ ├── run.sh
│ └── prisma
│ │ └── schema.prisma
├── rollup
│ ├── .gitignore
│ ├── test.sh
│ ├── README.md
│ ├── run.sh
│ └── prisma
│ │ └── schema.prisma
└── webpack-browser-custom-output
│ ├── test.sh
│ ├── .gitignore
│ ├── src
│ └── index.js
│ ├── README.md
│ ├── run.sh
│ ├── webpack.config.js
│ └── prisma
│ └── schema.prisma
├── core-features
├── studio
│ ├── prisma
│ │ ├── .env
│ │ ├── dev.db
│ │ └── schema.prisma
│ ├── run.sh
│ ├── .gitignore
│ ├── jest.config.js
│ └── README.md
├── auto-reconnect
│ ├── test.sh
│ ├── run.sh
│ ├── README.md
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ └── prisma
│ │ └── schema.prisma
├── generate-client-install-npm
│ ├── test.sh
│ └── run.sh
├── generate-client-install-pnpm
│ ├── test.sh
│ └── run.sh
├── generate-client-install-yarn
│ ├── test.sh
│ └── run.sh
├── browser-build
│ ├── next-env.d.ts
│ ├── run.sh
│ ├── test.sh
│ ├── README.md
│ └── prisma
│ │ └── schema.prisma
├── _common
│ ├── generate-client-install
│ │ ├── .gitignore
│ │ ├── index.test.js
│ │ ├── README.md
│ │ └── prisma
│ │ │ └── schema.prisma
│ ├── generate-client-install-on-sub-project
│ │ ├── .gitignore
│ │ ├── sub-project
│ │ │ └── index.test.js
│ │ └── README.md
│ └── generate-client-and-cli-install-via-global-cli
│ │ ├── .gitignore
│ │ └── README.md
├── generate-client-install-on-sub-project-yarn
│ └── test.sh
├── generate-client-install-on-sub-project-npm
│ └── test.sh
├── generate-client-install-on-sub-project-pnpm
│ └── test.sh
├── generate-client-and-cli-install-via-global-cli-no-lockfile-npm
│ └── test.sh
├── generate-client-and-cli-install-via-global-cli-yarn-lockfile
│ └── test.sh
├── generate-client-and-cli-install-via-global-cli-npm-lockfile
│ └── test.sh
└── generate-client-and-cli-install-via-global-cli-pnpm-lockfile
│ └── test.sh
├── driver-adapters
├── neon-node-basic
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ └── prepare.sh
├── neon-http-node-basic
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ └── prepare.sh
├── turso-node-basic
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ └── prepare.sh
├── planetscale-node-basic
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ └── prepare.sh
├── postgresql-node-basic
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ └── prepare.sh
├── neon-lambda-basic
│ ├── finally.sh
│ ├── .gitignore
│ ├── test.sh
│ └── prepare.sh
├── turso-lambda-basic
│ ├── finally.sh
│ ├── .gitignore
│ ├── test.sh
│ └── prepare.sh
├── neon-http-lambda-basic
│ ├── finally.sh
│ ├── .gitignore
│ ├── test.sh
│ └── prepare.sh
├── planetscale-lambda-basic
│ ├── finally.sh
│ ├── .gitignore
│ ├── test.sh
│ └── prepare.sh
├── postgresql-lambda-basic
│ ├── finally.sh
│ ├── .gitignore
│ ├── test.sh
│ └── prepare.sh
├── neon-vercel-nextjs
│ ├── test.sh
│ ├── public
│ │ └── favicon.ico
│ ├── pages
│ │ └── index.js
│ └── finally.sh
├── neon-http-vercel-nextjs
│ ├── test.sh
│ ├── public
│ │ └── favicon.ico
│ ├── pages
│ │ └── index.js
│ └── finally.sh
├── turso-vercel-nextjs
│ ├── test.sh
│ ├── public
│ │ └── favicon.ico
│ ├── pages
│ │ └── index.js
│ └── finally.sh
├── planetscale-vercel-nextjs
│ ├── test.sh
│ ├── public
│ │ └── favicon.ico
│ ├── pages
│ │ └── index.js
│ └── finally.sh
└── postgresql-vercel-nextjs
│ ├── test.sh
│ ├── public
│ └── favicon.ico
│ ├── pages
│ └── index.js
│ └── finally.sh
├── engines
├── engine-native-deps
│ ├── prepare.sh
│ ├── snapshots
│ │ ├── linux-static-arm64
│ │ │ ├── query-engine.txt
│ │ │ └── schema-engine.txt
│ │ ├── linux-static-x64
│ │ │ ├── query-engine.txt
│ │ │ └── schema-engine.txt
│ │ ├── linux-musl
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── linux-musl-arm64-openssl-1.1.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── linux-musl-arm64-openssl-3.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── linux-musl-openssl-3.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── rhel-openssl-1.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── debian-openssl-1.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── linux-arm64-openssl-1.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── rhel-openssl-3.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── debian-openssl-3.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── rhel-openssl-1.1.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── debian-openssl-1.1.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ ├── linux-arm64-openssl-3.0.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ │ └── linux-arm64-openssl-1.1.x
│ │ │ ├── query-engine.txt
│ │ │ ├── schema-engine.txt
│ │ │ └── libquery_engine.so.node.txt
│ ├── .gitignore
│ ├── run.sh
│ └── test.sh
└── engine-types
│ ├── run.sh
│ ├── test.sh
│ ├── .gitignore
│ ├── prisma
│ └── dev.db
│ ├── jest.config.js
│ └── globalSetup.ts
├── libraries
├── apollo-server
│ ├── .gitignore
│ ├── run.sh
│ ├── tsconfig.json
│ ├── src
│ │ └── context.ts
│ └── prisma
│ │ └── schema.prisma
├── type-graphql
│ ├── .gitignore
│ ├── run.sh
│ └── prisma
│ │ └── schema.prisma
└── express
│ ├── run.sh
│ ├── tsconfig.json
│ └── prisma
│ └── schema.prisma
├── platforms-serverless-vercel
├── vercel-with-redwood
│ ├── jest.config.js
│ ├── scripts
│ │ └── .keep
│ ├── .nvmrc
│ ├── web
│ │ ├── src
│ │ │ ├── index.css
│ │ │ ├── components
│ │ │ │ └── .keep
│ │ │ ├── layouts
│ │ │ │ └── .keep
│ │ │ └── pages
│ │ │ │ └── WelcomePage
│ │ │ │ └── WelcomePage.stories.jsx
│ │ ├── public
│ │ │ ├── robots.txt
│ │ │ └── favicon.png
│ │ └── jest.config.js
│ ├── api
│ │ ├── src
│ │ │ ├── graphql
│ │ │ │ ├── .keep
│ │ │ │ ├── meta.sdl.js
│ │ │ │ └── users.sdl.js
│ │ │ └── services
│ │ │ │ ├── .keep
│ │ │ │ └── users
│ │ │ │ └── users.js
│ │ └── jest.config.js
│ ├── test.sh
│ ├── graphql.config.js
│ ├── .env.example
│ ├── __snapshots__
│ │ └── index.test.js.snap
│ ├── .editorconfig
│ └── .vscode
│ │ └── settings.json
├── vercel-with-nextjs-caching
│ ├── run.sh
│ ├── index.test.js
│ ├── pages
│ │ └── api
│ │ │ └── index.js
│ ├── prisma
│ │ └── schema.prisma
│ ├── script.sh
│ ├── script1.sh
│ └── script2.sh
├── vercel-with-nextjs
│ ├── test.sh
│ ├── pages
│ │ └── index.js
│ └── public
│ │ └── favicon.ico
├── vercel-cli
│ ├── .gitignore
│ └── finally.sh
└── vercel-node-builder
│ ├── .gitignore
│ └── vercel.json
├── platforms-serverless
├── firebase-functions
│ ├── firebase.json
│ ├── functions
│ │ ├── .gitignore
│ │ └── tsconfig.json
│ ├── .firebaserc
│ └── package.json
├── netlify-github
│ ├── .npmrc
│ ├── .gitignore
│ ├── netlify.toml
│ ├── finally.sh
│ └── prisma
│ │ └── schema.prisma
├── netlify-cli
│ ├── netlify.toml
│ ├── .gitignore
│ └── finally.sh
├── netlify-github-with-nextjs-caching
│ ├── run.sh
│ ├── index.test.js
│ ├── pages
│ │ └── api
│ │ │ └── index.js
│ ├── prisma
│ │ └── schema.prisma
│ ├── script.sh
│ ├── script1.sh
│ └── script2.sh
├── lambda
│ ├── .gitignore
│ ├── test.sh
│ └── tsconfig.json
├── azure-functions-linux
│ ├── .gitignore
│ ├── host.json
│ ├── local.settings.json
│ ├── .funcignore
│ ├── prepare.sh
│ ├── tsconfig.json
│ └── create.sh
├── azure-functions-windows
│ ├── .gitignore
│ ├── host.json
│ ├── local.settings.json
│ ├── .funcignore
│ └── prepare.sh
├── serverless-framework-lambda
│ ├── test.sh
│ ├── .gitignore
│ └── tsconfig.json
└── gcp-functions
│ ├── .gitignore
│ ├── prepare.sh
│ └── tsconfig.json
├── pnpm-workspace.yaml
├── generic
└── basic
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ ├── prisma
│ └── schema.prisma
│ └── README.md
├── platforms
├── aws-graviton
│ ├── .gitignore
│ ├── code
│ │ ├── keep.db
│ │ └── schema.prisma
│ ├── finally.sh
│ ├── package.json
│ └── prepare.sh
├── m1-macstadium
│ ├── .gitignore
│ ├── code
│ │ ├── keep.db
│ │ └── schema.prisma
│ ├── finally.sh
│ ├── package.json
│ └── prepare.sh
├── heroku
│ ├── .gitignore
│ ├── finally.sh
│ └── prisma
│ │ └── schema-with-binary.prisma
└── codesandbox
│ ├── .gitignore
│ ├── prisma
│ ├── dev.db
│ ├── .env
│ └── schema.prisma
│ ├── tsconfig.json
│ ├── run.sh
│ └── sandbox.config.json
├── test-runners
└── jest-with-multiple-generators
│ ├── .gitignore
│ ├── test.sh
│ ├── run.sh
│ ├── prisma
│ └── keep.db
│ ├── README.md
│ └── main.ts
├── frameworks
├── nestjs
│ ├── .prettierrc
│ ├── run.sh
│ ├── README.md
│ ├── nest-cli.json
│ ├── tsconfig.build.json
│ ├── test
│ │ └── jest-e2e.json
│ ├── src
│ │ ├── main.ts
│ │ └── app.controller.ts
│ └── prisma
│ │ └── schema.prisma
├── nextjs
│ ├── next-env.d.ts
│ ├── run.sh
│ ├── test.sh
│ ├── README.md
│ └── prisma
│ │ └── schema.prisma
└── sveltekit
│ ├── run.sh
│ ├── static
│ └── favicon.png
│ ├── src
│ ├── prisma.ts
│ └── app.d.ts
│ ├── .gitignore
│ └── vite.config.js
├── databases-macos
└── sqlserver-azure-sql
│ ├── test.sh
│ ├── run.sh
│ ├── README.md
│ └── __snapshots__
│ └── index.test.js.snap
├── process-managers
└── pm2
│ ├── README.md
│ ├── run.sh
│ ├── prisma
│ └── schema.prisma
│ └── test.sh
├── migrate
├── db-seed-commonjs-pkg
│ ├── README.md
│ ├── test.sh
│ ├── run.sh
│ └── tsconfig.json
└── db-seed-esm-pkg
│ ├── test.sh
│ ├── run.sh
│ ├── tsconfig.json
│ └── README.md
├── tsconfig.json
├── .prettierrc
├── SECURITY.md
├── .gitignore
├── .vscode
└── extensions.json
├── .editorconfig
├── docker
├── amazonlinux-2-amd64-openssl-1.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── almalinux-8-amd64-openssl-1.1.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── archlinux-latest-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── amazonlinux-2-arm64-openssl-1.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── almalinux-8-arm64-openssl-1.1.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── almalinux-latest-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── alpine-3.17-arm64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── ubuntu-20.04-amd64-openssl-1.1.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── ubuntu-22.04-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── alpine-3.16-arm64-openssl-1.1.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── alpine-latest-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── ubuntu-latest-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── almalinux-latest-arm64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── opensuse-tumbleweed-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── redhat-ubi9-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── ubuntu-latest-arm64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── alpine-3.16-arm64-openssl-1.1.x-with-libc
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── amazonlinux-2022-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── debian-stretch-amd64-openssl-1.1.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── debian-bullseye-amd64-openssl-1.1.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── amazonlinux-2022-arm64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── alpine-3.16-amd64-openssl-1.1.x
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── alpine-3.17-amd64-openssl-1.1.x
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── alpine-3.17-amd64-openssl-3.0.x
│ ├── README.md
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── debian-buster-amd64-openssl-1.1.x
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── debian-latest-amd64-openssl-3.0.x
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── debian-latest-arm64-openssl-3.0.x
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
├── debian-bullseye-amd64-openssl-1.1.x-tls
│ ├── prisma
│ │ └── schema.prisma
│ └── test.sh
└── alpine-3.17-arm64-openssl-3.0.x-with-libc
│ ├── prisma
│ └── schema.prisma
│ └── test.sh
├── .npmrc
└── docker-unsupported
├── debian-buster-amd64-openssl-1.1.x
└── prisma
│ └── schema.prisma
└── debian-latest-arm-openssl-1.1.x
├── prisma
└── schema.prisma
└── test.sh
/binaries/pkg/.gitignore:
--------------------------------------------------------------------------------
1 | cli
2 |
--------------------------------------------------------------------------------
/.github/prisma-version.txt:
--------------------------------------------------------------------------------
1 | 5.6.0-dev.58
2 |
--------------------------------------------------------------------------------
/packagers/pnpm/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
--------------------------------------------------------------------------------
/dataproxy/deno/.gitignore:
--------------------------------------------------------------------------------
1 | .vscode
2 | generated
3 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mysql-itx/src/index.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/.github/slack/.gitignore:
--------------------------------------------------------------------------------
1 | !yarn.lock
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/community-generators/prisma-nestjs-graphql/tsconfig.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/databases/docker-pgbouncer/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | node_modules
--------------------------------------------------------------------------------
/databases/gcp-mysql-ssl/.gitignore:
--------------------------------------------------------------------------------
1 | *.pem
2 | *.p12
3 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-itx/src/index.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-itx/src/index.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/utils/crypto/envVars.ts:
--------------------------------------------------------------------------------
1 | export const envVars = {
2 | }
3 |
--------------------------------------------------------------------------------
/bundlers/webpack/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | .env
--------------------------------------------------------------------------------
/core-features/studio/prisma/.env:
--------------------------------------------------------------------------------
1 | DATABASE_FILE="file:./dev.db"
--------------------------------------------------------------------------------
/databases/gcp-postgresql-ssl/.gitignore:
--------------------------------------------------------------------------------
1 | *.pem
2 | *.p12
3 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-cockroachdb-itx/src/index.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/driver-adapters/neon-node-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/engines/engine-native-deps/prepare.sh:
--------------------------------------------------------------------------------
1 | SKIP_ENGINE_CHECK=1
2 |
--------------------------------------------------------------------------------
/libraries/apollo-server/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/jest.config.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/scripts/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platforms-serverless/firebase-functions/firebase.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/pnpm-workspace.yaml:
--------------------------------------------------------------------------------
1 | packages:
2 | - '**/*'
3 | - '!.*'
4 |
--------------------------------------------------------------------------------
/databases/digitalocean-pgbouncer/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | node_modules
--------------------------------------------------------------------------------
/driver-adapters/neon-http-node-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/driver-adapters/turso-node-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-custom-output/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/.nvmrc:
--------------------------------------------------------------------------------
1 | lts/*
2 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/web/src/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github/.npmrc:
--------------------------------------------------------------------------------
1 | node-linker=hoisted
2 |
--------------------------------------------------------------------------------
/bundlers/parcel/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | .env
4 | .cache/
--------------------------------------------------------------------------------
/bundlers/rollup/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | .env
4 | .cache/
--------------------------------------------------------------------------------
/community-generators/prisma-dbml-generator/.gitignore:
--------------------------------------------------------------------------------
1 | dbml/schema.dbml
--------------------------------------------------------------------------------
/driver-adapters/planetscale-node-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/driver-adapters/postgresql-node-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-static-arm64/query-engine.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-static-arm64/schema-engine.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-static-x64/query-engine.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-static-x64/schema-engine.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/generic/basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm cmd
6 |
--------------------------------------------------------------------------------
/packagers/npm/README.md:
--------------------------------------------------------------------------------
1 | # npm package manager
2 |
3 | Tests `npm`.
4 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/packages/sub-project-1/.gitignore:
--------------------------------------------------------------------------------
1 | lib
2 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/api/src/graphql/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/api/src/services/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/web/src/components/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/web/src/layouts/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platforms/aws-graviton/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | server-key.pem
3 |
--------------------------------------------------------------------------------
/platforms/m1-macstadium/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | server-key.pem
3 |
--------------------------------------------------------------------------------
/bundlers/parcel/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/bundlers/rollup/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/bundlers/webpack/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer-buildpack/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .env
3 |
--------------------------------------------------------------------------------
/databases/supabase/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/deno/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | deno test -A
6 |
--------------------------------------------------------------------------------
/dataproxy/nodejs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/next.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | }
3 |
--------------------------------------------------------------------------------
/driver-adapters/neon-lambda-basic/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
--------------------------------------------------------------------------------
/driver-adapters/turso-lambda-basic/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
--------------------------------------------------------------------------------
/libraries/type-graphql/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | schema.gql
4 |
--------------------------------------------------------------------------------
/packagers/npm/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | npm run cmd
6 |
--------------------------------------------------------------------------------
/packagers/pnpm/README.md:
--------------------------------------------------------------------------------
1 | # pnpm package manager
2 |
3 | Tests `pnpm`.
4 |
--------------------------------------------------------------------------------
/packagers/pnpm/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm run cmd
6 |
--------------------------------------------------------------------------------
/packagers/yarn/README.md:
--------------------------------------------------------------------------------
1 | # Yarn package manager
2 |
3 | Tests `yarn`.
4 |
--------------------------------------------------------------------------------
/platforms/heroku/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | node_modules/
3 | prisma/migrations
4 |
--------------------------------------------------------------------------------
/community-generators/typegraphql-prisma/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | generated/
3 |
--------------------------------------------------------------------------------
/core-features/studio/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
--------------------------------------------------------------------------------
/databases/cockroach-cloud/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/gcp-mysql-ssl/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm cmd
6 |
--------------------------------------------------------------------------------
/databases/planetscale/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/supabase-pool/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-tracing/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-lambda-basic/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
--------------------------------------------------------------------------------
/driver-adapters/neon-lambda-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | lambda.zip
3 | dist
--------------------------------------------------------------------------------
/driver-adapters/planetscale-lambda-basic/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-lambda-basic/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
--------------------------------------------------------------------------------
/driver-adapters/turso-lambda-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | lambda.zip
3 | dist
--------------------------------------------------------------------------------
/engines/engine-native-deps/.gitignore:
--------------------------------------------------------------------------------
1 | query-engine
2 | schema-engine
3 | *.node
4 |
--------------------------------------------------------------------------------
/engines/engine-types/run.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 |
--------------------------------------------------------------------------------
/engines/engine-types/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .env
3 | .netlify
--------------------------------------------------------------------------------
/community-generators/prisma-json-schema-generator/.gitignore:
--------------------------------------------------------------------------------
1 | json-schema/json-schema.json
--------------------------------------------------------------------------------
/core-features/auto-reconnect/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/core-features/studio/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
3 | !prisma/.env
4 | !prisma/dev.db
--------------------------------------------------------------------------------
/databases/docker-pgbouncer/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/gcp-postgresql-ssl/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer-buildpack/Procfile:
--------------------------------------------------------------------------------
1 | web: bin/start-pgbouncer node index.js
2 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/mongodb-digitalocean/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm cmd
6 |
--------------------------------------------------------------------------------
/databases/sqlserver-aws-rds/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/sqlserver-azure-sql/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-module/.gitignore:
--------------------------------------------------------------------------------
1 | wrangler.toml
2 | deployment-url.txt
3 |
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-service/.gitignore:
--------------------------------------------------------------------------------
1 | wrangler.toml
2 | deployment-url.txt
3 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-itx/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-logs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mysql-itx/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/.gitignore:
--------------------------------------------------------------------------------
1 | .vercel
2 | .next
3 | deployment-url.txt
4 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-lambda-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | lambda.zip
3 | dist
--------------------------------------------------------------------------------
/driver-adapters/planetscale-lambda-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | lambda.zip
3 | dist
--------------------------------------------------------------------------------
/driver-adapters/postgresql-lambda-basic/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | lambda.zip
3 | dist
--------------------------------------------------------------------------------
/engines/engine-native-deps/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | yarn install
6 |
--------------------------------------------------------------------------------
/packagers/yarn/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | yarn ts-node ./script.ts
6 |
--------------------------------------------------------------------------------
/packagers/yarn3-without-pnp/README.md:
--------------------------------------------------------------------------------
1 | # Yarn package manager
2 |
3 | Tests `yarn`.
4 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-cli/netlify.toml:
--------------------------------------------------------------------------------
1 | [build]
2 | functions = "functions/"
3 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github/netlify.toml:
--------------------------------------------------------------------------------
1 | [build]
2 | functions = "functions/"
--------------------------------------------------------------------------------
/test-runners/jest-with-multiple-generators/.gitignore:
--------------------------------------------------------------------------------
1 | generated
2 | node_modules
3 |
--------------------------------------------------------------------------------
/bundlers/parcel/README.md:
--------------------------------------------------------------------------------
1 | # Parcel
2 |
3 | [https://parceljs.org/](https://parceljs.org/)
--------------------------------------------------------------------------------
/bundlers/rollup/README.md:
--------------------------------------------------------------------------------
1 | # Rollup
2 |
3 | [https://rollupjs.org/](https://rollupjs.org/)
--------------------------------------------------------------------------------
/bundlers/webpack/webpack.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | target: 'node'
3 | }
4 |
5 |
--------------------------------------------------------------------------------
/databases/cockroach-cloud/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pnpm install
4 | pnpm prisma generate
5 |
--------------------------------------------------------------------------------
/databases/digitalocean-pgbouncer/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas-serverless/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm cmd
6 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas-sharded/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm cmd
6 |
--------------------------------------------------------------------------------
/databases/mongodb-azure-cosmosdb/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm cmd
6 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-cockroachdb-itx/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-itx/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-logs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/finally.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | cat deployment-url.txt
--------------------------------------------------------------------------------
/driver-adapters/neon-lambda-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-node-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-vercel-nextjs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/turso-lambda-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/turso-node-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/frameworks/nestjs/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true,
3 | "trailingComma": "all"
4 | }
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs-caching/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github-with-nextjs-caching/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
--------------------------------------------------------------------------------
/bundlers/webpack-browser-custom-output/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases-macos/sqlserver-azure-sql/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-module/finally.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | cat deployment-url.txt
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-service/finally.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | cat deployment-url.txt
--------------------------------------------------------------------------------
/driver-adapters/neon-http-lambda-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-node-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-vercel-nextjs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-node-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-lambda-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-node-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/turso-vercel-nextjs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/engines/engine-types/.gitignore:
--------------------------------------------------------------------------------
1 | data.json
2 | !prisma/dev.db
3 | !*.keep
4 | custom-engines/*
5 |
--------------------------------------------------------------------------------
/platforms-serverless/lambda/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | *.js
3 | *.js.map
4 | *.zip
5 | *.env
6 |
--------------------------------------------------------------------------------
/platforms-serverless/lambda/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm ts-node test.ts
6 |
--------------------------------------------------------------------------------
/utils/prisma_version.sh:
--------------------------------------------------------------------------------
1 | echo $(jq ".devDependencies[\"prisma\"]" ./package.json | tr -d '"')
2 |
--------------------------------------------------------------------------------
/bundlers/webpack/README.md:
--------------------------------------------------------------------------------
1 | # Webpack
2 |
3 | [https://webpack.js.org/](https://webpack.js.org/)
4 |
--------------------------------------------------------------------------------
/community-generators/prisma-dbml-generator/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/community-generators/prisma-nestjs-graphql/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-npm/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | npm test
6 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-pnpm/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-yarn/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | yarn test
6 |
--------------------------------------------------------------------------------
/databases/supabase/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-lambda-basic/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-vercel-nextjs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-vercel-nextjs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/libraries/express/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/packagers/yarn3-without-pnp/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | yarn ts-node ./script.ts
6 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs-caching/index.test.js:
--------------------------------------------------------------------------------
1 | // to be replaced in tests
2 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs-caching/pages/api/index.js:
--------------------------------------------------------------------------------
1 | // to be replaced in tests
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/web/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github-with-nextjs-caching/index.test.js:
--------------------------------------------------------------------------------
1 | // to be replaced in tests
2 |
--------------------------------------------------------------------------------
/process-managers/pm2/README.md:
--------------------------------------------------------------------------------
1 | # PM2
2 |
3 | This example runs a simple express server via PM2.
4 |
--------------------------------------------------------------------------------
/test-runners/jest-with-multiple-generators/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/bundlers/webpack-browser-custom-output/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | dist/
3 | prisma/custom-prisma
4 | .env
--------------------------------------------------------------------------------
/community-generators/prisma-json-schema-generator/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/frameworks/nestjs/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
8 |
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cd prisma-project && sh test.sh
6 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs-caching/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | // to be replaced in tests
2 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm test
6 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | yarn test
6 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github-with-nextjs-caching/pages/api/index.js:
--------------------------------------------------------------------------------
1 | // to be replaced in tests
2 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github-with-nextjs-caching/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | // to be replaced in tests
2 |
--------------------------------------------------------------------------------
/platforms/codesandbox/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | sandbox_id
3 |
4 | !prisma/migrations
5 | !prisma/dev.db
--------------------------------------------------------------------------------
/core-features/auto-reconnect/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/databases/sqlserver-aws-rds/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/frameworks/nestjs/README.md:
--------------------------------------------------------------------------------
1 | # Nest
2 |
3 | [Nest](https://github.com/nestjs/nest) framework TypeScript starter
--------------------------------------------------------------------------------
/frameworks/nestjs/nest-cli.json:
--------------------------------------------------------------------------------
1 | {
2 | "collection": "@nestjs/schematics",
3 | "sourceRoot": "src"
4 | }
5 |
--------------------------------------------------------------------------------
/packagers/npm/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | npm install
6 | npx prisma generate
7 | npx prisma -v
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-custom-output/README.md:
--------------------------------------------------------------------------------
1 | # pnpm package manager
2 |
3 | Tests `pnpm` workspaces.
4 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/README.md:
--------------------------------------------------------------------------------
1 | # pnpm package manager
2 |
3 | Tests `pnpm` workspaces.
4 |
--------------------------------------------------------------------------------
/packagers/yarn/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | yarn install
6 | yarn prisma generate
7 | yarn prisma -v
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-linux/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | *.js
3 | *.js.map
4 | *.zip
5 | *.env
6 |
--------------------------------------------------------------------------------
/bundlers/webpack-browser-custom-output/src/index.js:
--------------------------------------------------------------------------------
1 | export { PrismaClient } from '../prisma/custom-prisma'
2 |
3 |
--------------------------------------------------------------------------------
/community-generators/prisma-nestjs-graphql/.gitignore:
--------------------------------------------------------------------------------
1 | prisma-nestjs-graphql/prisma/*
2 | prisma-nestjs-graphql/user/*
--------------------------------------------------------------------------------
/core-features/studio/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | preset: 'ts-jest',
3 | testEnvironment: 'node',
4 | };
--------------------------------------------------------------------------------
/databases/digitalocean-pgbouncer/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas-sharded/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/databases/mongodb-azure-cosmosdb/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/databases/sqlserver-azure-sql/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/driver-adapters/neon-node-basic/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/driver-adapters/turso-node-basic/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/frameworks/nextjs/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/migrate/db-seed-commonjs-pkg/README.md:
--------------------------------------------------------------------------------
1 | # db seed
2 |
3 | This example runs a simple test in a commonjs project.
4 |
--------------------------------------------------------------------------------
/packagers/npm-global/README.md:
--------------------------------------------------------------------------------
1 | # npm package manager
2 |
3 | Tests global install of `prisma` package with `npm`.
4 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs-caching/script.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | # to be replaced in tests
4 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-windows/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | *.js
3 | *.js.map
4 | *.zip
5 | *.env
6 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github-with-nextjs-caching/script.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | # to be replaced in tests
4 |
--------------------------------------------------------------------------------
/platforms-serverless/serverless-framework-lambda/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | npx ts-node test.ts
6 |
--------------------------------------------------------------------------------
/bundlers/webpack-browser-custom-output/README.md:
--------------------------------------------------------------------------------
1 | # Webpack
2 |
3 | [https://webpack.js.org/](https://webpack.js.org/)
4 |
--------------------------------------------------------------------------------
/databases-macos/sqlserver-azure-sql/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas-serverless/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/dataproxy/vercel-cli-serverless-functions/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | .env.build
3 | public/
4 | deployment-url.txt
5 | .vercel
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-node-basic/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-node-basic/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-node-basic/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/frameworks/nextjs/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
8 | pnpm build
9 |
--------------------------------------------------------------------------------
/libraries/apollo-server/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 | pnpm tsc
8 |
--------------------------------------------------------------------------------
/libraries/type-graphql/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 | pnpm tsc
8 |
--------------------------------------------------------------------------------
/packagers/pnpm/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm exec prisma generate
7 | pnpm exec prisma -v
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/packages/sub-project-2/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | yarn ts-node src/index.ts
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-cli/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | .env.build
3 | public/
4 | .vercel
5 | deployment-url.txt
6 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-cli/.gitignore:
--------------------------------------------------------------------------------
1 | functions-build
2 | .netlify/build
3 | .env
4 | functions/generated/
5 | .envrc
--------------------------------------------------------------------------------
/core-features/browser-build/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
--------------------------------------------------------------------------------
/core-features/studio/prisma/dev.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/core-features/studio/prisma/dev.db
--------------------------------------------------------------------------------
/engines/engine-types/prisma/dev.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/engines/engine-types/prisma/dev.db
--------------------------------------------------------------------------------
/frameworks/sveltekit/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
8 | pnpm build
9 |
--------------------------------------------------------------------------------
/packagers/yarn3-without-pnp/.gitignore:
--------------------------------------------------------------------------------
1 | .yarn/*
2 | !.yarn/releases
3 | !.yarn/plugins
4 | !.yarn/sdks
5 | !.yarn/versions
6 |
--------------------------------------------------------------------------------
/platforms-serverless/firebase-functions/functions/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | index.js
3 | index.js.map
4 | index.js.bak
5 |
--------------------------------------------------------------------------------
/test-runners/jest-with-multiple-generators/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "lib": ["ESNext", "DOM"],
4 | "esModuleInterop": true
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/core-features/browser-build/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
8 | pnpm build
9 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer-buildpack/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm heroku logs -a e2e-buildpack-pgbouncer
6 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-custom-output/workspace/pnpm-workspace.yaml:
--------------------------------------------------------------------------------
1 | packages:
2 | - 'sub-project-1'
3 | - 'sub-project-2'
4 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/workspace/pnpm-workspace.yaml:
--------------------------------------------------------------------------------
1 | packages:
2 | - 'sub-project-1'
3 | - 'sub-project-2'
4 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-node-builder/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | .env.build
3 | public/
4 | deployment-url.txt
5 | .vercel
6 |
--------------------------------------------------------------------------------
/platforms/aws-graviton/code/keep.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/platforms/aws-graviton/code/keep.db
--------------------------------------------------------------------------------
/platforms/codesandbox/prisma/dev.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/platforms/codesandbox/prisma/dev.db
--------------------------------------------------------------------------------
/platforms/m1-macstadium/code/keep.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/platforms/m1-macstadium/code/keep.db
--------------------------------------------------------------------------------
/bundlers/webpack/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 | rm -rf dist/
8 | pnpm webpack
9 |
--------------------------------------------------------------------------------
/dataproxy/nodejs/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs build'
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | pnpm prisma generate $PRISMA_GENERATE_FLAG
8 |
--------------------------------------------------------------------------------
/frameworks/sveltekit/static/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/frameworks/sveltekit/static/favicon.png
--------------------------------------------------------------------------------
/platforms-serverless/firebase-functions/.firebaserc:
--------------------------------------------------------------------------------
1 | {
2 | "projects": {
3 | "default": "prisma-e2e-tests-265911"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/platforms-serverless/serverless-framework-lambda/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | *.js
3 | *.js.map
4 | *.zip
5 | *.env
6 | .serverless
7 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs-caching/script1.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # do nothing here to trigger the caching error message
4 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "semi": false,
3 | "singleQuote": true,
4 | "trailingComma": "all",
5 | "printWidth": 120,
6 | "tabWidth": 2
7 | }
8 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-tracing/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs build'
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-tracing/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | pnpm prisma generate $PRISMA_GENERATE_FLAG
8 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl/query-engine.txt:
--------------------------------------------------------------------------------
1 | libc.musl-x86_64.so.1
2 | libcrypto.so.1.1
3 | libgcc_s.so.1
4 | libssl.so.1.1
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libc.musl-x86_64.so.1
2 | libcrypto.so.1.1
3 | libgcc_s.so.1
4 | libssl.so.1.1
5 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github-with-nextjs-caching/script1.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # do nothing here to trigger the caching error message
4 |
--------------------------------------------------------------------------------
/platforms/codesandbox/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "lib": ["ESNext", "DOM"],
4 | "esModuleInterop": true
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | If you have a security issue to report, please contact us at [security@prisma.io](mailto:security@prisma.io).
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-logs/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs build'
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-logs/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | pnpm prisma generate $PRISMA_GENERATE_FLAG
8 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-logs/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs build'
4 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-arm64-openssl-1.1.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.1.1
2 | libc.so
3 | libgcc_s.so.1
4 | libssl.so.1.1
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-arm64-openssl-3.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.3
2 | libc.so
3 | libgcc_s.so.1
4 | libssl.so.3
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-arm64-openssl-3.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.3
2 | libc.so
3 | libgcc_s.so.1
4 | libssl.so.3
5 |
--------------------------------------------------------------------------------
/frameworks/nestjs/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4 | }
5 |
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/prisma-project/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | yarn prisma generate
6 | yarn ts-node ./script.ts
7 | yarn prisma -v
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/packages/sub-project-1/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | yarn pnpify prisma generate
6 | yarn pnpify prisma -v
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-node-builder/vercel.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 2,
3 | "builds": [{ "src": "*.js", "use": "@vercel/node" }]
4 | }
5 |
--------------------------------------------------------------------------------
/bundlers/webpack-browser-custom-output/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 | rm -rf dist/
8 | pnpm webpack
9 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mysql-itx/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs-mysql-itx build'
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-logs/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | pnpm prisma generate $PRISMA_GENERATE_FLAG
8 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-arm64-openssl-1.1.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.1.1
2 | libc.so
3 | libgcc_s.so.1
4 | libssl.so.1.1
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-openssl-3.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libc.musl-x86_64.so.1
2 | libcrypto.so.3
3 | libgcc_s.so.1
4 | libssl.so.3
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-openssl-3.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libc.musl-x86_64.so.1
2 | libcrypto.so.3
3 | libgcc_s.so.1
4 | libssl.so.3
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | libc.musl-x86_64.so.1
2 | libcrypto.so.1.1
3 | libgcc_s.so.1
4 | libssl.so.1.1
5 |
--------------------------------------------------------------------------------
/migrate/db-seed-esm-pkg/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm prisma db pull --print
6 |
7 | pnpm prisma db seed
8 |
9 | pnpm test
10 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/.gitignore:
--------------------------------------------------------------------------------
1 | .yarn
2 | !.yarn/releases
3 | !.yarn/plugins
4 | !.yarn/sdks
5 | !.yarn/versions
6 | .pnp.cjs
7 | .yarnrc.yml
8 |
--------------------------------------------------------------------------------
/platforms-serverless/gcp-functions/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | *.js
3 | *.js.map
4 | *.zip
5 | *.env
6 | # google service account secret
7 | key.json
8 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-cli/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | echo "TODO: Stream Netlify logs (when available via https://github.com/netlify/cli/issues/119 )"
--------------------------------------------------------------------------------
/platforms/codesandbox/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | npm install
6 | npm run deploy
7 | echo "https://$(cat sandbox_id).sse.codesandbox.io/"
8 |
--------------------------------------------------------------------------------
/community-generators/prisma-dbml-generator/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | rm ./dbml/schema.dbml || true
7 | pnpm prisma generate
8 |
--------------------------------------------------------------------------------
/community-generators/prisma-nestjs-graphql/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | rm -fr ./prisma-nestjs-graphql
7 | pnpm prisma generate
8 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer-buildpack/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "esModuleInterop": true,
4 | "lib": ["ESNext", "dom"]
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-itx/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs-mongodb-itx build'
4 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/dataproxy/vercel-edge-functions/public/favicon.ico
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-arm64-openssl-3.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.3
2 | libc.so
3 | libgcc_s.so.1
4 | libssl.so.3
5 |
--------------------------------------------------------------------------------
/frameworks/sveltekit/src/prisma.ts:
--------------------------------------------------------------------------------
1 | import { PrismaClient } from '@prisma/client'
2 |
3 | export let prisma: PrismaClient
4 |
5 | prisma = new PrismaClient()
6 |
--------------------------------------------------------------------------------
/migrate/db-seed-commonjs-pkg/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm prisma db pull --print
6 |
7 | pnpm prisma db seed
8 |
9 | pnpm test
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | **/migrations/
2 | **/node_modules/
3 | dev.db
4 | failed-*.md
5 | *.log
6 | .netlify/
7 | .env
8 | *-tmp.txt
9 | infrastructure/
10 | .envrc
11 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mysql-itx/test/utils.ts:
--------------------------------------------------------------------------------
1 | const pkJson = require('../package.json')
2 |
3 | export const prismaClientVersion = pkJson.dependencies['@prisma/client']
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-itx/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs-postgresql-itx build'
4 |
--------------------------------------------------------------------------------
/driver-adapters/neon-node-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters neon-node-basic'
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-vercel-nextjs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/driver-adapters/neon-vercel-nextjs/public/favicon.ico
--------------------------------------------------------------------------------
/driver-adapters/turso-vercel-nextjs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/driver-adapters/turso-vercel-nextjs/public/favicon.ico
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-arm64-openssl-1.1.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.1.1
2 | libc.so
3 | libgcc_s.so.1
4 | libssl.so.1.1
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-musl-openssl-3.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | libc.musl-x86_64.so.1
2 | libcrypto.so.3
3 | libgcc_s.so.1
4 | libssl.so.3
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-1.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libc.so.6
2 | libdl.so.2
3 | libgcc_s.so.1
4 | libm.so.6
5 | libpthread.so.0
6 | librt.so.1
7 |
--------------------------------------------------------------------------------
/generic/basic/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | export DEBUG="*"
6 | export RUST_BACKTRACE=full
7 |
8 | pnpm install
9 | pnpm prisma generate
10 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs-caching/script2.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # to check that manual command removes caching error
4 | pnpm prisma generate
5 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github-with-nextjs-caching/script2.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # to check that manual command removes caching error
4 | pnpm prisma generate
5 |
--------------------------------------------------------------------------------
/core-features/auto-reconnect/README.md:
--------------------------------------------------------------------------------
1 | # auto-reconnect
2 |
3 | Tests the automated reconnect behavior of Prisma when a query is executed after an explicit `$disconnect`
--------------------------------------------------------------------------------
/dataproxy/nodejs-cockroachdb-itx/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy nodejs-cockroachdb-itx build'
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-itx/test/utils.ts:
--------------------------------------------------------------------------------
1 | const pkJson = require('../package.json')
2 |
3 | export const prismaClientVersion = pkJson.dependencies['@prisma/client']
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-itx/test/utils.ts:
--------------------------------------------------------------------------------
1 | const pkJson = require('../package.json')
2 |
3 | export const prismaClientVersion = pkJson.dependencies['@prisma/client']
4 |
--------------------------------------------------------------------------------
/driver-adapters/neon-lambda-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters neon-lambda-basic'
6 |
--------------------------------------------------------------------------------
/driver-adapters/turso-node-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters turso-node-basic'
6 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-1.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libc.so.6
2 | libdl.so.2
3 | libgcc_s.so.1
4 | libm.so.6
5 | libpthread.so.0
6 | librt.so.1
7 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-1.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libc.so.6
2 | libdl.so.2
3 | libgcc_s.so.1
4 | libm.so.6
5 | libpthread.so.0
6 | librt.so.1
7 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-1.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libc.so.6
2 | libdl.so.2
3 | libgcc_s.so.1
4 | libm.so.6
5 | libpthread.so.0
6 | librt.so.1
7 |
--------------------------------------------------------------------------------
/platforms/codesandbox/sandbox.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "template": "node",
3 | "container": {
4 | "port": 3000,
5 | "node": "16"
6 | },
7 | "node": "16"
8 | }
9 |
--------------------------------------------------------------------------------
/test-runners/jest-with-multiple-generators/prisma/keep.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/test-runners/jest-with-multiple-generators/prisma/keep.db
--------------------------------------------------------------------------------
/dataproxy/nodejs-cockroachdb-itx/test/utils.ts:
--------------------------------------------------------------------------------
1 | const pkJson = require('../package.json')
2 |
3 | export const prismaClientVersion = pkJson.dependencies['@prisma/client']
4 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-node-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters neon-http-node-basic'
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-vercel-nextjs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/driver-adapters/neon-http-vercel-nextjs/public/favicon.ico
--------------------------------------------------------------------------------
/driver-adapters/postgresql-vercel-nextjs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/driver-adapters/postgresql-vercel-nextjs/public/favicon.ico
--------------------------------------------------------------------------------
/driver-adapters/turso-lambda-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters turso-lambda-basic'
6 |
--------------------------------------------------------------------------------
/frameworks/sveltekit/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /build
4 | /.svelte-kit
5 | /package
6 | .env
7 | .env.*
8 | !.env.example
9 | .vercel_build_output
10 |
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/README.md:
--------------------------------------------------------------------------------
1 | # Yarn workspaces
2 |
3 | Tests `yarn` using yarn's workspace functionality, using a top-level lockfile
4 | and a Prisma sub-project.
5 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cd packages/sub-project-1 && sh test.sh &&
6 | cd ../../packages/sub-project-2 && sh test.sh
7 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "timonwong.shellcheck",
4 | "prisma.prisma",
5 | "cschleiden.vscode-github-actions"
6 | ]
7 | }
--------------------------------------------------------------------------------
/bundlers/parcel/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 | rm -rf dist/
8 | NODE_ENV=production pnpm parcel src/index.js --target node
9 |
--------------------------------------------------------------------------------
/bundlers/rollup/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 | rm -rf dist/
8 | pnpm rollup src/index.js --file dist/index.js --format cjs
9 |
--------------------------------------------------------------------------------
/community-generators/prisma-dbml-generator/README.md:
--------------------------------------------------------------------------------
1 | # Prisma DBML Generator
2 |
3 | Test for [Prisma DBML Generator](https://notiz.dev/blog/prisma-dbml-generator#dbml-generator)
4 |
--------------------------------------------------------------------------------
/community-generators/prisma-json-schema-generator/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 | rm ./json-schema/json-schema.json || true
7 | pnpm prisma generate
8 |
--------------------------------------------------------------------------------
/core-features/studio/README.md:
--------------------------------------------------------------------------------
1 | # Studio
2 |
3 | This test launches Studio using the Prisma CLI. It does so by individually testing Studio's frontend and backend in two separate tests.
--------------------------------------------------------------------------------
/databases/planetscale/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for database should query the database 1`] = `Array []`;
4 |
--------------------------------------------------------------------------------
/databases/supabase/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for database should query the database 1`] = `Array []`;
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | };
--------------------------------------------------------------------------------
/driver-adapters/neon-http-lambda-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters neon-http-lambda-basic'
6 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-node-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters planetscale-node-basic'
6 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-vercel-nextjs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/driver-adapters/planetscale-vercel-nextjs/public/favicon.ico
--------------------------------------------------------------------------------
/driver-adapters/postgresql-node-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters postgresql-node-basic'
6 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-cli/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm vercel logs e2e-vercel-api.vercel.app --token=$VERCEL_TOKEN --scope=$VERCEL_ORG_ID
6 |
7 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs/pages/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | const Home = (_) =>
Testing Prisma at /api
4 |
5 | export default Home
6 |
--------------------------------------------------------------------------------
/community-generators/prisma-nestjs-graphql/README.md:
--------------------------------------------------------------------------------
1 | # Prisma NestJS GraphQL Generator
2 |
3 | Test for [`prisma-nestjs-graphql`](https://github.com/unlight/prisma-nestjs-graphql)
4 |
--------------------------------------------------------------------------------
/driver-adapters/neon-vercel-nextjs/pages/index.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import React from 'react'
3 |
4 | const Home = (_) => Testing Prisma at /api
5 |
6 | export default Home
7 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-lambda-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters planetscale-lambda-basic'
6 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-lambda-basic/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests driver-adapters postgresql-lambda-basic'
6 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-1.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-1.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 |
--------------------------------------------------------------------------------
/packagers/npm-global/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | mkdir -p ~/.npm-global
4 | npm config set prefix '~/.npm-global'
5 | NPM_CONFIG_PREFIX=~/.npm-global
6 | PATH=~/.npm-global/bin:$PATH
7 |
--------------------------------------------------------------------------------
/databases/planetscale/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests databases planetscale run.sh'
6 | pnpm install
7 | pnpm prisma generate
8 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mysql-itx/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | ITX_PDP_MYSQL=$ITX_PDP_MYSQL_DATABASE_URL pnpm migrate-deploy
8 | pnpm generate-client
9 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-tracing/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | }
6 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-vercel-nextjs/pages/index.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import React from 'react'
3 |
4 | const Home = (_) => Testing Prisma at /api
5 |
6 | export default Home
7 |
--------------------------------------------------------------------------------
/driver-adapters/turso-vercel-nextjs/pages/index.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import React from 'react'
3 |
4 | const Home = (_) => Testing Prisma at /api
5 |
6 | export default Home
7 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-nextjs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/platforms-serverless-vercel/vercel-with-nextjs/public/favicon.ico
--------------------------------------------------------------------------------
/core-features/generate-client-install-npm/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cp -r ../_common/generate-client-install/* .
6 |
7 | npm install
8 |
9 | npx prisma generate
10 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-pnpm/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cp -r ../_common/generate-client-install/* .
6 |
7 | pnpm install
8 |
9 | pnpm prisma generate
10 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-yarn/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cp -r ../_common/generate-client-install/* .
6 |
7 | yarn install
8 |
9 | yarn prisma generate
10 |
--------------------------------------------------------------------------------
/databases/gcp-mysql-ssl/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for GCP MySQL SSL database should query the database 1`] = `Array []`;
4 |
--------------------------------------------------------------------------------
/databases/supabase-pool/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests databases supabase-pool build'
6 | pnpm install
7 | pnpm prisma generate
8 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-itx/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | ITX_PDP_MONGODB=$ITX_PDP_MONGODB_DATABASE_URL pnpm migrate-deploy
8 | pnpm generate-client
9 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-logs/jest.config.ts:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | }
6 |
--------------------------------------------------------------------------------
/dataproxy/vercel-cli-serverless-functions/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm vercel logs https://e2e-dataproxy-vercel-cli.vercel.app --token=$VERCEL_TOKEN --scope=$VERCEL_ORG_ID
6 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | };
--------------------------------------------------------------------------------
/driver-adapters/neon-vercel-nextjs/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm vercel logs e2e-driver-adapters-neon-vercel-nextjs.vercel.app --token=$VERCEL_TOKEN --scope=$VERCEL_ORG_ID
6 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-vercel-nextjs/pages/index.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import React from 'react'
3 |
4 | const Home = (_) => Testing Prisma at /api
5 |
6 | export default Home
7 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-vercel-nextjs/pages/index.js:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import React from 'react'
3 |
4 | const Home = (_) => Testing Prisma at /api
5 |
6 | export default Home
7 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-1.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/graphql.config.js:
--------------------------------------------------------------------------------
1 | const { getPaths } = require('@redwoodjs/internal')
2 |
3 | module.exports = {
4 | schema: getPaths().generated.schema,
5 | }
6 |
--------------------------------------------------------------------------------
/databases/cockroach-cloud/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for Cockroach Cloud database should query the database 1`] = `Array []`;
4 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests databases heroku-pgbouncer build'
6 | pnpm install
7 | pnpm prisma generate
8 |
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-module/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | };
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-service/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | };
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-logs/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | }
6 |
--------------------------------------------------------------------------------
/driver-adapters/turso-vercel-nextjs/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm vercel logs e2e-driver-adapters-turso-vercel-nextjs.vercel.app --token=$VERCEL_TOKEN --scope=$VERCEL_ORG_ID
6 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-3.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.3
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.3
9 |
--------------------------------------------------------------------------------
/frameworks/sveltekit/vite.config.js:
--------------------------------------------------------------------------------
1 | import { sveltekit } from '@sveltejs/kit/vite';
2 | import { defineConfig } from 'vite';
3 |
4 | export default defineConfig({
5 | plugins: [sveltekit()]
6 | });
7 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/.env.example:
--------------------------------------------------------------------------------
1 | # DATABASE_URL=file:./dev.db
2 | # TEST_DATABASE_URL=file:./.redwood/test.db
3 | # PRISMA_HIDE_UPDATE_MESSAGE=true
4 | # LOG_LEVEL=trace
5 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/web/public/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Rockyzsu/ecosystem-tests/dev/platforms-serverless-vercel/vercel-with-redwood/web/public/favicon.png
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/databases/gcp-postgresql-ssl/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for GCP Postgres SSL database should query the database 1`] = `Array []`;
4 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-itx/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | ITX_PDP_POSTGRESQL=$ITX_PDP_POSTGRESQL_DATABASE_URL pnpm migrate-deploy
8 | pnpm generate-client
9 |
--------------------------------------------------------------------------------
/driver-adapters/neon-http-vercel-nextjs/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm vercel logs e2e-driver-adapters-neon-http-vercel-nextjs.vercel.app --token=$VERCEL_TOKEN --scope=$VERCEL_ORG_ID
6 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-1.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-x86-64.so.2
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-3.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.3
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.3
9 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-3.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.3
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.3
9 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-1.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-x86-64.so.2
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-1.1.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.1.1
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.1.1
9 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-1.1.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.1.1
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.1.1
9 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-3.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.3
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.3
9 |
--------------------------------------------------------------------------------
/community-generators/prisma-json-schema-generator/README.md:
--------------------------------------------------------------------------------
1 | # Prisma JSON Schema Generator
2 |
3 | Test for [Prisma JSON Schema Generator](https://github.com/valentinpalkovic/prisma-json-schema-generator)
4 |
--------------------------------------------------------------------------------
/databases/planetscale/README.md:
--------------------------------------------------------------------------------
1 | # PlanetScale
2 |
3 | PlanetScale Database
4 |
5 | ## How to run this locally
6 |
7 | ### Environment Variables
8 |
9 | Set the env var `DATABASE_URL_PLANETSCALE`
10 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-cockroachdb-itx/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | ITX_PDP_COCKROACHDB=$ITX_PDP_COCKROACHDB_DATABASE_URL pnpm migrate-deploy
8 | pnpm generate-client
9 |
--------------------------------------------------------------------------------
/dataproxy/vercel-cli-serverless-functions/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | };
6 |
--------------------------------------------------------------------------------
/driver-adapters/planetscale-vercel-nextjs/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm vercel logs e2e-driver-adapters-planetscale-vercel-nextjs.vercel.app --token=$VERCEL_TOKEN --scope=$VERCEL_ORG_ID
6 |
--------------------------------------------------------------------------------
/driver-adapters/postgresql-vercel-nextjs/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm vercel logs e2e-driver-adapters-postgresql-vercel-nextjs.vercel.app --token=$VERCEL_TOKEN --scope=$VERCEL_ORG_ID
6 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-1.1.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.1.1
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.1.1
9 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-1.1.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | libcrypto.so.1.1
2 | libc.so.6
3 | libdl.so.2
4 | libgcc_s.so.1
5 | libm.so.6
6 | libpthread.so.0
7 | librt.so.1
8 | libssl.so.1.1
9 |
--------------------------------------------------------------------------------
/frameworks/nextjs/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm start &
6 | pid=$!
7 |
8 | sleep 5
9 |
10 | curl localhost:3000
11 |
12 | # TODO check for engine files
13 |
14 | kill $pid
15 |
--------------------------------------------------------------------------------
/core-features/browser-build/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm start &
6 | pid=$!
7 |
8 | sleep 5
9 |
10 | # TODO Test actual returned data
11 | curl localhost:3000
12 |
13 | kill $pid
14 |
--------------------------------------------------------------------------------
/dataproxy/deno/README.md:
--------------------------------------------------------------------------------
1 | # Deno
2 |
3 | Deploys a Prisma Client using the Data Proxy with Deno.
4 |
5 | ## How to run this
6 |
7 | ```sh
8 | source ./prepare.sh && ./run.sh && ./test.sh
9 | ```
10 |
11 |
--------------------------------------------------------------------------------
/dataproxy/deno/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | version=$( jq -r '.devDependencies.prisma' package.json )
6 |
7 | deno run -A --unstable npm:prisma@$version generate $PRISMA_GENERATE_FLAG
8 |
--------------------------------------------------------------------------------
/migrate/db-seed-esm-pkg/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 |
7 | # generate not needed, it will be done by db push
8 | # pnpm prisma generate
9 | pnpm prisma db push --force-reset
10 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/packages/sub-project-1/upgrade.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | # Set Yarn to berry
6 | yarn set version berry
7 |
8 | # To set Yarn to 3.x
9 | yarn set version 3.x
10 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/api/src/graphql/meta.sdl.js:
--------------------------------------------------------------------------------
1 | export const schema = gql`
2 | type Query {
3 | prismaVersion: String! @skipAuth
4 | files: [String!]! @skipAuth
5 | }
6 | `
7 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-linux/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0",
3 | "extensionBundle": {
4 | "id": "Microsoft.Azure.Functions.ExtensionBundle",
5 | "version": "[2.*, 3.0.0)"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-windows/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0",
3 | "extensionBundle": {
4 | "id": "Microsoft.Azure.Functions.ExtensionBundle",
5 | "version": "[2.*, 3.0.0)"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-install/.gitignore:
--------------------------------------------------------------------------------
1 | # these file were committed before .gitignore was created
2 | # useful to ignore files once copied to their test folder
3 | prisma
4 | index.test.js
5 | README.md
6 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas/README.md:
--------------------------------------------------------------------------------
1 | # MongoDB Atlas
2 |
3 | Prisma Client with MongoDB Atlas.
4 |
5 | ## How to run this locally
6 |
7 | ### Environment Variables
8 |
9 | Set the env var (`DATABASE_URL_DB_MONGODB_ATLAS`).
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-module/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | pnpm prisma generate $PRISMA_GENERATE_FLAG
8 |
9 | pnpm wrangler deploy | tee deployment-url.txt
10 |
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-service/run.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | pnpm prisma generate $PRISMA_GENERATE_FLAG
8 |
9 | pnpm wrangler deploy | tee deployment-url.txt
10 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-3.0.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libcrypto.so.3
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | libssl.so.3
9 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-3.0.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libcrypto.so.3
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | libssl.so.3
9 |
--------------------------------------------------------------------------------
/migrate/db-seed-commonjs-pkg/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm install
6 |
7 | # generate not needed, it will be done by db push
8 | # pnpm prisma generate
9 | pnpm prisma db push --force-reset
10 |
--------------------------------------------------------------------------------
/process-managers/pm2/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 | export DEBUG="*"
5 | pnpm install
6 | pnpm prisma generate
7 |
8 | pnpm pm2 start --name prisma-pm2 --interpreter node "./server.js" -f
9 | sleep 10
10 |
--------------------------------------------------------------------------------
/community-generators/typegraphql-prisma/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 |
7 | # see https://github.com/MichalLytek/typegraphql-prisma/issues/31
8 | SKIP_PRISMA_VERSION_CHECK=1 pnpm prisma generate
9 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-install-on-sub-project/.gitignore:
--------------------------------------------------------------------------------
1 | # these file were committed before .gitignore was created
2 | # useful to ignore files once copied to their test folder
3 | sub-project
4 | README.md
5 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-1.1.x/query-engine.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libcrypto.so.1.1
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | libssl.so.1.1
9 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-1.1.x/schema-engine.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libcrypto.so.1.1
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | libssl.so.1.1
9 |
--------------------------------------------------------------------------------
/generic/basic/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packagers/npm-global/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | prisma_version="$(cat ../../.github/prisma-version.txt)"
6 |
7 | npm install
8 | npm install -g prisma@${prisma_version}
9 | prisma generate
10 | prisma -v
--------------------------------------------------------------------------------
/packagers/npm/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packagers/pnpm/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packagers/yarn/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-linux/local.settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "IsEncrypted": false,
3 | "Values": {
4 | "FUNCTIONS_WORKER_RUNTIME": "node",
5 | "AzureWebJobsStorage": "{AzureWebJobsStorage}"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-windows/local.settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "IsEncrypted": false,
3 | "Values": {
4 | "FUNCTIONS_WORKER_RUNTIME": "node",
5 | "AzureWebJobsStorage": "{AzureWebJobsStorage}"
6 | }
7 | }
--------------------------------------------------------------------------------
/test-runners/jest-with-multiple-generators/README.md:
--------------------------------------------------------------------------------
1 | # prisma-4048
2 |
3 | An attempt to reproduce https://github.com/prisma/prisma/issues/4048
4 |
5 | ## Usage
6 |
7 | ```bash
8 | pnpm
9 | pnpm test
10 | ```
11 |
--------------------------------------------------------------------------------
/databases/supabase/README.md:
--------------------------------------------------------------------------------
1 | # Supabase
2 |
3 | Supabase Database
4 |
5 | ## How to run this locally
6 |
7 | The environment variable `DATABASE_URL_SUPAPABASE` should point to a Supabasedatabase (not using Connection Pooling).
8 |
--------------------------------------------------------------------------------
/dataproxy/vercel-cli-serverless-functions/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | DEPLOYMENT_URL=$( tail -n 1 deployment-url.txt )
6 |
7 | export DEPLOYMENT_URL
8 |
9 | echo $DEPLOYMENT_URL
10 |
11 | pnpm test
12 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-3.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libcrypto.so.3
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | libssl.so.3
9 |
--------------------------------------------------------------------------------
/libraries/express/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`should query graphql users 1`] = `
4 | Object {
5 | "users": Array [],
6 | }
7 | `;
8 |
--------------------------------------------------------------------------------
/platforms/m1-macstadium/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | ssh -tt -i ./server-key.pem administrator@207.254.29.83 "rm -rf /Users/administrator/e2e-tests/$GITHUB_JOB/$GITHUB_RUN_ID/$PRISMA_CLIENT_ENGINE_TYPE"
6 |
7 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/linux-arm64-openssl-1.1.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-aarch64.so.1
2 | libcrypto.so.1.1
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | libssl.so.1.1
9 |
--------------------------------------------------------------------------------
/packagers/npm-global/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/README.md:
--------------------------------------------------------------------------------
1 | # Yarn3 workspaces + PnP
2 |
3 | Tests `yarn` using yarn's workspace functionality and PnP, using a top-level
4 | lockfile and a Prisma sub-project generated and imported in another project.
5 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mysql-itx/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | testTimeout: 90000,
6 | maxWorkers: 1,
7 | }
8 |
--------------------------------------------------------------------------------
/packagers/yarn3-without-pnp/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-and-cli-install-via-global-cli/.gitignore:
--------------------------------------------------------------------------------
1 | # these file were committed before .gitignore was created
2 | # useful to ignore files once copied to their test folder
3 | prisma
4 | index.test.js
5 | README.md
6 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas-serverless/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas-sharded/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/databases/mongodb-azure-cosmosdb/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/databases/mongodb-digitalocean/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | if [ ! -f "ca-certificate.crt" ]; then
6 | echo "$MONGODB_DIGITALOCEAN_CERT" >> ca-certificate.crt
7 | fi
8 |
9 | pnpm install
10 | pnpm prisma generate
11 |
--------------------------------------------------------------------------------
/databases/mongodb-digitalocean/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-cockroachdb-itx/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | testTimeout: 90000,
6 | maxWorkers: 1,
7 | }
8 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-itx/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | testTimeout: 90000,
6 | maxWorkers: 1,
7 | }
8 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-itx/jest.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2 | module.exports = {
3 | preset: 'ts-jest',
4 | testEnvironment: 'node',
5 | testTimeout: 90000,
6 | maxWorkers: 1,
7 | }
8 |
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "workspaces": [
4 | "prisma-project"
5 | ],
6 | "dependencies": {
7 | "@prisma/client": "5.6.0-dev.58",
8 | "prisma": "5.6.0-dev.58"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-linux/.funcignore:
--------------------------------------------------------------------------------
1 | *.js.map
2 | *.ts
3 | .git*
4 | .vscode
5 | local.settings.json
6 | test
7 | node_modules
8 | !node_modules/@prisma/client
9 | !node_modules/.prisma
10 | !node_modules/@azure/functions
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer-buildpack/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | pnpm ts-node ../../utils/fetch-retry-and-confirm-version.ts --url https://e2e-buildpack-pgbouncer.herokuapp.com/ --prisma-version $(sh ../../utils/prisma_version.sh)
6 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-3.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-x86-64.so.2
2 | libcrypto.so.3
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | librt.so.1
9 | libssl.so.3
10 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-1.1.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-x86-64.so.2
2 | libcrypto.so.1.1
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | librt.so.1
9 | libssl.so.1.1
10 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/rhel-openssl-3.0.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-x86-64.so.2
2 | libcrypto.so.3
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | librt.so.1
9 | libssl.so.3
10 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-custom-output/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | cd workspace
6 |
7 | cp ../package.json sub-project-1
8 | cp ../package.json sub-project-2
9 |
10 | pnpm install
11 | pnpm -r run generate
12 | pnpm -r run v
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | cd workspace
6 |
7 | cp ../package.json sub-project-1
8 | cp ../package.json sub-project-2
9 |
10 | pnpm install
11 | pnpm -r run generate
12 | pnpm -r run v
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-windows/.funcignore:
--------------------------------------------------------------------------------
1 | *.js.map
2 | *.ts
3 | .git*
4 | .vscode
5 | local.settings.json
6 | test
7 | node_modules
8 | !node_modules/@prisma/client
9 | !node_modules/.prisma
10 | !node_modules/@azure/functions
--------------------------------------------------------------------------------
/platforms-serverless/gcp-functions/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | printf "%s" "$GCP_FUNCTIONS_SECRET" > key.json
6 | gcloud auth activate-service-account --key-file key.json
7 | gcloud config set project "$GCP_FUNCTIONS_PROJECT"
8 |
--------------------------------------------------------------------------------
/platforms/aws-graviton/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | ssh -tt -i ./server-key.pem ec2-user@ec2-54-209-135-27.compute-1.amazonaws.com "rm -rf /home/ec2-user/aws-graviton/$GITHUB_JOB/$GITHUB_RUN_ID/$PRISMA_CLIENT_ENGINE_TYPE"
6 |
7 |
--------------------------------------------------------------------------------
/engines/engine-native-deps/snapshots/debian-openssl-1.1.x/libquery_engine.so.node.txt:
--------------------------------------------------------------------------------
1 | ld-linux-x86-64.so.2
2 | libcrypto.so.1.1
3 | libc.so.6
4 | libdl.so.2
5 | libgcc_s.so.1
6 | libm.so.6
7 | libpthread.so.0
8 | librt.so.1
9 | libssl.so.1.1
10 |
--------------------------------------------------------------------------------
/migrate/db-seed-esm-pkg/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | // https://typestrong.org/ts-node/docs/imports/
3 | "compilerOptions": {
4 | "module": "ESNext",
5 | "moduleResolution": "Node",
6 | "esModuleInterop": true,
7 | "strict": true,
8 | },
9 | }
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/prisma-project/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/platforms-serverless/firebase-functions/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "firebase-functions",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "license": "MIT",
6 | "devDependencies": {
7 | "firebase-tools": "12.8.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/platforms/heroku/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | if [ "$PRISMA_CLIENT_ENGINE_TYPE" == "binary" ]; then
6 | pnpm heroku logs -a e2e-platforms-heroku-binary
7 | else
8 | pnpm heroku logs -a e2e-platforms-heroku
9 | fi
10 |
11 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -eu
4 |
5 | DEPLOYMENT_URL=$(cat deployment-url.txt | grep -Eo "(https.*$)" --color=never)
6 |
7 | export DEPLOYMENT_URL
8 |
9 | echo $DEPLOYMENT_URL
10 |
11 | pnpm test
12 |
--------------------------------------------------------------------------------
/platforms-serverless/lambda/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "exclude": [],
3 | "compilerOptions": {
4 | "sourceMap": true,
5 | "outDir": ".",
6 | "strict": true,
7 | "lib": ["esnext", "dom"],
8 | "esModuleInterop": true
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/platforms/codesandbox/prisma/.env:
--------------------------------------------------------------------------------
1 | # In order to test Node-API this is modified in `deploy.ts` to add the env var `PRISMA_CLIENT_ENGINE_TYPE`
2 | CI=1 # unfortunately does not seem to work
3 | PRISMA_TELEMETRY_INFORMATION="e2e-tests platform codesandbox .env"
4 |
--------------------------------------------------------------------------------
/databases-macos/sqlserver-azure-sql/README.md:
--------------------------------------------------------------------------------
1 | # SQL Server on Azure SQL (from MacOS)
2 |
3 | Prisma Client with SQL Server.
4 |
5 | ## How to run this locally
6 |
7 | Set the env var (`DATABASE_URL_DB_SQL_SERVER_AZURE_SQL`). The data should match the snapshot.
8 |
--------------------------------------------------------------------------------
/databases/sqlserver-aws-rds/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for mssql database should query the database 1`] = `
4 | Object {
5 | "email": "alice@prisma.io",
6 | "name": "Alice",
7 | }
8 | `;
9 |
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-module/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | DEPLOYMENT_URL=$(cat deployment-url.txt | grep -Eo "(https.*)\.workers\.dev$" --color=never)
6 |
7 | export DEPLOYMENT_URL
8 |
9 | echo $DEPLOYMENT_URL
10 |
11 | pnpm test
12 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-logs/README.md:
--------------------------------------------------------------------------------
1 | # Node.js MongoDB logging test
2 |
3 | Tests Prisma Client using the Data Proxy with Node.js.
4 |
5 | ## How to run this
6 |
7 | ```sh
8 | source ./prepare.sh && ./run.sh && ./test.sh && ./finally.sh
9 | ```
10 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/basic-features/typescript for more information.
6 |
--------------------------------------------------------------------------------
/frameworks/nestjs/test/jest-e2e.json:
--------------------------------------------------------------------------------
1 | {
2 | "moduleFileExtensions": ["js", "json", "ts"],
3 | "rootDir": ".",
4 | "testEnvironment": "node",
5 | "testRegex": ".e2e-spec.ts$",
6 | "transform": {
7 | "^.+\\.(t|j)s$": "ts-jest"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/libraries/apollo-server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "outDir": "dist",
4 | "rootDir": "src",
5 | "lib": ["esnext", "dom"],
6 | "esModuleInterop": true,
7 | "strict": true
8 | },
9 | "include": ["src/**/*"]
10 | }
11 |
--------------------------------------------------------------------------------
/migrate/db-seed-commonjs-pkg/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "outDir": "dist",
4 | "rootDir": "src",
5 | "esModuleInterop": true,
6 | "lib": ["esnext"],
7 | "strict": true,
8 | },
9 | "include": ["src/**/*"]
10 | }
11 |
--------------------------------------------------------------------------------
/platforms-serverless/gcp-functions/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "exclude": [],
3 | "compilerOptions": {
4 | "sourceMap": true,
5 | "outDir": ".",
6 | "strict": true,
7 | "lib": ["esnext", "dom"],
8 | "esModuleInterop": true
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/databases/sqlserver-azure-sql/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for mssql database should query the database 1`] = `
4 | Object {
5 | "email": "alice@prisma.io",
6 | "name": "Alice",
7 | }
8 | `;
9 |
--------------------------------------------------------------------------------
/dataproxy/cloudflare-workers-service/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | DEPLOYMENT_URL=$(cat deployment-url.txt | grep -Eo "(https.*)\.workers\.dev$" --color=never)
6 |
7 | export DEPLOYMENT_URL
8 |
9 | echo $DEPLOYMENT_URL
10 |
11 | pnpm test
12 |
--------------------------------------------------------------------------------
/frameworks/nestjs/src/main.ts:
--------------------------------------------------------------------------------
1 | import { NestFactory } from '@nestjs/core';
2 | import { AppModule } from './app.module';
3 |
4 | async function bootstrap() {
5 | const app = await NestFactory.create(AppModule);
6 | await app.listen(3000);
7 | }
8 | bootstrap();
9 |
--------------------------------------------------------------------------------
/databases-macos/sqlserver-azure-sql/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`tests for mssql database should query the database 1`] = `
4 | Object {
5 | "email": "alice@prisma.io",
6 | "name": "Alice",
7 | }
8 | `;
9 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-custom-output/workspace/sub-project-1/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-custom-output/workspace/sub-project-2/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/workspace/sub-project-1/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/workspace/sub-project-2/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | end_of_line = lf
7 | indent_size = 2
8 | indent_style = space
9 | insert_final_newline = true
10 | trim_trailing_whitespace = true
11 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/web/src/pages/WelcomePage/WelcomePage.stories.jsx:
--------------------------------------------------------------------------------
1 | import WelcomePage from './WelcomePage'
2 |
3 | const meta = {
4 | component: WelcomePage,
5 | }
6 |
7 | export default meta
8 |
9 | export const Primary = {}
10 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-linux/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | # This file is only run in CI
6 |
7 | # Note: see README about credentials
8 | az login --service-principal -u "$AZURE_SP_NAME" -p "$AZURE_SP_PASSWORD" --tenant "$AZURE_SP_TENANT"
9 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-windows/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | # This file is only run in CI
6 |
7 | # Note: see README about credentials
8 | az login --service-principal -u "$AZURE_SP_NAME" -p "$AZURE_SP_PASSWORD" --tenant "$AZURE_SP_TENANT"
9 |
--------------------------------------------------------------------------------
/bundlers/webpack-browser-custom-output/webpack.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | mode: 'production',
3 | output: {
4 | library: 'prismaTest',
5 | libraryTarget: 'umd',
6 | filename: 'prismaTest.js',
7 | globalObject: 'globalThis'
8 | }
9 | }
--------------------------------------------------------------------------------
/databases/mongodb-atlas-sharded/README.md:
--------------------------------------------------------------------------------
1 | # MongoDB Atlas (Sharded connection string)
2 |
3 | Prisma Client with MongoDB Atlas.
4 |
5 | ## How to run this locally
6 |
7 | ### Environment Variables
8 |
9 | Set the env var (`DATABASE_URL_DB_MONGODB_ATLAS_SHARDED`).
10 |
--------------------------------------------------------------------------------
/platforms-serverless/firebase-functions/functions/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "exclude": [],
3 | "compilerOptions": {
4 | "sourceMap": true,
5 | "outDir": ".",
6 | "strict": true,
7 | "lib": ["esnext", "dom"],
8 | "esModuleInterop": true
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/core-features/auto-reconnect/__snapshots__/index.test.js.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`Prisma Client should auto-reconnect after $disconnect 1`] = `Array []`;
4 |
5 | exports[`Prisma Client should auto-reconnect after $disconnect 2`] = `Array []`;
6 |
--------------------------------------------------------------------------------
/dataproxy/deno/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "deno",
3 | "license": "MIT",
4 | "dependencies": {
5 | "@prisma/client": "5.6.0-dev.58",
6 | "@prisma/extension-accelerate": "0.6.2"
7 | },
8 | "devDependencies": {
9 | "prisma": "5.6.0-dev.58"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/dataproxy/nodejs/README.md:
--------------------------------------------------------------------------------
1 | # Node.js
2 |
3 | Deploys a Prisma Client using the Data Proxy with Node.js.
4 |
5 | ## How to run this
6 |
7 | Set the necessary env vars first.
8 |
9 | ```sh
10 | source ./prepare.sh && ./run.sh && ./test.sh && ./finally.sh
11 | ```
12 |
13 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2-amd64-openssl-1.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: amazonlinux-2-amd64-openssl-1.0.x
2 |
3 | - Base Docker image: `amazonlinux:2`
4 | - OS: Amazon Linux 2
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib64/libssl.so.10`
7 | - Binary target: `rhel-openssl-1.0.x`
8 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-on-sub-project-yarn/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cd sub-project
6 |
7 | yarn test
8 |
9 | if [ ! -f "yarn.lock" ]; then
10 | echo "\`prisma generate\` should have produced a yarn.lock file"
11 | exit 1
12 | fi
13 |
14 |
--------------------------------------------------------------------------------
/databases/docker-pgbouncer/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | pnpm install
6 | pnpm prisma generate
7 |
8 | # Start database and import data
9 | docker-compose up -d
10 | sleep 30
11 | docker container exec -i $(docker-compose ps -q postgres) psql -U postgres < data.sql
12 |
--------------------------------------------------------------------------------
/docker/almalinux-8-amd64-openssl-1.1.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: almalinux-8-amd64-openssl-1.1.x
2 |
3 | - Base Docker image: `almalinux`
4 | - OS: Almalinux Stone Smilodon
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib64/libssl.so.1.1`
7 | - Binary target: `rhel-openssl-1.1.x`
8 |
--------------------------------------------------------------------------------
/docker/archlinux-latest-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: archlinux-latest-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `archlinux`
4 | - OS: Linux Arch
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/usr/lib/libssl.so.3`
7 | - Binary target: `linux-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/engines/engine-types/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | preset: 'ts-jest',
3 | testEnvironment: 'node',
4 | snapshotResolver: './jestSnapshotResolver.js',
5 | testTimeout: 100_000,
6 | modulePathIgnorePatterns: ['custom-engines'],
7 | globalSetup: './globalSetup.ts',
8 | }
9 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/api/jest.config.js:
--------------------------------------------------------------------------------
1 | // More info at https://redwoodjs.com/docs/project-configuration-dev-test-build
2 |
3 | const config = {
4 | rootDir: '../',
5 | preset: '@redwoodjs/testing/config/jest/api',
6 | }
7 |
8 | module.exports = config
9 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/web/jest.config.js:
--------------------------------------------------------------------------------
1 | // More info at https://redwoodjs.com/docs/project-configuration-dev-test-build
2 |
3 | const config = {
4 | rootDir: '../',
5 | preset: '@redwoodjs/testing/config/jest/web',
6 | }
7 |
8 | module.exports = config
9 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-install/index.test.js:
--------------------------------------------------------------------------------
1 | describe('prisma generate', () => {
2 | it('adds @prisma/client to package.json', async () => {
3 | const pkgjson = require('./package.json')
4 | expect(pkgjson.dependencies["@prisma/client"]).toBeTruthy()
5 | })
6 | })
7 |
--------------------------------------------------------------------------------
/databases/sqlserver-aws-rds/README.md:
--------------------------------------------------------------------------------
1 | # SQL Server on AWS RDS
2 |
3 | Prisma Client with SQL Server on AWS RDS.
4 |
5 | ## How to run this locally
6 |
7 | ### Environment Variables
8 |
9 | Set the env var (`DATABASE_URL_DB_SQL_SERVER_AWS_RDS`). The data should match the snapshot.
10 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-logs/README.md:
--------------------------------------------------------------------------------
1 | # Node.js
2 |
3 | Deploys a Prisma Client using the Data Proxy with Node.js.
4 |
5 | ## How to run this
6 |
7 | Set the necessary env vars first.
8 |
9 | ```sh
10 | source ./prepare.sh && ./run.sh && ./test.sh && ./finally.sh
11 | ```
12 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2-arm64-openssl-1.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: amazonlinux-2-arm64-openssl-1.0.x
2 |
3 | - Base Docker image: `amazonlinux:2`
4 | - OS: Amazon Linux 2
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib64/libssl.so.10`
7 | - Binary target: `linux-arm64-openssl-1.0.x`
8 |
--------------------------------------------------------------------------------
/libraries/apollo-server/src/context.ts:
--------------------------------------------------------------------------------
1 | import { PrismaClient } from '@prisma/client'
2 |
3 | const prisma = new PrismaClient()
4 |
5 | export interface Context {
6 | prisma: PrismaClient
7 | }
8 |
9 | export function createContext(): Context {
10 | return { prisma }
11 | }
12 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/packages/sub-project-1/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true,
8 | "types": ["node"]
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/packages/sub-project-2/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "sourceMap": true,
4 | "outDir": "dist",
5 | "strict": true,
6 | "lib": ["esnext", "dom"],
7 | "esModuleInterop": true,
8 | "types": ["node"]
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-on-sub-project-npm/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cd sub-project
6 |
7 | npm run test
8 |
9 | if [ ! -f "package-lock.json" ]; then
10 | echo "\`prisma generate\` should have produced a package-lock.json file"
11 | exit 1
12 | fi
13 |
--------------------------------------------------------------------------------
/core-features/generate-client-install-on-sub-project-pnpm/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | cd sub-project
6 |
7 | pnpm test
8 |
9 | if [ ! -f "pnpm-lock.yaml" ]; then
10 | echo "\`prisma generate\` should have produced a pnpm-lock.yaml file"
11 | exit 1
12 | fi
13 |
14 |
--------------------------------------------------------------------------------
/docker/almalinux-8-arm64-openssl-1.1.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: almalinux-8-arm64-openssl-1.1.x
2 |
3 | - Base Docker image: `almalinux`
4 | - OS: Almalinux Stone Smilodon
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib64/libssl.so.1.1`
7 | - Binary target: `linux-arm64-openssl-1.1.x`
8 |
--------------------------------------------------------------------------------
/docker/almalinux-latest-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: almalinux-latest-arm64-openssl-3.0.x
2 |
3 | - Base Docker image: `almalinux`
4 | - OS: Almalinux Stone Smilodon
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib64/libssl.so.3.0`
7 | - Binary target: `rhel-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-arm64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: alpine-3.17-arm64-openssl-3.0.x
2 |
3 | - Base Docker image: `node:lts-alpine3.17`
4 | - OS: Linux Alpine 3.17
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib/libssl.so.3`
7 | - Binary target: `linux-musl-arm64-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/docker/ubuntu-20.04-amd64-openssl-1.1.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: ubuntu-20.04-amd64-openssl-1.1.x
2 |
3 | - Base Docker image: `ubuntu`
4 | - OS: Linux Ubuntu 20.04
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib/x86_64-linux-gnu/libssl.so.3`
7 | - Binary target: `debian-openssl-1.1.x`
8 |
--------------------------------------------------------------------------------
/docker/ubuntu-22.04-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: ubuntu-22.04-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `ubuntu`
4 | - OS: Linux Ubuntu 22.04
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib/x86_64-linux-gnu/libssl.so.3`
7 | - Binary target: `debian-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github/finally.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # intentional space before closing bracket so clickable link is valid in CI
4 | # output - otherwise it is also linked and link is invalid
5 | echo "TODO: Read Netlify logs (when available via https://github.com/netlify/cli/issues/119 )"
--------------------------------------------------------------------------------
/core-features/_common/generate-client-install/README.md:
--------------------------------------------------------------------------------
1 | # Client Install on Generate
2 |
3 | Makes sure that `@prisma/client` is installed when it is not already present
4 | when running `prisma generate`. This is done by not installing the Prisma Client
5 | and then running `prisma generate`.
6 |
7 |
--------------------------------------------------------------------------------
/core-features/generate-client-and-cli-install-via-global-cli-no-lockfile-npm/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | if [ ! -f "package-lock.json" ]; then
6 | echo "\`prisma generate\` should have produced a package-lock.json file"
7 | exit 1
8 | fi
9 |
10 | npm install
11 | npm test
12 |
--------------------------------------------------------------------------------
/databases/mongodb-digitalocean/README.md:
--------------------------------------------------------------------------------
1 | # MongoDB at DigitalOcean
2 |
3 | Prisma Client with MongoDB at DigitalOcean.
4 |
5 | ## How to run this locally
6 |
7 | ### Environment Variables
8 |
9 | Set the env var (`DATABASE_URL_DB_MONGODB_DIGITALOCEAN`). The data should match the snapshot.
10 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-arm64-openssl-1.1.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: alpine-3.16-arm64-openssl-1.1.x
2 |
3 | - Base Docker image: `node:lts-alpine3.16`
4 | - OS: Linux Alpine 3.16
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib/libssl.so.1.1`
7 | - Binary target: `linux-musl-arm64-openssl-1.1.x`
8 |
--------------------------------------------------------------------------------
/docker/alpine-latest-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: alpine-latest-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `node:current-alpine`
4 | - OS: Linux Alpine (latest)
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib/libssl.so.3`
7 | - Binary target: `linux-musl-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/docker/ubuntu-latest-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: ubuntu-latest-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `ubuntu`
4 | - OS: Linux Ubuntu (latest)
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib/x86_64-linux-gnu/libssl.so.3`
7 | - Binary target: `debian-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/platforms/aws-graviton/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "aws-graviton",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "license": "MIT",
6 | "devDependencies": {
7 | "prisma": "5.6.0-dev.58"
8 | },
9 | "dependencies": {
10 | "@prisma/client": "5.6.0-dev.58"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/databases/sqlserver-azure-sql/README.md:
--------------------------------------------------------------------------------
1 | # SQL Server on Azure SQL
2 |
3 | Prisma Client with SQL Server on Azure SQL.
4 |
5 | ## How to run this locally
6 |
7 | ### Environment Variables
8 |
9 | Set the env var (`DATABASE_URL_DB_SQL_SERVER_AZURE_SQL`). The data should match the snapshot.
10 |
11 |
--------------------------------------------------------------------------------
/docker/almalinux-latest-arm64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: almalinux-latest-arm64-openssl-3.0.x
2 |
3 | - Base Docker image: `almalinux`
4 | - OS: Almalinux Stone Smilodon
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib64/libssl.so.3.0`
7 | - Binary target: `linux-arm64-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/frameworks/nextjs/README.md:
--------------------------------------------------------------------------------
1 | # Next.js
2 |
3 | This project uses Prisma Client in a [Next.js](https://nextjs.org/) site with [SSR](https://nextjs.org/docs/basic-features/pages#server-side-rendering) and [`getStaticProps`](https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation).
4 |
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "workspaces": [
4 | "packages/*"
5 | ],
6 | "packageManager": "yarn@3.6.4",
7 | "dependencies": {
8 | "@prisma/client": "5.6.0-dev.58",
9 | "prisma": "5.6.0-dev.58"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/platforms/m1-macstadium/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "m1-macstadium",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "license": "MIT",
6 | "devDependencies": {
7 | "prisma": "5.6.0-dev.58"
8 | },
9 | "dependencies": {
10 | "@prisma/client": "5.6.0-dev.58"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/test-runners/jest-with-multiple-generators/main.ts:
--------------------------------------------------------------------------------
1 | import { PrismaClient } from '@prisma/client'
2 |
3 | async function main() {
4 | const prisma = new PrismaClient()
5 |
6 | const data = await prisma.user.findMany()
7 | console.log(data)
8 | prisma.$disconnect()
9 | }
10 |
11 | main()
12 |
--------------------------------------------------------------------------------
/binaries/pkg/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pkg",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "license": "MIT",
6 | "devDependencies": {
7 | "pkg": "5.8.1",
8 | "prisma": "5.6.0-dev.58"
9 | },
10 | "dependencies": {
11 | "@prisma/client": "5.6.0-dev.58"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/core-features/studio/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "sqlite"
3 | url = env("DATABASE_FILE")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id Int @id
12 | name String
13 | email String
14 | }
15 |
--------------------------------------------------------------------------------
/databases/mongodb-azure-cosmosdb/README.md:
--------------------------------------------------------------------------------
1 | # MongoDB at Azure CosmosDB
2 |
3 | Prisma Client with MongoDB at Azure CosmosDB.
4 |
5 | ## How to run this locally
6 |
7 | ### Environment Variables
8 |
9 | Set the env var (`DATABASE_URL_DB_MONGODB_AZURE_COSMOSDB`). The data should match the snapshot.
10 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-tracing/README.md:
--------------------------------------------------------------------------------
1 | # Tracing with Data Proxy in Node.js
2 |
3 | Tests Prisma Client tracing using the Data Proxy with Node.js.
4 |
5 | ## How to run this
6 |
7 | Set the necessary env vars first.
8 |
9 | ```sh
10 | source ./prepare.sh && ./run.sh && ./test.sh && ./finally.sh
11 | ```
12 |
--------------------------------------------------------------------------------
/dataproxy/vercel-cli-serverless-functions/README.md:
--------------------------------------------------------------------------------
1 | # Vercel-CLI
2 |
3 | Deploys a Prisma Client using the Data Proxy on Vercel via the CLI.
4 |
5 | ## How to run this
6 |
7 | Set the necessary env vars first.
8 |
9 | ```sh
10 | source ./prepare.sh && ./run.sh && ./test.sh && ./finally.sh
11 | ```
12 |
--------------------------------------------------------------------------------
/docker/opensuse-tumbleweed-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: opensuse-tumbleweed-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `opensuse/tumbleweed`
4 | - OS: Linux OpenSuse Tumbleweed
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib64/libssl.so.3`
7 | - Binary target: `rhel-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/docker/redhat-ubi9-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: redhat-ubi9-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `registry.access.redhat.com/ubi9/nodejs-18`
4 | - OS: Linux RedHat UBI 9
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib64/libssl.so.3`
7 | - Binary target: `rhel-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/api/src/services/users/users.js:
--------------------------------------------------------------------------------
1 | import { db } from 'src/lib/db'
2 |
3 | export const users = () => {
4 | return db.user.findMany()
5 | }
6 |
7 | export const user = ({ id }) => {
8 | return db.user.findUnique({
9 | where: { id },
10 | })
11 | }
12 |
--------------------------------------------------------------------------------
/core-features/generate-client-and-cli-install-via-global-cli-yarn-lockfile/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | if [ -f "pnpm-lock.yaml" ] || [ -f "package-lock.json" ]; then
6 | echo "\`prisma generate\` should have produced a yarn.lock file only"
7 | exit 1
8 | fi
9 |
10 | yarn
11 | yarn test
12 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/pages/api/index.ts:
--------------------------------------------------------------------------------
1 | import type { NextApiRequest, NextApiResponse } from 'next'
2 |
3 | export default function handler(req: NextApiRequest, res: NextApiResponse) {
4 | res.setHeader('Content-Type', 'application/json')
5 | res.status(200).end(req.query['users'] as string)
6 | }
7 |
--------------------------------------------------------------------------------
/docker/ubuntu-latest-arm64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: ubuntu-latest-arm64-openssl-3.0.x
2 |
3 | - Base Docker image: `arm64v8/ubuntu`
4 | - OS: Linux Ubuntu (latest)
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib/aarch64-linux-gnu/libssl.so.3`
7 | - Binary target: `linux-arm64-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/core-features/browser-build/README.md:
--------------------------------------------------------------------------------
1 | # Browser-Build
2 |
3 | This project uses Prisma Client in a [Next.js](https://nextjs.org/) site with [SSR](https://nextjs.org/docs/basic-features/pages#server-side-rendering) and [`getStaticProps`](https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation).
--------------------------------------------------------------------------------
/core-features/generate-client-and-cli-install-via-global-cli-npm-lockfile/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | if [ -f "pnpm-lock.yaml" ] || [ -f "yarn.lock" ]; then
6 | echo "\`prisma generate\` should have produced a package-lock.json file only"
7 | exit 1
8 | fi
9 |
10 | npm install
11 | npm test
12 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/README.md:
--------------------------------------------------------------------------------
1 | # vercel-edge-functions
2 |
3 | Deploys a Prisma Client using the Data Proxy on Vercel Edge Functions.
4 |
5 | ## How to run this
6 |
7 | Set the necessary env vars first.
8 |
9 | ```sh
10 | source ./prepare.sh && ./run.sh && ./test.sh && ./finally.sh
11 | ```
12 |
13 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-arm64-openssl-1.1.x-with-libc/README.md:
--------------------------------------------------------------------------------
1 | # OS support: alpine-3.16-arm64-openssl-1.1.x-with-libc
2 |
3 | - Base Docker image: `node:lts-alpine3.16`
4 | - OS: Linux Alpine 3.16
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib/libssl.so.1.1`
7 | - Binary target: `linux-musl-arm64-openssl-1.1.x`
8 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2022-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: amazonlinux-2022-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `public.ecr.aws/amazonlinux/amazonlinux:2022`
4 | - OS: Amazon Linux 2022
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib64/libssl.so.3`
7 | - Binary target: `rhel-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/docker/debian-stretch-amd64-openssl-1.1.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: debian-stretch-amd64-openssl-1.1.x
2 |
3 | - Base Docker image: `node:lts-stretch-slim`
4 | - OS: Linux Debian Stretch
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/usr/lib/x86_64-linux-gnu/libssl.so.1.1`
7 | - Binary target: `debian-openssl-1.1.x`
8 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/api/src/graphql/users.sdl.js:
--------------------------------------------------------------------------------
1 | export const schema = gql`
2 | type User {
3 | id: String!
4 | email: String!
5 | name: String
6 | }
7 |
8 | type Query {
9 | users: [User!]! @skipAuth
10 | user(id: String!): User @skipAuth
11 | }
12 | `
13 |
--------------------------------------------------------------------------------
/bundlers/parcel/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/bundlers/rollup/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/bundlers/webpack/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/community-generators/typegraphql-prisma/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2018",
4 | "module": "commonjs",
5 | "lib": ["es2019", "esnext.asynciterable"],
6 | "experimentalDecorators": true,
7 | "emitDecoratorMetadata": true,
8 | "esModuleInterop": true
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-install-on-sub-project/sub-project/index.test.js:
--------------------------------------------------------------------------------
1 | describe('prisma generate', () => {
2 | it('adds @prisma/client to correct package.json', async () => {
3 | const pkgjson = require('./package.json')
4 | expect(pkgjson.dependencies["@prisma/client"]).toBeTruthy()
5 | })
6 | })
7 |
--------------------------------------------------------------------------------
/core-features/generate-client-and-cli-install-via-global-cli-pnpm-lockfile/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | if [ -f "package-lock.json" ] || [ -f "yarn.lock" ]; then
6 | echo "\`prisma generate\` should have produced a pnpm-lock.yaml file only"
7 | exit 1
8 | fi
9 |
10 | pnpm install
11 | pnpm test
12 |
--------------------------------------------------------------------------------
/docker/debian-bullseye-amd64-openssl-1.1.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: debian-bullseye-amd64-openssl-1.1.x
2 |
3 | - Base Docker image: `node:lts-bullseye-slim`
4 | - OS: Linux Debian Bullseye
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/usr/lib/x86_64-linux-gnu/libssl.so.1.1`
7 | - Binary target: `debian-openssl-1.1.x`
8 |
--------------------------------------------------------------------------------
/generic/basic/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/packagers/npm/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/packagers/pnpm/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/packagers/yarn/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/platforms/aws-graviton/code/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "sqlite"
7 | url = "file:./keep.db"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/platforms/codesandbox/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "sqlite"
3 | url = "file:./dev.db"
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/platforms/m1-macstadium/code/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "sqlite"
7 | url = "file:./keep.db"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | # See https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
2 |
3 | # These owners will be the default owners for everything in
4 | # the repo. Unless a later match takes precedence,
5 | * @janpio @Jolg42 @millsp @aqrln @SevInf @jkomyno
6 |
7 |
--------------------------------------------------------------------------------
/dataproxy/deno/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy deno build'
4 |
5 | # Install Deno CLI (not needed on GH Actions, only here for reference for local testing)
6 | # curl -fsSL https://deno.land/x/install/install.sh | sh
7 | # alias deno='/home/gitpod/.deno/bin/deno'
--------------------------------------------------------------------------------
/docker/amazonlinux-2022-arm64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: amazonlinux-2022-arm64-openssl-3.0.x
2 |
3 | - Base Docker image: `public.ecr.aws/amazonlinux/amazonlinux:2022`
4 | - OS: Amazon Linux 2022
5 | - Arch: arm64 (aarch64)
6 | - OpenSSL location: `/lib64/libssl.so.3`
7 | - Binary target: `linux-arm64-openssl-3.0.x`
8 |
--------------------------------------------------------------------------------
/frameworks/sveltekit/src/app.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
3 | // See https://kit.svelte.dev/docs/types#app
4 | // for information about these interfaces
5 | declare namespace App {
6 | // interface Locals {}
7 | // interface Platform {}
8 | // interface Session {}
9 | // interface Stuff {}
10 | }
11 |
--------------------------------------------------------------------------------
/libraries/express/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 | model User {
10 | id Int @default(autoincrement()) @id
11 | email String @unique
12 | name String?
13 | }
14 |
--------------------------------------------------------------------------------
/packagers/npm-global/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/platforms/m1-macstadium/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | echo "Disabling StrictHostKeyChecking"
6 | mkdir -p ~/.ssh
7 | ssh-keyscan 207.254.29.83 >> ~/.ssh/known_hosts
8 | echo "$SSH_KEY_M1_MACSTADIUM" > ./server-key.pem
9 |
10 | if test -f "./server-key.pem"; then
11 | chmod 600 ./server-key.pem
12 | fi
13 |
--------------------------------------------------------------------------------
/process-managers/pm2/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | # projects are run separately and so are their deps
2 | shared-workspace-lockfile=false
3 |
4 | # without this, installing one project installs all
5 | recursive-install=false
6 |
7 | # so client postinstall hook is not cached for all
8 | # https://github.com/pnpm/pnpm/releases/tag/v8.7.1
9 | side-effects-cache=false
10 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-install-on-sub-project/README.md:
--------------------------------------------------------------------------------
1 | # Client Install on Generate Sub Project
2 |
3 | Variant of `generate-client-install` that makes sure that the client is
4 | installed in the project where `pnpm prisma generate` is called, even if a
5 | `@prisma/client` has been found in a parent project folder.
6 |
--------------------------------------------------------------------------------
/packagers/yarn3-without-pnp/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mysql-itx/README.md:
--------------------------------------------------------------------------------
1 | # ITX Data Proxy MySQL
2 |
3 | Tests ITX on Data Proxy with MySQL
4 |
5 | ## Environment
6 |
7 | 1. `ITX_PDP_MYSQL_DATABASE_URL` - Migrate URL
8 | 2. `ITX_PDP_MYSQL` - Data Proxy URL
9 |
10 | ## Config
11 |
12 | To adjust the config for the tests please tweek the settings in `./config.ts`
13 |
--------------------------------------------------------------------------------
/engines/engine-types/globalSetup.ts:
--------------------------------------------------------------------------------
1 | import { getCustomEngines } from './utils'
2 |
3 | // globalSetup.ts
4 | export default async () => {
5 | /**
6 | * This is required as `beforeAll` does not work with `test.concurrent` {@link https://github.com/facebook/jest/issues/7997 (issue)}
7 | */
8 | await getCustomEngines()
9 | }
10 |
--------------------------------------------------------------------------------
/frameworks/nestjs/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/libraries/apollo-server/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id Int @default(autoincrement()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/libraries/type-graphql/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id Int @default(autoincrement()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/platforms-serverless-vercel/vercel-with-redwood/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.tabSize": 2,
3 | "files.trimTrailingWhitespace": true,
4 | "editor.formatOnSave": false,
5 | "editor.codeActionsOnSave": {
6 | "source.fixAll.eslint": true
7 | },
8 | "[prisma]": {
9 | "editor.formatOnSave": true
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/process-managers/pm2/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | pnpm pm2 stop 'prisma-pm2'
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | pnpm pm2 stop 'prisma-pm2'
16 |
--------------------------------------------------------------------------------
/frameworks/nextjs/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | age Int?
15 | }
16 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-linux/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "exclude": [],
3 | "include": [
4 | "func-placeholder/"
5 | ],
6 | "compilerOptions": {
7 | "sourceMap": true,
8 | "outDir": "func-placeholder/",
9 | "strict": true,
10 | "lib": ["esnext", "dom"],
11 | "esModuleInterop": true
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/community-generators/prisma-dbml-generator/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "sqlite"
3 | url = "file:dev.db"
4 | }
5 |
6 | generator client {
7 | provider = "prisma-dbml-generator"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-and-cli-install-via-global-cli/README.md:
--------------------------------------------------------------------------------
1 | # Client and CLI Install on Generate via Global CLI
2 |
3 | Makes sure that `prisma` and `@prisma/client` are installed when they are not
4 | already present when running `prisma generate`. This is done by installing the
5 | CLI globally and then running `prisma generate`.
6 |
--------------------------------------------------------------------------------
/core-features/auto-reconnect/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/databases/gcp-mysql-ssl/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "mysql"
3 | url = env("GCP_MYSQL_SSL_DB_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/databases/planetscale/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "mysql"
3 | url = env("DATABASE_URL_PLANETSCALE")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/databases/supabase/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL_SUPAPABASE")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-mongodb-itx/README.md:
--------------------------------------------------------------------------------
1 | # ITX Data Proxy MongoDB
2 |
3 | Tests ITX on Data Proxy with MongoDB
4 |
5 | ## Environment
6 |
7 | 1. `ITX_PDP_MONGODB_DATABASE_URL` - Migrate URL
8 | 2. `ITX_PDP_MONGODB` - Data Proxy URL
9 |
10 | ## Config
11 |
12 | To adjust the config for the tests please tweek the settings in `./config.ts`
13 |
--------------------------------------------------------------------------------
/dataproxy/vercel-edge-functions/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export PRISMA_TELEMETRY_INFORMATION='ecosystem-tests dataproxy vercel-edge-functions build'
4 |
5 | # we set the vercel project & organization environment variables
6 | export VERCEL_PROJECT_ID=$DATAPROXY_VERCEL_EDGE_FUNCTIONS_PROJECT_ID
7 | export VERCEL_ORG_ID=$VERCEL_ORG_ID
8 |
--------------------------------------------------------------------------------
/docker/almalinux-8-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/almalinux-8-arm64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-arm64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-amd64-openssl-3.0.x/README.md:
--------------------------------------------------------------------------------
1 | # OS support: alpine-3.17-amd64-openssl-3.0.x
2 |
3 | - Base Docker image: `node:lts-alpine3.17`
4 | - OS: Linux Alpine 3.17
5 | - Arch: amd64 (x86_64)
6 | - OpenSSL location: `/lib/libssl.so.3`
7 | - Binary target: `linux-musl-openssl-3.0.x`
8 |
9 | Linux Alpine 3.17+ upgraded to OpenSSL 3.
10 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-arm64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-latest-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2-amd64-openssl-1.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2-arm64-openssl-1.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/debian-bullseye-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/debian-buster-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/debian-latest-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/debian-latest-arm64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/debian-stretch-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/redhat-ubi9-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/ubuntu-20.04-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/ubuntu-22.04-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/ubuntu-latest-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/ubuntu-latest-arm64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/prisma-project/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/core-features/browser-build/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | age Int?
15 | }
16 |
--------------------------------------------------------------------------------
/docker/almalinux-latest-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/almalinux-latest-arm64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2022-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2022-arm64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/archlinux-latest-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/debian-bullseye-amd64-openssl-1.1.x-tls/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/opensuse-tumbleweed-amd64-openssl-3.0.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/platforms/aws-graviton/prepare.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | echo "Disabling StrictHostKeyChecking"
6 | mkdir -p ~/.ssh
7 | ssh-keyscan ec2-54-209-135-27.compute-1.amazonaws.com >> ~/.ssh/known_hosts
8 | echo "$SSH_KEY_GRAVITON" > ./server-key.pem
9 |
10 | if test -f "./server-key.pem"; then
11 | chmod 600 ./server-key.pem
12 | fi
13 |
--------------------------------------------------------------------------------
/bundlers/webpack-browser-custom-output/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("DATABASE_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | output = "./custom-prisma"
9 | }
10 |
11 | model User {
12 | id Int @id @default(autoincrement())
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/community-generators/prisma-dbml-generator/index.test.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs')
2 |
3 | describe('test dbml generator', () => {
4 | it('should produce same dbml for same Prisma schema', () => {
5 | const dbml = fs.readFileSync('./dbml/schema.dbml', {
6 | encoding: 'utf8',
7 | })
8 | expect(dbml).toMatchSnapshot()
9 | })
10 | })
11 |
--------------------------------------------------------------------------------
/databases/heroku-pgbouncer/README.md:
--------------------------------------------------------------------------------
1 | # Heroku PgBouncer
2 |
3 | Tests PgBouncer on Heroku, connection string has `pgbouncer=true` query param added.
4 |
5 | ## How to run this locally
6 |
7 | ### Environment variables
8 |
9 | The environment variable `DATABASE_HEROKU_PGBOUNCER_URL` should point to a Heroku postgres database that uses PgBouncer.
10 |
--------------------------------------------------------------------------------
/docker-unsupported/debian-buster-amd64-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker-unsupported/debian-latest-arm-openssl-1.1.x/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-arm64-openssl-1.1.x-with-libc/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-arm64-openssl-3.0.x-with-libc/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/generic/basic/README.md:
--------------------------------------------------------------------------------
1 | # Generic test
2 |
3 | This example runs a simple test script which locally runs CRUD actions against a remote postgres database.
4 |
5 | ## How to run this locally
6 |
7 | This project is a special case, since it's run with different configurations in
8 | CI, for example on different operating systems and using different node versions.
--------------------------------------------------------------------------------
/packagers/yarn3-workspaces-pnp/packages/sub-project-2/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "sub-project-2",
4 | "dependencies": {
5 | "sub-project-1": "workspace:packages/sub-project-1"
6 | },
7 | "devDependencies": {
8 | "@types/node": "16.18.60",
9 | "ts-node": "10.9.1",
10 | "typescript": "5.2.2"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/platforms-serverless/netlify-github/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("NETLIFY_BETA_PG_URL")
8 | }
9 |
10 |
11 | model User {
12 | id String @id @default(cuid())
13 | email String @unique
14 | name String?
15 | }
16 |
--------------------------------------------------------------------------------
/core-features/_common/generate-client-install/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/databases/cockroach-cloud/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "cockroachdb"
3 | url = env("DATABASE_URL_COACKROACH_CLOUD")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/databases/gcp-postgresql-ssl/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "postgresql"
3 | url = env("GCP_POSTGRESQL_SSL_DB_URL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-postgresql-itx/README.md:
--------------------------------------------------------------------------------
1 | # ITX Data Proxy PostgreSQL
2 |
3 | Tests ITX on Data Proxy with PostgreSQL
4 |
5 | ## Environment
6 |
7 | 1. `ITX_PDP_POSTGRESQL_DATABASE_URL` - Migrate URL
8 | 2. `ITX_PDP_POSTGRESQL` - Data Proxy URL
9 |
10 | ## Config
11 |
12 | To adjust the config for the tests please tweek the settings in `./config.ts`
13 |
--------------------------------------------------------------------------------
/docker/almalinux-8-amd64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/almalinux-8-arm64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-amd64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-arm64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-amd64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-arm64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-latest-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2-amd64-openssl-1.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2-arm64-openssl-1.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/debian-buster-amd64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/debian-latest-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/debian-latest-arm64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/debian-stretch-amd64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/redhat-ubi9-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/ubuntu-20.04-amd64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/ubuntu-22.04-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/ubuntu-latest-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/ubuntu-latest-arm64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/migrate/db-seed-esm-pkg/README.md:
--------------------------------------------------------------------------------
1 | # db seed
2 |
3 | This example runs a simple test in an ESM `"type": "module"` project.
4 |
5 | ### Notes
6 |
7 | ESM is fun, check this for picking into many errors that can pop up if not configured specifically:
8 | https://www.notion.so/prismaio/Project-is-a-module-ts-node-ESM-Whac-a-mole-game-42c9babb59f64f94a8ed2fb9c46c61aa
9 |
--------------------------------------------------------------------------------
/platforms-serverless/serverless-framework-lambda/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "exclude": [],
3 | "compilerOptions": {
4 | "sourceMap": true,
5 | "outDir": ".",
6 | "strict": true,
7 | "lib": ["esnext", "dom"],
8 | "esModuleInterop": true,
9 | // workaround for a type issue in lodash itself
10 | "skipLibCheck": true,
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/community-generators/prisma-json-schema-generator/schema.prisma:
--------------------------------------------------------------------------------
1 | generator jsonSchema {
2 | provider = "prisma-json-schema-generator"
3 | }
4 |
5 | datasource db {
6 | provider = "sqlite"
7 | url = "file:dev.db"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/community-generators/typegraphql-prisma/README.md:
--------------------------------------------------------------------------------
1 | # TypeGraphQL Prisma
2 |
3 | Test for [TypeGraphQL Prisma](https://github.com/MichalLytek/typegraphql-prisma)
4 |
5 | ## How to run this locally
6 |
7 | ### Skip Version Check
8 |
9 | ```env
10 | SKIP_PRISMA_VERSION_CHECK="true" # see https://github.com/MichalLytek/typegraphql-prisma/issues/31
11 | ```
12 |
13 |
--------------------------------------------------------------------------------
/databases/mongodb-atlas-serverless/README.md:
--------------------------------------------------------------------------------
1 | # MongoDB Atlas Serverless
2 |
3 | Prisma Client with MongoDB Atlas Serverless.
4 |
5 | ## How to run this locally
6 |
7 | ### Run tests
8 |
9 | Set the env var (`DATABASE_URL_DB_MONGODB_ATLAS_SERVERLESS`). The data should match the snapshot.
10 |
11 | ```shell script
12 | pnpm install
13 | sh run.sh
14 | ```
15 |
--------------------------------------------------------------------------------
/databases/sqlserver-aws-rds/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "sqlserver"
3 | url = env("DATABASE_URL_DB_SQL_SERVER_AWS_RDS")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/dataproxy/nodejs-cockroachdb-itx/README.md:
--------------------------------------------------------------------------------
1 | # ITX Data Proxy CockroachDB
2 |
3 | Tests ITX on Data Proxy with CockroachDB
4 |
5 | ## Environment
6 |
7 | 1. `ITX_PDP_COCKROACHDB_DATABASE_URL` - Migrate URL
8 | 2. `ITX_PDP_COCKROACHDB` - Data Proxy URL
9 |
10 | ## Config
11 |
12 | To adjust the config for the tests please tweek the settings in `./config.ts`
13 |
--------------------------------------------------------------------------------
/docker/almalinux-latest-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/almalinux-latest-arm64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2022-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/amazonlinux-2022-arm64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/archlinux-latest-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/debian-bullseye-amd64-openssl-1.1.x-tls/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/debian-bullseye-amd64-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/opensuse-tumbleweed-amd64-openssl-3.0.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/packagers/yarn-workspaces/prisma-project/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "prisma-project",
3 | "version": "0.0.0",
4 | "devDependencies": {
5 | "@types/node": "16.18.60",
6 | "prisma": "5.6.0-dev.58",
7 | "ts-node": "10.9.1",
8 | "typescript": "5.2.2"
9 | },
10 | "dependencies": {
11 | "@prisma/client": "5.6.0-dev.58"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/platforms-serverless/azure-functions-linux/create.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eux
4 |
5 | group="prisma-e2e-linux"
6 | storage="prismae2elinuxstorage" # only a-z0-9 in this string :(
7 |
8 | az group create --name "$group" --location westeurope
9 | az storage account create --name "$storage" --location westeurope --resource-group "$group" --sku Standard_LRS
10 |
--------------------------------------------------------------------------------
/platforms/heroku/prisma/schema-with-binary.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | engineType = "binary"
4 | }
5 |
6 | datasource db {
7 | provider = "postgresql"
8 | url = env("HEROKU_PG_URL")
9 | }
10 |
11 | model User {
12 | id String @id @default(cuid())
13 | email String @unique
14 | name String?
15 | }
16 |
--------------------------------------------------------------------------------
/databases/sqlserver-azure-sql/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | datasource db {
2 | provider = "sqlserver"
3 | url = env("DATABASE_URL_DB_SQL_SERVER_AZURE_SQL")
4 | }
5 |
6 | generator client {
7 | provider = "prisma-client-js"
8 | }
9 |
10 | model User {
11 | id String @id @default(cuid())
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/databases/supabase/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "supabase",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "license": "MIT",
6 | "devDependencies": {
7 | "jest": "28.1.3",
8 | "prisma": "5.6.0-dev.58"
9 | },
10 | "dependencies": {
11 | "@prisma/client": "5.6.0-dev.58"
12 | },
13 | "scripts": {
14 | "test": "jest"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/docker-unsupported/debian-latest-arm-openssl-1.1.x/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-3.16-arm64-openssl-1.1.x-with-libc/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/docker/alpine-3.17-arm64-openssl-3.0.x-with-libc/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -eu
4 |
5 | expected="[]"
6 | actual=$(curl localhost:3000)
7 |
8 | if [ "$expected" != "$actual" ]; then
9 | echo "expected '$expected', got '$actual'"
10 | docker stop $(docker ps -a -q)
11 | exit 1
12 | fi
13 |
14 | echo "result: $actual"
15 | docker stop $(docker ps -a -q)
16 |
--------------------------------------------------------------------------------
/frameworks/nestjs/src/app.controller.ts:
--------------------------------------------------------------------------------
1 | import { Controller, Get } from '@nestjs/common';
2 | import { AppService } from './app.service';
3 |
4 | @Controller()
5 | export class AppController {
6 | constructor(private readonly appService: AppService) {}
7 |
8 | @Get()
9 | getHello(): Promise {
10 | return this.appService.getHello();
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-custom-output/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | FILE1=sub-project-1/node_modules/.prisma/client/index.js
4 | FILE2=sub-project-2/node_modules/.prisma/client/index.js
5 |
6 | set -eux
7 |
8 | cd workspace
9 |
10 | if [ ! -f "$FILE1" ] || [ ! -f "$FILE2" ]; then
11 | echo "Client did not generate"; exit 1;
12 | fi;
13 |
14 | pnpm -r run cmd
15 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/workspace/sub-project-1/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------
/packagers/pnpm-workspaces-default-output/workspace/sub-project-2/prisma/schema.prisma:
--------------------------------------------------------------------------------
1 | generator client {
2 | provider = "prisma-client-js"
3 | }
4 |
5 | datasource db {
6 | provider = "postgresql"
7 | url = env("DATABASE_URL")
8 | }
9 |
10 | model User {
11 | id String @default(cuid()) @id
12 | email String @unique
13 | name String?
14 | }
15 |
--------------------------------------------------------------------------------