couchdbclientfordart 0.0.3

  • Readme
  • Changelog
  • Installing
  • 51

couchdbclientfordart #

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:

with Flutter:


$ 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:


import 'package:couchdbclientfordart/couchdbclientfordart.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
18
Health:
Code health derived from static analysis. [more]
97
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
67
Overall:
Weighted score of the above. [more]
51
Learn more about scoring.

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

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/engines/uri/uriengine.dart. (-2.48 points)

Analysis of 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.

Fix lib/engines/http/httpengine.dart. (-0.50 points)

Analysis of lib/engines/http/httpengine.dart reported 1 hint:

line 26 col 3: This function has a return type of 'Future

Format lib/couchdbclientfordart.dart.

Run flutter format to format lib/couchdbclientfordart.dart.

Format lib/generated/i18n.dart.

Run flutter format to format lib/generated/i18n.dart.

Maintenance suggestions

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 main.dart, example.dart, and couchdbclientfordart.dart. Packages with multiple examples should provide example/README.md.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
http ^0.12.0+2 0.12.0+2
uri ^0.11.3+1 0.11.3+1
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.11 1.14.12
http_parser 3.1.3
matcher 0.12.6
meta 1.1.7 1.1.8
path 1.6.4
pedantic 1.8.0+1
quiver 2.1.2+1
sky_engine 0.0.99
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
utf 0.9.0+5
vector_math 2.0.8
Dev dependencies
flutter_test