surrealist
surrealist copied to clipboard
error authenticating
first of all, thx for making this lib and it is delightful to use it.
So i've updated to the latest for Sdb 2.0, and i've been running issues regarding authentication with the following:
db = Database(url, ns, dbname, credentials=credentials)
and i had to change it to this to work
url="http://127.0.0.1:8089/", ns="bashar", dbname="bashar", credentials=("root", "root")):
try:
db = Database(url, ns, dbname)
print('is_connected', db.is_connected())
conn = db.get_connection()
conn._signin(credentials[0], credentials[1])
``