Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months ago
JSON representation
Examples of using Go to connect to various databases
- Host: GitHub
- URL: https://github.com/ajsalemo/go-database-samples
- Owner: Ajsalemo
- Created: 2022-10-20T15:51:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-21T22:57:11.000Z (about 2 years ago)
- Last Synced: 2024-10-12T02:42:07.409Z (3 months ago)
- Topics: azure, containers, cosmosdb, cosmosdb-mongodb, docker, go, go-http, go-net, golang, mariadb, mongodb, mssql, mysql, postgres, server
- Language: Go
- Homepage:
- Size: 46.5 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`