server
ReQL command: server
Command syntax
conn.server
Description
Return information about the server being used by a connection.
The server
command returns either two or three fields:
-
id
: the UUID of the server the client is connected to. -
proxy
: a boolean indicating whether the server is a RethinkDB proxy node. -
name
: the server name. Ifproxy
istrue
, this field will not be returned.
Example: Return server information.
> conn.server { :id => "404bef53-4b2c-433f-9184-bc3f7bda4a15", :name => "amadeus", :proxy => false }
Get more help
Couldn't find what you were looking for?
- Ask a question on Stack Overflow
- Chat with us and our community on Slack
- Talk to the team on IRC on #rethinkdb@freenode.net — via Webchat
- Ping @rethinkdb on Twitter
- Post an issue on the documentation issue tracker on GitHub
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/ruby/server/