Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/medz/prisma-dart
Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
https://github.com/medz/prisma-dart
cockroachdb dart flutter mariadb mongodb mysql orm postgresql prisma sqlite sqlserver
Last synced: about 4 hours ago
JSON representation
Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
- Host: GitHub
- URL: https://github.com/medz/prisma-dart
- Owner: medz
- License: bsd-3-clause
- Created: 2020-06-04T07:37:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T23:06:24.000Z (3 months ago)
- Last Synced: 2024-10-29T17:13:05.940Z (2 months ago)
- Topics: cockroachdb, dart, flutter, mariadb, mongodb, mysql, orm, postgresql, prisma, sqlite, sqlserver
- Language: Dart
- Homepage: https://prisma.pub
- Size: 77.2 MB
- Stars: 457
- Watchers: 12
- Forks: 31
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Prisma Client Dart
[![Pub Version](https://img.shields.io/pub/v/orm?include_prereleases)](https://pub.dev/packages/orm)
[![GitHub License](https://img.shields.io/github/license/medz/prisma-dart)](https://github.com/medz/prisma-dart/blob/main/LICENSE)
[![Docs website](https://img.shields.io/badge/docs-prisma.pub-brightgreen)](https://prisma.pub/)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/medz?label=github%20sponsors)](https://github.com/sponsors/medz)
[![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/openodroe?label=open%20collective)](https://opencollective.com/openodroe)
[![Discord](https://img.shields.io/discord/1035043284457881620?label=discord)](https://discord.gg/ms2X9TQMR8)
[![X (formerly Twitter) Follow](https://img.shields.io/twitter/follow/shiweidu)
](https://twitter.com/shiweidu)Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
👉 [Learn how to use Prisma ORM for Dart in your project](https://prisma.pub/).
```dart
import 'package:orm/orm.dart';final client = PrismaClient();
main() {
final users = await client.user.findMany();
}
```## Installation
This will add a like this to you packages `pubspec.yaml` (and run an implicit `dart pub get`):
```yaml
dependencies:
orm: latest
```Or you can run the following command:
```sh
dart pub add orm
```## Sponsors
Prisma Client Dart is an [BSD-3 Clause licensed](https://github.com/medz/prisma-dart/blob/main/LICENSE) open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider [sponsoring Seven(@medz)](https://github.com/sponsors/medz) on GitHub.
## Documentation
You can find the Prisma Client Dart [on the website](https://prisma.pub).
The documentation is divided into the following sections:
- [Getting Started](https://prisma.pub/getting-started/)
- [Setup & Configuration](https://prisma.pub/getting-started/setup.html)
- [Prisma Schema](https://prisma.pub/getting-started/schema.html)
- Queries
- [CRUD](https://prisma.pub/queries/crud.html)
- [Select Fields](https://prisma.pub/queries/select-fields.html)
- [Relation queries](https://prisma.pub/queries/relation-queries.html)
- [Filtering and Sorting](https://prisma.pub/queries/filtering-and-sorting.html)
- [Pagination](https://prisma.pub/queries/pagination.html)
- [Aggregation, grouping, and summarizing](https://prisma.pub/queries/aggregation-grouping-summarizing.html)
- [Transactions](https://prisma.pub/queries/transactions.html)
- [Raw database access](https://prisma.pub/queries/raw-database-access.html)> You can improve it by sending pull requests to [`docs` folder in the `main` branch](https://github.com/odroe/prisma-dart/tree/main/docs).
## Examples
You can also find them in the [`example` folder in the `main` branch](https://github.com/odroe/prisma-dart/tree/main/examples).
## Query engine support matrix
| Engine | Dart Native | Dart Web | Flutter Native | Flutter Web |
|------------|:-----------:|:--------:|:--------------:|:-----------:|
| Binary | ✅ | ❌ | ❌ | ❌ |
| Library | ✅ | ❌ | ✅ | ❌ |
| Data Proxy | ✅ | ✅ | ✅ | ✅ |## Contributing
We welcome contributions! Please read our [contributing guide](CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Prisma.
Thank you to all the people who already contributed to Prisma Dart!
[![Contributors](https://contrib.rocks/image?repo=medz/prisma-dart)](https://github.com/odroe/prisma-dart/graphs/contributors)
## Code of Conduct
This project has adopted the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). For more information see the [Code of Conduct FAQ](https://www.contributor-covenant.org/faq) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.