D1Client class

A Dart client arounds Cloudflare D1 Database Rest API

Constructors

D1Client({required String cloudflareApiKey, required String accountId, required String databaseName, String baseUrl = 'https://api.cloudflare.com/client/', String apiVersion = 'v4', Future<Response> httpPost(Uri url, {Object? body, Map<String, String>? headers})?})
A Dart client arounds Cloudflare D1 Database Rest API
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String sql, {List<String> params = const []}) → Future<D1Response>
Executes a SQL query against the D1 database.
raw(String sql, {List<String> params = const []}) → Future<D1RawResponse>
Executes a SQL query against the D1 database using the /raw endpoint.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited