@pittica/google-business-intelligence-helpers 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scripts/backup.js +5 -1
- package/package.json +1 -1
package/dist/scripts/backup.js
CHANGED
|
@@ -34,10 +34,14 @@ exports.scriptBackup = backup;
|
|
|
34
34
|
/**
|
|
35
35
|
* Creates a backup and erases the bucket.
|
|
36
36
|
*
|
|
37
|
+
* @param {string} id BigQuery dataset ID.
|
|
38
|
+
* @param {string} bucket Bucket name.
|
|
39
|
+
* @param {string} projectId Google Cloud project ID.
|
|
37
40
|
* @param {number} days Number of days to keep.
|
|
41
|
+
* @param {string} dateFormat Date format string.
|
|
38
42
|
* @returns {boolean} A value indicating whehter the job has been done.
|
|
39
43
|
*/
|
|
40
|
-
exports.scriptBackupErase = async days => await backup().then(async () => await erase(days));
|
|
44
|
+
exports.scriptBackupErase = async (id, bucket, projectId, days, dateFormat = "YYYY-MM-DD") => await backup(id, bucket, projectId, dateFormat).then(async () => await erase(bucket, days));
|
|
41
45
|
|
|
42
46
|
/**
|
|
43
47
|
* Rollback data using backup.
|
package/package.json
CHANGED