orm 2.4.0-beta.0 copy "orm: ^2.4.0-beta.0" to clipboard
orm: ^2.4.0-beta.0 copied to clipboard

outdated

◭ Next-generation ORM for Dart & Flutter | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB.

example/main.dart

import 'package:orm/prisma_client.dart';

void main() async {
  final PrismaClient prisma = PrismaClient();

  try {
    final User user = await prisma.user.upsert(
      where: UserWhereUniqueInput(name: 'Odroe'),
      create: UserCreateInput(name: 'Odroe'),
      update: UserUpdateInput(),
    );

    print(user.toJson());
  } catch (e) {
    await prisma.$disconnect();
    rethrow;
  } finally {
    await prisma.$disconnect();
  }
}
213
likes
0
pub points
88%
popularity

Publisher

verified publisherodroe.dev

◭ Next-generation ORM for Dart & Flutter | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB.

Homepage
Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

opencollective.com
opencollective.com

License

unknown (license)

Dependencies

archive, args, code_builder, crypto, dart_style, http, json_annotation, path, rc, retry, yaml

More

Packages that depend on orm