d1_dart 0.0.1
d1_dart: ^0.0.1 copied to clipboard
A Dart client arounds Cloudflare D1 Database Rest API
D1 Dart #
A Dart client around Cloudflare D1 Database Rest API
Our top sponsors #
Check out these amazing sponsors that support my work!
Invertase |
Installation 💻 #
❗ In order to start using D1 Dart you must have the [Dart SDK][dart_install_link] installed on your machine.
Install via dart pub add:
dart pub add d1_dart
How to use it 🚀 #
final d1 = D1Client(
accountId: accountId,
cloudflareApiKey: cloudflareApiKey,
databaseName: databaseName,
);
final response = await d1.query(sql);
for (final result in response.result) {
for (final row in result.results) {
print('Row: $row');
}
}