Skip to content

Comments

surreal: added examples folder#5

Closed
ivorytoast wants to merge 7 commits intosurrealdb:mainfrom
ivorytoast:surreal-examples
Closed

surreal: added examples folder#5
ivorytoast wants to merge 7 commits intosurrealdb:mainfrom
ivorytoast:surreal-examples

Conversation

@ivorytoast
Copy link

@ivorytoast ivorytoast commented Sep 16, 2022

This PR is meant to add an examples/ folder that contains a main.go file 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 SchemalessSelect function which returns "rows" instead of a list of maps.

Also, will update once #3 gets merged to reflect the latest functionality

@ivorytoast ivorytoast requested review from AYM1607 and intabulas and removed request for AYM1607 and intabulas September 20, 2022 20:12
@ivorytoast ivorytoast requested review from Keitio and removed request for intabulas September 23, 2022 18:08
@phughk phughk self-assigned this Mar 7, 2023
@phughk phughk added the enhancement New feature or request label Mar 9, 2023
@phughk phughk added the stale label Apr 30, 2023
@timpratim
Copy link
Contributor

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) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per Go conversions this should just be db. self and this is not used in Go.

@tobiemh
Copy link
Member

tobiemh commented Apr 8, 2025

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 🚀 🎉 !

@tobiemh tobiemh closed this Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants