Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add new arity for table to use default database #39

Merged
merged 1 commit into from
Jun 29, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/rethinkdb/query.clj
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,12 @@

(defn table
"Select all documents in a table. This command can be chained with other
commands to do further processing on the data."
[db table-name]
(term :TABLE [db table-name]))
commands to do further processing on the data. If no db is provided then
the default database for the connection will be used"
([table-name]
(term :TABLE [table-name]))
([db table-name]
(term :TABLE [db table-name])))

(defn get
"Get a document by primary key.
Expand Down