Skip to content

Auto completion of directUrl #1359

Description

@janpio

Probably via

"dataSourceFields": [
{
"label": "provider",
"documentation": "Describes which datasource connector to use. Can be one of the following datasource providers: `postgresql`, `mysql`, `sqlserver`, `sqlite`, `mongodb` or `cockroachdb`."
},
{
"label": "url",
"documentation": "Connection URL including authentication info. Each datasource provider documents the URL syntax. Most providers use the syntax provided by the database [learn more](https://pris.ly/d/connection-strings)."
},
{
"label": "shadowDatabaseUrl",
"documentation": "Connection URL including authentication info to use for Migrate's [shadow database](https://pris.ly/d/migrate-shadow). Each datasource provider documents the URL syntax. Most providers use the syntax provided by the database."
},
{
"label": "relationMode",
"insertText": "relationMode = $0",
"documentation": "Set the global relation mode for all relations. Values can be either `\"foreignKeys\"` (Default), or `\"prisma\"`. [learn more](https://pris.ly/d/relationMode)",
"fullSignature": "relationMode = \"foreignKeys\" | \"prisma\")"
},
{
"label": "extensions",
"insertText": "extensions = [$0]",
"documentation": "Enable PostgreSQL extensions. [Learn More](https://pris.ly/d/postgresql-extensions)"
},
{
"label": "schemas",
"insertText": "schemas = [$0]",
"documentation": "The list of database schemas. [Learn More](https://pris.ly/d/multi-schema-configuration)"
}
],

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain/schemaIssue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.kind/featureA request for a new feature.topic: autocompletionLSP text document completion

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions