-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add introspectSql command #4941
Conversation
CodSpeed Performance ReportMerging #4941 will not alter performanceComparing Summary
|
WASM Query Engine file Size
|
214bb3d
to
004522f
Compare
@@ -318,7 +318,7 @@ impl Connector for PostgresDatamodelConnector { | |||
DoublePrecision => ScalarType::Float, | |||
// Decimal | |||
Decimal(_) => ScalarType::Decimal, | |||
Money => ScalarType::Float, | |||
Money => ScalarType::Decimal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mapping was incorrect. I spotted it as we're using this function for native type tests
&mut self, | ||
_input: IntrospectSqlQueryInput, | ||
) -> BoxFuture<'_, ConnectorResult<IntrospectSqlQueryOutput>> { | ||
unreachable!() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: does the client gate the engine from being called at all?
|
||
let res = parse_sql_doc( | ||
r#" -- @description This query returns a user by it's id | ||
-- @param {Int} $1:userId valid user identifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about we accept typescript types instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even just supporting {Type | null}
using Prisma scalar types would be a considerable improvement, imho
Overview
closes https://github.com/prisma/team-orm/issues/1222
closes https://github.com/prisma/team-orm/issues/1248
Implements https://www.notion.so/prismaio/Typed-SQL-76c1b7999b74421eb59f921bab7e878a?pvs=4