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
12 changes: 7 additions & 5 deletions content/200-orm/500-reference/325-prisma-config-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ Here is a simplified version of the `PrismaConfig` type:

```ts
export declare type PrismaConfig = {

// Whether features with an unstable API are enabled.
experimental: {
adapter: true,
externalTables: true,
studio: true,
adapter: boolean;
externalTables: boolean;
studio: boolean;
},

// The path to the schema file, or path to a folder that shall be recursively searched for *.prisma files.
Expand All @@ -68,7 +69,7 @@ export declare type PrismaConfig = {
// The Driver Adapter used for Prisma CLI.
adapter?: () => Promise<SqlMigrationAwareDriverAdapterFactory>;

// The configuration for Prisma Studio.
// Configuration for Prisma Studio.
studio?: {
adapter: () => Promise<SqlMigrationAwareDriverAdapterFactory>;
};
Expand All @@ -89,6 +90,7 @@ export declare type PrismaConfig = {
typedSql?: {
path: string;
};

};
```

Expand Down Expand Up @@ -486,4 +488,4 @@ You can specify a custom location for your config file when running Prisma CLI c

```terminal
prisma validate --config ./path/to/myconfig.ts
```
```
11 changes: 5 additions & 6 deletions content/250-postgres/100-introduction/200-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ prisma generate --no-engine
You can access Prisma Postgres with any ORM or database tool of your choice via [direct TCP connections](/postgres/database/direct-connections).

In order to get a direct TCP connection string, you need to:
1. open a project in your [Prisma Console](https://console.prisma.io) account (or create a new one)
1. navigate to a environment with an active Prisma Postgres instance
1. click the **API Keys** tab in the project's sidenav
1. click the **Create API key** button
1. in the popup, provide a **Name** for the API key and click **Create**
1. copy the connection string starting with `postgres://`, this is your direct TCP connection string
1. Navigate to your active Prisma Postgres instance.
1. Click the **API Keys** tab in the project's sidenav.
1. Click the **Create API key** button.
1. In the popup, provide a **Name** for the API key and click **Create**.
1. Copy the connection string starting with `postgres://`, this is your direct connection string.

Once you have the connection string, you can follow the setup docs for PostgreSQL of any ORM or database tool:

Expand Down
15 changes: 14 additions & 1 deletion content/250-postgres/100-introduction/250-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,21 @@ toc: true

It supports the following workflows:

- Schema migrations and queries (via [Prisma ORM](https://www.prisma.io/orm))
- Schema migrations and queries (via [Prisma ORM](https://www.prisma.io/orm) or any other ORM/database library)
- Connection pooling and caching (via [Prisma Accelerate](https://www.prisma.io/accelerate))
- Local database workflows via [`prisma dev`](/postgres/database/local-development)

## Usage metrics

You can view the following usage metrics in your Console Dashboard:

- Key metrics
- Estimated upcoming invoice
- Total storage used
- Total DBs
- Overall usage
- Cumulative operations
- Operations per day

## Billing

Expand Down
11 changes: 5 additions & 6 deletions content/250-postgres/300-database/650-direct-connections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metaTitle: "Direct connections (TCP)"
metaDescription: "Learn about connecting directly to your Prisma Postgres database via direct TCP."
tocDepth: 3
toc: true
sidebar_class_name: preview-badge
---

## Overview
Expand All @@ -18,11 +17,11 @@ If you connect to it via another tool, you can do so with a [direct connection s
In order to get a direct connection string, you need to:

1. Open a project in your [Prisma Console](https://console.prisma.io) account (or create a new one)
1. Navigate to a environment with an active Prisma Postgres instance
1. Click the **API Keys** tab in the project's sidenav
1. Click the **Create API key** button
1. In the popup, provide a **Name** for the API key and click **Create**
1. Copy the connection string starting with `postgres://`, this is your direct connection string
1. Navigate to your active Prisma Postgres instance.
1. Click the **API Keys** tab in the project's sidenav.
1. Click the **Create API key** button.
1. In the popup, provide a **Name** for the API key and click **Create**.
1. Copy the connection string starting with `postgres://`, this is your direct connection string.

## Connection string

Expand Down
Loading