Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ajsalemo/go-database-samples

Examples of using Go to connect to various databases
https://github.com/ajsalemo/go-database-samples

azure containers cosmosdb cosmosdb-mongodb docker go go-http go-net golang mariadb mongodb mssql mysql postgres server

Last synced: 12 days ago
JSON representation

Examples of using Go to connect to various databases

Awesome Lists containing this project

README

        

# Go Database Samples

Various examples of using Go (1.19) to connect to databases.

Steps to run:
- Use the `databases` *.sql files to help with seeding data (if needed)
- Create the required database
- Create an App Service on Linux - Go - and add the required environment variables (in `/routes/getdata/getdata.go`, `/config/db/db.go`)

On local
- Point this to a local instance of the type of database you'd like to use, or a remote one
- Run `go run main.go`