createDatabase method
Creates a database with the specified name.
Implementation
Future<dynamic> createDatabase(String? name) {
if (name == null) {
return _raiseException(WiltException.createDbNoName);
}
// The first char of the URL should be a slash.
var url = name;
if (!url.startsWith('/')) {
url = '/$url';
}
return _httpRequest(createDatabasee, url);
}