Table Folders
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_folders | |
| INSERT | create_folder | |
| UPDATE | ||
| UPSERT | ||
| DELETE | delete_item | |
| LOOKUP | get_file_info |
Examples
SSIS
Use Google Drive Connector in API Source component to read data or in API Destination component to read/write data:
Read from Folders table using API Source
| Optional Parameters | |
|---|---|
| Search Criteria | mimeType='application/vnd.google-apps.folder' and trashed!=true |
Read/write to Folders table using API Destination
| Optional Parameters | |
|---|---|
| Search Criteria | mimeType='application/vnd.google-apps.folder' and trashed!=true |
ODBC application
Use these SQL queries in your ODBC application data source:
Delete a folder
<p>Deletes a folder by ID. Supply the folder ID in the WITH clause.</p>
DELETE FROM Folders
WITH(Id='1yDO11prsLH9DUrBTCadV6GGMJrITjF9I')
Create a folder
<p>Creates a new folder. Supply the folder name and parent folder ID (<code>ParentFolderId='root'</code> for the drive root).</p>
INSERT INTO Folders
WITH(Name='My folder name',
ParentFolderId='root')
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Delete a folder
<p>Deletes a folder by ID. Supply the folder ID in the WITH clause.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Folders
WITH(Id=''1yDO11prsLH9DUrBTCadV6GGMJrITjF9I'')';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
Create a folder
<p>Creates a new folder. Supply the folder name and parent folder ID (<code>ParentFolderId='root'</code> for the drive root).</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'INSERT INTO Folders
WITH(Name=''My folder name'',
ParentFolderId=''root'')';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];