surrealdb / surrealdb.go

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

create WithTimeout func to set timeout #56

Closed plally closed 1 year ago

plally commented 1 year ago

this creates a new WithTimeout function and removes the redundant surrealdb prefix from the option type.

Previously the timeout was unable to be set because websocket was an internal package. packages under the internal directory can not be imported by other modules and as a result I do not think you can create your own option function to set the timeout.