Skip to content

Commit

Permalink
Merge pull request #11 from creatorrr/patch-1
Browse files Browse the repository at this point in the history
Fix connection to 'http' using ipython magic
  • Loading branch information
zh217 authored Dec 13, 2023
2 parents 22c59ca + 4121229 commit 5baca1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,12 @@ in-memory database. To override:
%cozo_open <ENGINE>, <PATH>
```

where `<ENGINE>` can now be `'sqlite'`, `'rocksdb'` or `'mem'`.
where `<ENGINE>` can now be `'http'`, `'sqlite'`, `'rocksdb'` or `'mem'`.

To connect to a standalone server, use

```
%cozo_host http://<ADDRESS>:<PORT>
%cozo_auth <AUTH_STRING>
%cozo_open 'http', '', {'host': 'http://127.0.0.1:9070', 'auth': '<AUTH_STRING>'}
```

where `<AUTH_STRING>` is optional if `<ADDRESS>` is a loopback address.
Expand Down

0 comments on commit 5baca1e

Please sign in to comment.