Created
November 28, 2021 14:43
-
-
Save mshakhomirov/b689f77578ed527b4dd0dfca6008fc36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const processEvent = async(event, tables, bucket, key) => { | |
... // Maybe evaulte query size, etc. | |
... // add some other queries and tables to your ./config.json maybe? | |
for (const table of tables) { | |
try { | |
const result = await queryDbAndSave(connection, veryBiqSqlResult, size, ts, s3key, bucket, table.output, table.dryRun); | |
} catch (e) { | |
console.log(`ERROR: ${e.code} ${e.sqlMessage}`); | |
} | |
} | |
return console.log({ 'Finished processing tables': `${tables.length}` }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment