kapelianovych / couchdb_dart Goto Github PK
View Code? Open in Web Editor NEWA library for Dart developers for work with CouchDB
Home Page: https://pub.dev/packages/couchdb
License: Other
A library for Dart developers for work with CouchDB
Home Page: https://pub.dev/packages/couchdb
License: Other
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.
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.
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.
Since CouchDB 2.0, replication and views has supported selectors and are encouraged to be used over the map/reduce JS filters/views, if possible.
Is there a plan to support this functionality in this project?
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.
hello there is support to get the changes from the database?.
I tried in several ways but no https support seems to be available.
Flutter is going to enforce the use of https as Android since API 28 and iOS since v9 are requesting it too
(https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android)
I could allow it in the AndroidManifest but this would be unsafe (as password would travel clearly).
Please, think about adding https support.
Thanks in advance
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.
@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.
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?
Would like to track the document, is it possible?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.