Golang Database examples contains base code for working with some popular databases using Go libraries.
cmd/main- main go filedeploy- contains docker-compose file to run databases locallyinternal/service- contains main business logicinternal/config- configuration setup using viper and .env fileinternal/db- database adapter interfaceinternal/*- other go files contain database adapter implementations
- Relational (PostgreSQL, Cockroach)
- Document (MongoDB, Couchbase)
- Key-Value (Redis)
- Graph (Neo4J)
- Columnar (Cassandra)
- Time-series (Cassandra, Solr)
- Realtime (Firebase)
