6 ms·
https://github.com/prisma/prisma/blob/main/packages/client/package.json#L122 https://github.com/prisma/prisma/blob/main/packages/client/p...
by kelvich 4y ago
https://github.com/prisma/prisma/blob/main/packages/client/package.json#L122 https://github.com/prisma/prisma/blob/main/packages/client/p...
- Sujan 4y agoThat is only used in tests :) The query engine uses this: https://github.com/prisma/quaint/blob/6532d69b5aec007ad06ac60a331c20af11f293fa/Cargo.toml#L149-L153 https://github.com/prisma/quaint/blob/6532d69b5aec007ad06ac6... (I work at Prisma, could have mentioned that earlier)
- kelvich 4y agoGotcha. I drew my conclusion based on the mentioned package.json. Now wonder why did you decide to go with rust for query engine? Do you compile it into wasm?
- Sujan 4y agoIt made sense at the time. We do not only support Node, but also have community Clients in Go, Python or Rust. Right now we are moving more and more parts from a Node-API library or binary engine (the two variants we support until now) over to Wasm modules where it is possible for our Node/TS/JS Client. Socket/TCP connections itself are unfortunately not supported yet, so this will only be partial. And maybe there is also a future where we support Node based databases drives. As this blog post we are commenting on shows, sometimes we have to combine the weirdest things together to achieve our goal.
- crubier 4y agoWhile you're here, I want to mention that I never understood why Prisma couples so much the query builder (which IMO is the really best part of Prisma) to the query engine / DB driver (which is not differentiated at all as a product). I have 1000 ideas of really insanely cool thing we could do if Prisma could just spit up SQL query strings, or at least connect to a custom driver.
- Sujan 4y agoPrisma often does multiple queries when getting some specific data, the first only leading to the second and so on. But we might very well get there one day. You are not the only one asking for this: https://github.com/prisma/prisma/issues/5052 https://github.com/prisma/prisma/issues/5052