adelowo / mockdemo

Mocking the database in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mockdemo

This repo contains the source code for my blog post on mocking the database in Go.

Blog post is WIP

Features

  • Posts can be created.
  • Posts can be deleted.
  • A single post can be viewed.

The app uses an sqlite database but for the tests, the database interaction is mocked out... Run cat db.sql | sqlite3 demo.sqlite to get the sample database.

License

MIT

About

Mocking the database in Golang

License:MIT License


Languages

Language:Go 100.0%