Skip to content

Conversation

jkomyno
Copy link
Contributor

@jkomyno jkomyno commented Oct 11, 2025

This PR:

…amodel_to_connector" to bypass the fact that "psl::ValidatedSchema" isn't cloneable
@jkomyno jkomyno added this to the 6.18.0 milestone Oct 11, 2025
@Copilot Copilot AI review requested due to automatic review settings October 11, 2025 17:57
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the engine: 'classic' configuration in Prisma Config files by introducing a --datasource CLI flag to the schema-engine-cli that accepts a JSON-encoded object to override datasource URL-like attributes from the PSL datasource block.

Key changes:

  • Add --datasource CLI parameter for JSON-encoded datasource URL overrides
  • Update engine state initialization to accept and apply datasource URL overrides
  • Refactor datasource handling to support URL override functionality

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
schema-engine/cli/src/main.rs Adds CLI parameter for datasource URL overrides and updates engine initialization
schema-engine/core/src/state.rs Updates EngineState to accept datasource URL overrides and apply them during initialization
schema-engine/core/src/rpc.rs Updates RpcApi constructor to pass through datasource URL overrides
schema-engine/core/src/lib.rs Adds debug logging and refactors configuration handling
schema-engine/cli/Cargo.toml Adds psl dependency for DatasourceUrls type
psl/psl/src/lib.rs Exports DatasourceUrls type
psl/psl-core/src/lib.rs Exports DatasourceUrls type
psl/psl-core/src/configuration/env_vars.rs Adds deprecation comment for StringFromEnvVar
psl/psl-core/src/configuration/datasource.rs Defines DatasourceUrls struct and adds override method to Datasource

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

github-actions bot commented Oct 11, 2025

WASM Query Engine File Size

Engine This PR Base branch Diff
Postgres 2.191MiB 2.191MiB -11.000B
Postgres (gzip) 867.875KiB 867.881KiB -7.000B
Mysql 2.159MiB 2.159MiB -46.000B
Mysql (gzip) 854.557KiB 854.664KiB -109.000B
Sqlite 2.071MiB 2.071MiB -46.000B
Sqlite (gzip) 820.067KiB 820.102KiB -36.000B
SQL Server 2.130MiB 2.130MiB -46.000B
SQL Server (gzip) 845.555KiB 845.641KiB -88.000B
CockroachDB 2.213MiB 2.213MiB -11.000B
CockroachDB (gzip) 876.985KiB 876.964KiB 21.000B

WASM Query Compiler File Size

Engine This PR Base branch Diff
Postgres 1.859MiB 1.859MiB -20.000B
Postgres (gzip) 733.865KiB 733.869KiB -4.000B
Mysql 1.825MiB 1.825MiB -60.000B
Mysql (gzip) 722.241KiB 722.148KiB 95.000B
Sqlite 1.783MiB 1.783MiB -60.000B
Sqlite (gzip) 704.393KiB 704.437KiB -45.000B
SQL Server 1.856MiB 1.856MiB -60.000B
SQL Server (gzip) 735.138KiB 735.097KiB 42.000B
CockroachDB 1.884MiB 1.884MiB -20.000B
CockroachDB (gzip) 743.461KiB 743.478KiB -17.000B

Copy link

codspeed-hq bot commented Oct 13, 2025

CodSpeed Performance Report

Merging #5645 will not alter performance

Comparing feat/add-support-for-engine-classic-in-prisma-config (7290118) with main (9bf76db)

Summary

✅ 11 untouched

@jkomyno jkomyno merged commit 34b5a69 into main Oct 14, 2025
235 checks passed
@jkomyno jkomyno deleted the feat/add-support-for-engine-classic-in-prisma-config branch October 14, 2025 10:10
jkomyno added a commit to prisma/prisma that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants