Software Alternatives, Accelerators & Startups

JDBI VS Prisma GraphQL API

Compare JDBI VS Prisma GraphQL API and see what are their differences

Note: These products don't have any matching categories. If you think this is a mistake, please edit the details of one of the products and suggest appropriate categories.

JDBI logo JDBI

See this.

Prisma GraphQL API logo Prisma GraphQL API

Prisma helps modern applications access and manipulate data through a unified data layer
  • JDBI Landing page
    Landing page //
    2023-08-02
  • Prisma GraphQL API Landing page
    Landing page //
    2023-02-05

Prisma is an open-source database toolkit. It replaces traditional ORMs and makes database access easy with an auto-generated query builder for TypeScript & Node.js.

JDBI features and specs

  • Simplicity
    JDBI provides a simple, fluent API that makes accessing relational databases in Java more streamlined and less error-prone than using plain JDBC.
  • SQL-centric Approach
    JDBI allows developers to work directly with SQL, offering the flexibility to use any SQL feature without abstraction limitations.
  • Ease of Integration
    JDBI is easy to integrate into existing projects and works seamlessly with various database systems.
  • Declarative Mapping
    It supports declarative and annotation-based data mapping, reducing boilerplate code when converting between database rows and Java objects.
  • Extensibility
    JDBI's plugin architecture allows developers to extend its capabilities easily with custom features or integrate with other libraries.

Possible disadvantages of JDBI

  • Limited Abstraction
    Compared to full-fledged ORM frameworks, JDBI provides less abstraction, which could be a drawback for applications requiring complex entity relationships.
  • Manual Resource Management
    Developers need to manage database connections and resources, increasing the risk of resource leaks if not handled properly.
  • Less Mature than Some ORMs
    Although reliable, JDBI may not have the maturity or widespread adoption of some older ORMs, potentially resulting in less community support.
  • Learning Curve
    For developers used to traditional ORM frameworks, learning JDBI's idiomatic ways to achieve similar tasks might require an adjustment period.

Prisma GraphQL API features and specs

  • Type-Safe API
    Prisma provides a type-safe API, reducing the likelihood of type-related errors during development and improving the developer experience.
  • Auto-Generated CRUD Operations
    Prisma automatically generates CRUD operations for your database models, which can save a significant amount of development time.
  • Flexible Data Modeling
    Prisma supports a flexible data modeling approach with its Prisma Schema Language (PSL), making it easier to design and iterate on your database schema.
  • Database Agnostic
    Prisma works with various databases (PostgreSQL, MySQL, SQLite, MongoDB), providing a consistent API regardless of the underlying database technology.
  • Real-Time Capabilities
    Prisma supports real-time event-driven architectures, enabling features like subscriptions in GraphQL for real-time data updates.
  • Strong Community and Documentation
    Prisma has an active community and extensive documentation, which can help developers resolve issues and learn best practices.

Possible disadvantages of Prisma GraphQL API

  • Complex Migrations
    Schema migrations can become complex and require careful planning, especially for large, existing databases.
  • Learning Curve
    There can be a steep learning curve for developers who are new to the Prisma ecosystem and GraphQL in general.
  • Performance Overhead
    Using an ORM like Prisma can introduce a performance overhead compared to raw SQL queries, which might be a concern for performance-critical applications.
  • Limited Customization
    While Prisma covers most use cases, there might be scenarios where custom queries and operations are necessary, which might not be straightforward to implement.
  • Dependency on Prisma
    By adopting Prisma, you become dependent on it for your data layer. If Prisma fails to keep pace with critical updates or your needs evolve beyond its capabilities, this could be a limitation.
  • Backend-Only
    Prisma is currently backend-only and does not provide solutions for frontend integrations out-of-the-box, necessitating additional libraries or custom code for complete full-stack solutions.

JDBI videos

jdbi

More videos:

  • Review - Dealing with a heckler | JDBI INVICTUS ‘19

Prisma GraphQL API videos

No Prisma GraphQL API videos yet. You could help us improve this page by suggesting one.

Add video

Category Popularity

0-100% (relative to JDBI and Prisma GraphQL API)
Web Frameworks
100 100%
0% 0
Project Management
0 0%
100% 100
Backend Development
100 100%
0% 0
Developer Tools
20 20%
80% 80

User comments

Share your experience with using JDBI and Prisma GraphQL API. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Prisma GraphQL API should be more popular than JDBI. It has been mentiond 68 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

JDBI mentions (25)

  • JOOQ Is Not a Replacement for Hibernate. They Solve Different Problems
    Suppose we're developing an application that allows speakers to submit their talks to a conference (for simplicity, we'll only record the talk's title). Following the Transaction Script pattern, the method for submitting a talk might look like this (using JDBI for SQL):. - Source: dev.to / 4 months ago
  • Optimize Database Performance in Ruby on Rails and ActiveRecord
    _relational_ is the key word you're missing. ORMs map _objects_ to _relations_ (i.e. tables). "Unlike ORM frameworks, MyBatis does not map Java objects to database tables but Java methods to SQL statements." https://en.wikipedia.org/wiki/MyBatis "Jdbi is not an ORM. It is a convenience library to make Java database operations simpler and more pleasant to program than raw JDBC." https://jdbi.org/ "While jOOQ is not... - Source: Hacker News / 7 months ago
  • Permazen: Language-natural persistence to KV stores
    While this may work for greenfield applications, I don't see this working well for preexisting schemas. From their getting started page: "Database fields are automatically created for any abstract getter methods", which definitely scares me away since they seem to be relying on automatic field type conversions. I prefer to manage my schemas when I can and do type and DAO conversions via mapper classes in the very... - Source: Hacker News / over 1 year ago
  • Permazen: Language-natural persistence to KV stores
    Someone else mentioned jOOQ, but personally I also rather enjoyed JDBI3: https://jdbi.org/#_introduction_to_jdbi_3 It addresses the issues with using JDBC directly (not nice ergonomics), while still letting you work with SQL directly without too many abstractions in the middle. In combination with Dropwizard, it was pretty pleasant: https://www.dropwizard.io/en/stable/manual/jdbi3.html Other than that, I actually... - Source: Hacker News / over 1 year ago
  • Is ORM still an anti-pattern?
    > I've been doing ORM on Java since Hibernate was new, and it has always sucked. Have you ever looked at something like myBatis? In particular, the XML mappers: https://mybatis.org/mybatis-3/dynamic-sql.html Looking back, I actually quite liked it - you had conditionals and ability to build queries dynamically (including snippets, doing loops etc.), while still writing mostly SQL with a bit of XML DSL around it,... - Source: Hacker News / almost 2 years ago
View more

Prisma GraphQL API mentions (68)

  • When Embedded AuthN Meets Embedded AuthZ - Building Multi-Tenant Apps With Better-Auth and ZenStack
    While better-auth solves the problem of determining a user's identity and roles, ZenStack continues from there and uses such information to control what actions the user can perform on a piece of data. ZenStack is built above Prisma ORM and extends Prisma's power with flexible access control and automatic CRUD API. Since better-auth has built-in integration with Prisma, the two can make a perfect combination for... - Source: dev.to / 5 months ago
  • Building Multi-Tenant Apps Using StackAuth's "Teams" and Next.js
    Prisma: the ORM that we use to talk to the database. - Source: dev.to / 5 months ago
  • Why I love Rust for tokenising and parsing
    > If you don't mind me asking, which companies? Or how do you get into this industry within an industry? I'd really love to work on some programming language implementations professionally (although maybe that's just because I've built them non-professionally until now), You do not need to write programming languages to need parsers and lexers. My last company was Prisma (https://prisma.io) where we had our own... - Source: Hacker News / 6 months ago
  • Rendering Prisma Queries With React Table: The Low-Code Way
    Tables are most commonly used to render database query results — in modern times, the output of an ORM. In this post, I'll introduce a way of connecting Prisma - the most popular TypeScript ORM, to React Table, with the help of React Query and ZenStack. You'll be amazed by how little code you need to write to render a full-fledged table UI. - Source: dev.to / 10 months ago
  • Why is prisma orm bad?
    If you're unfamiliar, Prisma is a well-known TypeScript ORM for PostgreSQL and MongoDB. It was the first ORM I learned to use, and this decision led to some difficulties later on. - Source: dev.to / 10 months ago
View more

What are some alternatives?

When comparing JDBI and Prisma GraphQL API, you can also consider the following products

Hibernate - Hibernate an open source Java persistence framework project.

Nintex - Cloud-based digital workflow management automation platform

Postgres.js - Postgres.js - The Fastest full featured PostgreSQL client for Node.js - porsager/postgres

dapulse - Lead by showing your team the Big Picture. Get everyone working together on what's important.

SQLPage - Build SQL-only websites - Build full web applications using just SQL queries

ampEducator - ampEducator is a web-based Student Information System (SIS) specially made for public and private higher education institutions.