You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2026. It is now read-only.
Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/asl/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
/*
* May 2015
*
* Derivative created by HP, to leverage and extend the function framework to provide automatic loading from S3, via
* Lambda, to the HP Vertica Analytic Database platform. This derivative work remains governed by the Amazon
* Software License, and is subject to all terms and restrictions noted in ASL.
*
*/
var aws = require('aws-sdk');
require('./constants');
if (process.argv.length < 4) {
console.log("You must provide an AWS Region Code, Query (-q) or Delete (-d) option, and the specified Filename");
process.exit(ERROR);
}
var opt = process.argv[3];
var file = process.argv[4];
// connect to PostgreSQL
var Persistence = require('./db/persistence');
var postgresClient = require('./db/postgresConnector').connect();