#Database
6 articles
Get to know the Repository Pattern in Golang
In the book Domain-Driven Design, Eric Evans explains that Repository is a mechanism for encapsulating storage, retrieval and search behaviour, which emulates a collection of objects
How To Integrate Golang with MySQL Database
Introduction to Package Database In Golang programming, by default it has a package called database.
How to Communication Golang with MSSQL Server
Dependency Make sure you have created a project with go mod init mssql-go in the mssql-go folder and the dependency that we will use is using
How To Communication Golang with MongoDB
Dependecy Needed Add some dependency when we used "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" "go.
How To Communication Golang with Postgres Database
Dependency Make sure you have created a project with go mod init postgres-go in the postgres-go folder and the dependency that we will use is using
How to Communication Golang with MySQL Database
Package atau Library import "github.com/go-sql-driver/mysql" Project Initialization Prepare a new folder with the name mysql-native, then initialize the Golang module to make it more modular.