Skip to content

erickzanardo/d1_dart

Repository files navigation

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 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');
  }
}

About

A Dart client arounds Cloudflare D1 Database Rest API

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors

Languages