peterp / prisma2

πŸ‘€ Prisma 2 Preview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prisma 2

This repository is used as a central point to collect information and issues around Prisma 2 while it's in Preview. It also contains the documentation and the code of the Prisma 2 CLI.

πŸ’‘ Prisma 2 is currently in Preview! Limitations include missing features, limited performance and stability issues. You can track the progress of Prisma 2 on isprisma2ready.com.

What is the Prisma Framework?

The Prisma Framework is an application data framework that consists of these tools:

  • Photon: Type-safe and auto-generated database client ("ORM replacement")
  • Lift: Declarative data modeling and migrations
  • Studio: Admin UI to support various database workflows

While each tool can be used standalone (in both greenfield and brownfield projects), they integrate nicely through common components like the Prisma schema or the Prisma 2 CLI.

Getting started

The easiest way to get started with Photon and/or Lift is by installing the Prisma 2 CLI and running the interactive init command:

npm install -g prisma2
prisma2 init hello-prisma

The interactive prompt will ask you to provide database credentials for your database. If you don't have a database yet, select SQLite and let the CLI set up a database file for you.

Learn more about the prisma2 init flow here or get started with a holistic tutorial.

Contents

About

πŸ‘€ Prisma 2 Preview

License:Apache License 2.0


Languages

Language:TypeScript 97.2%Language:Shell 1.6%Language:JavaScript 1.1%