Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 610 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 610 Bytes

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>