Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morzhanov/go-dbs
Golang Database examples
https://github.com/morzhanov/go-dbs
Last synced: 20 days ago
JSON representation
Golang Database examples
- Host: GitHub
- URL: https://github.com/morzhanov/go-dbs
- Owner: morzhanov
- Created: 2021-10-08T23:48:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T12:50:44.000Z (over 3 years ago)
- Last Synced: 2024-11-08T00:52:38.266Z (2 months ago)
- Language: Go
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Database Examples
Golang Database examples contains base code for working with some popular databases using Go libraries.
## Project structure
- `cmd/main` - main go file
- `deploy` - contains docker-compose file to run databases locally
- `internal/service` - contains main business logic
- `internal/config` - configuration setup using viper and .env file
- `internal/db` - database adapter interface
- `internal/*` - other go files contain database adapter implementations## DB types:
- Relational (PostgreSQL, Cockroach)
- Document (MongoDB, Couchbase)
- Key-Value (Redis)
- Graph (Neo4J)
- Columnar (Cassandra)
- Time-series (Cassandra, Solr)
- Realtime (Firebase)