modulepackage
0.2.1
Repository: https://github.com/surrealdb/surrealdb.go.git
Documentation: pkg.go.dev
# Functions
New creates a new SurrealDB client.
SmartUnmarshal can be used with all DB methods with generics and type safety.
SmartUnmarshal using generics for return desired type.
Unmarshal loads a SurrealDB response into a struct.
UnmarshalRaw loads a raw SurrealQL response returned by Query into a struct.
UseWriteCompression enables or disables write compression for internal websocket client.
WithTimeout sets the timeout for requests, default timeout is 30 seconds.
# Variables
No description provided by the author
Smart Marshal Errors.
Smart Marshal Errors.
No description provided by the author
nolint:stylecheck.
# Structs
Used for define table name, it has no value.
DB is a client for the SurrealDB database that holds are websocket connection.
Option is a struct that holds options for the SurrealDB client.
Patch represents a patch object set to MODIFY a record.
Used for RawQuery Unmarshaling.