A couch db client written for dart and flutter.
Getting Started #
You example use case:
final he = HttpEngine(domain); var res = await he.process(HttpMethod.GET, "/"); var jsonRes = json.decode(res.body); expect(res.reqAction, Action.GET_DBMS_INFO ); expect(jsonRes["couchdb"],"Welcome");
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
[0.0.3] - 19 Nov 2019
- Made header type as Map<String,dynamic>, previously it was Map<String,String>
[0.0.2] - Initial release
- Resolved some bugs: headers where not properly handeled.
[0.0.1] - Initial release
- Is capable of directly interacting with the couchdb server. Not all API are implemented , but most of the major are.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: couchdbclientfordart: ^0.0.3
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Dec 4, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.6
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/engines/uri/uriengine.dart. (-2.48 points)
lib/engines/uri/uriengine.dart reported 5 hints:
line 18 col 16: Name non-constant identifiers using lowerCamelCase.
line 20 col 16: Name non-constant identifiers using lowerCamelCase.
line 22 col 16: Name non-constant identifiers using lowerCamelCase.
line 24 col 16: Name non-constant identifiers using lowerCamelCase.
line 26 col 16: Name non-constant identifiers using lowerCamelCase.
lib/engines/http/httpengine.dart. (-0.50 points)
lib/engines/http/httpengine.dart reported 1 hint:
line 26 col 3: This function has a return type of 'Future
flutter format to format
flutter format to format
The package description is too short. (-13 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
couchdbclientfordart.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.
|Dart SDK||>=2.1.0 <3.0.0|