Search⌘ K
AI Features

Testing the restdb Package

Explore how to test the restdb package in Go to verify its database operations and connectivity. This lesson guides you through creating a test utility to confirm that adding, deleting, and querying users in PostgreSQL works correctly before using the package in RESTful server development.

We'll cover the following...

The RESTful server is developed in ~/go/src/github.com/Educative-Content/rest-api—if we do not plan on making it available to the world, we do not need to create a separate GitHub repository for it. However, we do ...