28 Dec 2023 |
| ascendreckless24849 joined the room. | 01:46:02 |
| Amo joined the room. | 08:03:07 |
| biglama_ joined the room. | 10:16:17 |
.vhyrro | sevoris good news but also bad news | 13:26:43 |
.vhyrro | good news I don't actually have to change anything | 13:26:47 |
.vhyrro | bad news I don't know what to do with this new information | 13:27:00 |
.vhyrro | after reading the code I found that they have a sneaky implementation for deserializing to just a value | 13:27:21 |
.vhyrro | in their docs they say very explicitly that you have to deserialize into an Option<T> or a Vec<T>, and so naturally this whole time i've been trying Vec<Value> and Option<Value>, but turns out if you deserialize to just Value then it's fine? | 13:27:57 |
.vhyrro | it seems to return a string akin to json or whatnot | 13:28:12 |
sevoris | Makes some sense. Neo4J also returns JSON, and the core data structure are basically JSON. | 13:59:05 |
.vhyrro | i managed to figure out all of the APIs and we should be golden | 13:59:22 |
.vhyrro | now just one hour of writing Surreal <-> messagepack wrappers and we're golden | 13:59:32 |
sevoris | Can you post an example ofna return string? | 13:59:37 |
.vhyrro | [{ id: mytable:mcxdrju8fyeisctkj1zs }] | 13:59:54 |
sevoris | Okay yeah that makes sense | 14:01:49 |
sevoris | A list of return rows and then a JSON structure per row | 14:02:06 |
sevoris | I have to check their docs but I wonder if that means that you can fetch path structures… | 14:02:39 |
.vhyrro | halfway done | 14:57:28 |
.vhyrro | 80% done | 15:17:09 |
.vhyrro | 100% done | 15:29:38 |
.vhyrro | { {
id = {
id = "mcxdrju8fyeisctkj1zs",
tb = "mytable"
}
} } | 15:29:47 |
.vhyrro | holy moly it's returning data | 15:29:51 |
.vhyrro | everybody stay calm | 15:29:55 |
.vhyrro | the data is very ugly but it's returning it | 15:30:09 |
max397 | | 15:30:13 |
.vhyrro | so we now have a 1:1 conversion from surrealdb to messagepack | 15:30:32 |
.vhyrro | wow this is just too cool | 15:30:35 |
max397 | nice ig | 15:30:46 |
.vhyrro | aand because I also built messagepack <-> lua we can use data returned from surrealdb as if it were a normal lua table | 15:31:23 |
.vhyrro | surrealdb <-> messagepack <-> lua, talk about communication | 15:31:35 |