Giter VIP home page Giter VIP logo

prisma-client-extensions's Introduction

Prisma Client Extension Examples

This repository contains a number of examples of Prisma Client extensions.

The extensions in this repository are provided as examples only, and without warranty. They are not intended to be used in production environments.

Examples

Example Description
audit-log-context Provides the current user's ID as context to Postgres audit log triggers
callback-free-itx Adds a method to start interactive transactions without callbacks
computed-fields Adds virtual / computed fields to result objects
input-transformation Transforms the input arguments passed to Prisma Client queries to filter the result set
input-validation Runs custom validation logic on input arguments passed to mutation methods
instance-methods Adds Active Record-like methods like save() and delete() to result objects
json-field-types Uses strongly-typed runtime parsing for data stored in JSON columns
model-filters Adds reusable filters that can composed into complex where conditions for a model
obfuscated-fields Prevents sensitive data (e.g. password fields) from being included in results
query-logging Wraps Prisma Client queries with simple query timing and logging
readonly-client Creates a client that only allows read operations
retry-transactions Adds a retry mechanism to transactions with exponential backoff and jitter
row-level-security Uses Postgres row-level security policies to isolate data a multi-tenant application
static-methods Adds custom query methods to Prisma Client models
transformed-fields Demonstrates how to use result extensions to transform query results and add i18n to an app
exists-fn Adds an exists function to all your models

Authoring extensions

If you're interested in building an extension you want to share as a package, we recommend using the following starter repository.

Refer to our documentation to learn more about how to create and publish extensions.

prisma-client-extensions's People

Contributors

sbking avatar ruheni avatar renovate[bot] avatar phil-loops avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.