db

command
v0.7.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

An example of API with DB

The following example demonstrates steps how we describe and test our API with DB using godog. To start with, see API example before. We have extended it to be used with database.

The interesting point is, that we have go-txdb library, which has an implementation of custom sql.driver to allow execute every and each scenario within a transaction. After it completes, transaction is rolled back so the state could be clean for the next scenario.

To run users.feature you need MySQL installed on your system with an anonymous root password. Then run:

make test

The json comparisom function should be improved and we should also have placeholders for primary keys when comparing a json result.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL