Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
754 changes: 0 additions & 754 deletions databases/cockroachdb/bun.lock

This file was deleted.

13 changes: 6 additions & 7 deletions databases/cockroachdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,23 @@
"author": "",
"main": "index.js",
"scripts": {
"start": "tsx ./src/script.ts",
"start": "ts-node ./src/script.ts",
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"@prisma/adapter-pg": "6.20.0-integration-next.3",
"@prisma/client": "6.20.0-integration-next.3",
"dotenv": "16.6.1",
"@prisma/client": "6.9.0",
"jest": "29.7.0"
},
"devDependencies": {
"@types/jest": "29.5.14",
"@types/node": "22.19.0",
"@types/prettyjson": "0.0.33",
"prettyjson": "1.2.5",
"prisma": "6.20.0-integration-next.3",
"prisma": "6.9.0",
"ts-jest": "29.4.5",
"tsx": "^4.20.6",
"ts-node": "10.9.2",
"ts-node-dev": "2.0.0",
"typescript": "5.8.2"
}
}
}
6 changes: 2 additions & 4 deletions databases/cockroachdb/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
generator client {
provider = "prisma-client"
output = "./generated"
engineType = "client"
provider = "prisma-client-js"
}

datasource db {
Expand All @@ -27,7 +25,7 @@ model Post {
authorId String
author User @relation(fields: [authorId], references: [id])
comments Comment[]
tags Tag[]
tags Tag[]
}

model Comment {
Expand Down
11 changes: 2 additions & 9 deletions databases/cockroachdb/src/script.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import { PrismaClient } from '../prisma/generated/client'
import { PrismaClient } from '@prisma/client'
import prettyjson from 'prettyjson'
import { PrismaPg } from '@prisma/adapter-pg'
import 'dotenv/config'

const adapter = new PrismaPg({
connectionString: process.env.DATABASE_URL,
})
const prisma = new PrismaClient({
adapter,
})
const prisma = new PrismaClient()

// A `main` function so that we can use async/await
async function main() {
Expand Down
11 changes: 2 additions & 9 deletions databases/cockroachdb/tests/prisma.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import { PrismaClient } from '../prisma/generated/client'
import { PrismaPg } from '@prisma/adapter-pg'
import 'dotenv/config'
import { PrismaClient } from '@prisma/client'

const adapter = new PrismaPg({
connectionString: process.env.DATABASE_URL,
})
export const prisma = new PrismaClient({
adapter,
})
export const prisma = new PrismaClient()

describe('example test with Prisma Client', () => {
beforeAll(async () => {
Expand Down
245 changes: 0 additions & 245 deletions databases/postgresql-supabase/bun.lock

This file was deleted.

18 changes: 10 additions & 8 deletions databases/postgresql-supabase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
"dev": "tsx script.ts",
"dev": "ts-node script.ts",
"test": "jest",
"test:watch": "jest --watch"
},
"devDependencies": {
"@types/node": "22.18.12",
"prisma": "6.20.0-integration-next.3",
"@types/node": "22.19.0",
"prisma": "6.9.0",
"supabase": "2.30.4",
"typescript": "5.8.2",
"tsx": "^4.20.6"
"ts-node": "10.9.2",
"typescript": "5.8.2"
},
"dependencies": {
"@prisma/adapter-pg": "6.20.0-integration-next.3",
"@prisma/client": "6.20.0-integration-next.3"
"@prisma/client": "6.9.0"
},
"prisma": {
"seed": "ts-node prisma/seed.ts"
}
}
}
12 changes: 0 additions & 12 deletions databases/postgresql-supabase/prisma.config.ts

This file was deleted.

8 changes: 3 additions & 5 deletions databases/postgresql-supabase/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client"
output = "./generated"
engineType = "client"
provider = "prisma-client-js"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
provider = "postgresql"
url = env("DATABASE_URL")
}

model User {
Expand Down
10 changes: 2 additions & 8 deletions databases/postgresql-supabase/prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { PrismaClient, Prisma } from './generated/client'
import {PrismaPg} from "@prisma/adapter-pg"
import { PrismaClient, Prisma } from '@prisma/client'

const adapter = new PrismaPg({
connectionString: process.env.DATABASE_URL,
})
const prisma = new PrismaClient({
adapter,
});
const prisma = new PrismaClient();

const userData = [
{
Expand Down
10 changes: 2 additions & 8 deletions databases/postgresql-supabase/script.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { PrismaClient } from './prisma/generated/client'
import {PrismaPg} from "@prisma/adapter-pg"
import { PrismaClient } from '@prisma/client'

const adapter = new PrismaPg({
connectionString: process.env.DATABASE_URL,
})
const prisma = new PrismaClient({
adapter,
});
const prisma = new PrismaClient();

async function main() {

Expand Down
158 changes: 0 additions & 158 deletions databases/prisma-postgres/bun.lock

This file was deleted.

Loading