Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
How to Build a Persistence Mongo DB Application with Golang
Rating: 2.4 out of 5(9 ratings)
64 students

How to Build a Persistence Mongo DB Application with Golang

Go applications with application data
Last updated 12/2020
English

What you'll learn

  • In the end of my course you will know how to establish mongoDB sessions, how to perform CRUD operations and how to ensure indexes in go language

Course content

1 section9 lectures1h 24m total length
  • Introduction to MongoDB10:42

    Explore MongoDB, a high-performance no-sql document database for web applications, and learn to install, connect with the Go driver, and perform core operations.

  • Inserting documents part 115:00

    Learn how to insert documents into a MongoDB collection using Go, creating databases and collections like categories, and handling _id primary keys for persisted data.

  • Inserting documents part 214:07

    Explore inserting documents in a golang mongo db app by using embedded documents to model one-to-many relationships, preserving integrity with child collections and budget documents.

  • Reading documents part 110:00

    Explore reading documents in a MongoDB collection using Go, retrieve all documents, apply filters, and iterate results to model parent-child relationships.

  • Reading documents part 211:08

    Read and manage documents from a MongoDB collection, then apply the sort method to order records by fields like name or profile, and practice retrieving documents by id.

  • Updating documents8:19

    Learn to update documents in a MongoDB collection using Golang, find a single matching document, and apply changes with the $set update operator.

  • Deleting documents2:58

    Learn to delete a single document by criteria such as name or id, remove multiple documents from a collection, and clear all documents from the collection or database.

  • Indexes10:03

    Learn how to create indexes in a MongoDB collection to boost query performance, including default, field-specific, unique ID indexes, and compound indexes across fields.

  • Summary1:54

    Learn to build a persistence application with MongoDB in Go, using collections for high performance and persistent storage. Open a session object for read operations via the api.

Requirements

  • You should have basic level of programming on go language and basic level on noSQL databases

Description

Course Description

When you build web applications, persistence of application data is very important. You can define the data
model of your Go applications using structs, in which you can program against the structs for working with
application data, but you need persistent storage for your application data.
This course shows you how to persist application data into MongoDB, which is a popular NoSQL database.
This course covers the following:

• Introduction to MongoDB

• You will know how insert documents

• You will know how read documents

• You will know how update documents

• You will know how delete documents

• You will know how create indexes


The Go programming language can be simply described in three words: simple, minimal, and pragmatic.
If you look deeply into the language design of Go, you see its simple and minimalistic approach, coupled
with a pragmatic design. You can observe this simplicity with all the Go language features, including the
type system. Today, many programming languages provide too many features that make applications more
complex for developers. The design goal of Go is to be a simple and minimal language that provides all the
necessary features for developing efficient software systems.


What are the requirements?
  • A familiarity of programming in Golang.
  • A familiarity of Linux or OSx
  • A familiarity of MongoDB
What am I going to get from this course?
  • Learned how to persist data into MongoDB using the mgo package, which is a MongoDB driver for Go.
What is the target audience?
  • Big Data professionals who want to MongoDB and Golang.
  • IT professionals and managers who want to understand and learn this hot new technology

Who this course is for:

  • It can be helpful from high school level