Crates.io | prisma-oxigen |
lib.rs | prisma-oxigen |
version | 1.0.0 |
source | src |
created_at | 2024-02-17 05:15:00.73066 |
updated_at | 2024-02-17 05:15:00.73066 |
description | Prisma Oxigen is a Rust crate designed to facilitate the creation of Prisma generators. It provides a set of utilities and abstractions to simplify the process of building custom generators for the Prisma ORM. |
homepage | https://github.com/emilio-toledo/prisma-oxigen |
repository | https://github.com/emilio-toledo/prisma-oxigen |
max_upload_size | |
id | 1143020 |
size | 33,952 |
prisma-oxigen is a comprehensive Rust package designed to seamlessly implement Prisma's JSONRPC Interface along with its types, providing essential helper functions to create Prisma generators effortlessly.
To use prisma-oxigen in your project, you will need to have Rust and Cargo installed on your system. If you don't have them installed, visit rust-lang.org to get started.
Add prisma-oxigen to your Cargo.toml
:
[dependencies]
prisma-oxigen = "1.0.0"
Then, run cargo build
to download and compile the package along with its dependencies.
prisma-oxigen allows you to extend Prisma by writing your custom generators. Generators are used to transform the Prisma schema into code or other outputs. Here's a skeleton to start writing a custom generator:
use prisma_oxigen::modules::oxigen::{generate_callback, generator::Generator, manifest_callback};
fn manifest(params: manifest_callback::Params) {
}
fn generate(params: generate_callback::Params) {
}
fn main() {
Generator::new(Some(manifest), Some(generate));
}
For more detailed information on the API and advanced usage, refer to the prisma-oxigen documentation page.
Contributions are welcome! Whether it's submitting a bug report, a feature request, or a pull request, all forms of contributions help improve prisma-oxigen.
prisma-oxigen is distributed under the terms of the Apache 2.0 license. See LICENSE for details.