surrealdb / surrealdb.go

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

surreal: added examples folder #5

Open ivorytoast opened 2 years ago

ivorytoast commented 2 years ago

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 https://github.com/surrealdb/surrealdb.go/pull/3 gets merged to reflect the latest functionality

timpratim commented 1 year ago

Can you please remerge this PR?