Ducker (ducker v0.2.0)

View Source

Documentation for Ducker.

Summary

Functions

Executes all SQL files (.sql) in the given directory.

Executes all validation files (.yaml) in the given directory.

Initializes a Ducker struct with a connection and work directory.

Resets the validation results in the database.

Functions

execute_query_file_from_dir!(ducker, dir, opts \\ [])

Executes all SQL files (.sql) in the given directory.

Options

  • :eex - If true, EEx is used to evaluate the SQL files.

execute_validation_from_dir!(ducker, dir, opts \\ [])

Executes all validation files (.yaml) in the given directory.

Options:

  • :filter - A function to filter files. It should take a file name as an argument and return true or false.

initialize!(conn, work_dir)

Initializes a Ducker struct with a connection and work directory.

reset_validation_results!(ducker)

Resets the validation results in the database.