Skip to content

Improve the driver protocol spec #355

Closed

Description

@coffeemug

As of the time of this writing, it's here -- https://github.com/rethinkdb/rethinkdb/blob/mlucy_proto_docs/src/rdb_protocol/ql2_json.md, but will be on the site soon.

Here are some things that need to be improved:

  • Section 2 (the query) needs to be expanded. Right now it's as long as section 1 (the handshake), but the mechanics are significantly more complicated, and we let people guess a lot. In particular, we should have a few more progressively more complex examples (start with r.expr(1) and show how to use lambdas and such), and explain how the json protocol related to protobufs a bit better. For example, we link to the protobuf spec, but don't even say that you're supposed to use the integer values defined there explicitly.
  • Add a section at the end that gives people some friendly notion on how to get started. For example, we should explicitly link to the official drivers, and a few community drivers source code.

Activity

  1. self-assigned this
    on Jun 13, 2014
  2. mlucy commented on Jun 13, 2014

    @mlucy
    Member

    To quote my comment in #358:

    I think there's some confusion about what this document is supposed to do. Is this supposed to document ReQL as a protocol, or document how to translate between the protobuf format driver developers are currently using and the JSON protocol? I wrote it to do the second; doing the first will produce a much longer document (since it will also have to include all the documentation in ql2.proto).

  3. neumino commented on Jun 13, 2014

    @neumino
    Member
  4. coffeemug commented on Jun 13, 2014

    @coffeemug
    ContributorAuthor

    👍 Those comments are really good. We should address those before we close this issue.

  5. removed their assignment
    on Feb 21, 2015
  6. mlucy commented on Feb 21, 2015

    @mlucy
    Member

    Unassigning myself because I'm not sure what I'm supposed to be doing on this issue. I think this eventually made it onto the site, right?

  7. coffeemug commented on Feb 22, 2015

    @coffeemug
    ContributorAuthor

    Yes, this is on the site. We should write a separate tutorial at some point that walks people step by step on how to create a sample driver.

  8. danielmewes commented on Feb 23, 2015

    @danielmewes
    Member

    From what I can see @neumino's comments from here https://github.com/rethinkdb/docs/pull/358/files are still not reflected in the docs. So we should keep this open.

    Another thing I've just noticed is that we don't link to the new document from http://rethinkdb.com/community/ (not sure if this is going to be redone anyway for 2.0? @mglukhovsky?).

    Write a new driver — no ReQL driver for your favorite language? Help write one! Hop on the mailing list or #rethinkdb on freenode, and we'll walk you through the driver protocol API.

    still just links to the ql2.proto file.
    http://rethinkdb.com/docs/install-drivers/ links to the right document (http://rethinkdb.com/docs/driver-spec/) correctly. I think the Community page should also link to that.

  9. mglukhovsky commented on Feb 24, 2015

    @mglukhovsky
    Member

    Agreed. The community page is being reworked, but you're correct that we should link to that document.

  10. danielmewes commented on Aug 30, 2016

    @danielmewes
    Member

    These have been improved a lot in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions