-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdds_loader_test.php
More file actions
39 lines (33 loc) · 1.03 KB
/
dds_loader_test.php
File metadata and controls
39 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* File dds_loader_test.php contains the class dds_loader_test.php
*
* @author Aaron Harris <aharris@intacct.com>
* @copyright 2000-2013 Intacct Corporation
*
* This document contains trade secret data that belongs to Intacct
* Corporation and is protected by the copyright laws. Information
* herein may not be used, copied or disclosed in whole or in part
* without prior written consent from Intacct Corporation.
*/
include_once 'DdsLoader/DBs/DdsDbRedshift.php';
include_once 'DdsLoader/storage/DdsStorageS3.php';
try {
// get the DB connection
$intacctPg = new DdsDbRedshift(
$_SERVER['RedShiftURL'],
$_SERVER['RedShiftDB'],
$_SERVER['RedShiftUser'],
$_SERVER['RedShiftPWD']
);
// get the storage object
$stS3 = new DdsStorageS3(
'intacct.ddsdev',
'DDS_ATLAS',
$_SERVER['AWSAccessKeyId'],
$_SERVER['AWSAccessKey']
);
$intacctPg->loadAll('REPORTINGPERIOD', $stS3);
} catch (Exception $ex) {
print_r($ex->getMessage());
}