- -- Check the optional config for missing required options.
- --when (isNothing (OC.password opt_config)) $ do
- -- report_error "No password supplied."
- -- exitWith (ExitFailure exit_no_password)
+ -- If a database name was specified, and that name exists as a file
+ -- on the system, assume that the user wanted to use SQLite.
+ handleSql show_sql_error $ do
+ r <- case (database cfg) of
+ Nothing -> connectPostgreSQL (connection_string cfg) >>= report cfg