Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Consider using couchbase standard URI scheme #19

Open
ingenthr opened this issue Dec 13, 2016 · 2 comments
Open

Consider using couchbase standard URI scheme #19

ingenthr opened this issue Dec 13, 2016 · 2 comments

Comments

@ingenthr
Copy link

I'm new to PureScript, but after learning a bit more about this I looked into the source to better understand how connections are established and created.

I came across the section on Couchbase URIs.:

unless (scheme == Just uriScheme) $ Left "Expected 'couchbase' URL scheme"

You may not have been aware of it, but we do have a documented connection string format that may be useful to use here. It's standardized across all of the SDKs and many of our CLI tools. You'll find details here:
https://github.com/couchbaselabs/sdk-rfcs/blob/master/rfc/0011-connection-string.md

One thing I couldn't determine from browsing all of the source is if you're using any of our libs already. You'd, of course, get the connstr for free if you do along with loadbalancing, understanding topology changes, etc.

@garyb
Copy link
Member

garyb commented Dec 13, 2016

Thanks for the comment!

This library is for the front-end of SlamData, so the URL format you see here is for the Couchbase connector in Quasar (the back-end component) rather than something that will be used to talk to Couchbase directly.

@ingenthr
Copy link
Author

ingenthr commented Dec 13, 2016

Ah, Quasar was the thing I didn't find when searching github.com/slamdata. :) I'd not followed quite yet all of the dependency graph. Thanks!

By the way, looking underneath, it looks like it's using our client through scala.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants