Skip to content

morzhanov/go-dbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Golang Database examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages