aplbrain / grand

Your favorite Python graph libraries, scalable and interoperable. Graph databases in memory, and familiar graph APIs for cloud databases.
Apache License 2.0
80 stars 6 forks source link

Small wiki doc issue with SQLBackend #53

Closed mrckzgl closed 3 months ago

mrckzgl commented 3 months ago

In the wiki this:

import grand
from grand.backends import SQLBackend

grand.Graph(backend=SQLBackend("sqlite:///my-file.db"))

should be this:

import grand
from grand.backends import SQLBackend

grand.Graph(backend=SQLBackend(db_url="sqlite:///my-file.db"))

since the SQLBackend constructor only has kwargs, and no positional args. I am unable to edit the wiki, hence the issue.

best

j6k4m8 commented 3 months ago

Thank you @mrckzgl, I just fixed it!