surreal: added examples folder#5
surreal: added examples folder#5ivorytoast wants to merge 7 commits intosurrealdb:mainfrom ivorytoast:surreal-examples
Conversation
…ealdb.go into surreal-examples surreal: updated branch to reflect master
|
Can you please remerge this PR? |
|
|
||
| // SchemalessSelect returns a list of rows from the database that have been added | ||
| // to a table without a defined schema | ||
| func (self *DB) SchemalessSelect(what string) ([]map[string]any, error) { |
There was a problem hiding this comment.
Per Go conversions this should just be db. self and this is not used in Go.
|
Hi @ivorytoast thanks so much for submitting this pull request 😃 👍 - it's greatly appreciated, even after so much time has passed! Since the date of this PR, the Golang SDK has seen significant changes, with support for both HTTP and WebSocket connections, full support of the SurrealDB RPC methods, a binary communication protocol using CBOR, and support for embedding SurrealDB in memory and with SurrealKV coming soon. As a result, I'm going to close this PR as it conflicts with the current codebase which has diverged significantly. Feel free to add any feedback, issues, or further pull requests to the new SDK code 🚀 🎉 ! |
This PR is meant to add an
examples/folder that contains amain.gofile that can be run immediately after first cloning the repo locally. I actually followed along with: https://surrealdb.com/blog/getting-started-with-surrealdb so if someone was watching the video, they could see everything the Youtuber did in Golang. Of course, the whole video is not moved over, it is about the first 10 minutes.I also added a
SchemalessSelectfunction which returns "rows" instead of a list of maps.Also, will update once #3 gets merged to reflect the latest functionality