Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Go Database Examples

Golang Database examples contains base code for working with some popular databases using Go libraries.

arch

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