surrealdb / surrealdb.go

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

Bug: base url not set on new connection #147

Closed TheRangiCrew closed 2 months ago

TheRangiCrew commented 2 months ago

Describe the bug

When creating a new connection, the SDK attempts to connect before a base URL is set.

Steps to reproduce

Create a new connection with or without a valid URL.

Expected behaviour

A url should be added to the connection parameters before the SDK attempts to connect.

SurrealDB version

surreal 2.0.0-beta_3

Contact Details

ryan.z.adam@gmail.com

Is there an existing issue for this?

Code of Conduct

TheRangiCrew commented 2 months ago

@remade Will simply adding BseURL field to the connection parameters in the New function fix this? That is the solution I have used locally

TheRangiCrew commented 2 months ago

Fixed by @tobiemh