diff options
| author | Marcos <maguetamarcos@gmail.com> | 2025-01-19 02:00:15 -0300 |
|---|---|---|
| committer | Marcos <maguetamarcos@gmail.com> | 2025-01-19 02:00:15 -0300 |
| commit | 3a32e46f647314aea380449b31384ad121f31e4e (patch) | |
| tree | d57817ee539e63b717c514928d82f8537ee08c27 /lib/server.ml | |
| parent | c67ed574a7a95db73d9349d58727452850bd47b9 (diff) | |
| download | Sakura-3a32e46f647314aea380449b31384ad121f31e4e.tar.gz Sakura-3a32e46f647314aea380449b31384ad121f31e4e.zip | |
unite relation attributes by entity map
Diffstat (limited to 'lib/server.ml')
| -rw-r--r-- | lib/server.ml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/server.ml b/lib/server.ml index 3a6d1fa..cc233db 100644 --- a/lib/server.ml +++ b/lib/server.ml @@ -26,9 +26,10 @@ let client_read sock maxlen = match Relation.write_and_retrieve () with | Ok (last_commit::_, locations) -> begin - let (first_names, last_names) = (Planner.Scan.execute last_commit locations "user/first-name", Planner.Scan.execute last_commit locations "user/last-name") in - let tuples = Planner.Join.execute first_names last_names locations in - let (fname, lname) = List.split tuples in + (* let (first_names, last_names) = (Planner.Scan.execute last_commit locations "user/first-name", Planner.Scan.execute last_commit locations "user/last-name") in *) + (* let tuples = Planner.Join.execute first_names last_names locations in *) + let (fname, lname) = List.split [] in + (* tuples in *) let relation_result: Relation.Protocol.facts = [{attribute_name = "user/first-name"; attribute_type = "string"; tuples = List.map Bytes.to_string fname}; {attribute_name = "user/last-name"; attribute_type = "string"; tuples = List.map Bytes.to_string lname}] in @@ -36,6 +37,7 @@ let client_read sock maxlen = end | Ok _ -> return "Unstable" | Error err -> return err + [@@warning "-27"] let rec socket_read sock = (* (Int32.of_int (String.length results))) *) |
