Skip to content

Commit

Permalink
Merge pull request #1028 from hayes/drizzle
Browse files Browse the repository at this point in the history
initial drizzle prototype
  • Loading branch information
hayes authored Jul 31, 2024
2 parents 25de554 + 307340a commit 637997a
Show file tree
Hide file tree
Showing 94 changed files with 8,672 additions and 95 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-dolphins-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pothos/plugin-drizzle': patch
---

Initial preview release
5 changes: 5 additions & 0 deletions .changeset/modern-chairs-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pothos/plugin-prisma': minor
---

Improve queryFromInfo typing
6 changes: 6 additions & 0 deletions .changeset/nervous-rabbits-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@pothos/plugin-errors': minor
'@pothos/plugin-prisma': minor
---

Use a shared directive name for defining indirect resolutions
4 changes: 2 additions & 2 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
image: mghayes/multi-postgres:v2
ports:
- '5455:5432'
env:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
POSTGRES_DB: tests
POSTGRES_MULTIPLE_DATABASES: tests,drizzle

# Set health checks to wait until postgres has started
options: >-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
image: mghayes/multi-postgres:v2
ports:
- '5455:5432'
env:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
POSTGRES_DB: tests
POSTGRES_MULTIPLE_DATABASES: tests,drizzle

# Set health checks to wait until postgres has started
options: >-
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ services:
ports:
- '5455:5432'

volumes:
- ./scripts/pg-init-scripts:/docker-entrypoint-initdb.d

environment:
POSTGRES_USER: prisma

POSTGRES_PASSWORD: prisma

POSTGRES_DB: tests
POSTGRES_MULTIPLE_DATABASES: tests,drizzle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import schema from './schema';

const server = createTestServer({
schema,
contextFactory: () => ({}),
context: () => ({}),
});

server.listen(3000, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import schema from './schema';

const server = createTestServer({
schema,
contextFactory: () => ({}),
context: () => ({}),
});

server.listen(3000, () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-complexity/tests/example/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import schema from './schema';

const server = createTestServer({
schema,
contextFactory: (): { complexity: ComplexityResult } => ({
context: (): { complexity: ComplexityResult } => ({
complexity: {
depth: 5,
breadth: 10,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-dataloader/tests/example/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import schema from './schema';

const server = createTestServer({
schema,
contextFactory: createContext,
context: createContext,
});

server.listen(3000, () => {
Expand Down
7 changes: 7 additions & 0 deletions packages/plugin-drizzle/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test
tests
.turbo
babel.config.js
jest.config.js
*.tsbuildinfo
tsconfig.*
6 changes: 6 additions & 0 deletions packages/plugin-drizzle/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ISC License (ISC)
Copyright 2021 Michael Hayes

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Loading

0 comments on commit 637997a

Please sign in to comment.