surrealdb / surrealdb.go

SurrealDB SDK for Golang
https://surrealdb.com
Apache License 2.0
244 stars 66 forks source link

CBOR implementation and HTTP connection engine #153

Closed remade closed 1 month ago

remade commented 1 month ago

This PR introduces the HTTP connection engine, complementing the existing WebSocket engine, allowing users to choose their preferred connection type (HTTP or WebSocket) based on their needs.

Additionally, the communication encoding has been switched from JSON to CBOR. This change enables more robust data handling, providing richer type information during communication between the client and SurrealDB. By eliminating the need for the previous smart marshalling/unmarshalling logic, CBOR ensures precise handling of data types, aligning with both user requests and the SurrealDB service responses.

Key Changes