Skip to content

skimhugo/prisma-client-rust

 
 

Repository files navigation

Prisma Client Rust

Type-safe database access for Rust

Latest version of Prisma Client Rust is 0.4.1 Latest supported Prisma version is 3.13.0 Test Status Link to latest Documentation files Prisma Client Rust uses GitHub Discussions as a place to chat and ask questions

Prisma Client Rust is an autogenerated query builder that provides simple and fully type-safe database access without macros or domain-specific languages. It is an alternative to ORMs like Diesel and SeaORM and tools like SQLx.

Why Prisma Client Rust?

For experienced Rust developers, Prisma Client Rust provides a much more consistent and understandable API than other ORMs, which typically hide a lot of code with macros - not that macros are bad, just that complex ones can be quite unwieldly to debug.

For developers looking to step away from NodeJS and create faster, more efficient applications, Prisma Client Rust harnesses existing tooling and terminology that Prisma Client JS users will be familiar with, making developing applications in Rust more approachable.

Also - perhaps for the first time - using Prisma in a frontend application is easy. Using Prisma Client Rust for a desktop application powered by Tauri allows the entire Prisma ecosystem to be used in developing desktop applications. (Though applying migrations to end users can be tricky - this will likely be improved)

Getting Started

Read the installation instructions to get started and setup the CLI.

For more general information about Prisma and its CLI, check out the official Prisma docs.

Support

If you have any questions, feel free to ask in a new discussion or ping me in the Prisma Slack @Brendan Allan

Versioning

Prisma Client Rust is not stable.

Breaking changes will be documented and released under a new MINOR version following this format.

MAJOR.MINOR.PATCH

There is no release schedule, as I work on this alone and can't guarantee updates.

Affiliation

Pirsma Client Rust is not an official Prisma product, only a community made layer on top of Prisma's engines.

Acknowledgements

  • steebchen and all other contributors to Prisma Client Go for writing a lot of code and documentation that Prisma Client Rust basically copies. Without Prisma Client Go, this project would not have even been attempted.
  • seunlanlege for their work on prisma-client-rs which was used while integrating Prisma's query engine crates.
  • Prisma for developing a brilliant and flexible open source ORM.
  • Robert Craige for writing tests for Prisma Client Python that I have adapted.

About

An autogenerated and fully type-safe database client for Prisma

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%