Sam Parton

Results 26 comments of Sam Parton
trafficstars

> I got it! > > ```rust > fn parse2(sql: String) { > let parsedQueryResult = surrealdb::sql::parse(&sql); > let parsedQuery = parsedQueryResult.unwrap(); > let jsonResult = serde_json::to_string(&parsedQuery); > let json...

Honestly I'm totally okay with that format, it's better than trying to parse segments of the queries with regex 😂 From the few queries i tried too, i think it...

Thank you for this! I couldn't get the build to work for linux, also had no way to test it! let me know when it's good to go :)

Yeah i agree, I think there's a way to do it though, I see in some packages, something like this: ![CleanShot 2022-09-25 at 18 15 02](https://user-images.githubusercontent.com/4105581/192156353-191bc6c6-2e25-42af-9a7f-2b821cf4fec2.png) So maybe there's a...

Yeah i was doing some digging into them now, I never thought much of it in the past, but seems simple anyway! https://stackoverflow.com/a/38439941/15727015 So we could use your api for...

> > So to start, I was digging through the code, and our issue mainly stems from the fact that we need to decode the main response, to get the...

Sorry for any spam 😅 I will see if i can work through these changes tomorrow and clear some bits up + add the go build tags for 18+

@Keitio what would we do with this panic here? We wouldn't want to cancel the context/close the ws right? 🤔 ![CleanShot 2022-09-26 at 14 46 47](https://user-images.githubusercontent.com/4105581/192293044-e88238b4-fcd1-4cb5-8137-b65fceda0b31.png)

F, I thought ready for review, would request another one, my bad...

Yeah I agree, it's quite large, but it's more of an optional/additional layer the dev can opt into to keep things a bit more simplified, for example, using .Query() and...