D1 Dart

shorebird ci style: very good analysis Powered by Mason License: MIT

A Dart client around Cloudflare D1 Database Rest API

Our top sponsors

Check out these amazing sponsors that support my work!


Invertase

Become a featured sponsor!

Installation 💻

❗ In order to start using D1 Dart you must have the 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');
  }
}

Libraries

d1_dart
A Dart client arounds Cloudflare D1 Database Rest API