A Dart client around Cloudflare D1 Database Rest API
Check out these amazing sponsors that support my work!
Invertase |
❗ 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_dartfinal 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');
}
}