Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gajus/slonik
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v30.1.0
Choose a base ref
...
head repository: gajus/slonik
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v30.1.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Aug 5, 2022

  1. docs: correct zod example

    gajus committed Aug 5, 2022
    Copy the full SHA
    2c1672a View commit details

Commits on Aug 6, 2022

  1. Copy the full SHA
    3e16660 View commit details
Showing with 8 additions and 5 deletions.
  1. +2 −2 .README/RUNTIME_VALIDATION.md
  2. +2 −2 README.md
  3. +4 −1 src/factories/createPool.ts
4 changes: 2 additions & 2 deletions .README/RUNTIME_VALIDATION.md
Original file line number Diff line number Diff line change
@@ -39,8 +39,8 @@ With your knowledge of the database schema, define a zod object:

```ts
const personObject = z.object({
id: t.number,
name: t.string,
id: z.number(),
name: z.string(),
});
```

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1242,8 +1242,8 @@ With your knowledge of the database schema, define a zod object:

```ts
const personObject = z.object({
id: t.number,
name: t.string,
id: z.number(),
name: z.string(),
});
```

5 changes: 4 additions & 1 deletion src/factories/createPool.ts
Original file line number Diff line number Diff line change
@@ -58,7 +58,10 @@ export const createPool = async (
}

// This pool is only used to initialize the client.
const setupPool: PgPool = new Pool(poolConfiguration);
const setupPool: PgPool = new Pool({
...poolConfiguration,
max: 1,
});

const getTypeParser = await createTypeOverrides(
setupPool,