You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
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.
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?
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)
Activity
coffeemug commentedon Nov 13, 2012
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.
added bare table_create and table_drop (c.f. Issue #46)
mlucy commentedon May 1, 2013
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?
coffeemug commentedon May 2, 2013
@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)
mlucy commentedon May 2, 2013
The server change and ruby driver implementation are done. If Bill has time this could make 1.5 pretty easily.
danielmewes commentedon May 2, 2013
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)
mlucy commentedon May 2, 2013
Whoops, yeah, missed that entirely. I'll add that tomorrow.
mlucy commentedon May 2, 2013
(I'll update the ql2.proto file too.)
danielmewes commentedon May 2, 2013
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)
mlucy commentedon May 3, 2013
table_list and updates to the .proto file are in the code-review
wmrowan commentedon May 3, 2013
@mlucy The JS and PY implementations have been pushed to branch 46_bare_tablecreate.
mlucy commentedon May 4, 2013
@wmrowan: Awesome. I updated the code-review; this should be in next soon.
mlucy commentedon May 7, 2013
This is now in next.
Add r\tableCreate r\tableList r\tableDrop shortcuts using default dat…
Add r\tableCreate r\tableList r\tableDrop shortcuts using default dat…