Description

Database Build Directory

Process the build table scripts found in a specified directory.

This will run all .js files in the specified directory that export a buildTable function.

Methods


<inner> buildDirectory( db, agencyOptions, directory, callback )

Description

Run all of the build table scripts in the specified directory. This will find all .js files that export a buildTable function and run the scripts in alphabetical order of the scripts' filenames.

Parameters
Name Type Description
db Object

The SQLite database being built

agencyOptions AgencyOptions

The Agency Build Options

directory string

The path to the directory containing the build scripts

callback function

Callback function() called when all build scripts have finished