From aa920ec7df6407b9d0e178643117204a1c3d0ab4 Mon Sep 17 00:00:00 2001 From: Costas K <11378310+kacos2000@users.noreply.github.com> Date: Tue, 30 Apr 2019 12:08:40 +0300 Subject: [PATCH] Magnet AXIOM Custom Artifact --- GDrive_snapshot.xml | 89 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 GDrive_snapshot.xml diff --git a/GDrive_snapshot.xml b/GDrive_snapshot.xml new file mode 100644 index 0000000..2013532 --- /dev/null +++ b/GDrive_snapshot.xml @@ -0,0 +1,89 @@ + + + + snapshot.db + + select + mapping.doc_id as 'DocID', + case cloud_entry.doc_type + when 0 then 'Folder' + when 1 then 'File' + when 4 then 'Google Sheet' + else cloud_entry.doc_type + end as 'DocType', + cloud_entry.filename as 'CloudFilename', + cloud_entry.checksum as 'CloudMD5Hash', + cloud_entry.modified as 'CloudModified', + cloud_entry.size as 'CloudSize', + cloud_entry.original_size as 'OriginalSize', + case local_entry.is_folder + when 0 then 'No' + when 1 then 'Yes' + end as 'IsFolder', + case cloud_entry.removed + when 0 then 'No' + when 1 then 'Yes' + end as 'Removed' , + case cloud_entry.shared + when 0 then 'No' + when 1 then 'Yes' + end as 'Shared', + local_entry.filename as 'LocalFilename', + local_entry.size as 'LocalSize', + local_entry.checksum as 'LocalMD5Hash', + local_entry.modified as 'LocalModified', + case + when local_entry.volume = volume_info.volume + then volume_info.full_path||" - "||volume_info.device_type||" - Volume Name: ("||volume_info.label||")" + else local_entry.volume + end as 'Volume', + case + when cloud_entry.checksum = local_entry.checksum + then 'MD5 Match' + else (case + when cloud_entry.checksum notnull + then 'No_Match' + else '' + end) + end as 'MD5Check', + case + when cloud_entry.modified = local_entry.modified + then 'Dates Match' + else 'No Match' + end as 'CloudLocalDatesCheck', + local_relations.child_volume as 'ChildVolume', + local_relations.parent_volume as 'ParentVolume' + + from cloud_entry + join mapping on cloud_entry.doc_id = mapping.doc_id + join cloud_relations on cloud_entry.doc_id = cloud_relations.child_doc_id + join local_entry on local_entry.inode = mapping.inode + join local_relations on local_relations.child_inode = local_entry.inode + left join volume_info on volume_info.volume = local_entry.volume + order by LocalModified desc + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file