NeonDB Dart
Neon | Website | Documentation | Pricing | Blog | Youtube | Support
⚡ The Postgres NeonDB package for Dart
Installation
dependencies:
flutter_neon: ^0.1.0+5
Getting started
Select a couple of rows from a table
void main() async {
final neonClient = FlutterNeon(
connectionUrl:
"postgres://abdealex05:CJdWeSro7Bw2@ep-holy-limit-21390121.eu-central-1.aws.neon.tech/neondb",
pooling: true);
final results = await neonClient.select(table: "table", columns: ["column1", "column1"]);
print(results.first);
}
Select a whole table
final neonClient = FlutterNeon(
connectionUrl:
"postgres://abdealex05:CJdWeSro7Bw2@ep-holy-limit-21390121.eu-central-1.aws.neon.tech/neondb",
pooling: true);
final results = await neonClient.selectAll(table: "table");
print(results.first);
Open Connection to your Neon database
await neonClient.open();
Close Connection to your Neon database
await neonClient.close();
Libraries
- flutter_neon
- Neon dart package