GithubHelp home page GithubHelp logo

kapelianovych / couchdb_dart Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 18.0 241 KB

A library for Dart developers for work with CouchDB

Home Page: https://pub.dev/packages/couchdb

License: Other

Dart 100.00%
couchdb dart

couchdb_dart's People

Contributors

dmjohnsson23 avatar dominickj-tdi avatar f-houssait avatar jausions avatar kapelianovych avatar nmfisher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

couchdb_dart's Issues

Please consider updating the doc

It took me almost 30 mins to find out how to specify the host. The doc gives the following sample codes:

final c = CouchDbClient(username: 'name', password: 'pass');

Throughout the entire documentation, there's no mentioning of setting the host address. Even the example shows nothing about setting the host.

Yes, it's in the API doc of the CouchDbClient class and the test codes, but not having it in the main doc is very confusing.

RealTime listener.

Hi, i am completely new here,my use case will require realtime API for flutter and the web, some refers me to aqueduct, some mix the first with websockts/ mqtt, been googling, and i saw that couchdb has a listenr notifications for realtime API, i have checked the examples directory found nothing about that, if couchdb is what i should use, can you example me realtime API ,please.

API improvements?

These would be breaking changes, but I thought I might run them by you to see what you think.

Rather than having to call .documentModelResponse() and the like on the DBResponse object I receive, it would make more sense to me if the various functions and methods just returned the correct type of response directly. We could do away with DBResponse, and just make it an abstract interface, perhaps with a factory constructor that would create the correct response type when called.

flutter_test from sdk is incompatible with couchdb >=0.1.4+1

log => Because every version of flutter_test from sdk depends on meta 1.1.6 and couchdb >=0.1.4+1 depends on meta ^1.1.7, flutter_test from sdk is incompatible with couchdb >=0.1.4+1.
So, because couchdb_flutter depends on both couchdb ^0.4.3 and flutter_test any from sdk, version solving failed.

CORS and the Origin Header

I noticed you also added my changes regarding the Origin header to the CouchDbBaseClient class and the CouchDbServerClient class. That's not really necessary because the CORS and the Origin header only really have meaning when coming from the browser, therefore that code should probably only live in the CouchDbWebClient class. Making the Origin header optional was a good idea though, since it seems some browsers prefer to set it themselves.

Status?

@YevhenKap: What is the status of this project? Are you still working/updating/supporting it? Or is it pretty much dead now that you're not working with Dart/Couchdb any more (your comment in issue #14)?

Please inform.
Thanks.

Client fails silently if host includes protocol

If the host is specified with a protocol prefix (i.e. "http://10.0.2.2" rather than "10.0.2.2", any operations will fail silently

var dbHost = "http://10.0.2.2"
var client = CouchDbClient(host: dbHost);
docModel.insertDoc("_users", "org.couchdb.user:foo", "bar").then((resp) {
            print(resp.toString());
        }).catchError((err) {
            print(err.toString());
        });

For some reason this doesn't trigger catchError (or maybe it's stuck in a retry/timeout loop and I never waited long enough for the callback to resolve). Either way, given CouchDbClient prepends "http://" to the connect URI, which doesn't get picked up by Uri.parse (presumably it's actually a valid URI, just obviously not the one we wanted).

Is it worthwhile adding a check for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.