Table Trash
Description
No description available
Supported Operations
Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.| Method | Supported | Reference EndPoint |
|---|---|---|
| SELECT | list_deleted_files | |
| INSERT | ||
| UPDATE | ||
| UPSERT | ||
| DELETE | empty_trash | |
| LOOKUP |
Examples
SSIS
Use Google Drive Connector in API Source component to read data or in API Destination component to read/write data:
Read from Trash table using API Source
API Source - Google Drive
Read and write Google Drive data effortlessly. Integrate, manage, and automate files, folders, and shared drives — almost no coding required.
Google Drive
Trash
| Optional Parameters | |
|---|---|
| Search Criteria | trashed=true |
Read/write to Trash table using API Destination
API Destination - Google Drive
Read and write Google Drive data effortlessly. Integrate, manage, and automate files, folders, and shared drives — almost no coding required.
Google Drive
Trash
Select
| Optional Parameters | |
|---|---|
| Search Criteria | trashed=true |
ODBC application
Use these SQL queries in your ODBC application data source:
List trash
SELECT * FROM Trash
List trash for a shared drive
SELECT * FROM Trash
WITH(DriveType='drive',
DriveId='1j0HFOP4gsoExxxxxx')
Empty trash
DELETE FROM Trash
Empty trash for a shared drive
DELETE FROM Trash
WITH(DriveType='drive',
DriveId='1j0HFOP4gsoExxxxxx')
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
List trash
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Trash';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
List trash for a shared drive
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Trash
WITH(DriveType=''drive'',
DriveId=''1j0HFOP4gsoExxxxxx'')';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
Empty trash
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Trash';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
Empty trash for a shared drive
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Trash
WITH(DriveType=''drive'',
DriveId=''1j0HFOP4gsoExxxxxx'')';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];