D1Client constructor
const
D1Client({})
A Dart client arounds Cloudflare D1 Database Rest API
Implementation
const D1Client({
required String cloudflareApiKey,
required String accountId,
required String databaseName,
String baseUrl = 'https://api.cloudflare.com/client/',
String apiVersion = 'v4',
Future<http.Response> Function(
Uri url, {
Map<String, String>? headers,
Object? body,
})?
httpPost,
}) : _baseUrl = baseUrl,
_apiVersion = apiVersion,
_cloudflareApiKey = cloudflareApiKey,
_accountId = accountId,
_databaseName = databaseName,
_httpPost = httpPost ?? http.post;