Skip to content

Commit

Permalink
docs: ✏️ adding session creation using basic text auth (#124)
Browse files Browse the repository at this point in the history
updated readme.md with the method to make session using basic text auth
  • Loading branch information
shivamarora1 authored Jun 10, 2022
1 parent 2afd5a6 commit c5dc12e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 127,20 @@ raw queries.
:load-balancing-local-datacenter "Analytics"}))
```

Example of a complete session using plain text auth.


```clojure
(require '[qbits.alia :as alia])

(def session (alia/session {:session-keyspace "alia"
:contact-points ["localhost:9042"]
:load-balancing-local-datacenter "Analytics"
:auth-provider-user-name "user-name"
:auth-provider-password "password"
:auth-provider-class "PlainTextAuthProvider"}))
```

Sessions are separate so that you can interact with multiple
keyspaces from the same cluster definition.

Expand Down

0 comments on commit c5dc12e

Please sign in to comment.