Scylla/Cassandra driver written in pure OCaml
This driver is not complete, stable and completely tested. Will be posting updates as I feel it uses a reachable state.
Assuming a table keyspace1.table
with schema (id text, person text)
exists -
open Result
open Scylla
let _ =
let query_string = "select * from keyspace1.person" in
let conn = connect ~ip:"172.17.0.2" ~port:9042 |> get_ok in
let values = query conn ~query:query_string |> get_ok in
let print_row r =
Printf.printf "%s, %s\n" (show_value r.(0)) (show_value r.(1)) in
Array.iter print_row values