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.



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


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.

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