########################################################
# nl_loader configuration file
#
# $Author: dang $
# $Rev: 23267 $
########################################################

#
# Global definitions
#

# Program name, convenient short-hand but also
# used by included logging.conf file
prog = nl_loader

#
# Include contents of 'shared.conf'
#
@include shared.conf

#
# nl_loader's global section
#
[global]
# Save the name and offset of the current input file
# in this file.
state_file = $output_dir/${prog}.state

#
# Input file section
#
[input]
# Base name of the input file, which is the
# same as the parser output file.
filename = $parser_output
# Read, in numerical order, input files
# named ${filename}.1, ${filename}.2, etc.,
# starting with the lowest number found
# in the directory containing ${filename} (which
# may not be 1).
numbered_files = yes
# When the end of a file is reached, which is known
# because of a special EOF event added by the nl_parser,
# delete the file before moving on to the next one.
delete_old_files = yes
# Another action that could be performed when a file
# is "done" is to append a suffix. Obviously, the
# nl_loader can't do both.
# move_files_suffix = ".DONE"

#
# Database connection parameters section
#
[database]
# Set the database connection URI, which can be
# either
#   mysql://<host>:<port>
#   postgresql://<host>:<port>
#   sqlite:///path/to/file
#   test:///path/to/file
uri = sqlite://$output_dir/data.sqlite
[[parameters]]
# Set the name of the database. This can
# be given even for sqlite (where it is ignored).
database = test

#
# Include contents of 'logging.conf'
#
@include "logging.conf"
