AtnNn / librethinkdbxx

RethinkDB driver for C++
Other
98 stars 31 forks source link

User and password in R::connect() #35

Open rinopazzo opened 7 years ago

rinopazzo commented 7 years ago

Is there a way to specify user and password in R::connect()?

AtnNn commented 7 years ago

No, that feature is not implemented. This driver supports the old auth field.

TotalKrill commented 6 years ago

Is there any example of how to use the 'auth' field, I am probably missing something.

The driver still works great btw!

Edit: For anyone else that wonders. The old 'auth' field will default to the password of the 'admin' account

so connecting with R::connect("address", 28015, "PasswordOfAdminAccount") will still work, but the docs does not specify for how long since this may be deprecated.

https://rethinkdb.com/docs/writing-drivers/