Skip to content

Commit

Permalink
feat(client): interactive transactions (#8384)
Browse files Browse the repository at this point in the history
  • Loading branch information
millsp committed Aug 9, 2021
1 parent e8ef374 commit fe3d63c
Show file tree
Hide file tree
Showing 45 changed files with 2,716 additions and 2,601 deletions.
24 changes: 12 additions & 12 deletions packages/client/jest.config.js
Expand Up @@ -5,23 +5,23 @@ module.exports = {
coverageReporters: ['clover'],
coverageDirectory: 'src/__tests__/coverage',
modulePathIgnorePatterns: [
'build/',
'dist/',
'generator/',
'runtime/',
'@prisma',
'<rootDir>/dist/',
'<rootDir>/fixtures/',
'<rootDir>/generator-build/',
'<rootDir>/runtime/',
'<rootDir>/runtime-dist/',
'<rootDir>/sandbox/',
'<rootDir>/scripts/',
'<rootDir>/src/__tests__/benchmarks/',
'<rootDir>/src/__tests__/types/.*/test.ts',
'<rootDir>/src/__tests__/integration/happy/exhaustive-schema/generated-dmmf.ts',
'__helpers__/',
'node_modules/',
'index.ts',
'index.d.ts',
'index.js',
'index.test-d.ts',
'.bench.ts',
'__tests__/benchmarks/',
'__tests__/types/.*/test.ts',
'stack.js',
'runner.js',
'node_modules/',
'exhaustive-schema/generated-dmmf.ts',
'__helpers__',
],
collectCoverageFrom: ['src/**/*.ts', '!**/__tests__/**/*'],
snapshotSerializers: ['./helpers/jestSnapshotSerializer'],
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/__tests__/binaryEngine.test.ts
@@ -1,4 +1,4 @@
import { BinaryEngine } from '@prisma/engine-core/dist/BinaryEngine'
import { BinaryEngine } from '@prisma/engine-core'
import path from 'path'

describe('BinaryEngine', () => {
Expand Down
@@ -0,0 +1 @@
!dev.db
Binary file not shown.
@@ -0,0 +1,29 @@
datasource db {
provider = "sqlite"
url = "file:dev.db"
}

generator client {
provider = "prisma-client-js"
previewFeatures = ["interactiveTransactions"]
}

// / User model comment
model User {
id String @id @default(uuid())
email String @unique
// / name comment
name String?
posts Post[]
}

model Post {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
published Boolean
title String
content String?
authorId String?
author User? @relation(fields: [authorId], references: [id])
}

0 comments on commit fe3d63c

Please sign in to comment.