Skip to content

r.tableCreate() not defined in JS #46

Closed

Description

@neumino

So r.table('table_name') is a shortcut for r.db('test').table('table_name')
However, r.tableCreate('new_table') doesn't work in javascript (at least).

Can we have all methods after db() to work after r. by using the default database 'test'?
In that case, in the data explorer, I can suggest users r.table(), r.tableCreate(), r.tableDrop(), r.tableList() etc...

Activity

  1. coffeemug commented on Nov 13, 2012

    @coffeemug
    Contributor

    It makes sense to me to be able to support tableCreate and friends on the default db on the connection. BTW, eventually we'll add a dropdown to the data explorer that will denote the default database to run ops on. Moving to backlog though, because there are more important things to work out for now.

  2. ghost assigned on Apr 3, 2013
  3. ghost assigned on Apr 3, 2013
  4. ghost assigned on Apr 4, 2013
  5. mlucy commented on May 1, 2013

    @mlucy
    Member

    This is in code-review 476 by @Tryneus .

    The code-review includes the server changes and updates to the ruby tests. @wmrowan -- when you have some time, could you update the python/js drivers/tests in the branch 46_bare_tablecreate?

  6. coffeemug commented on May 2, 2013

    @coffeemug
    Contributor

    @mlucy, @wmrowan -- what's the state of this change? I know it isn't slated, but man would it make my life easier! (also, it would need YAML docs)

  7. mlucy commented on May 2, 2013

    @mlucy
    Member

    The server change and ruby driver implementation are done. If Bill has time this could make 1.5 pretty easily.

  8. danielmewes commented on May 2, 2013

    @danielmewes
    Member

    Is the short version for table_list included? I don't see such a change in 46_bare_tablecreate . Am I just looking at the wrong place?
    (it also doesn't seem to update the descriptions in the ql2.proto file)

  9. mlucy commented on May 2, 2013

    @mlucy
    Member

    Whoops, yeah, missed that entirely. I'll add that tomorrow.

  10. mlucy commented on May 2, 2013

    @mlucy
    Member

    (I'll update the ql2.proto file too.)

  11. danielmewes commented on May 2, 2013

    @danielmewes
    Member

    Cool, thanks.

    -----Original Message-----
    From: Michael Lucy [email protected]
    Date: Thu, 02 May 2013 04:32:19
    To: rethinkdb/[email protected]
    Reply-To: rethinkdb/rethinkdb [email protected]
    Cc: Daniel [email protected]
    Subject: Re: [rethinkdb] r.tableCreate() not defined in JS (#46)

    Whoops, yeah, missed that entirely. I'll add that tomorrow.


    Reply to this email directly or view it on GitHub:
    #46 (comment)

  12. mlucy commented on May 3, 2013

    @mlucy
    Member

    table_list and updates to the .proto file are in the code-review

  13. wmrowan commented on May 3, 2013

    @wmrowan
    Contributor

    @mlucy The JS and PY implementations have been pushed to branch 46_bare_tablecreate.

  14. mlucy commented on May 4, 2013

    @mlucy
    Member

    @wmrowan: Awesome. I updated the code-review; this should be in next soon.

  15. mlucy commented on May 7, 2013

    @mlucy
    Member

    This is now in next.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions