stormberry 0.2.2+1 copy "stormberry: ^0.2.2+1" to clipboard
stormberry: ^0.2.2+1 copied to clipboard

outdated

Access your postgres database effortlessly from dart code.

example/lib/main.dart

import 'package:stormberry/stormberry.dart';

import 'tables.dart';

Future<void> main() async {
  var db = Database(
    port: 5433,
    database: 'dart_test',
    user: 'dart',
    password: 'dart',
    useSSL: false,
  );

  await db.accounts.insertOne(AccountInsertRequest(
    '123',
    'Test',
    'User',
    LatLng(1, 2),
    BillingAddress('Test User', 'SomeRoad 1', 'New York'),
    null,
  ));

  var account = await db.accounts.queryUserView('123');

  print(account!.id);
}
112
likes
0
pub points
77%
popularity

Publisher

verified publisherschultek.de

Access your postgres database effortlessly from dart code.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, postgres, source_gen, yaml

More

Packages that depend on stormberry