Ecosyste.ms: Repos

An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/godogx/dbsteps

Package dbsteps provides godog steps to handle database state. Databases instances should be configured with Manager.Instances. Table mapper allows customizing decoding string values from godog table cells into Go row structures and back. Delete all rows from table. Populate rows in a database with a gherkin table. Assert rows existence in a database. For each row in gherkin table DB is queried to find a row with WHERE condition that includes provided column values. If a column has NULL value, it is excluded from WHERE condition. Column can contain variable (any unique string starting with $ or other prefix configured with Manager.VarPrefix). If variable has not yet been populated, it is excluded from WHERE condition and populated with value received from database. When this variable is used in next steps, it replaces the value of column with value of variable. Variables can help to assert consistency of dynamic data, for example variable can be populated as ID of one entity and then checked as foreign key value of another entity. This can be especially helpful in cases of UUIDs. If column value represents JSON array or object it is excluded from WHERE condition, value assertion is done by comparing Go value mapped from database row field with Go value mapped from gherkin table cell. Rows can be also loaded from CSV file. It is possible to check table contents exhaustively by adding "only" to step statement. Such assertion will also make sure that total number of rows in database table matches number of rows in gherkin table. Rows can be also loaded from CSV file. Assert no rows exist in a database.
3 versions
Latest release: over 2 years ago
8 dependent packages

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/godogx/dbsteps

View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/godogx%2Fdbsteps

Dependent Repos 5

vearutop/cache-story
Demo repository for a blog post.
  • v0.1.2 go.mod
  • v0.1.2 go.sum

Size: 4.59 MB - Last synced: 3 months ago - Pushed: 3 months ago

nhatthm/otelsql
OpenTelemetry SQL database driver wrapper for Go
  • v0.1.2 tests/mssql/go.mod
  • v0.1.2 tests/mssql/go.sum
  • v0.1.2 tests/mysql/go.mod
  • v0.1.2 tests/mysql/go.sum
  • v0.1.2 tests/postgres/go.mod
  • v0.1.2 tests/postgres/go.sum
  • v0.1.2 tests/suite/go.mod
  • v0.1.2 tests/suite/go.sum

Size: 971 KB - Last synced: 9 days ago - Pushed: 12 days ago

bool64/brick
🧱 An opininated web service unit in Go
  • v0.1.2 go.mod
  • v0.1.2 go.sum

Size: 108 KB - Last synced: 3 months ago - Pushed: 3 months ago

bool64/brick-starter-kit
Web application template for bool64/brick
  • v0.1.2 go.mod
  • v0.1.2 go.sum

Size: 1.02 MB - Last synced: 10 months ago - Pushed: over 1 year ago

rajyan/otelsql Fork of nhatthm/otelsql
OpenTelemetry SQL database driver wrapper for Go
  • v0.1.2 tests/mssql/go.mod
  • v0.1.2 tests/mssql/go.sum
  • v0.1.2 tests/mysql/go.mod
  • v0.1.2 tests/mysql/go.sum
  • v0.1.2 tests/postgres/go.mod
  • v0.1.2 tests/postgres/go.sum
  • v0.1.2 tests/suite/go.mod
  • v0.1.2 tests/suite/go.sum

Size: 1.16 MB - Last synced: 5 months ago - Pushed: 5 months ago

sudo-suhas/otelsql Fork of nhatthm/otelsql
OpenTelemetry SQL database driver wrapper for Go
  • v0.1.2 tests/mssql/go.mod
  • v0.1.2 tests/mssql/go.sum
  • v0.1.2 tests/mysql/go.mod
  • v0.1.2 tests/mysql/go.sum
  • v0.1.2 tests/postgres/go.mod
  • v0.1.2 tests/postgres/go.sum
  • v0.1.2 tests/suite/go.mod
  • v0.1.2 tests/suite/go.sum

Size: 1000 KB - Last synced: 27 days ago - Pushed: 9 months ago

togglhire/otelsql Fork of nhatthm/otelsql
OpenTelemetry SQL database driver wrapper for Go
  • v0.1.2 tests/mssql/go.mod
  • v0.1.2 tests/mssql/go.sum
  • v0.1.2 tests/mysql/go.mod
  • v0.1.2 tests/mysql/go.sum
  • v0.1.2 tests/postgres/go.mod
  • v0.1.2 tests/postgres/go.sum
  • v0.1.2 tests/suite/go.mod
  • v0.1.2 tests/suite/go.sum

Size: 931 KB - Last synced: 9 months ago - Pushed: 9 months ago

AmeerIbrahimm/goagent
  • v0.1.2 instrumentation/otelsql/tests/mssql/go.mod
  • v0.1.2 instrumentation/otelsql/tests/mssql/go.sum
  • v0.1.2 instrumentation/otelsql/tests/mysql/go.mod
  • v0.1.2 instrumentation/otelsql/tests/mysql/go.sum
  • v0.1.2 instrumentation/otelsql/tests/postgres/go.mod
  • v0.1.2 instrumentation/otelsql/tests/postgres/go.sum
  • v0.1.2 instrumentation/otelsql/tests/suite/go.mod
  • v0.1.2 instrumentation/otelsql/tests/suite/go.sum

Size: 165 KB - Last synced: 8 months ago - Pushed: 8 months ago

vearutop/photo-blog
📷 Minimalistic photo gallery.
  • v0.1.2 go.mod
  • v0.1.2 go.sum

Size: 18.1 MB - Last synced: 20 days ago - Pushed: 21 days ago