db

command
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

Data Preparation for Testing

Starting the postgres container

make db-start

Populate the database using one of the two available methods: Generate a mock database:

./schema.sql is a database schema taken from graphql processor on dev net, it creates all the needed tables for the database.

the data-crafter have a various of methods to create/update/delete the main tables on the database. it can be customized by the params passed to the NewCrafter.

make db-fill

Or use a data dump file (contains both schema and data)

make db-dump p=<path-to-dump.sql-file>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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